MCPcopy Create free account
hub / github.com/KDAB/GammaRay / contentType

Function contentType

plugins/network/networkreplymodel.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86NetworkReply::ContentType contentType(const QVariant &v)
87{
88 if (v.toString().contains(QLatin1String("application/json"))) {
89 return NetworkReply::Json;
90 } else if (v.toString().contains(QLatin1String("application/xml"))) {
91 return NetworkReply::Xml;
92 } else if (v.toString().startsWith(QLatin1String("image/"))) {
93 return NetworkReply::Image;
94 }
95 return NetworkReply::Unknown;
96}
97
98}
99

Callers 2

objectCreatedMethod · 0.85
replyFinishedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected