equal
deleted
inserted
replaced
|
1 /* |
|
2 Copyright (c) 2007 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: A simple shutdown timer definition. |
|
15 |
|
16 */ |
|
17 |
|
18 #ifndef __SHUTDOWNTIMER_H__ |
|
19 #define __SHUTDOWNTIMER_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "mdnsdebug.h" |
|
23 // shutdown delay, 5 minutes. |
|
24 const TInt KShutdownDelay = 5 * 60 * 1000000; |
|
25 |
|
26 class CMdnsServer; |
|
27 |
|
28 class CShutdownTimer : public CTimer |
|
29 { |
|
30 public: |
|
31 static CShutdownTimer* NewL(CMdnsServer& aServer); |
|
32 static CShutdownTimer* NewLC(CMdnsServer& aServer); |
|
33 |
|
34 void Start(); |
|
35 void RunL(); |
|
36 TInt RunError(TInt aError); |
|
37 ~CShutdownTimer(); |
|
38 private: |
|
39 CShutdownTimer(CMdnsServer& aServer); |
|
40 |
|
41 private: |
|
42 CMdnsServer& iServer; |
|
43 /** |
|
44 FLOGGER debug trace member variable. |
|
45 */ |
|
46 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
47 }; |
|
48 |
|
49 #endif /* __SHUTDOWNTIMER_H__ */ |