equal
deleted
inserted
replaced
|
1 // Copyright (c) 2002-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 // |
|
15 |
|
16 #ifndef __LOGSERVSHUTDOWNTIMER_H__ |
|
17 #define __LOGSERVSHUTDOWNTIMER_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 /** |
|
22 LogEng server shutdown timer. |
|
23 If the connection (session) count to the LogEng server becomes 0 and the server is transient |
|
24 then the timer will be scheduled to run after KLogShutdownDelay microseconds (set to be 2 seconds). |
|
25 If during that period of time no connetcion to the server is established then the server will be |
|
26 shut down. |
|
27 |
|
28 @see CLogServServer |
|
29 @internalComponent |
|
30 */ |
|
31 class CLogServShutdownTimer : public CTimer |
|
32 { |
|
33 public: |
|
34 static CLogServShutdownTimer* NewL(TInt aPriority); |
|
35 void Start(); |
|
36 |
|
37 private: |
|
38 CLogServShutdownTimer(TInt aPriority); |
|
39 void ConstructL(); |
|
40 // From CActive |
|
41 void RunL(); |
|
42 |
|
43 private: // Internal constants |
|
44 enum { KLogShutdownDelay = 2000000 }; |
|
45 }; |
|
46 |
|
47 #endif |