summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/bundle.h
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2016-02-11 23:55:16 +0100
committerAndrew Branson <andrew.branson@cern.ch>2016-02-11 23:55:16 +0100
commit29aaea2d80a9eb1715b6cddfac2d2aacf76358bd (patch)
tree012795b6bec16c72f38d33cff46324c9a0225868 /rockworkd/libpebble/bundle.h
launchpad ~mzanetti/rockwork/trunk r87
Diffstat (limited to 'rockworkd/libpebble/bundle.h')
-rw-r--r--rockworkd/libpebble/bundle.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/rockworkd/libpebble/bundle.h b/rockworkd/libpebble/bundle.h
new file mode 100644
index 0000000..5ff5a16
--- /dev/null
+++ b/rockworkd/libpebble/bundle.h
@@ -0,0 +1,33 @@
+#ifndef BUNDLE_H
+#define BUNDLE_H
+
+#include <QString>
+
+#include "enums.h"
+
+class Bundle
+{
+public:
+ enum FileType {
+ FileTypeAppInfo,
+ FileTypeJsApp,
+ FileTypeManifest,
+ FileTypeApplication,
+ FileTypeResources,
+ FileTypeWorker,
+ FileTypeFirmware
+ };
+
+ Bundle(const QString &path = QString());
+
+ QString path() const;
+
+ QString file(FileType type, HardwarePlatform hardwarePlatform = HardwarePlatformUnknown) const;
+ quint32 crc(FileType type, HardwarePlatform hardwarePlatform = HardwarePlatformUnknown) const;
+
+private:
+ QString m_path;
+
+};
+
+#endif // BUNDLE_H