homescreenpluginsrv/hspsmanager/inc/hspsconfiguration.h
changeset 0 79c6a41cd166
child 4 1a2a00e78665
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     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 
       
    41 
       
    42 // Configuration element type attribute values
       
    43 _LIT8( KConfTypeApp,                    "application" );        // Application configuration
       
    44 _LIT8( KConfTypeView,                   "view" );               // View configuration
       
    45 _LIT8( KConfTypeWidget,                 "widget" );             // Widget configuration
       
    46 _LIT8( KConfTypeTemplate,               "template" );           // Template configuration
       
    47 
       
    48 // Configuration element state attribute values
       
    49 _LIT8( KConfStateNotConfirmed,          "NotConfirmed" );       // Not confirmed state
       
    50 _LIT8( KConfStateWaitForConfirmation,   "WaitForConfirmation" );// Wait for confirmation state
       
    51 _LIT8( KConfStateConfirmed,             "Confirmed" );          // Confirmed state
       
    52 _LIT8( KConfStateError,                 "Error" );              // Error state
       
    53 
       
    54 // Control element
       
    55 _LIT8( KControlElement, 				"control" );
       
    56 _LIT8( KControlAttrName, 				"name" );				// Localized name of the configuration
       
    57 _LIT8( KControlAttrNameEntity,  		"_name" );				// DTD entity, used to localize the name attribute from DTD files
       
    58 
       
    59 // Plugins element
       
    60 _LIT8( KPluginsElement, 				"plugins" );
       
    61 
       
    62 // Plugin element
       
    63 _LIT8( KPluginElement, 					"plugin" );				
       
    64 _LIT8( KPluginAttrId, 					"id" );					// Unique id for the plugin elements
       
    65 _LIT8( KPluginAttrUid, 					"uid" );				// Globally unique uid, identifies specific configuration
       
    66 _LIT8( KPluginAttrInterface, 			"interface" );			// uid of AI3/etc
       
    67 _LIT8( KPluginAttrName, 				"name" );				// Localized name of the plugin
       
    68 _LIT8( KPluginAttrNameEntity,  			"_name" );				// DTD entity, used to localize the name attribute from DTD files
       
    69 _LIT8( KPluginAttrActive,               "active" );             // Plugin active state 
       
    70 
       
    71 // Plugin element active state attribute values.
       
    72 _LIT8( KPluginActiveStateNotActive,     "0" );                  // Not active
       
    73 _LIT8( KPluginActiveStateActive,        "1" );                  // Active
       
    74 
       
    75 // Settings element
       
    76 _LIT8( KSettingsElement, 				"settings" );
       
    77 _LIT8( KInitialSettingsElement,         "initial_settings");
       
    78 
       
    79 // Item
       
    80 _LIT8( KItemElement, 					"item" );				// 
       
    81 _LIT8( KItemAttrId, 					"id" );					// Name of the attributes container
       
    82 _LIT8( KItemAttrName, 					"name" );				// Localized name
       
    83 _LIT8( KItemAttrNameEntity,				"_name" );				// DTD entity, used to localize the name attribute from DTD files
       
    84 
       
    85 // Property
       
    86 _LIT8( KPropertyElement,				"property" );
       
    87 _LIT8( KPropertyAttrName,				"name" );				// Property name
       
    88 _LIT8( KPropertyAttrValue,				"value" );				// Property value
       
    89 
       
    90 // Resources
       
    91 _LIT8( KResourcesElement, 				"resources" );
       
    92 
       
    93 // Object
       
    94 _LIT8( KObjectElement, 					"object" );
       
    95 _LIT8( KObjectAttrFilename,				"name" );
       
    96 _LIT8( KObjectAttrMediatype,			"mediatype" );
       
    97 _LIT8( KObjectAttrPath,					"path" );
       
    98 _LIT8( KObjectAttrTag,                  "tag" );
       
    99 
       
   100 // Tags for resource objects
       
   101 _LIT8( KObjectAttrTagLogo,              "logo");  
       
   102 _LIT8( KObjectAttrTagPreview,           "preview");
       
   103 
       
   104 #endif /*HSPSCONFIGURATION_H_*/
       
   105 
       
   106 // End of File