if(myMainw->settingsDialog->profileDialog)
myMainw->settingsDialog->profileDialog->setLabelInfoToUser("Profile saved to phone");
- QUrl qurl("http://api.speedfreak-app.com/api/profile");
+ // Send xml to server
+ /*QUrl qurl("http://api.speedfreak-app.com/api/profile");
QNetworkRequest request(qurl);
qDebug() << qurl.toString();
QNetworkReply *currentDownload;
request.setRawHeader(QByteArray("Authorization"),credentials.toAscii());
currentDownload = netManager->post(request, ("xml=" + file.readAll()));
- bool error = connect(currentDownload, SIGNAL(finished()), this, SLOT(ackOfProfile()));
+ bool error = connect(currentDownload, SIGNAL(finished()), this, SLOT(ackOfProfile()));*/
file.close();
- // Send picture
- if(myMainw->settingsDialog->profileDialog->getPicture() != "" && error == false)
+ // Send picture to server
+ /*if(myMainw->settingsDialog->profileDialog->getPicture() != "" && error == false)
{
QFile pictureFile( myMainw->settingsDialog->profileDialog->getPicture() );
if (!pictureFile.open(QIODevice::ReadOnly))
currentDownload = netManager->post(request, pictureFile.readAll());
connect(currentDownload, SIGNAL(finished()), this, SLOT(ackOfSendingPicture()));
pictureFile.close();
- }
+ }*/
}
/**