equal
deleted
inserted
replaced
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DEVENCUITIMER_H_ |
|
19 #define DEVENCUITIMER_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 |
|
26 class MDevEncUiTimerCallback |
|
27 { |
|
28 public: |
|
29 virtual void Timeout()=0; |
|
30 }; |
|
31 |
|
32 class CDevEncUiTimer : public CTimer |
|
33 { |
|
34 public: |
|
35 static CDevEncUiTimer* NewL( MDevEncUiTimerCallback* aCallback ); |
|
36 ~CDevEncUiTimer(); |
|
37 |
|
38 void StartAppL( const TUint32& aUid ); |
|
39 |
|
40 protected: |
|
41 // from CActive |
|
42 void RunL(); |
|
43 void DoCancel(); |
|
44 TInt RunError( TInt aError ); |
|
45 |
|
46 private: |
|
47 // Functions |
|
48 CDevEncUiTimer( MDevEncUiTimerCallback* aCallback ); |
|
49 |
|
50 void ConstructL(); |
|
51 |
|
52 // Data |
|
53 MDevEncUiTimerCallback* iCallback; // parent |
|
54 }; |
|
55 |
|
56 #endif /*DEVENCUITIMER_H_*/ |
|