34
|
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 |
_LIT8( KAnimation, "animation" );
|
|
115 |
_LIT8( KTextEditor, "texteditor" );
|
|
116 |
_LIT8( KData, "data" );
|
|
117 |
_LIT8( KTitle, "title" );
|
|
118 |
}
|
|
119 |
|
|
120 |
} // End of namespace xml
|
|
121 |
|
|
122 |
} // End of namespace AiUiDef
|
|
123 |
|
|
124 |
#define KContentTypeText TPtrC8( reinterpret_cast< const TText8* >( KAiContentTypeText ) )
|
|
125 |
#define KContentTypeBitmap TPtrC8( reinterpret_cast< const TText8* >( KAiContentTypeBitmap ) )
|
|
126 |
#define KContentTypeData TPtrC8( reinterpret_cast< const TText8* >( KAiContentTypeData ))
|
|
127 |
_LIT8( KContentTypeImage, "image/" );
|
|
128 |
_LIT8( KContentTypeImageSvg, "image/svg+xml" );
|
|
129 |
_LIT( KTargetSliderVolumeValue, "slider::volume" );
|
|
130 |
const TText KComma = ',';
|
|
131 |
const TText KLeftParenthesis = '(';
|
|
132 |
const TText KRightParenthesis = ')';
|
|
133 |
const TText KNotOperator = '!';
|
|
134 |
const TText KAndOperator = '+';
|
|
135 |
const TText KWhiteSpace = ' ';
|
|
136 |
|
|
137 |
|
|
138 |
#endif // AIXMLUICONSTANTS_H
|