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>
This commit is contained in:
Thiago Macieira 2013-12-19 17:03:22 -08:00 committed by Dirk Hohndel
parent b654bcdd7a
commit d36e4555da
2 changed files with 2 additions and 1 deletions

View file

@ -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) {

View file

@ -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);