equal
deleted
inserted
replaced
24 class NmMessageEnvelope; |
24 class NmMessageEnvelope; |
25 class NmDataPluginFactory; |
25 class NmDataPluginFactory; |
26 class NmDataPluginInterface; |
26 class NmDataPluginInterface; |
27 class QPluginLoader; |
27 class QPluginLoader; |
28 class QTimer; |
28 class QTimer; |
|
29 class XQAiwRequest; |
29 |
30 |
30 //Three seconds |
31 //Three seconds |
31 const int NmHsWidgetEmailEngineUpdateTimerValue = 3000; |
32 const int NmHsWidgetEmailEngineUpdateTimerValue = 3000; |
32 |
33 |
33 enum NmHsWidgetEmailEngineExceptionCode |
34 enum NmHsWidgetEmailEngineExceptionCode |
46 ~NmHsWidgetEmailEngine(); |
47 ~NmHsWidgetEmailEngine(); |
47 |
48 |
48 int getEnvelopes(QList<NmMessageEnvelope> &list, int maxEnvelopeAmount); |
49 int getEnvelopes(QList<NmMessageEnvelope> &list, int maxEnvelopeAmount); |
49 int unreadCount(); |
50 int unreadCount(); |
50 QString accountName(); |
51 QString accountName(); |
|
52 void deleteAiwRequest(); |
51 |
53 |
52 public slots: |
54 public slots: |
53 void handleMessageEvent( |
55 void handleMessageEvent( |
54 NmMessageEvent event, |
56 NmMessageEvent event, |
55 const NmId &folderId, |
57 const NmId &folderId, |
62 void suspend(); |
64 void suspend(); |
63 void activate(); |
65 void activate(); |
64 void launchMailAppInboxView(); |
66 void launchMailAppInboxView(); |
65 void launchMailAppMailViewer(const NmId &messageId); |
67 void launchMailAppMailViewer(const NmId &messageId); |
66 void handleUpdateTimeout(); |
68 void handleUpdateTimeout(); |
|
69 |
|
70 void aiwRequestOk(const QVariant& result); |
|
71 void aiwRequestError(int errorCode, const QString& errorMessage); |
67 |
72 |
68 signals: |
73 signals: |
69 void mailDataChanged(); |
74 void mailDataChanged(); |
70 void accountNameChanged(const QString& accountName); |
75 void accountNameChanged(const QString& accountName); |
71 void unreadCountChanged(const int& unreadCount); |
76 void unreadCountChanged(const int& unreadCount); |
88 //suspension variables |
93 //suspension variables |
89 bool mAccountEventReceivedWhenSuspended; |
94 bool mAccountEventReceivedWhenSuspended; |
90 bool mMessageEventReceivedWhenSuspended; |
95 bool mMessageEventReceivedWhenSuspended; |
91 bool mSuspended; |
96 bool mSuspended; |
92 QTimer* mUpdateTimer; |
97 QTimer* mUpdateTimer; |
|
98 XQAiwRequest* mAiwRequest; |
93 }; |
99 }; |
94 |
100 |
95 #endif /* NMHSWIDGETEMAILENGINE_H_ */ |
101 #endif /* NMHSWIDGETEMAILENGINE_H_ */ |