~ubuntu-branches/ubuntu/quantal/qtmobility/quantal

« back to all changes in this revision

Viewing changes to plugins/organizer/symbian/qorganizeritemrequestqueue.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-16 16:18:07 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20101116161807-k2dzt2nyse975r3l
Tags: 1.1.0-0ubuntu1
* New upstream release
* Syncronise with Debian, no remaining changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
**
9
9
** $QT_BEGIN_LICENSE:LGPL$
10
10
** Commercial Usage
11
 
** Licensees holding valid Qt Commercial licenses may use this file in
12
 
** accordance with the Qt Solutions Commercial License Agreement provided
13
 
** with the Software or, alternatively, in accordance with the terms
 
11
** Licensees holding valid Qt Commercial licenses may use this file in 
 
12
** accordance with the Qt Commercial License Agreement provided with
 
13
** the Software or, alternatively, in accordance with the terms
14
14
** contained in a written agreement between you and Nokia.
15
15
**
16
16
** GNU Lesser General Public License Usage
33
33
** ensure the GNU General Public License version 3.0 requirements will be
34
34
** met: http://www.gnu.org/copyleft/gpl.html.
35
35
**
36
 
** Please note Third Party Software included with Qt Solutions may impose
37
 
** additional restrictions and it is the user's responsibility to ensure
38
 
** that they have met the licensing requirements of the GPL, LGPL, or Qt
39
 
** Solutions Commercial license and the relevant license of the Third
40
 
** Party Software they are using.
41
 
**
42
36
** If you are unsure which license is appropriate for your use, please
43
37
** contact the sales department at qt-sales@nokia.com.
44
38
** $QT_END_LICENSE$
58
52
#include "organizeritemrequestserviceprovider.h"
59
53
 
60
54
// Forward declarations
61
 
//class QOrganizerItemAbstractRequest;
 
55
//class QOrganizerAbstractRequest;
62
56
class QOrganizerItemSymbianEngine;
63
57
 
64
58
class QOrganizerItemRequestQueue : public QObject
71
65
    // Destructor
72
66
    ~QOrganizerItemRequestQueue();
73
67
    // To start req request
74
 
    bool startRequest(QOrganizerItemAbstractRequest* req);
 
68
    bool startRequest(QOrganizerAbstractRequest* req);
75
69
    // To cancel req request
76
 
    bool cancelRequest(QOrganizerItemAbstractRequest* req);
 
70
    bool cancelRequest(QOrganizerAbstractRequest* req);
77
71
    // Wait for request to complete 
78
 
    bool waitForRequestFinished(QOrganizerItemAbstractRequest* req, int msecs);
 
72
    bool waitForRequestFinished(QOrganizerAbstractRequest* req, int msecs);
79
73
    // Request is no more a valid request, removes req from the queue
80
 
    void requestDestroyed(QOrganizerItemAbstractRequest* req);
 
74
    void requestDestroyed(QOrganizerAbstractRequest* req);
81
75
 
82
76
private:
83
77
    QOrganizerItemRequestQueue(
84
78
            QOrganizerItemSymbianEngine& aOrganizerItemManagerEngine);
85
 
    
86
 
public slots:
87
 
    void exitLoop();
88
 
    
 
79
 
89
80
private:
90
81
    QOrganizerItemSymbianEngine&                m_organizerItemManagerEngine;
91
 
    QMap<QOrganizerItemAbstractRequest*, COrganizerItemRequestsServiceProvider*>
92
 
    m_abstractRequestMap;
93
 
    QEventLoop*                                 m_eventLoop;
94
 
    QTimer*                                     m_timer;
 
82
    QMap<QOrganizerAbstractRequest*, COrganizerItemRequestsServiceProvider*>m_abstractRequestMap;
95
83
};
96
84
 
97
85
#endif /* QORGANIZERITEMREQUESTQUEUE_H_ */