summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-12-25 12:55:06 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-25 10:40:09 -0800
commit3d3eac7cc72d9466464b59c66fb1b5162b789879 (patch)
tree39502b54ee95ae2b6067781fa66b9af69888c456 /qt-ui/divelistview.cpp
parent83fd196c4ad15274c4499b4ef94e30398f00bfce (diff)
downloadsubsurface-3d3eac7cc72d9466464b59c66fb1b5162b789879.tar.gz
Send an experimental file to the experimental album on Facebook
And I had to create the Http header by hand because I couldn't figure out how to do using HttpMultiPart from Qt. not fun. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 83d78c4c2..cbbf35152 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -27,6 +27,7 @@
#include <QFileDialog>
#include <string>
#include <iostream>
+#include <QHttpMultiPart>
#include "socialnetworks.h"
#include "../qthelper.h"
@@ -844,6 +845,7 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
void DiveListView::publishFacebook()
{
FacebookManager *fb = FacebookManager::instance();
+ fb->sendDive(1);
}
void DiveListView::shiftTimes()