equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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 |
|
19 #ifndef CAOSYNCHRONIZER_H |
|
20 #define CAOSYNCHRONIZER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32def.h> |
|
24 |
|
25 #include "timeouttimer.h" |
|
26 |
|
27 |
|
28 |
|
29 class CAOSynchronizer : |
|
30 public CActive, |
|
31 public MTimeOutNotify |
|
32 |
|
33 { |
|
34 public: |
|
35 IMPORT_C static CAOSynchronizer* NewL(); |
|
36 virtual ~CAOSynchronizer(); |
|
37 |
|
38 IMPORT_C void ExecuteL(TTimeIntervalMicroSeconds32 aTimeout); |
|
39 |
|
40 protected: |
|
41 inline CAOSynchronizer() : CActive(CActive::EPriorityStandard) {}; |
|
42 void ConstructL(); |
|
43 |
|
44 // From CActive |
|
45 void DoCancel(); |
|
46 |
|
47 void RunL(); |
|
48 |
|
49 // From CTimeoutTimer |
|
50 void TimerExpired(); |
|
51 |
|
52 private: |
|
53 void Complete(); |
|
54 |
|
55 // Heap objects that we own |
|
56 CActiveScheduler* iCas; |
|
57 CTimeOutTimer* iTimer; |
|
58 |
|
59 // owned |
|
60 CActiveSchedulerWait* iWait; |
|
61 }; |
|
62 |
|
63 |
|
64 #endif // CAOSYNCHRONIZER_H |
|
65 |
|
66 // End of File |