|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef PLUGINBASEDEFS_H |
|
22 #define PLUGINBASEDEFS_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 /* |
|
27 * TYPEDEFS |
|
28 */ |
|
29 |
|
30 /* TPluginType |
|
31 * |
|
32 * Plugin type for plug-in framework. |
|
33 * |
|
34 */ |
|
35 enum TPluginType |
|
36 { |
|
37 // Invalid |
|
38 KPluginTypeInvalid, |
|
39 // Image Editor: image editing plug-in |
|
40 KPluginTypeImageEditor, |
|
41 // Maximum value, invalid |
|
42 KPluginTypeMax |
|
43 }; |
|
44 |
|
45 /* |
|
46 * PLUG-IN CAPABILITY ID'S. |
|
47 */ |
|
48 |
|
49 /// Base offset for general capabilities |
|
50 const TInt KPluginCapabilityBase = 0; |
|
51 |
|
52 /// Base offset for plugin-specific capabilities |
|
53 const TInt KPluginCapabilityCustomOffset = 3000; |
|
54 |
|
55 /// Plugin type |
|
56 const TInt KPluginCapabilityPluginType = KPluginCapabilityBase; |
|
57 |
|
58 /// Plugin API major version |
|
59 const TInt KPluginCapabilityAPIMajorVersion = KPluginCapabilityBase + 1; |
|
60 |
|
61 /// Plugin API minor version |
|
62 const TInt KPluginCapabilityAPIMinorVersion = KPluginCapabilityBase + 2; |
|
63 |
|
64 /// Plugin API build version |
|
65 const TInt KPluginCapabilityAPIBuildVersion = KPluginCapabilityBase + 3; |
|
66 |
|
67 /// Plugin UID |
|
68 const TInt KPluginCapabilityUID = KPluginCapabilityBase + 4; |
|
69 |
|
70 /* |
|
71 * QUERY RETURN VALUES |
|
72 */ |
|
73 |
|
74 /// No errors |
|
75 const TInt TPropRetErrNone = 0; |
|
76 |
|
77 /// Queried property not supprted |
|
78 const TInt TPropRetErrNotSupported = -1; |
|
79 |
|
80 |
|
81 #endif |