~mzanetti/reminders-app/new-edit-mode

« back to all changes in this revision

Viewing changes to src/libqtevernote/evernoteconnection.h

  • Committer: Tarmac
  • Author(s): Michael Zanetti
  • Date: 2014-11-07 21:56:59 UTC
  • mfrom: (291.6.3 connection-errors)
  • Revision ID: tarmac-20141107215659-ayuv0ddcxi4rfuhc
Improve handling of connection errors.

Approved by Ubuntu Phone Apps Jenkins Bot, David Planella.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    Q_PROPERTY(QString hostname READ hostname WRITE setHostname NOTIFY hostnameChanged)
47
47
    Q_PROPERTY(QString token READ token WRITE setToken NOTIFY tokenChanged)
48
48
    Q_PROPERTY(bool isConnected READ isConnected NOTIFY isConnectedChanged)
 
49
    Q_PROPERTY(QString error READ error NOTIFY errorChanged)
49
50
 
50
51
    friend class NotesStoreJob;
51
52
    friend class UserStoreJob;
76
77
 
77
78
    bool isConnected() const;
78
79
 
 
80
    QString error() const;
 
81
 
79
82
public slots:
80
83
    void clearToken();
81
84
 
83
86
    void hostnameChanged();
84
87
    void tokenChanged();
85
88
    void isConnectedChanged();
 
89
    void errorChanged();
86
90
 
87
91
private slots:
88
92
    void connectToEvernote();
107
111
    QString m_notesStorePath;
108
112
    QString m_hostname;
109
113
    QString m_token;
 
114
    QString m_errorMessage;
110
115
 
111
116
    // There must be only one job running at a time
112
117
    // Do not start jobs other than with startJobQueue()