equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 */ |
16 */ |
17 |
17 |
18 #ifndef NMAPIEVENTNOTIFIERPRIVATE_H |
18 #ifndef NMAPIEVENTNOTIFIERPRIVATE_H |
19 #define NMAPIEVENTNOTIFIERPRIVATE_H |
19 #define NMAPIEVENTNOTIFIERPRIVATE_H |
20 |
20 |
|
21 #include <QObject> |
21 #include "nmapiprivateclasses.h" |
22 #include "nmapiprivateclasses.h" |
22 #include <nmapicommon.h> |
23 #include <nmapicommon.h> |
23 |
24 |
24 class QTimer; |
25 class QTimer; |
25 |
26 |
32 Q_OBJECT |
33 Q_OBJECT |
33 public: |
34 public: |
34 NmApiEventNotifierPrivate(QObject *parent = 0); |
35 NmApiEventNotifierPrivate(QObject *parent = 0); |
35 virtual ~NmApiEventNotifierPrivate(); |
36 virtual ~NmApiEventNotifierPrivate(); |
36 |
37 |
37 bool initializeEngine(); |
|
38 void releaseEngine(); |
|
39 void cancel(); |
38 void cancel(); |
40 |
39 bool isRunning() const; |
|
40 bool start(); |
|
41 void stop(); |
|
42 void events(QList<NmApiMessage> &events); |
41 public slots: |
43 public slots: |
42 void emailStoreEvent(const NmApiMessage &events); |
44 void emailStoreEvent(const NmApiMessage &events); |
43 |
45 |
44 public: |
46 signals: |
|
47 void timedOut(); |
|
48 |
|
49 private: |
45 QTimer *mEmitSignals; |
50 QTimer *mEmitSignals; |
46 NmApiEngine *mEngine; |
51 NmApiEngine *mEngine; |
|
52 bool mIsRunning; |
47 QList<NmApiMessage> mBufferOfEvents; |
53 QList<NmApiMessage> mBufferOfEvents; |
48 bool mIsRunning; |
|
49 }; |
54 }; |
50 |
55 |
51 } |
56 } |
52 |
57 |
53 #endif /* NMAPIEVENTNOTIFIERPRIVATE_H */ |
58 #endif /* NMAPIEVENTNOTIFIERPRIVATE_H */ |