equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 @file tlsgenericactive.h |
|
18 @internalTechnology |
|
19 */ |
|
20 #ifndef __TLSGENERICACTIVE_H__ |
|
21 #define __TLSGENERICACTIVE_H__ |
|
22 |
|
23 class CGenericActive : public CActive |
|
24 { |
|
25 public: |
|
26 CGenericActive() |
|
27 : CActive(EPriorityNormal) |
|
28 { |
|
29 CActiveScheduler::Add(this); |
|
30 }; |
|
31 |
|
32 void Start() |
|
33 { |
|
34 SetActive(); |
|
35 CActiveScheduler::Start(); |
|
36 }; |
|
37 |
|
38 void RunL() |
|
39 { |
|
40 CActiveScheduler::Stop(); |
|
41 }; |
|
42 |
|
43 void DoCancel() |
|
44 { |
|
45 // do nothing, just wait for completion |
|
46 }; |
|
47 }; |
|
48 |
|
49 #endif /* __TLSGENERICACTIVE_H__ */ |
|
50 |