videocollection/tsrc/stubs/inc/hbnamespace.h
changeset 34 bbb98528c666
child 35 3738fe97f027
equal deleted inserted replaced
33:48e74db5d516 34:bbb98528c666
       
     1 /*
       
     2 * Copyright (c) 2009 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:  hbnamespace stub
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HBNAMESPACE_H
       
    19 #define HBNAMESPACE_H
       
    20 
       
    21 #include <QtGlobal>
       
    22 #include <QObject>
       
    23 #include <QGraphicsItem>
       
    24 
       
    25 class Hb
       
    26 {
       
    27 
       
    28 public:
       
    29 /*    static const int Key_SoftKeyPrimary    = Qt::Key_Launch0;
       
    30     static const int Key_SoftKeySecondary  = Qt::Key_Launch1;
       
    31     static const int Key_SoftKeyMiddle     = Qt::Key_Launch2;
       
    32 
       
    33 */
       
    34     // DEPRECATED - DO NOT USE - These are deprecated along with deprecation of softkey functions in HbMainWindow.
       
    35     // This enumeration will become internal to Hb.
       
    36     enum SoftKeyId
       
    37     {
       
    38         PrimarySoftKey,
       
    39         SecondarySoftKey,       
       
    40         MiddleSoftKey,          
       
    41 
       
    42         //Custom softkey id's start here.
       
    43         CustomSoftKey = 0xFF    
       
    44     };
       
    45 
       
    46     // DEPRECATED - DO NOT USE - These are deprecated along with deprecation of softkey functions in HbMainWindow.
       
    47     // Use NavigationAction instead.
       
    48     enum SoftKeyAction
       
    49     {
       
    50         QuitAction,
       
    51         BackAction,
       
    52         ConfirmAction,
       
    53         DoneAction
       
    54     };
       
    55 
       
    56     enum NavigationAction
       
    57     {
       
    58         QuitNaviAction,
       
    59         BackNaviAction,
       
    60         ConfirmNaviAction,
       
    61         DoneNaviAction
       
    62     };
       
    63     
       
    64 /*    enum EffectEvent
       
    65     {
       
    66         EffectFinished                = 1,
       
    67         EffectCancelled               = 2,
       
    68         EffectNotStarted              = 3
       
    69     };
       
    70 
       
    71     
       
    72     enum UiAttribute
       
    73     {
       
    74         Ui_NoAttributes         = 0x0000,
       
    75         Ui_VisibleInTouch       = 0x0001,
       
    76         Ui_VisibleInNonTouch    = 0x0002
       
    77     };
       
    78 
       
    79     Q_DECLARE_FLAGS(UiAttributes, UiAttribute)
       
    80 */
       
    81     /*!
       
    82         Gesture types.
       
    83      */
       
    84 /*    enum TouchGesture
       
    85     {
       
    86         TapGesture         = 0x0000001,
       
    87         LongPressGesture   = 0x0000002,
       
    88         PanGesture         = 0x0000004,
       
    89         FlickGesture       = 0x0000008
       
    90     };
       
    91 
       
    92     Q_DECLARE_FLAGS(TouchGestures, TouchGesture)
       
    93 
       
    94     
       
    95     enum ItemDataRole
       
    96     {
       
    97         ItemTypeRole = 1001,
       
    98         IndexFeedbackRole, 
       
    99         UserRole = 1500
       
   100     };
       
   101 
       
   102     enum ModelItemType
       
   103     {
       
   104         StandardItem,
       
   105         ParentItem,
       
   106         SeparatorItem,
       
   107         UserItem = 1000
       
   108     };
       
   109     
       
   110     enum GraphicsItemType
       
   111     {
       
   112         ItemType_NotificationDialog = QGraphicsItem::UserType+10000,
       
   113         ItemType_FrameItem,
       
   114         ItemType_GraphicsPixmapItem,
       
   115         ItemType_FormViewItem,
       
   116         ItemType_FormView,
       
   117         ItemType_AbstractItemContainer,
       
   118         ItemType_AbstractItemView,
       
   119         ItemType_ListView,
       
   120         ItemType_AbstractViewItem,
       
   121         ItemType_ListViewItem,
       
   122         ItemType_ItemHighlight,
       
   123         ItemType_ListWidgetItem,
       
   124         ItemType_ListWidgetViewItem,
       
   125         ItemType_GridViewItem,
       
   126         ItemType_Popup,
       
   127         ItemType_Dialog,
       
   128         ItemType_Note,
       
   129         ItemType_CommonNote,
       
   130         ItemType_MessageBox,
       
   131         ItemType_ProgressNote,
       
   132         ItemType_ProgressDialog,
       
   133         ItemType_AbstractButton,
       
   134         ItemType_AbstractItem,
       
   135         ItemType_AbstractSlider,
       
   136         ItemType_Highlight,
       
   137         ItemType_IconItem,
       
   138         ItemType_Label,
       
   139         ItemType_AbstractEdit,
       
   140         ItemType_LineEdit,
       
   141         ItemType_Menu,
       
   142         ItemType_MenuItem,
       
   143         ItemType_ProgressSlider,
       
   144         ItemType_ProgressiveSlider,
       
   145         ItemType_RatingSlider,
       
   146         ItemType_ProgressBar,
       
   147         ItemType_PushButton,
       
   148         ItemType_RadioButtonList,
       
   149         ItemType_ScrollBar,
       
   150         ItemType_Slider,
       
   151         ItemType_SliderPopup,
       
   152         ItemType_StackedWidget,
       
   153         ItemType_TextEdit,
       
   154         ItemType_TextItem,
       
   155         ItemType_ToolBar,
       
   156         ItemType_ToolBarExtension,
       
   157         ItemType_ToolButton,
       
   158         ItemType_Widget,
       
   159         ItemType_View, 
       
   160         ItemType_VolumeSlider,
       
   161         ItemType_ZoomSlider,
       
   162         ItemType_RoundRobinLabel,
       
   163         ItemType_ConfirmationQuery,
       
   164         ItemType_CheckBox,
       
   165         ItemType_MessageQuery,
       
   166         ItemType_DataQuery,
       
   167         ItemType_InputDialog,
       
   168         ItemType_DualDataQuery,
       
   169         ItemType_TransparentWindow,
       
   170         ItemType_DateTimeEdit,
       
   171         ItemType_FileDialog,
       
   172         ItemType_ColorDialog,
       
   173         ItemType_InputCharacterButton,
       
   174         ItemType_InputFunctionButton,
       
   175         ItemType_InputCloseButton,
       
   176         ItemType_InputTabButton,
       
   177         ItemType_InputVkbWidget,
       
   178         ItemType_InputCharPreviewPane,
       
   179         ItemType_VirtualTrackPoint,
       
   180         ItemType_WritingBox,
       
   181         ItemType_VolumePopup,
       
   182         ItemType_CombinedQuery,
       
   183         ItemType_ListQuery,
       
   184         ItemType_ListDialog,
       
   185         ItemType_ListDialogContentWidget,
       
   186         ItemType_ZoomPopup,
       
   187         ItemType_CarouselView,
       
   188         ItemType_TreeViewItem,
       
   189         ItemType_ComboBox,
       
   190         ItemType_TouchArea,
       
   191         ItemType_SettingItemContainer,
       
   192         ItemType_SettingFormItem,
       
   193         ItemType_SettingForm,
       
   194         ItemType_DataItemContainer,
       
   195         ItemType_DataFormViewItem,
       
   196         ItemType_DataForm,
       
   197         ItemType_RichTextItem,
       
   198         ItemType_GroupBox,
       
   199         ItemType_DockWidget,
       
   200         ItemType_RadioButtonListViewItem,
       
   201         ItemType_TumbleView,
       
   202         ItemType_TumbleViewItem,
       
   203         ItemType_DateTimePicker,
       
   204         ItemType_MarqueeItem,
       
   205         ItemType_IndexFeedback,
       
   206         ItemType_Last = QGraphicsItem::UserType + 20000
       
   207     };
       
   208 
       
   209     enum WidgetAttribute
       
   210     {
       
   211         InteractionDisabled   = 0x00000001,
       
   212         InsidePopup = 0x00000002
       
   213     };
       
   214 
       
   215     Q_DECLARE_FLAGS(WidgetAttributes, WidgetAttribute)
       
   216     
       
   217 
       
   218     // DEPRECATED - DO NOT USE - These are deprecated along with deprecation of HbFontProvider
       
   219     // Use HbFontSpec and the font roles defines in HbFontSpec API
       
   220     enum LogicalFontName
       
   221     {
       
   222         FontUndefined = 0,
       
   223         FontPrimary,
       
   224         FontSecondary,
       
   225         FontTitle,
       
   226         FontPrimarySmall,
       
   227         FontDigital
       
   228     };
       
   229 
       
   230 */   
       
   231     enum SceneItem {
       
   232         NoItem                = 0x00000000,
       
   233 
       
   234         TitlePaneItem         = 0x00000001,
       
   235         // Deprecated
       
   236         NaviPaneItem          = 0x00000002,
       
   237         ToolBarItem           = 0x00000004,
       
   238         IndicatorItems        = 0x00000008,
       
   239         DockWidgetItem        = 0x00000010,
       
   240         TitleBarItem          = 0x00000020,
       
   241 
       
   242         // Deprecated
       
   243         PrimarySoftKeyItem    = 0x00010000,
       
   244         // Deprecated
       
   245         SecondarySoftKeyItem  = 0x00020000,
       
   246         // Deprecated
       
   247         MiddleSoftKeyItem     = 0x00040000,
       
   248         // Deprecated
       
   249         SoftKeyItems          = 0x00070000,
       
   250 
       
   251         AllItems              = 0xFFFFFFFF
       
   252     };
       
   253     
       
   254     /*!
       
   255        Anchor edges.
       
   256      */
       
   257 /*    enum Edge {
       
   258         LeftEdge = 0,
       
   259         TopEdge,
       
   260         RightEdge,
       
   261         BottomEdge,
       
   262         CenterHEdge,
       
   263         CenterVEdge
       
   264     };
       
   265 
       
   266     enum ResourceType {
       
   267         IconResource = 0,
       
   268         ThemeResource,
       
   269         EffectResource,
       
   270         StyleSheetResource
       
   271     };
       
   272 
       
   273     Q_DECLARE_FLAGS(SceneItems, SceneItem)
       
   274 */    
       
   275     enum WindowFlag {
       
   276         WindowFlagNone            = 0x00000000,
       
   277         WindowFlagTransparent     = 0x00000001,
       
   278         WindowFlagNoBackground    = 0x00000002,
       
   279         WindowFlagFixedVertical   = 0x00000004,
       
   280         WindowFlagFixedHorizontal = 0x00000008,
       
   281         WindowFlagNoSplash        = 0x00000010
       
   282     };
       
   283 
       
   284     Q_DECLARE_FLAGS(WindowFlags, WindowFlag)
       
   285 /*
       
   286     enum ViewSwitchFlag {
       
   287         ViewSwitchDefault       = 0x00,
       
   288         ViewSwitchSequential    = 0x01,
       
   289         ViewSwitchFullScreen    = 0x02,
       
   290         ViewSwitchUseNormalAnim = 0x04,
       
   291         ViewSwitchUseBackAnim   = 0x08,
       
   292         ViewSwitchUseAltEvent   = 0x10
       
   293     };
       
   294 
       
   295     Q_DECLARE_FLAGS(ViewSwitchFlags, ViewSwitchFlag)
       
   296 
       
   297     enum TextCursorVisibility
       
   298     {
       
   299         TextCursorHidden = 0,
       
   300         TextCursorVisible
       
   301     };
       
   302 
       
   303     enum SliderTickPosition
       
   304     {
       
   305         NoSliderTicks = 0,
       
   306         SliderTicksAbove = 1,
       
   307         SliderTicksLeft = SliderTicksAbove,
       
   308         SliderTicksBelow = 2,
       
   309         SliderTicksRight = SliderTicksBelow,
       
   310         SliderTicksBothSides = 3,
       
   311         SliderTicksAbsolute
       
   312     };
       
   313 
       
   314     Q_DECLARE_FLAGS(SliderTickPositions , SliderTickPosition)
       
   315 
       
   316     enum TextContextMenuFlag {
       
   317         ShowTextContextMenuOnSelectionClicked = 1,
       
   318         ShowTextContextMenuOnLongPress = 4
       
   319     };
       
   320     Q_DECLARE_FLAGS(TextContextMenuFlags , TextContextMenuFlag)
       
   321 */    
       
   322     /*!
       
   323         A type definition for text wrapping
       
   324     */
       
   325 /*    enum TextWrapping
       
   326     {
       
   327         TextNoWrap = 0,
       
   328         TextWordWrap = 1,
       
   329         TextWrapAnywhere = 3
       
   330     };
       
   331         
       
   332     enum InstantInteraction {
       
   333         InstantPressed = 0,
       
   334         InstantReleased,
       
   335         InstantClicked,
       
   336         InstantKeyRepeated,
       
   337         InstantLongPressed,
       
   338         InstantDraggedOver,
       
   339         InstantFlicked,
       
   340         InstantPopupOpened,
       
   341         InstantPopupClosed,
       
   342         InstantBoundaryReached,
       
   343         InstantRotated90Degrees,
       
   344         InstantSelectionChanged,
       
   345         /* add new standard instant interactions here */
       
   346 //        NumberOfInstantInteractions,
       
   347 //        InstantUser = 1000,
       
   348         /* value range for user defined custom instant interactions */
       
   349 //        InstantMaxUser = 65535
       
   350 //    };
       
   351 
       
   352 /*    enum ContinuousInteraction {
       
   353         ContinuousScrolled = 0,
       
   354         ContinuousDragged,
       
   355         ContinuousPinched,
       
   356         /* add new standard continuous interactions here */
       
   357 //        NumberOfContinuousInteractions,
       
   358 //        ContinuousUser = 1000,
       
   359         /* value range for user defined custom continuous interactions */
       
   360 /*        ContinuousMaxUser = 65535
       
   361     };
       
   362 
       
   363     enum InteractionModifier {
       
   364         ModifierSliderHandle = 0x1,
       
   365         ModifierSliderElement = 0x2,
       
   366         ModifierExpandedItem = 0x4,
       
   367         ModifierCollapsedItem = 0x8,
       
   368         ModifierScrolling = 0x10
       
   369     };
       
   370  
       
   371     Q_DECLARE_FLAGS(InteractionModifiers, InteractionModifier)*/
       
   372 };
       
   373 
       
   374 /*Q_DECLARE_METATYPE(Hb::GraphicsItemType)
       
   375 
       
   376 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::UiAttributes)
       
   377 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::TouchGestures)
       
   378 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::SceneItems)
       
   379 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::WindowFlags)
       
   380 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::ViewSwitchFlags)
       
   381 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::SliderTickPositions)
       
   382 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::TextContextMenuFlags)
       
   383 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::InteractionModifiers)
       
   384 */
       
   385 #endif // HBNAMESPACE_H
       
   386