|
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: Declares UI class for application |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_APPMNGR2EXITTIMER_H |
|
19 #define C_APPMNGR2EXITTIMER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CAppMngr2AppUi; |
|
24 |
|
25 class CAppMngr2ExitTimer : public CTimer |
|
26 { |
|
27 public: // Constructors and destructor |
|
28 |
|
29 /** |
|
30 * Two-phased constructor. |
|
31 */ |
|
32 IMPORT_C static CAppMngr2ExitTimer* NewL( CAppMngr2AppUi* aAppUi ); |
|
33 |
|
34 /** |
|
35 * Destructor. |
|
36 */ |
|
37 IMPORT_C virtual ~CAppMngr2ExitTimer(); |
|
38 |
|
39 public: // New functions |
|
40 |
|
41 /** |
|
42 * Starts timer for Exit process. |
|
43 * @since 9.2 |
|
44 */ |
|
45 IMPORT_C void StartExitTimer(); |
|
46 |
|
47 protected: // Functions from base classes |
|
48 |
|
49 /** |
|
50 * From CPeriodic, Called when timer has triggered. |
|
51 * Calls Exit for the AppMngr. |
|
52 * @since 9.2 |
|
53 */ |
|
54 void RunL(); |
|
55 |
|
56 /** |
|
57 * From CActive, Handles a leave occurring in the request |
|
58 * completion event handler RunL(). |
|
59 * @since 9.2 |
|
60 */ |
|
61 TInt RunError( TInt aError ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * C++ default constructor. |
|
67 */ |
|
68 CAppMngr2ExitTimer( CAppMngr2AppUi* aAppUi ); |
|
69 |
|
70 /** |
|
71 * 2nd phase constructor. |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: |
|
76 |
|
77 CAppMngr2AppUi* iAppUi; |
|
78 }; |
|
79 |
|
80 #endif /* APPMNGR2EXITTIMER_H_ */ |