|
1 /* |
|
2 * Copyright (c) 2004 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: Common definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAECOMMON_H |
|
21 #define CAECOMMON_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <e32std.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 enum TCaeExtensionInterfaceIndexes |
|
30 { |
|
31 KCaeExtProcessImageInterfaceIndex = 0, |
|
32 KCaeExtSettingsInterfaceIndex = 1 |
|
33 }; |
|
34 |
|
35 // Supported extension interfaces |
|
36 // The order of this array must match to TCaeExtensionInterfaceIndexes. |
|
37 const TUid KCaeSupportedExtensionInterfaceUids[] = |
|
38 { |
|
39 { KCaeExtProcessImageInterfaceUidValue }, |
|
40 { KCaeExtSettingsInterfaceUidValue } , |
|
41 { NULL } // End mark |
|
42 }; |
|
43 |
|
44 // Supported callback interfaces |
|
45 const TUid KCaeSupportedCallbackInterfaceUids[] = |
|
46 { |
|
47 { KCaeExtEngineInfoCallbackInterfaceUidValue }, |
|
48 { NULL } // End mark |
|
49 }; |
|
50 |
|
51 // Extension list granularity |
|
52 const TInt TCaeExtensionInterfaceImplItemGranularity = 10; |
|
53 |
|
54 // CLASS DECLARATIONS |
|
55 |
|
56 /** |
|
57 * Struct for the extension interface implementation array item. |
|
58 */ |
|
59 |
|
60 struct TCaeExtensionInterfaceImplItem |
|
61 { |
|
62 // Priority of the specific implementation |
|
63 TInt iInitialPriority; |
|
64 |
|
65 // Uid of the specific implementation |
|
66 TUid iImplUid; |
|
67 |
|
68 // Pointer to the specific implementation |
|
69 TAny* iImplPtr; |
|
70 |
|
71 // Set to ETrue when image processing is enabled |
|
72 TBool iIsActive; |
|
73 }; |
|
74 |
|
75 /** |
|
76 * Struct for the extension interface implementation array item. |
|
77 */ |
|
78 |
|
79 struct TCaeExtensionInterfaceImplListItem |
|
80 { |
|
81 // Uid of the interface |
|
82 TUid iInterfaceUid; |
|
83 |
|
84 // List of implementations |
|
85 RArray<TCaeExtensionInterfaceImplItem>* iImplementations; |
|
86 }; |
|
87 |
|
88 /** |
|
89 * Struct for the custom interface implementation array item. |
|
90 */ |
|
91 |
|
92 struct TCaeCustomInterfaceImplItem |
|
93 { |
|
94 // Uid of the custom interface that is implemented by the extension |
|
95 TUid iInterfaceUid; |
|
96 |
|
97 // Pointer to the implementation |
|
98 TAny* iImplPtr; |
|
99 }; |
|
100 |
|
101 |
|
102 |
|
103 #endif // CAECOMMON_H |