diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-12-19 17:03:22 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-20 09:53:05 -0800 |
commit | d36e4555da1fcf46d2ecfbaae8db1b0fe1915b10 (patch) | |
tree | ea0079c64c70aa836dcfe1f3d4402afd4322ee5c | |
parent | b654bcdd7aefc71e7fa367aae171b3afac8c4a41 (diff) | |
download | subsurface-d36e4555da1fcf46d2ecfbaae8db1b0fe1915b10.tar.gz |
Move the divelogs.de preparation function into the C++ class
This is so we can mark the error messages for translation.
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 2 | ||||
-rw-r--r-- | qt-ui/subsurfacewebservices.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index afa368b7d..6e58d3ad1 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -98,7 +98,7 @@ static void clear_table(struct dive_table *table) table->nr = 0; } -static bool prepare_dives_for_divelogs(const QString &tempfile, const bool selected) +bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, const bool selected) { static const char errPrefix[] = "divelog.de-upload:"; if (!amount_selected) { diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h index f6b3ee263..46cab7120 100644 --- a/qt-ui/subsurfacewebservices.h +++ b/qt-ui/subsurfacewebservices.h @@ -83,6 +83,7 @@ private: void uploadDives(QIODevice *dldContent); explicit DivelogsDeWebServices (QWidget* parent = 0, Qt::WindowFlags f = 0); void setStatusText(int status); + bool prepare_dives_for_divelogs(const QString &filename, bool selected); void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status); unsigned int download_dialog_parse_response(const QByteArray& length); |