diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2011-11-09 09:07:58 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-09 02:30:55 +0100 |
commit | 2d75ee6c831ecab52e94313675d48a318ef592e2 (patch) | |
tree | e290f91b11702082fa7ef8927fecefadb89e9053 /src/sensors/gestures | |
parent | 1452d2a4a691f92f32c35e0f8017c1f0adf4257d (diff) | |
download | qtsensors-2d75ee6c831ecab52e94313675d48a318ef592e2.tar.gz |
make one public way to control recognizer
Since pointers to the recognizers can be gotten from the manager, the
methods to control the recognizers that have reference counting should
be the public accessable ones. Make the virtual methods protected.
Change-Id: I176315272ded9d5917133ec7cd329c537445b190
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/sensors/gestures')
-rw-r--r-- | src/sensors/gestures/qsensorgesturerecognizer.cpp | 1 | ||||
-rw-r--r-- | src/sensors/gestures/qsensorgesturerecognizer.h | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/sensors/gestures/qsensorgesturerecognizer.cpp b/src/sensors/gestures/qsensorgesturerecognizer.cpp index e635ee3..95d52be 100644 --- a/src/sensors/gestures/qsensorgesturerecognizer.cpp +++ b/src/sensors/gestures/qsensorgesturerecognizer.cpp @@ -128,7 +128,6 @@ QSensorGestureRecognizer::QSensorGestureRecognizer(QObject *parent) */ QSensorGestureRecognizer::~QSensorGestureRecognizer() { - Q_ASSERT(d_ptr->count == 0); delete d_ptr; } diff --git a/src/sensors/gestures/qsensorgesturerecognizer.h b/src/sensors/gestures/qsensorgesturerecognizer.h index a6726d6..336fddc 100644 --- a/src/sensors/gestures/qsensorgesturerecognizer.h +++ b/src/sensors/gestures/qsensorgesturerecognizer.h @@ -62,10 +62,6 @@ public: virtual bool isActive() = 0; - virtual void create() = 0; - virtual bool start() = 0; - virtual bool stop() = 0; - void startBackend(); void stopBackend(); void createBackend(); @@ -75,6 +71,11 @@ public: Q_SIGNALS: void detected(const QString &); +protected: + virtual void create() = 0; + virtual bool start() = 0; + virtual bool stop() = 0; + private: QSensorGestureRecognizerPrivate * d_ptr; }; |