networkprotocolmodules/privacyprotocolmodule/PrivacyProtocolModule/inc/privacyshutdown.h
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Definition of class used to shut down LBS after a specified time |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __PRIVACYSHUTDOWN_H__ |
|
19 #define __PRIVACYSHUTDOWN_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 |
|
24 /** |
|
25 CPrivacyShutdown |
|
26 Used to shut down LBS after the specified time |
|
27 */ |
|
28 class CPrivacyShutdown : public CTimer |
|
29 { |
|
30 public: |
|
31 enum TShutdownState |
|
32 { |
|
33 EShutdownStateIdle = 0, |
|
34 EShutdownStateTimerStarted, |
|
35 EShutdownStateShutdownRequested |
|
36 }; |
|
37 |
|
38 static CPrivacyShutdown* NewL(); |
|
39 |
|
40 ~CPrivacyShutdown(); |
|
41 |
|
42 void Start(const TTimeIntervalMicroSeconds32 aDelay); |
|
43 |
|
44 TShutdownState State() const; |
|
45 |
|
46 protected: |
|
47 |
|
48 // from CActive |
|
49 |
|
50 void RunL(); |
|
51 void DoCancel(); |
|
52 |
|
53 private: |
|
54 |
|
55 CPrivacyShutdown(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 |
|
60 TShutdownState iState; |
|
61 }; |
|
62 |
|
63 #endif // __PRIVACYSHUTDOWN_H__ |