summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-30 14:06:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-30 14:06:03 -0700
commit8315f44d2c447d5a6a1dcd9c505cb85fd73469be (patch)
tree7ed68d1f3b8f09e89d219dddf2e1d09a6751a148 /qt-ui/subsurfacewebservices.cpp
parent5b93c61348d29c5e9aac4978cf37f7f9343200da (diff)
parente4a88db7dc197eee3a7f63ba1fc725c10a195073 (diff)
downloadsubsurface-8315f44d2c447d5a6a1dcd9c505cb85fd73469be.tar.gz
Merge branch 'survey'
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 1babdaa8e..f545345d5 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -911,3 +911,16 @@ void DivelogsDeWebServices::buttonClicked(QAbstractButton *button)
break;
}
}
+
+UserSurveyServices::UserSurveyServices(QWidget *parent, Qt::WindowFlags f) : WebServices(parent, f)
+{
+
+}
+
+void UserSurveyServices::sendSurvey(QString values)
+{
+ QNetworkRequest request;
+ request.setUrl(QString("http://subsurface.hohndel.org/survey?%1").arg(values));
+ request.setRawHeader("Accept", "text/xml");
+ reply = manager()->get(request);
+}