equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 // cptpiptransport.h |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef CPTPIPTIMER_H_ |
|
24 #define CPTPIPTIMER_H_ |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <e32def.h> |
|
28 |
|
29 const TUint KInitialTimeoutInSeconds = 30; |
|
30 const TInt KTimerMultiplier = 1000000; |
|
31 |
|
32 |
|
33 /** |
|
34 The CPTPIPTimer class sets up a timeout time for operations. |
|
35 */ |
|
36 |
|
37 class CPTPIPController; |
|
38 |
|
39 class CPTPIPTimer: public CTimer |
|
40 { |
|
41 public: |
|
42 static CPTPIPTimer* NewLC(CPTPIPController& aController); |
|
43 static CPTPIPTimer* NewL(CPTPIPController& aController); |
|
44 void IssueRequest(TInt aTimerValue); |
|
45 void RunL(); |
|
46 |
|
47 private: |
|
48 CPTPIPTimer(CPTPIPController& aController); |
|
49 void ConstructL(); |
|
50 |
|
51 private: |
|
52 CPTPIPController* iController; |
|
53 }; |
|
54 |
|
55 #endif /*CPTPIPTIMER_H_*/ |