~phablet-team/qtorganizer5-eds/rtm-14.09

« back to all changes in this revision

Viewing changes to qorganizer/qorganizer-eds-requestdata.h

  • Committer: CI bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2014-05-02 14:24:16 UTC
  • mfrom: (54.1.8 fix-1309186)
  • Revision ID: ps-jenkins@lists.canonical.com-20140502142416-zw41l0pct7m9cicg
Check if request was destroyed by the caller before continue with request process. Fixes: 1309186

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "qorganizer-eds-enginedata.h"
24
24
 
25
25
#include <QtCore/QPointer>
 
26
#include <QtCore/QMutex>
26
27
 
27
28
#include <QtOrganizer/QOrganizerAbstractRequest>
28
29
#include <QtOrganizer/QOrganizerManager>
40
41
    virtual void finish(QtOrganizer::QOrganizerManager::Error error = QtOrganizer::QOrganizerManager::NoError) = 0;
41
42
    QOrganizerEDSEngine *parent() const;
42
43
    virtual void cancel();
 
44
    bool cancelled() const;
 
45
    void continueCancel();
43
46
 
44
47
    template<class T>
45
48
    T* request() const {
54
57
protected:
55
58
    QOrganizerEDSEngine *m_parent;
56
59
    QtOrganizer::QOrganizerItemChangeSet m_changeSet;
 
60
    EClient *m_client;
 
61
    bool m_canceling;
57
62
 
58
63
private:
59
64
    QPointer<QtOrganizer::QOrganizerAbstractRequest> m_req;
60
65
    GCancellable *m_cancellable;
61
 
    EClient *m_client;
62
66
};
63
67
 
64
68
#endif