equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Timer class which implements a timeout for an application close action |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GOOMAPPCLOSETIMER_H_ |
|
20 #define GOOMAPPCLOSETIMER_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CGOomCloseApp; |
|
25 |
|
26 /** |
|
27 * A simple timer class which implements a timeout for an application close action. |
|
28 * |
|
29 * If the application has not been closed within the period this timer is started with, |
|
30 * then we complete the action as if he had been successful, allowing us to move on to the |
|
31 * action or set of actions. |
|
32 * |
|
33 * @lib oommonitor.lib |
|
34 * @since S60 v5.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS(CGOomAppCloseTimer) : public CTimer |
|
37 { |
|
38 public: |
|
39 static CGOomAppCloseTimer* NewL(CGOomCloseApp& aMonitor); |
|
40 |
|
41 enum TGOomAppCloseState |
|
42 { |
|
43 EGOomAppClosing = 0, |
|
44 EGOomAppKilled |
|
45 }; |
|
46 |
|
47 void SetState(TGOomAppCloseState); |
|
48 |
|
49 private: |
|
50 CGOomAppCloseTimer(CGOomCloseApp& aMonitor); |
|
51 void RunL(); |
|
52 |
|
53 private: //data |
|
54 |
|
55 /** |
|
56 * A reference to the owning close app action |
|
57 */ |
|
58 CGOomCloseApp& iMonitor; |
|
59 |
|
60 TBool iState; |
|
61 }; |
|
62 |
|
63 #endif /*GOOMAPPCLOSETIMER_H_*/ |