21#ifdef LOMIRI_ENABLE_TOUCH_EMULATION
22#include <MouseTouchAdaptor.h>
25#include "TouchEventSequenceWrapper.h"
30QObject *testutil_provider(QQmlEngine* , QJSEngine* )
32 return new TestUtil();
35#ifdef LOMIRI_ENABLE_TOUCH_EMULATION
36QObject *getMouseTouchAdaptorQMLSingleton(QQmlEngine* , QJSEngine* )
38 return MouseTouchAdaptor::instance();
44void LomiriTestPlugin::registerTypes(
const char *uri)
46 Q_ASSERT(QLatin1String(uri) == QLatin1String(
"Lomiri.SelfTest"));
49 qmlRegisterSingletonType<TestUtil>(uri, 0, 1,
"Util", testutil_provider);
50 qmlRegisterUncreatableType<TouchEventSequenceWrapper>(uri, 0, 1,
"TouchEventSequence",
51 "You cannot directly create a TouchEventSequence object.");
53 #ifdef LOMIRI_ENABLE_TOUCH_EMULATION
55 MouseTouchAdaptor::instance();
56 qmlRegisterSingletonType<MouseTouchAdaptor>(uri, 0, 1,
"MouseTouchAdaptor",
57 getMouseTouchAdaptorQMLSingleton);