diff options
Diffstat (limited to 'SDL_Core/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp')
-rw-r--r-- | SDL_Core/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/SDL_Core/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp b/SDL_Core/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp deleted file mode 100644 index a89d1efcb..000000000 --- a/SDL_Core/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "fordsdlcore_plugin.h" -#include "smartdevicelink.h" -#include <QDebug> -#include <qqml.h> -#include "sdlalert.h" -#include <QQmlEngine> -#include <QQmlContext> - -QObject* sdlSingleton(QQmlEngine * engine, QJSEngine * js) { - Q_UNUSED(engine) - Q_UNUSED(js) - - engine->rootContext()->setContextProperty("MediaApps", SmartDeviceLink::getInstance().getMediaApps()); - - return (QObject *) &SmartDeviceLink::getInstance(); -} - -QObject* mediaAppsSingleton(QQmlEngine * engine, QJSEngine * js) { - Q_UNUSED(engine) - Q_UNUSED(js) - - return (QObject *) SmartDeviceLink::getInstance().getMediaApps(); -} - -void FordSdlCorePlugin::registerTypes(const char *uri) -{ - qmlRegisterSingletonType<SdlAppsListModel>(uri, 1, 0, "MediaApps", mediaAppsSingleton); - qmlRegisterSingletonType<SmartDeviceLink>(uri, 1, 0, "AppLink", sdlSingleton); -} - - |