From d36e4555da1fcf46d2ecfbaae8db1b0fe1915b10 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 19 Dec 2013 17:03:22 -0800 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/subsurfacewebservices.cpp | 2 +- qt-ui/subsurfacewebservices.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2