|
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 NMURISERVICEINTERFACE_H_ |
|
20 #define NMURISERVICEINTERFACE_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <QObject> |
|
24 #include <QVariant> |
|
25 #include <xqserviceprovider.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class NmUiEngine; |
|
29 class NmApplication; |
|
30 class NmUiStartParam; |
|
31 class NmMailboxSelectionDialog; |
|
32 class NmId; |
|
33 class HbView; |
|
34 |
|
35 class NmUriServiceInterface : public XQServiceProvider |
|
36 { |
|
37 Q_OBJECT |
|
38 public: |
|
39 NmUriServiceInterface(QObject *parent, |
|
40 NmUiEngine &uiEngine, |
|
41 NmApplication *application); |
|
42 virtual ~NmUriServiceInterface(); |
|
43 |
|
44 public slots: |
|
45 bool view(const QString& uri); |
|
46 void selectionDialogClosed(NmId &mailboxId); |
|
47 |
|
48 private: |
|
49 void launchEditorView(NmId mailboxId); |
|
50 void cancelService(); |
|
51 |
|
52 private: // Data |
|
53 NmApplication *mApplication; // Not owned |
|
54 NmUiEngine &mUiEngine; |
|
55 int mAsyncReqId; |
|
56 NmUiStartParam *mStartParam; // Owned |
|
57 NmMailboxSelectionDialog *mSelectionDialog; //Owned |
|
58 HbView *mCurrentView; |
|
59 }; |
|
60 |
|
61 #endif /* NMURISERVICEINTERFACE_H_ */ |
|
62 |
|
63 // End of file. |