summaryrefslogtreecommitdiff
path: root/daemon/appmanager.cpp
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-11-30 20:58:57 +0100
committerJavier <dev.git@javispedro.com>2014-11-30 20:58:57 +0100
commitf7c8244641a4242f6a8c706bd918494b23e48075 (patch)
treef84b5ead8f4d621cf47e10489889fb9fef8b1f61 /daemon/appmanager.cpp
parent4527ab9a4147a8f15bf8ca5613341df9d0029d0c (diff)
introduce the AppMsgManager and the JsKitManager
will be used to handle application messages (push, etc) while the JSKitManager will run PebbleKit JS scripts. also add the ability to unpack PebbleDicts
Diffstat (limited to 'daemon/appmanager.cpp')
-rw-r--r--daemon/appmanager.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/daemon/appmanager.cpp b/daemon/appmanager.cpp
index 34af3af..d06681e 100644
--- a/daemon/appmanager.cpp
+++ b/daemon/appmanager.cpp
@@ -29,6 +29,21 @@ QStringList AppManager::appPaths() const
QStandardPaths::LocateDirectory);
}
+const AppManager::AppInfo & AppManager::info(const QUuid &uuid) const
+{
+ return _apps.value(uuid);
+}
+
+const AppManager::AppInfo & AppManager::info(const QString &name) const
+{
+ QUuid uuid = _names.value(name);
+ if (!uuid.isNull()) {
+ return info(uuid);
+ } else {
+ return AppInfo();
+ }
+}
+
void AppManager::rescan()
{
QStringList watchedDirs = _watcher->directories();