|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: NMail Application service interface used for interfacing between |
|
15 * QT highway and other applications |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef NMSENDSERVICEINTERFACE_H_ |
|
20 #define NMSENDSERVICEINTERFACE_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <QObject> |
|
24 |
|
25 #ifdef Q_OS_SYMBIAN |
|
26 #include <xqserviceprovider.h> |
|
27 #else |
|
28 #define NM_WINS_ENV |
|
29 #include <QVariant> |
|
30 #endif |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class NmDataManager; |
|
34 class NmMailboxListModel; |
|
35 class NmUiEngine; |
|
36 class NmApplication; |
|
37 class NmId; |
|
38 |
|
39 |
|
40 class NmSendServiceInterface |
|
41 #ifndef NM_WINS_ENV |
|
42 : public XQServiceProvider |
|
43 #else |
|
44 : public QObject |
|
45 #endif |
|
46 { |
|
47 Q_OBJECT |
|
48 |
|
49 public: |
|
50 |
|
51 NmSendServiceInterface(QObject *parent, |
|
52 NmUiEngine &mailboxListModel, |
|
53 NmApplication* application); |
|
54 |
|
55 #ifndef NM_WINS_ENV |
|
56 ~NmSendServiceInterface(); |
|
57 #else |
|
58 virtual ~NmSendServiceInterface(); |
|
59 #endif |
|
60 |
|
61 |
|
62 public slots: |
|
63 |
|
64 void send(QVariant data); |
|
65 |
|
66 |
|
67 private: |
|
68 |
|
69 bool selectMailbox(NmId &mailboxId); |
|
70 |
|
71 |
|
72 private: // Data |
|
73 |
|
74 NmApplication *mApplication; // Not owned |
|
75 NmUiEngine &mUiEngine; |
|
76 int mAsyncReqId; |
|
77 }; |
|
78 |
|
79 #endif /* NMSENDSERVICEINTERFACE_H_ */ |
|
80 |
|
81 // End of file. |