Create a Facebook album for Subsurface

We still need to do a lot of stuff on that part.
Currently when asking for sending a profile, it will just
create a private album.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-12-24 13:23:31 -02:00 committed by Dirk Hohndel
parent e49b4b72b7
commit a76fdd8d54
5 changed files with 77 additions and 1 deletions

View file

@ -824,6 +824,10 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
popup.addAction(tr("Shift times"), this, SLOT(shiftTimes()));
popup.addAction(tr("Load images"), this, SLOT(loadImages()));
}
if (prefs.facebook.user_id) {
popup.addAction(tr("Publish on Facebook"), this, SLOT(publishFacebook()));
}
// "collapse all" really closes all trips,
// "collapse" keeps the trip with the selected dive open
QAction *actionTaken = popup.exec(event->globalPos());
@ -836,6 +840,12 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
event->accept();
}
void DiveListView::publishFacebook()
{
FacebookManager manager;
manager.checkAlbumExists();
}
void DiveListView::shiftTimes()
{
ShiftTimesDialog::instance()->show();