idlehomescreen/xmluicontroller/inc/aixmluiconstants.h
changeset 0 f72a12da539e
child 4 4d54b72983ae
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  XML UI specific UI definitions and constants
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AIXMLUICONSTANTS_H
       
    20 #define AIXMLUICONSTANTS_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <aicontentmodel.h>
       
    24 
       
    25 namespace AiUiDef
       
    26     {
       
    27     namespace xml
       
    28         {
       
    29         namespace id
       
    30             {
       
    31             _LIT( KContentIdSeparator, "/" );
       
    32             _LIT( KSettingsIdSeparator, "/" );
       
    33             }
       
    34         
       
    35         namespace property
       
    36             {
       
    37             _LIT8( KClass, "class" );
       
    38             _LIT8( KType, "type" );
       
    39             _LIT8( KName, "name" );
       
    40             _LIT8( KValue, "value" );
       
    41             _LIT8( KLoadOrdinal, "load_ordinal" );
       
    42             _LIT8( KId, "id" );
       
    43             _LIT8( KUid, "uid" );
       
    44             _LIT8( KViewId, "viewid" );
       
    45             _LIT8( KMessageId, "messageid" );
       
    46             _LIT8( KMessage, "message" );
       
    47             }
       
    48             
       
    49         namespace propertyClass
       
    50             {
       
    51             _LIT8( KContentSource, "ContentSource" );
       
    52             _LIT( KSettings, "Settings" );
       
    53             }
       
    54         namespace general
       
    55             {
       
    56             _LIT ( KGeneral, "General" );
       
    57             _LIT ( KDontOpenLogsOnSendKey, "DontOpenLogsOnSendKey" );
       
    58             }
       
    59         namespace policy
       
    60             {
       
    61             _LIT8( KContent, "policy/Content" );
       
    62             _LIT8( KEmptyContent, "policy/emptyContent" );
       
    63             _LIT8( KResource, "policy/Resource" );
       
    64             _LIT8( KVisibilityPolicy, "policy/Visibility" );
       
    65             _LIT8( KContentChanged, "policy/ContentChanged" );
       
    66             _LIT8( KCondition, "if" );
       
    67             }   // End of namespace policy
       
    68                     
       
    69         namespace name
       
    70             {
       
    71             _LIT8( KOrdinal, "ordinal" );
       
    72             _LIT8( KPriority, "priority" );
       
    73             _LIT8( KTarget, "target" );
       
    74             
       
    75             }   // End of namespace name   
       
    76                     
       
    77         namespace value
       
    78             {
       
    79             _LIT8( KShowTooltips, "ShowTooltips" );
       
    80             }
       
    81             
       
    82         namespace event
       
    83             {
       
    84             _LIT8( KUiEventPrefix, "ui/" );
       
    85             _LIT8( KEventHandlerPrefix, "EventHandler/" );
       
    86             _LIT8( KFocusGained, "focusgained" );
       
    87             _LIT8( KSetElementSizeToCPS, "setelementsizetocps" );
       
    88             _LIT( KNewstickerTitleScrolled, "TitleScrolled" );
       
    89             _LIT( KNewstickerTitleToScroll, "TitleToScroll" );
       
    90             _LIT8( KEventShowHelp, "ShowHelp" );
       
    91             _LIT8( KEventSetOnline, "SetOnline" );
       
    92             _LIT8( KEventSetOffline, "SetOffline" );
       
    93             _LIT8( KEventLaunchApp, "LaunchApp");
       
    94             _LIT8( KEventActivateView, "ActivateView");
       
    95             _LIT8( KEventActivatePhoneView, "ActivatePhoneView");
       
    96             }
       
    97            
       
    98         namespace css
       
    99             {
       
   100             _LIT8( KSeparator, ":" );
       
   101             _LIT8( KValueTerminator, ";" );
       
   102             _LIT8( KPercentage, "%" );
       
   103             _LIT8( KPixel, "px" );
       
   104             _LIT8( KUnitValue, "u" );
       
   105             }
       
   106         namespace element
       
   107             {
       
   108             _LIT8( KPlugin, "plugin" );
       
   109             _LIT( K16Plugin, "plugin" );
       
   110             _LIT8( KImage, "image" );
       
   111             _LIT8( KText, "text" );
       
   112             _LIT8( KConfiguration, "configuration" );
       
   113             _LIT8( KNewsTicker, "newsticker" );            
       
   114             }
       
   115         
       
   116          }   // End of namespace xml
       
   117     
       
   118     }   // End of namespace AiUiDef
       
   119 
       
   120 #define KContentTypeText TPtrC8( reinterpret_cast< const TText8* >( KAiContentTypeText ) )
       
   121 #define KContentTypeBitmap TPtrC8( reinterpret_cast< const TText8* >( KAiContentTypeBitmap ) )
       
   122 _LIT8( KContentTypeImage, "image/" );
       
   123 _LIT8( KContentTypeImageSvg, "image/svg+xml" );
       
   124 _LIT( KTargetSliderVolumeValue, "slider::volume" );
       
   125 const TText KComma = ',';
       
   126 const TText KLeftParenthesis = '(';
       
   127 const TText KRightParenthesis = ')';
       
   128 const TText KNotOperator = '!';
       
   129 const TText KAndOperator = '+';
       
   130 const TText KWhiteSpace = ' ';
       
   131 
       
   132 
       
   133 #endif // AIXMLUICONSTANTS_H