src/hbcore/feedback/hbcontinuousinteractionevent.cpp
changeset 2 06ff229162e9
parent 0 16d8024aca5e
equal deleted inserted replaced
1:f7ac710697a9 2:06ff229162e9
    24 ****************************************************************************/
    24 ****************************************************************************/
    25 
    25 
    26 #include "hbcontinuousinteractionevent_p.h"
    26 #include "hbcontinuousinteractionevent_p.h"
    27 
    27 
    28 /*!
    28 /*!
    29     @beta
       
    30     @hbcore
       
    31     \class HbContinuousInteractionEvent
       
    32     
       
    33     \brief Continuous interaction event contains widget interaction information. Feedback engines use that information to implement various feedback effects.
       
    34 
       
    35     Gesture event's type is 
       
    36     HbContinuousInteractionEvent::ContinuousInteraction - when user is in the middle of performing a continuous interaction.
       
    37     HbContinuousInteractionEvent::ContinuousInteractionStop - when ongoing continuous interaction is stopped.
       
    38     
       
    39     \sa HbInstantInteractionEvent
       
    40 */
       
    41 
       
    42 /*!
       
    43     \fn const HbWidget* HbContinuousInteractionEvent::widget() const
    29     \fn const HbWidget* HbContinuousInteractionEvent::widget() const
    44 
    30 
    45     Returns the widget being interacted with. Should never be null.
    31     Returns the widget being interacted with. Should never be null.
       
    32 
       
    33     \internal
    46 */
    34 */
    47 
    35 
    48 /*!
    36 /*!
    49     \fn Hb::ContinuousInteraction HbContinuousInteractionEvent::interaction() const
    37     \fn Hb::ContinuousInteraction HbContinuousInteractionEvent::interaction() const
    50 
    38 
    51     Returns the type of continuous interaction, whether the widget was panned, flicked, etc.
    39     Returns the type of continuous interaction.
       
    40 
       
    41     \internal
    52 */
    42 */
    53 
    43 
    54 /*!
    44 /*!
    55     \fn QPointF HbContinuousInteractionEvent::delta() const
    45     \fn QPointF HbContinuousInteractionEvent::delta() const
    56 
    46 
    57     Returns the movement vector of the continuous interaction.
    47     Returns the movement vector of the continuous interaction.
       
    48 
       
    49     \internal
    58 */
    50 */
    59 
    51 
    60 const int HbContinuousInteractionEvent::ContinuousInteraction = registerEventType();
    52 const int HbContinuousInteractionEvent::ContinuousInteraction = registerEventType();
    61 const int HbContinuousInteractionEvent::ContinuousInteractionStop = registerEventType();
    53 const int HbContinuousInteractionEvent::ContinuousInteractionStop = registerEventType();
    62 
    54 
    63 /*!
    55 /*!
    64     Constructs a HbContinuousInteractionEvent with continuous interaction information.
    56     Constructs a HbContinuousInteractionEvent with continuous interaction information.
       
    57 
       
    58     Continuous interaction event contains widget interaction information. Feedback engines use that
       
    59     information to implement various feedback effects.
       
    60 
    65     \param eventType either HbContinuousInteractionEvent::ContinuousInteraction or HbContinuousInteractionEvent::ContinuousInteractionStop.
    61     \param eventType either HbContinuousInteractionEvent::ContinuousInteraction or HbContinuousInteractionEvent::ContinuousInteractionStop.
    66     \param widget - widget being interacted with
    62     \param widget - widget being interacted with
    67     \param interaction - type of continuous interaction
    63     \param interaction - type of continuous interaction
    68     \param delta - movement vector of the continuous interaction
    64     \param delta - movement vector of the continuous interaction
       
    65 
       
    66     \internal
    69 */
    67 */
    70 HbContinuousInteractionEvent::HbContinuousInteractionEvent(int eventType, const HbWidget *widget, Hb::ContinuousInteraction interaction, QPointF delta)
    68 HbContinuousInteractionEvent::HbContinuousInteractionEvent(int eventType, const HbWidget *widget, Hb::ContinuousInteraction interaction, QPointF delta)
    71     : QEvent((QEvent::Type)eventType), m_widget(widget), m_interaction(interaction), m_delta(delta)
    69     : QEvent((QEvent::Type)eventType), m_widget(widget), m_interaction(interaction), m_delta(delta)
    72 {
    70 {
    73 }
    71 }
    74 
    72 
    75 HbContinuousInteractionEvent::~HbContinuousInteractionEvent()
    73 HbContinuousInteractionEvent::~HbContinuousInteractionEvent()
    76 {
    74 {
    77 }
    75 }
    78