~ubuntu-branches/ubuntu/vivid/goldencheetah/vivid-proposed

« back to all changes in this revision

Viewing changes to src/RideWithGPSDialog.h

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-12-25 10:30:44 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131225103044-11ttdb8r9us31lpn
Tags: 3.0.1-1
* New upstream release.
  Use dirstributed tarball to build. (Closes: #711722)
* New Standards-Version: 3.9.5
* remove qwt-format patch (merged at upstream).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2012 Damien.Grauser (damien.grauser@pev-geneve.ch)
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify it
5
 
 * under the terms of the GNU General Public License as published by the Free
6
 
 * Software Foundation; either version 2 of the License, or (at your option)
7
 
 * any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful, but WITHOUT
10
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12
 
 * more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License along
15
 
 * with this program; if not, write to the Free Software Foundation, Inc., 51
16
 
 * Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
 
 */
18
 
 
19
 
#ifndef RIDEWITHGPSDIALOG_H
20
 
#define RIDEWITHGPSDIALOG_H
21
 
#include "GoldenCheetah.h"
22
 
 
23
 
#include <QObject>
24
 
#include <QtGui>
25
 
#include "MainWindow.h"
26
 
#include "RideItem.h"
27
 
 
28
 
class RideWithGPSDialog : public QDialog
29
 
{
30
 
    Q_OBJECT
31
 
    G_OBJECT
32
 
 
33
 
public:
34
 
     RideWithGPSDialog(MainWindow *mainWindow, RideItem *item);
35
 
 
36
 
signals:
37
 
 
38
 
public slots:
39
 
     void upload();
40
 
 
41
 
private slots:
42
 
     void requestUpload();
43
 
     void requestUploadFinished(QNetworkReply *reply);
44
 
 
45
 
     void okClicked();
46
 
     void cancelClicked();
47
 
 
48
 
private:
49
 
     QDialog *dialog;
50
 
 
51
 
     QPushButton *uploadButton;
52
 
     QPushButton *searchActivityButton;
53
 
     QPushButton *getActivityButton;
54
 
     QPushButton *cancelButton;
55
 
     MainWindow *mainWindow;
56
 
     QCheckBox *workoutTimeChk;
57
 
     QCheckBox *timeRidingChk;
58
 
     QCheckBox *totalDistanceChk;
59
 
 
60
 
     QLineEdit *twitterMessageEdit;
61
 
 
62
 
     QProgressBar *progressBar;
63
 
     QLabel *progressLabel;
64
 
 
65
 
     RideItem *ride;
66
 
 
67
 
     QString athleteId;
68
 
     QString token;
69
 
     QString tripid;
70
 
     QString activityId;
71
 
     QString uploadStatus;
72
 
     QString uploadProgress;
73
 
     QString uploadError;
74
 
 
75
 
     QString RIDE_WITH_GPS_URL;
76
 
 
77
 
     bool overwrite, loggedIn, uploadSuccessful;
78
 
};
79
 
 
80
 
#endif // RIDEWITHGPSDIALOG_H