summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/apps/appentry.h
diff options
context:
space:
mode:
Diffstat (limited to 'wayland/democompositor/apps/appentry.h')
-rw-r--r--wayland/democompositor/apps/appentry.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/wayland/democompositor/apps/appentry.h b/wayland/democompositor/apps/appentry.h
index 6de410c..cb7a727 100644
--- a/wayland/democompositor/apps/appentry.h
+++ b/wayland/democompositor/apps/appentry.h
@@ -50,17 +50,27 @@
#pragma once
+#include <QtCore/QObject>
#include <QtCore/QString>
/**
* A const representatation of an application entry. Members include
* executable name, path, icon and other information in the future.
*/
-struct AppEntry {
+class AppEntry {
+ Q_GADGET
+ Q_PROPERTY(QString iconName MEMBER iconName CONSTANT)
+ Q_PROPERTY(QString appName MEMBER appName CONSTANT)
+ Q_PROPERTY(QString executableName MEMBER executableName CONSTANT)
+ Q_PROPERTY(QString executablePath MEMBER executablePath CONSTANT)
+public:
const QString iconName;
const QString appName;
const QString executableName;
const QString executablePath;
+ const QString sourceFileName;
static AppEntry empty();
};
+
+Q_DECLARE_METATYPE(AppEntry)