Code Review
/
apps
/
homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add fullscreen¬ification&information function
[apps/homescreen.git]
/
homescreen
/
src
/
homescreenhandler.h
diff --git
a/homescreen/src/homescreenhandler.h
b/homescreen/src/homescreenhandler.h
index
1a9a2b5
..
d31d6af
100644
(file)
--- a/
homescreen/src/homescreenhandler.h
+++ b/
homescreen/src/homescreenhandler.h
@@
-20,6
+20,7
@@
#include <QObject>
#include <libhomescreen.hpp>
#include <string>
#include <QObject>
#include <libhomescreen.hpp>
#include <string>
+#include <QFileInfo>
using namespace std;
using namespace std;
@@
-32,7
+33,9
@@
public:
void init(int port, const char* token);
void init(int port, const char* token);
- Q_INVOKABLE void tapShortcut(QString application_id);
+ Q_INVOKABLE void tapShortcut(QString application_id, bool is_full);
+ Q_INVOKABLE QString getCurrentApplication();
+ void setCurrentApplication(QString application_id);
void onRep(struct json_object* reply_contents);
void onEv(const string& event, struct json_object* event_contents);
void onRep(struct json_object* reply_contents);
void onEv(const string& event, struct json_object* event_contents);
@@
-40,8
+43,13
@@
public:
static void* myThis;
static void onRep_static(struct json_object* reply_contents);
static void onEv_static(const string& event, struct json_object* event_contents);
static void* myThis;
static void onRep_static(struct json_object* reply_contents);
static void onEv_static(const string& event, struct json_object* event_contents);
+
+signals:
+ void showNotification(QString application_id, QString icon_path, QString text);
+ void showInformation(QString info);
private:
LibHomeScreen *mp_hs;
private:
LibHomeScreen *mp_hs;
+ QString current_applciation;
};
#endif // HOMESCREENHANDLER_H
};
#endif // HOMESCREENHANDLER_H