Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QNetworkReply* clsNAM::createRequest(Operation op,const QNetworkRequest & req,
- QIODevice * outgoingData )
- {
- return new clsNR(QNetworkAccessManager::createRequest(_op,_req,_outgoingData));
- }
- bool clsNR::isImage()
- {
- if(this->rawHeader("Content-Type").toLower().startsWith("image"))
- return true;
- else
- return false;
- }
- void clsNR::slotCloseConnection()
- {
- if(isImage())
- {
- QImage image;
- bool bool1 = image.loadFromData(ContentData);
- QString name(QDir::homePath());
- name.append(this->url().path());
- bool bool2 = image.save(name,0,-1);
- }
- }
- "/home/guest/images/splash/3.jpg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement