equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TMSSERVERSHUTDOWN_H |
|
19 #define __TMSSERVERSHUTDOWN_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "tmsserver.h" |
|
23 |
|
24 namespace TMS { |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Shutdown timer after the last client has disconnected. |
|
30 * |
|
31 * @lib TMSServer.exe |
|
32 */ |
|
33 |
|
34 /** |
|
35 * A Timer utility class used by the Server for shutdown purpose. |
|
36 */ |
|
37 class TMSServerShutDown : public CActive |
|
38 { |
|
39 public: |
|
40 // Construct/destruct |
|
41 static TMSServerShutDown* NewL(); |
|
42 ~TMSServerShutDown(); |
|
43 |
|
44 public: |
|
45 // Request a timeout after aDelay |
|
46 void SetDelay(TTimeIntervalMicroSeconds32 aDelay); |
|
47 |
|
48 protected: |
|
49 // From CActive |
|
50 void RunL(); |
|
51 void DoCancel(); |
|
52 |
|
53 private: |
|
54 // Construct/destruct |
|
55 TMSServerShutDown(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 RTimer iShutDownTimer; // Has |
|
60 }; |
|
61 |
|
62 } //namespace TMS |
|
63 |
|
64 #endif //__TMSSERVERSHUTDOWN_H |
|
65 |
|
66 // End of File |