equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef CMTPCONTROLLERTIMER_H_ |
|
24 #define CMTPCONTROLLERTIMER_H_ |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <mtp/rmtpclient.h> |
|
28 #include "mtpdebug.h" |
|
29 |
|
30 class CMTPOperator; |
|
31 |
|
32 class CMTPControllerTimer : public CTimer |
|
33 { |
|
34 private: |
|
35 |
|
36 enum { ETimerMultiplier = 1000000 }; |
|
37 |
|
38 public: |
|
39 static CMTPControllerTimer* NewLC( RMTPClient& aMTPClient, CMTPOperator& aMTPOperator ); |
|
40 static CMTPControllerTimer* NewL( RMTPClient& aMTPClient , CMTPOperator& aMTPOperator ); |
|
41 void Start( TInt aTimeOut ); |
|
42 TBool GetStopTransportStatus(); |
|
43 ~CMTPControllerTimer(); |
|
44 |
|
45 private: |
|
46 CMTPControllerTimer(RMTPClient& aMTPClient, CMTPOperator& aMTPOperator); |
|
47 void ConstructL(); |
|
48 void RunL(); |
|
49 |
|
50 private: |
|
51 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
52 |
|
53 RMTPClient& iMTPClient; |
|
54 CMTPOperator * iMTPOperator; |
|
55 TBool iStopTransport; |
|
56 |
|
57 }; |
|
58 |
|
59 |
|
60 #endif /* CMTPCONTROLLERTIMER_H_ */ |