equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
19 #include "cscengtimer.h" |
19 #include "cscengtimer.h" |
20 #include "cscenglogger.h" |
20 #include "cscenglogger.h" |
21 #include "mcscengtimerobserver.h" |
21 #include "mcscengtimerobserver.h" |
22 |
22 |
23 const TInt KWaitConnectionToClose = 5000000; // 5 seconds |
23 const TInt KWaitConnectionToClose = 5000000; // 5 seconds |
|
24 const TInt KWaitNoteDelayTime = 20000; // 20 ms |
24 |
25 |
25 // ======== MEMBER FUNCTIONS ======== |
26 // ======== MEMBER FUNCTIONS ======== |
26 |
27 |
27 // --------------------------------------------------------------------------- |
28 // --------------------------------------------------------------------------- |
28 // --------------------------------------------------------------------------- |
29 // --------------------------------------------------------------------------- |
90 |
91 |
91 if ( EConnectionMonitoringTimer == aTimerType ) |
92 if ( EConnectionMonitoringTimer == aTimerType ) |
92 { |
93 { |
93 CTimer::After( KWaitConnectionToClose ); |
94 CTimer::After( KWaitConnectionToClose ); |
94 } |
95 } |
|
96 else if ( ENoteDelayTimer == aTimerType ) |
|
97 { |
|
98 CTimer::After( KWaitNoteDelayTime ); |
|
99 } |
95 else |
100 else |
96 { |
101 { |
97 error = KErrArgument; |
102 error = KErrArgument; |
98 } |
103 } |
99 |
104 |