equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 the License "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 |
|
20 #ifndef INC_DISAACCESSEXTENSION_H |
|
21 #define INC_DISAACCESSEXTENSION_H |
|
22 |
|
23 #include "internalapi.h" // For MIAD2ISTApi, MChannel2IADApi |
|
24 |
|
25 class DRouter; |
|
26 class TDfcQueue; |
|
27 |
|
28 enum TIADDfcThread |
|
29 { |
|
30 EIADLddDfcQueue = 0, |
|
31 EIADExtensionDfcQueue, |
|
32 EIADSizeOfDfcThreadList |
|
33 }; |
|
34 |
|
35 |
|
36 /* |
|
37 * Rules: |
|
38 * |
|
39 * All functions must be called in kernel thread context: TODO: check-macro for this. |
|
40 * |
|
41 * |
|
42 */ |
|
43 NONSHARABLE_CLASS( DIsaAccessExtension ) : public DBase |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 DIsaAccessExtension(); |
|
49 |
|
50 ~DIsaAccessExtension(); |
|
51 |
|
52 IMPORT_C static MChannel2IADApi* GetChannel2IADApi(); |
|
53 |
|
54 IMPORT_C static TDfcQue* GetDFCThread( TIADDfcThread aDfcThread ); |
|
55 |
|
56 static DRouter* GetRouter(){ return iRouter; }; |
|
57 |
|
58 private: |
|
59 |
|
60 // owned |
|
61 static DRouter* iRouter; |
|
62 // Keeps list of DFC queue's created in this extension |
|
63 static TDfcQue* iDfcQueueList[ EIADSizeOfDfcThreadList ]; |
|
64 |
|
65 }; |
|
66 |
|
67 |
|
68 |
|
69 #endif /* INC_DISAACCESSEXTENSION_H */ |