1 /* |
|
2 * Copyright (c) 2005 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: CXcapShutdownTimer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "XcapCacheServer.h" |
|
21 #include "XcapShutdownTimer.h" |
|
22 |
|
23 // ---------------------------------------------------- |
|
24 // CXcapShutdownTimer::CXcapShutdownTimer |
|
25 // |
|
26 // ---------------------------------------------------- |
|
27 // |
|
28 CXcapShutdownTimer::CXcapShutdownTimer() : CTimer( -1 ) |
|
29 { |
|
30 /*#ifdef _DEBUG |
|
31 CXcapCacheServer::WriteToLog( _L8( "CXcapShutdownTimer::CXcapShutdownTimer()" ) ); |
|
32 #endif*/ |
|
33 CActiveScheduler::Add(this); |
|
34 } |
|
35 |
|
36 // ---------------------------------------------------- |
|
37 // CXcapShutdownTimer::ConstructL |
|
38 // |
|
39 // ---------------------------------------------------- |
|
40 // |
|
41 void CXcapShutdownTimer::ConstructL() |
|
42 { |
|
43 /*#ifdef _DEBUG |
|
44 CXcapCacheServer::WriteToLog( _L8( "CXcapShutdownTimer::ConstructL()" ) ); |
|
45 #endif*/ |
|
46 CTimer::ConstructL(); |
|
47 } |
|
48 |
|
49 // ---------------------------------------------------- |
|
50 // CXcapShutdownTimer::Start |
|
51 // |
|
52 // ---------------------------------------------------- |
|
53 // |
|
54 void CXcapShutdownTimer::Start() |
|
55 { |
|
56 /*#ifdef _DEBUG |
|
57 CXcapCacheServer::WriteToLog( _L8( "CXcapShutdownTimer::Start()" ) ); |
|
58 #endif*/ |
|
59 After( KXcapCacheShutdownDelay ); |
|
60 } |
|
61 |
|
62 // ---------------------------------------------------- |
|
63 // CXcapShutdownTimer::RunL |
|
64 // |
|
65 // ---------------------------------------------------- |
|
66 // |
|
67 void CXcapShutdownTimer::RunL() |
|
68 { |
|
69 /*#ifdef _DEBUG |
|
70 CXcapCacheServer::WriteToLog( _L8( "CXcapShutdownTimer::RunL() - Closing down server" ) ); |
|
71 #endif*/ |
|
72 CActiveScheduler::Stop(); |
|
73 } |
|
74 |
|
75 |
|