launcher: rely on applaunchd for application startup
[apps/launcher.git] / launcher / src / homescreenhandler.h
index 09b6848..616f816 100644 (file)
 #define HOMESCREENHANDLER_H
 
 #include <QObject>
-#include <libhomescreen.hpp>
+#include <QString>
+#include <QStringList>
 #include <string>
-#include <qlibwindowmanager.h>
+
+#include <json.h>
+
+#include "applaunch_interface.h"
 
 using namespace std;
 
@@ -32,24 +36,17 @@ public:
     explicit HomescreenHandler(QObject *parent = 0);
     ~HomescreenHandler();
 
-    void init(int port, const char* token, QLibWindowmanager *qwm, QString myname);
-
     Q_INVOKABLE void tapShortcut(QString application_id);
     Q_INVOKABLE void getRunnables(void);
 
     void onRep(struct json_object* reply_contents);
 
-    static void* myThis;
-    static void onRep_static(struct json_object* reply_contents);
-
 signals:
     void initAppList(QString data);
     void appListUpdate(QStringList info);
 
 private:
-    LibHomeScreen *mp_hs;
-    QLibWindowmanager *mp_qwm;
-    QString m_myname;
+    org::automotivelinux::AppLaunch *applaunch_iface;
 };
 
 #endif // HOMESCREENHANDLER_H