~bzoltan/ubuntu-ui-toolkit/add_default_tools

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/alarmrequest_p.h

  • Committer: Tarmac
  • Author(s): Zsombor Egri
  • Date: 2013-09-24 16:18:22 UTC
  • mfrom: (750.2.5 alarm-status)
  • Revision ID: tarmac-20130924161822-ews87nvw1wesa2ts
Fix alarm status reporting, updating documentation on asynchronous behavior of save and cancel operations. Alarm status notification reports the operation the status refers to. Fixes: https://bugs.launchpad.net/bugs/1226516.

Approved by PS Jenkins bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        InProgress,
33
33
        Fail
34
34
    };
 
35
    enum Operation {
 
36
        NoOperation,
 
37
        Saving,
 
38
        Canceling,
 
39
        Fetching = 100 // this is an operation which is not reflected to QML Alarm
 
40
    };
35
41
 
36
42
    explicit AlarmRequest(QObject *parent = 0);
37
43
    AlarmRequest(bool autoDelete, QObject *parent = 0);
47
53
    bool wait(int msec = 0);
48
54
 
49
55
Q_SIGNALS:
50
 
    void statusChanged(int status, int error);
 
56
    void statusChanged(int operation, int status, int error);
51
57
 
52
58
private:
53
59
    Q_DECLARE_PRIVATE(AlarmRequest)