equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 * Allows a synchronous wait on a operation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __MSGOPERATIONWAIT_H__ |
|
23 #define __MSGOPERATIONWAIT_H__ |
|
24 |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Allows a synchronous wait on a operation. |
|
34 */ |
|
35 class CMsgOperationWait: public CActive |
|
36 { |
|
37 public: |
|
38 IMPORT_C static CMsgOperationWait* NewLC( TInt aPriority = EPriorityStandard ); |
|
39 IMPORT_C ~CMsgOperationWait(); |
|
40 IMPORT_C void Start(); |
|
41 protected: |
|
42 CMsgOperationWait( TInt aPriority ); |
|
43 void RunL(); |
|
44 void DoCancel(); |
|
45 protected: |
|
46 CActiveSchedulerWait iWait; |
|
47 }; |
|
48 |
|
49 #endif //__MSGOPERATIONWAIT_H__ |
|
50 |
|
51 // End of file |