|
1 /* |
|
2 * Copyright (c) 2010 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 #ifndef STFEVENTSYSTEM_H_ |
|
18 #define STFEVENTSYSTEM_H_ |
|
19 |
|
20 #include <e32base.h> |
|
21 |
|
22 #include <stfeventsystemdefs.h> |
|
23 #include <stfasynceventlist.h> |
|
24 |
|
25 class REventSystem: public RSessionBase |
|
26 { |
|
27 public: |
|
28 // Wait for event |
|
29 IMPORT_C void WaitEventL(const TDesC& aEventName, const TInt aOwner); |
|
30 //IMPORT_C void CancelWaitEventL(const TDesC& aEventName, const TInt aOwner); |
|
31 |
|
32 // Request |
|
33 IMPORT_C void RequestEventL(const TDesC& aEventName, const TInt aOwner); |
|
34 |
|
35 // Release |
|
36 IMPORT_C void ReleaseEventL(const TDesC& aEventName, const TInt aOwner); |
|
37 |
|
38 // Set indication event |
|
39 IMPORT_C void SetIndicationEventL(const TDesC& aEventName); |
|
40 IMPORT_C void SetIndicationEventL(const TDesC& aEventName, TRequestStatus* aStatus); |
|
41 |
|
42 // State events |
|
43 IMPORT_C void SetEventL(const TDesC& aEventName); |
|
44 IMPORT_C void SetEventL(const TDesC& aEventName, TRequestStatus* aStatus); |
|
45 |
|
46 IMPORT_C void UnsetEventL(const TDesC& aEventName); |
|
47 IMPORT_C void UnsetEventL(const TDesC& aEventName, TRequestStatus* aStatus); |
|
48 |
|
49 // Cancel (remove) all requested events of given owner |
|
50 IMPORT_C TInt RemoveInRequestedState(const TInt aOwner); |
|
51 |
|
52 private: |
|
53 // Connect to event system |
|
54 IMPORT_C TInt Connect(); |
|
55 |
|
56 // Close event system connection |
|
57 IMPORT_C void Close(); |
|
58 |
|
59 // Return version |
|
60 IMPORT_C TVersion Version() const; |
|
61 |
|
62 // Friends |
|
63 friend class CAsyncEventActive; |
|
64 |
|
65 }; /* class REventSystem */ |
|
66 |
|
67 |
|
68 #endif /* STFEVENTSYSTEM_H_ */ |
|
69 // EOF |