summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
commit76e6420f6b3503b76bd3eec00ab0e53d6ea17a20 (patch)
tree8b50298f41bd29d55bbd6f4301f36ad31dc0b008 /qt-ui/subsurfacewebservices.h
parent006265d7a088cff4fea665159dbb454956c2cd76 (diff)
downloadsubsurface-76e6420f6b3503b76bd3eec00ab0e53d6ea17a20.tar.gz
Massive automated whitespace cleanup
I know everyone will hate it. Go ahead. Complain. Call me names. At least now things are consistent and reproducible. If you want changes, have your complaint come with a patch to scripts/whitespace.pl so that we can automate it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h37
1 files changed, 22 insertions, 15 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index 4d1ec0002..872cf377d 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -13,23 +13,25 @@ class QAbstractButton;
class QNetworkReply;
class QHttpMultiPart;
-class WebServices : public QDialog{
+class WebServices : public QDialog {
Q_OBJECT
public:
- explicit WebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
+ explicit WebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
void hidePassword();
void hideUpload();
void hideDownload();
static QNetworkAccessManager *manager();
-private slots:
+private
+slots:
virtual void startDownload() = 0;
virtual void startUpload() = 0;
- virtual void buttonClicked(QAbstractButton* button) = 0;
+ virtual void buttonClicked(QAbstractButton *button) = 0;
virtual void downloadTimedOut();
-protected slots:
+protected
+slots:
void updateProgress(qint64 current, qint64 total);
protected:
@@ -47,30 +49,34 @@ protected:
class SubsurfaceWebServices : public WebServices {
Q_OBJECT
public:
- explicit SubsurfaceWebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
+ explicit SubsurfaceWebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
-private slots:
+private
+slots:
void startDownload();
- void buttonClicked(QAbstractButton* button);
+ void buttonClicked(QAbstractButton *button);
void downloadFinished();
void downloadError(QNetworkReply::NetworkError error);
- void startUpload(){} /*no op*/
+ void startUpload()
+ {
+ } /*no op*/
private:
void setStatusText(int status);
void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
- unsigned int download_dialog_parse_response(const QByteArray& length);
+ unsigned int download_dialog_parse_response(const QByteArray &length);
};
class DivelogsDeWebServices : public WebServices {
Q_OBJECT
public:
- static DivelogsDeWebServices * instance();
+ static DivelogsDeWebServices *instance();
void downloadDives();
void prepareDivesForUpload();
-private slots:
+private
+slots:
void startDownload();
- void buttonClicked(QAbstractButton* button);
+ void buttonClicked(QAbstractButton *button);
void saveToZipFile();
void listDownloadFinished();
void downloadFinished();
@@ -78,13 +84,14 @@ private slots:
void downloadError(QNetworkReply::NetworkError error);
void uploadError(QNetworkReply::NetworkError error);
void startUpload();
+
private:
void uploadDives(QIODevice *dldContent);
- explicit DivelogsDeWebServices (QWidget* parent = 0, Qt::WindowFlags f = 0);
+ explicit DivelogsDeWebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
void setStatusText(int status);
bool prepare_dives_for_divelogs(const QString &filename, bool selected, QString *errorMsg);
void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
- unsigned int download_dialog_parse_response(const QByteArray& length);
+ unsigned int download_dialog_parse_response(const QByteArray &length);
QHttpMultiPart *multipart;
QTemporaryFile zipFile;