XQSensorGestureRecognizer Class Reference

#include <mw/sensorgesture/xqsensorgesturerecognizer.h>

class XQSensorGestureRecognizer : public QObject, public QObject

Inherits from

  • XQSensorGestureRecognizer
    Public Member Functions
    pure virtual boolstart()
    pure virtual voidstop()
    Protected Member Functions
    XQSensorGestureRecognizer(QObject *)
    Public Signals
    voidrecognized(const QString &, const QVariantHash &)
    Inherited Attributes
    QObject::d_ptr
    QObject::objectName
    QObject::staticQtMetaObject
    Inherited Functions
    QObject::QObject(QObjectPrivate &,QObject *)
    QObject::blockSignals(bool)
    QObject::childEvent(QChildEvent *)
    QObject::children()const
    QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const
    QObject::connectNotify(const char *)
    QObject::customEvent(QEvent *)
    QObject::deleteLater
    QObject::destroyed
    QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &)
    QObject::disconnect(const QObject *,const char *)
    QObject::disconnect(const QObject *,const char *,const QObject *,const char *)
    QObject::disconnect(const char *,const QObject *,const char *)
    QObject::disconnectNotify(const char *)
    QObject::dumpObjectInfo()
    QObject::dumpObjectTree()
    QObject::dynamicPropertyNames()const
    QObject::event(QEvent *)
    QObject::eventFilter(QObject *,QEvent *)
    QObject::findChild(const QString &)const
    QObject::findChildren(const QRegExp &)const
    QObject::findChildren(const QString &)const
    QObject::inherits(const char *)const
    QObject::installEventFilter(QObject *)
    QObject::isWidgetType()const
    QObject::killTimer(int)
    QObject::moveToThread(QThread *)
    QObject::objectName()const
    QObject::parent()const
    QObject::property(const char *)const
    QObject::receivers(const char *)const
    QObject::registerUserData()
    QObject::removeEventFilter(QObject *)
    QObject::sender()const
    QObject::senderSignalIndex()const
    QObject::setObjectName(const QString &)
    QObject::setParent(QObject *)
    QObject::setProperty(const char *,const QVariant &)
    QObject::setUserData(uint,QObjectUserData *)
    QObject::signalsBlocked()const
    QObject::startTimer(int)
    QObject::thread()const
    QObject::timerEvent(QTimerEvent *)
    QObject::userData(uint)const
    QObject::~QObject()

    Detailed Description

    The XQSensorGestureRecognizer class is an interface class for sensor gesture recognizers.

    Constructor & Destructor Documentation

    XQSensorGestureRecognizer ( QObject * )

    XQSensorGestureRecognizer(QObject *parent = 0)[protected, inline, explicit]

    Constructs an XQSensorGestureRecognizer object.

    Parameters
    parentthe object to be set as parent

    Member Function Documentation

    recognized ( const QString &, const QVariantHash & )

    voidrecognized(const QString &gestureType,
    const QVariantHash &attributes
    )[signal]

    This signal is emitted when a sensor gesture has been recognized.

    Example usage: /code gestureType.append(QString("com.mycompany.gesture.drop")); attributes.insert("speed", velocity); emit recognized(gestureType, attributes); /endcode

    Parameters
    gestureTypeThe type of the recognized gesture.
    attributesThe attributes of the recognized gesture. The attributes are specified by the recognizer, and can be any attribute that fits into the domain of the recognizer. The attributes must be well documented.

    start ( )

    boolstart()[pure virtual]

    Start reporting sensor gestures. This is called by the Sensor Gesture Framework.

    Return Value
    true, if the sensor gesture recognizer is correctly started, false otherwise.

    stop ( )

    voidstop()[pure virtual]

    Stop reporting sensor gestures. This is called by the Sensor Gesture Framework.