summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/bundle.h
blob: 5ff5a16ef823249147ce8ee29a0bbb048eb3bd80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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