diff options
Diffstat (limited to 'rockworkd/libpebble/bundle.h')
| -rw-r--r-- | rockworkd/libpebble/bundle.h | 33 |
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 |
