src/hbcore/feedback/hbfeedbacknamespace.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    38 
    38 
    39 #ifndef HB_DOXYGEN
    39 #ifndef HB_DOXYGEN
    40 class HB_CORE_EXPORT HbFeedback
    40 class HB_CORE_EXPORT HbFeedback
    41 {
    41 {
    42     Q_GADGET
    42     Q_GADGET
    43     Q_ENUMS(Type InstantEffect ContinuousEffect TacticonEffect HitAreaType IntensityLevel)
    43     Q_ENUMS(Type InstantEffect ContinuousEffect TacticonEffect HitAreaType IntensityLevel Modality)
       
    44     Q_FLAGS(Types Modalities)
    44 
    45 
    45 public:
    46 public:
    46 #else
    47 #else
    47 namespace HbFeedback
    48 namespace HbFeedback
    48 {
    49 {
   100         PopupClose,
   101         PopupClose,
   101         Flick,
   102         Flick,
   102         StopFlick,
   103         StopFlick,
   103         MultitouchActivate,
   104         MultitouchActivate,
   104         RotateStep,
   105         RotateStep,
       
   106         LongPress,
   105         PositiveTacticon,
   107         PositiveTacticon,
   106         NeutralTacticon,
   108         NeutralTacticon,
   107         NegativeTacticon,
   109         NegativeTacticon,
   108         /* new standard instant feedbacks here */
   110         /* new standard instant feedbacks here */
   109         NumberOfInstantFeedbacks,
   111         NumberOfInstantFeedbacks,
   183         MouseButtonPress,
   185         MouseButtonPress,
   184         MouseButtonRelease
   186         MouseButtonRelease
   185     };
   187     };
   186 
   188 
   187     /*!
   189     /*!
       
   190       \enum Modality
       
   191       The available modalities for feedback effects.
       
   192       Effects can be synthesized using one or several of the available modalities.
       
   193     */
       
   194     enum Modality {
       
   195         All     = 0xFFFF,
       
   196         Audio   = 0x0001,
       
   197         Tactile = 0x0002
       
   198     };
       
   199 
       
   200     Q_DECLARE_FLAGS(Modalities, Modality)
       
   201 
       
   202     /*!
   188         Timeout value has to be defined for each continuous feedback
   203         Timeout value has to be defined for each continuous feedback
   189         to avoid situations where continuous feedback is never cancelled
   204         to avoid situations where continuous feedback is never cancelled
   190         and accidentally continues to play infinitely.
   205         and accidentally continues to play infinitely.
   191 
   206 
   192         Recommended standard value is 300 milliseconds.
   207         Recommended standard value is 300 milliseconds.
   195      */
   210      */
   196     static const int StandardFeedbackTimeout = 300;
   211     static const int StandardFeedbackTimeout = 300;
   197 };
   212 };
   198 
   213 
   199 Q_DECLARE_OPERATORS_FOR_FLAGS(HbFeedback::Types)
   214 Q_DECLARE_OPERATORS_FOR_FLAGS(HbFeedback::Types)
       
   215 Q_DECLARE_OPERATORS_FOR_FLAGS(HbFeedback::Modalities)
   200 
   216 
   201 #endif // HBFEEDBACKNAMESPACE_H
   217 #endif // HBFEEDBACKNAMESPACE_H
   202 
   218