diff options
Diffstat (limited to 'launcher/src/applicationhandler.cpp')
-rw-r--r-- | launcher/src/applicationhandler.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/launcher/src/applicationhandler.cpp b/launcher/src/applicationhandler.cpp new file mode 100644 index 0000000..38f5220 --- /dev/null +++ b/launcher/src/applicationhandler.cpp @@ -0,0 +1,30 @@ +#include <QFileInfo> +#include <functional> + +#include "applicationhandler.h" + + +ApplicationHandler::ApplicationHandler(QObject *parent, Launcher *launcher) : + QObject(parent) +{ + m_launcher = launcher; +} + +ApplicationHandler::~ApplicationHandler() +{ +} + +size_t +ApplicationHandler::getRunnables(void) +{ + QString data; + size_t runnables = 0; + + if (m_launcher == nullptr) + return runnables; + + runnables = m_launcher->get_list_runnables(data); + emit initAppList(data); + + return runnables; +} |