diff options
Diffstat (limited to 'utils/rbutilqt/base/rockboxinfo.h')
-rw-r--r-- | utils/rbutilqt/base/rockboxinfo.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/utils/rbutilqt/base/rockboxinfo.h b/utils/rbutilqt/base/rockboxinfo.h new file mode 100644 index 0000000000..af5cf227f7 --- /dev/null +++ b/utils/rbutilqt/base/rockboxinfo.h | |||
@@ -0,0 +1,54 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Dominik Wenger | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License | ||
13 | * as published by the Free Software Foundation; either version 2 | ||
14 | * of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | |||
22 | #ifndef ROCKBOXINFO_H | ||
23 | #define ROCKBOXINFO_H | ||
24 | |||
25 | #include <QString> | ||
26 | |||
27 | class RockboxInfo | ||
28 | { | ||
29 | public: | ||
30 | RockboxInfo(QString mountpoint, QString fname = "/.rockbox/rockbox-info.txt"); | ||
31 | |||
32 | QString version() {return m_version;} | ||
33 | QString features(){return m_features;} | ||
34 | QString targetID() {return m_targetid;} | ||
35 | QString target() {return m_target;} | ||
36 | int ram() { return m_ram; } | ||
37 | int voicefmt() { return m_voicefmt; } | ||
38 | bool success() { return m_success; } | ||
39 | QString revision(void) { return m_revision; } | ||
40 | QString release(void) { return m_release; } | ||
41 | private: | ||
42 | QString m_version; | ||
43 | QString m_revision; | ||
44 | QString m_release; | ||
45 | QString m_features; | ||
46 | QString m_targetid; | ||
47 | QString m_target; | ||
48 | int m_ram; | ||
49 | int m_voicefmt; | ||
50 | bool m_success; | ||
51 | }; | ||
52 | |||
53 | #endif | ||
54 | |||