|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NMMAILBOXREGISTERINTERFACEPRIVATE_H_ |
|
20 #define NMMAILBOXREGISTERINTERFACEPRIVATE_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <QObject> |
|
24 #include <qmobilityglobal.h> |
|
25 #include <xqserviceprovider.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class QString; |
|
29 class QTranslator; |
|
30 |
|
31 QTM_BEGIN_NAMESPACE |
|
32 class QServiceManager; |
|
33 QTM_END_NAMESPACE |
|
34 |
|
35 QTM_USE_NAMESPACE |
|
36 |
|
37 class NmMailboxRegisterInterfacePrivate : public XQServiceProvider |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 |
|
43 explicit NmMailboxRegisterInterfacePrivate(QObject *parent = 0); |
|
44 ~NmMailboxRegisterInterfacePrivate(); |
|
45 |
|
46 |
|
47 public slots: |
|
48 |
|
49 bool registerNewMailbox(quint64 accountId, QString accountName, QString accountIconName); |
|
50 |
|
51 bool updateMailboxName(quint64 accountId, QString newName); |
|
52 |
|
53 bool unregisterMailbox(quint64 accountId); |
|
54 |
|
55 private: |
|
56 |
|
57 bool pushWidgetToHomescreen(quint64 a, QString accountIconName); |
|
58 |
|
59 QString formLaunchUri(quint64 accountId) const; |
|
60 |
|
61 bool loadMenuClientService(); |
|
62 |
|
63 private: |
|
64 QServiceManager* mManager; |
|
65 QObject* mService; |
|
66 QTranslator *mTranslator; |
|
67 }; |
|
68 |
|
69 #endif /* NMMAILBOXREGISTERINTERFACE_H_ */ |