|
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: Implements Life Timer key sequence handling. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LIFETIMERKEYSEQUENCEHANDLER_H |
|
19 #define LIFETIMERKEYSEQUENCEHANDLER_H |
|
20 |
|
21 #include <centralrepository.h> |
|
22 #include "keysequencehandler.h" |
|
23 |
|
24 class HbDeviceMessageBox; |
|
25 class RTelServer; |
|
26 class RMobilePhone; |
|
27 class RMmCustomAPI; |
|
28 |
|
29 class LifeTimerKeySequenceHandler : public KeySequenceHandler |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 |
|
35 LifeTimerKeySequenceHandler(QObject *parent = 0); |
|
36 ~LifeTimerKeySequenceHandler(); |
|
37 |
|
38 bool executeKeySequence(const QString &keySequence); |
|
39 |
|
40 private: |
|
41 void launchLifeTimerDialog(); |
|
42 QString constructLifeTimerData(); |
|
43 |
|
44 void openEtelConnectionL( |
|
45 RTelServer &telephonyServer, |
|
46 RMobilePhone &mobilePhone, |
|
47 RMmCustomAPI &mmCustomApi); |
|
48 void closeEtelConnection( |
|
49 RTelServer &telephonyServer, |
|
50 RMobilePhone &mobilePhone, |
|
51 RMmCustomAPI &mmCustomApi); |
|
52 |
|
53 bool lifeTimerFeatureEnabled(); |
|
54 |
|
55 private slots: |
|
56 void destroyMessageBox(); |
|
57 |
|
58 private: |
|
59 HbDeviceMessageBox *m_messageBox; |
|
60 QScopedPointer<CRepository> m_repository; |
|
61 }; |
|
62 |
|
63 #endif // LIFETIMERKEYSEQUENCEHANDLER_H |