author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:55:16 +0300 | |
branch | RCL_3 |
changeset 118 | 8baec10861af |
parent 114 | a5a39a295112 |
child 130 | 67f2ed48ad91 |
permissions | -rw-r--r-- |
114 | 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: Defines the XML elements and values of a configuration file. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef HSPSCONFIGURATION_H_ |
|
20 |
#define HSPSCONFIGURATION_H_ |
|
21 |
||
22 |
// Xmluiml element |
|
23 |
_LIT8( KXmlUimlElement, "xmluiml" ); // Root element |
|
24 |
_LIT8( KXmlUimlAttrXmlns, "xmlns"); // Not required or used in HSPS |
|
25 |
||
26 |
// Configuration element |
|
27 |
_LIT8( KConfigurationElement, "configuration" ); |
|
28 |
_LIT8( KConfigurationAttrId, "id" ); // Unique id for the configuration elements |
|
29 |
_LIT8( KConfigurationAttrType, "type" ); // root/view/widget/template |
|
30 |
_LIT8( KConfigurationAttrInterface, "interface" ); // Uid of Xuikon technology |
|
31 |
_LIT8( KConfigurationAttrUid, "uid" ); // Globally unique uid, identifies specific configuration |
|
32 |
_LIT8( KConfigurationAttrName, "name" ); // Localized name of the configuration |
|
33 |
_LIT8( KConfigurationAttrNameEntity, "_name" ); // Logical string id of the Name attribute (DTD entity) |
|
34 |
_LIT8( KConfigurationAttrState, "state" ); // State of the configuration |
|
35 |
_LIT8( KConfigurationAttrVersion, "version" ); // Configuration version |
|
36 |
_LIT8( KConfigurationAttrMultiInstance, "multiinstance" ); // Multiinstance flag |
|
37 |
_LIT8( KConfigurationAttrDesc, "desc" ); // Localized description |
|
38 |
_LIT8( KConfigurationAttrDescEntity, "_desc" ); // Logical string id of the Description attr (DTD entity) |
|
39 |
_LIT8( KConfigurationAttrMaxChild, "max_child" ); // Maximum child count |
|
40 |
_LIT8( KConfigurationAttrLocking, "locking_status" ); // Locking status |
|
41 |
||
42 |
||
43 |
// Configuration element type attribute values |
|
44 |
_LIT8( KConfTypeApp, "application" ); // Application configuration |
|
45 |
_LIT8( KConfTypeView, "view" ); // View configuration |
|
46 |
_LIT8( KConfTypeWidget, "widget" ); // Widget configuration |
|
47 |
_LIT8( KConfTypeTemplate, "template" ); // Template configuration |
|
48 |
||
49 |
// Configuration element state attribute values |
|
50 |
_LIT8( KConfStateNotConfirmed, "NotConfirmed" ); // Not confirmed state |
|
51 |
_LIT8( KConfStateWaitForConfirmation, "WaitForConfirmation" );// Wait for confirmation state |
|
52 |
_LIT8( KConfStateConfirmed, "Confirmed" ); // Confirmed state |
|
53 |
_LIT8( KConfStateError, "Error" ); // Error state |
|
54 |
||
55 |
// Options for the KConfigurationAttrLocking |
|
56 |
_LIT8( KConfLockingLocked, "locked" ); // Locked state |
|
118
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
114
diff
changeset
|
57 |
_LIT8( KConfLockingPermanent, "permanent" ); // Permanent state (not removable, not movable) |
114 | 58 |
_LIT8( KConfLockingNone, "none" ); // Default |
59 |
||
60 |
// Control element |
|
61 |
_LIT8( KControlElement, "control" ); |
|
62 |
_LIT8( KControlAttrName, "name" ); // Localized name of the configuration |
|
63 |
_LIT8( KControlAttrNameEntity, "_name" ); // DTD entity, used to localize the name attribute from DTD files |
|
64 |
||
65 |
// Plugins element |
|
66 |
_LIT8( KPluginsElement, "plugins" ); |
|
67 |
||
68 |
// Plugin element |
|
69 |
_LIT8( KPluginElement, "plugin" ); |
|
70 |
_LIT8( KPluginAttrId, "id" ); // Unique id for the plugin elements |
|
71 |
_LIT8( KPluginAttrUid, "uid" ); // Globally unique uid, identifies specific configuration |
|
72 |
_LIT8( KPluginAttrInterface, "interface" ); // uid of AI3/etc |
|
73 |
_LIT8( KPluginAttrName, "name" ); // Localized name of the plugin |
|
74 |
_LIT8( KPluginAttrNameEntity, "_name" ); // DTD entity, used to localize the name attribute from DTD files |
|
75 |
_LIT8( KPluginAttrActive, "active" ); // Plugin active state |
|
76 |
||
77 |
// Plugin element active state attribute values. |
|
78 |
_LIT8( KPluginActiveStateNotActive, "0" ); // Not active |
|
79 |
_LIT8( KPluginActiveStateActive, "1" ); // Active |
|
80 |
||
81 |
// Settings element |
|
82 |
_LIT8( KSettingsElement, "settings" ); |
|
83 |
_LIT8( KInitialSettingsElement, "initial_settings"); |
|
84 |
||
85 |
// Item |
|
86 |
_LIT8( KItemElement, "item" ); // |
|
87 |
_LIT8( KItemAttrId, "id" ); // Name of the attributes container |
|
88 |
_LIT8( KItemAttrName, "name" ); // Localized name |
|
89 |
_LIT8( KItemAttrNameEntity, "_name" ); // DTD entity, used to localize the name attribute from DTD files |
|
90 |
||
91 |
// Property |
|
92 |
_LIT8( KPropertyElement, "property" ); |
|
93 |
_LIT8( KPropertyAttrName, "name" ); // Property name |
|
94 |
_LIT8( KPropertyAttrValue, "value" ); // Property value |
|
95 |
||
96 |
// Resources |
|
97 |
_LIT8( KResourcesElement, "resources" ); |
|
98 |
||
99 |
// Object |
|
100 |
_LIT8( KObjectElement, "object" ); |
|
101 |
_LIT8( KObjectAttrFilename, "name" ); |
|
102 |
_LIT8( KObjectAttrMediatype, "mediatype" ); |
|
103 |
_LIT8( KObjectAttrPath, "path" ); |
|
104 |
_LIT8( KObjectAttrTag, "tag" ); |
|
105 |
||
106 |
// Tags for resource objects |
|
107 |
_LIT8( KObjectAttrTagLogo, "logo"); |
|
108 |
_LIT8( KObjectAttrTagPreview, "preview"); |
|
109 |
||
110 |
#endif /*HSPSCONFIGURATION_H_*/ |
|
111 |
||
112 |
// End of File |