videocollection/tsrc/stubs/inc/hbnamespace.h
changeset 15 cf5481c2bc0b
child 17 69946d1824c4
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     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 */ 
       
   111     enum GraphicsItemType
       
   112     {
       
   113         ItemType_NotificationDialog = QGraphicsItem::UserType+10000,
       
   114         ItemType_FrameItem,
       
   115         ItemType_GraphicsPixmapItem,
       
   116         ItemType_FormViewItem,
       
   117         ItemType_FormView,
       
   118         ItemType_AbstractItemContainer,
       
   119         ItemType_AbstractItemView,
       
   120         ItemType_ListView,
       
   121         ItemType_AbstractViewItem,
       
   122         ItemType_ListViewItem,
       
   123         ItemType_ItemHighlight,
       
   124         ItemType_ListWidgetItem,
       
   125         ItemType_ListWidgetViewItem,
       
   126         ItemType_GridViewItem,
       
   127         ItemType_Popup,
       
   128         ItemType_Dialog,
       
   129         ItemType_Note,
       
   130         ItemType_CommonNote,
       
   131         ItemType_MessageBox,
       
   132         ItemType_ProgressNote,
       
   133         ItemType_ProgressDialog,
       
   134         ItemType_AbstractButton,
       
   135         ItemType_AbstractItem,
       
   136         ItemType_AbstractSlider,
       
   137         ItemType_Highlight,
       
   138         ItemType_IconItem,
       
   139         ItemType_Label,
       
   140         ItemType_AbstractEdit,
       
   141         ItemType_LineEdit,
       
   142         ItemType_Menu,
       
   143         ItemType_MenuItem,
       
   144         ItemType_ProgressSlider,
       
   145         ItemType_ProgressiveSlider,
       
   146         ItemType_RatingSlider,
       
   147         ItemType_ProgressBar,
       
   148         ItemType_PushButton,
       
   149         ItemType_RadioButtonList,
       
   150         ItemType_ScrollBar,
       
   151         ItemType_Slider,
       
   152         ItemType_SliderPopup,
       
   153         ItemType_StackedWidget,
       
   154         ItemType_TextEdit,
       
   155         ItemType_TextItem,
       
   156         ItemType_ToolBar,
       
   157         ItemType_ToolBarExtension,
       
   158         ItemType_ToolButton,
       
   159         ItemType_Widget,
       
   160         ItemType_View, 
       
   161         ItemType_VolumeSlider,
       
   162         ItemType_ZoomSlider,
       
   163         ItemType_RoundRobinLabel,
       
   164         ItemType_ConfirmationQuery,
       
   165         ItemType_CheckBox,
       
   166         ItemType_MessageQuery,
       
   167         ItemType_DataQuery,
       
   168         ItemType_InputDialog,
       
   169         ItemType_DualDataQuery,
       
   170         ItemType_TransparentWindow,
       
   171         ItemType_DateTimeEdit,
       
   172         ItemType_FileDialog,
       
   173         ItemType_ColorDialog,
       
   174         ItemType_InputCharacterButton,
       
   175         ItemType_InputFunctionButton,
       
   176         ItemType_InputCloseButton,
       
   177         ItemType_InputTabButton,
       
   178         ItemType_InputVkbWidget,
       
   179         ItemType_InputCharPreviewPane,
       
   180         ItemType_VirtualTrackPoint,
       
   181         ItemType_WritingBox,
       
   182         ItemType_VolumePopup,
       
   183         ItemType_CombinedQuery,
       
   184         ItemType_ListQuery,
       
   185         ItemType_ListDialog,
       
   186         ItemType_ListDialogContentWidget,
       
   187         ItemType_ZoomPopup,
       
   188         ItemType_CarouselView,
       
   189         ItemType_TreeViewItem,
       
   190         ItemType_ComboBox,
       
   191         ItemType_TouchArea,
       
   192         ItemType_SettingItemContainer,
       
   193         ItemType_SettingFormItem,
       
   194         ItemType_SettingForm,
       
   195         ItemType_DataItemContainer,
       
   196         ItemType_DataFormViewItem,
       
   197         ItemType_DataForm,
       
   198         ItemType_RichTextItem,
       
   199         ItemType_GroupBox,
       
   200         ItemType_DockWidget,
       
   201         ItemType_RadioButtonListViewItem,
       
   202         ItemType_TumbleView,
       
   203         ItemType_TumbleViewItem,
       
   204         ItemType_DateTimePicker,
       
   205         ItemType_MarqueeItem,
       
   206         ItemType_IndexFeedback,
       
   207         ItemType_Last = QGraphicsItem::UserType + 20000
       
   208     };
       
   209     /*
       
   210 
       
   211     enum WidgetAttribute
       
   212     {
       
   213         InteractionDisabled   = 0x00000001,
       
   214         InsidePopup = 0x00000002
       
   215     };
       
   216 
       
   217     Q_DECLARE_FLAGS(WidgetAttributes, WidgetAttribute)
       
   218     
       
   219 
       
   220     // DEPRECATED - DO NOT USE - These are deprecated along with deprecation of HbFontProvider
       
   221     // Use HbFontSpec and the font roles defines in HbFontSpec API
       
   222     enum LogicalFontName
       
   223     {
       
   224         FontUndefined = 0,
       
   225         FontPrimary,
       
   226         FontSecondary,
       
   227         FontTitle,
       
   228         FontPrimarySmall,
       
   229         FontDigital
       
   230     };
       
   231 
       
   232 */   
       
   233     enum SceneItem {
       
   234         NoItem                = 0x00000000,
       
   235 
       
   236         TitlePaneItem         = 0x00000001,
       
   237         // Deprecated
       
   238         NaviPaneItem          = 0x00000002,
       
   239         ToolBarItem           = 0x00000004,
       
   240         IndicatorItems        = 0x00000008,
       
   241         DockWidgetItem        = 0x00000010,
       
   242         TitleBarItem          = 0x00000020,
       
   243 
       
   244         // Deprecated
       
   245         PrimarySoftKeyItem    = 0x00010000,
       
   246         // Deprecated
       
   247         SecondarySoftKeyItem  = 0x00020000,
       
   248         // Deprecated
       
   249         MiddleSoftKeyItem     = 0x00040000,
       
   250         // Deprecated
       
   251         SoftKeyItems          = 0x00070000,
       
   252 
       
   253         AllItems              = 0xFFFFFFFF
       
   254     };
       
   255     
       
   256     /*!
       
   257        Anchor edges.
       
   258      */
       
   259 /*    enum Edge {
       
   260         LeftEdge = 0,
       
   261         TopEdge,
       
   262         RightEdge,
       
   263         BottomEdge,
       
   264         CenterHEdge,
       
   265         CenterVEdge
       
   266     };
       
   267 
       
   268     enum ResourceType {
       
   269         IconResource = 0,
       
   270         ThemeResource,
       
   271         EffectResource,
       
   272         StyleSheetResource
       
   273     };
       
   274 
       
   275     Q_DECLARE_FLAGS(SceneItems, SceneItem)
       
   276 */    
       
   277     enum WindowFlag {
       
   278         WindowFlagNone            = 0x00000000,
       
   279         WindowFlagTransparent     = 0x00000001,
       
   280         WindowFlagNoBackground    = 0x00000002,
       
   281         WindowFlagFixedVertical   = 0x00000004,
       
   282         WindowFlagFixedHorizontal = 0x00000008,
       
   283         WindowFlagNoSplash        = 0x00000010
       
   284     };
       
   285 
       
   286     Q_DECLARE_FLAGS(WindowFlags, WindowFlag)
       
   287 /*
       
   288     enum ViewSwitchFlag {
       
   289         ViewSwitchDefault       = 0x00,
       
   290         ViewSwitchSequential    = 0x01,
       
   291         ViewSwitchFullScreen    = 0x02,
       
   292         ViewSwitchUseNormalAnim = 0x04,
       
   293         ViewSwitchUseBackAnim   = 0x08,
       
   294         ViewSwitchUseAltEvent   = 0x10
       
   295     };
       
   296 
       
   297     Q_DECLARE_FLAGS(ViewSwitchFlags, ViewSwitchFlag)
       
   298 
       
   299     enum TextCursorVisibility
       
   300     {
       
   301         TextCursorHidden = 0,
       
   302         TextCursorVisible
       
   303     };
       
   304 
       
   305     enum SliderTickPosition
       
   306     {
       
   307         NoSliderTicks = 0,
       
   308         SliderTicksAbove = 1,
       
   309         SliderTicksLeft = SliderTicksAbove,
       
   310         SliderTicksBelow = 2,
       
   311         SliderTicksRight = SliderTicksBelow,
       
   312         SliderTicksBothSides = 3,
       
   313         SliderTicksAbsolute
       
   314     };
       
   315 
       
   316     Q_DECLARE_FLAGS(SliderTickPositions , SliderTickPosition)
       
   317 
       
   318     enum TextContextMenuFlag {
       
   319         ShowTextContextMenuOnSelectionClicked = 1,
       
   320         ShowTextContextMenuOnLongPress = 4
       
   321     };
       
   322     Q_DECLARE_FLAGS(TextContextMenuFlags , TextContextMenuFlag)
       
   323 */    
       
   324     /*!
       
   325         A type definition for text wrapping
       
   326     */
       
   327 /*    enum TextWrapping
       
   328     {
       
   329         TextNoWrap = 0,
       
   330         TextWordWrap = 1,
       
   331         TextWrapAnywhere = 3
       
   332     };
       
   333         
       
   334     enum InstantInteraction {
       
   335         InstantPressed = 0,
       
   336         InstantReleased,
       
   337         InstantClicked,
       
   338         InstantKeyRepeated,
       
   339         InstantLongPressed,
       
   340         InstantDraggedOver,
       
   341         InstantFlicked,
       
   342         InstantPopupOpened,
       
   343         InstantPopupClosed,
       
   344         InstantBoundaryReached,
       
   345         InstantRotated90Degrees,
       
   346         InstantSelectionChanged,
       
   347         /* add new standard instant interactions here */
       
   348 //        NumberOfInstantInteractions,
       
   349 //        InstantUser = 1000,
       
   350         /* value range for user defined custom instant interactions */
       
   351 //        InstantMaxUser = 65535
       
   352 //    };
       
   353 
       
   354 /*    enum ContinuousInteraction {
       
   355         ContinuousScrolled = 0,
       
   356         ContinuousDragged,
       
   357         ContinuousPinched,
       
   358         /* add new standard continuous interactions here */
       
   359 //        NumberOfContinuousInteractions,
       
   360 //        ContinuousUser = 1000,
       
   361         /* value range for user defined custom continuous interactions */
       
   362 /*        ContinuousMaxUser = 65535
       
   363     };
       
   364 
       
   365     enum InteractionModifier {
       
   366         ModifierSliderHandle = 0x1,
       
   367         ModifierSliderElement = 0x2,
       
   368         ModifierExpandedItem = 0x4,
       
   369         ModifierCollapsedItem = 0x8,
       
   370         ModifierScrolling = 0x10
       
   371     };
       
   372  
       
   373     Q_DECLARE_FLAGS(InteractionModifiers, InteractionModifier)*/
       
   374 };
       
   375 
       
   376 /*Q_DECLARE_METATYPE(Hb::GraphicsItemType)
       
   377 
       
   378 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::UiAttributes)
       
   379 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::TouchGestures)
       
   380 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::SceneItems)
       
   381 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::WindowFlags)
       
   382 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::ViewSwitchFlags)
       
   383 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::SliderTickPositions)
       
   384 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::TextContextMenuFlags)
       
   385 Q_DECLARE_OPERATORS_FOR_FLAGS(Hb::InteractionModifiers)
       
   386 */
       
   387 #endif // HBNAMESPACE_H
       
   388