diff options
Diffstat (limited to 'rbutil/rbutilqt/installbootloader.h')
-rw-r--r-- | rbutil/rbutilqt/installbootloader.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/rbutil/rbutilqt/installbootloader.h b/rbutil/rbutilqt/installbootloader.h index 496389e9dc..03b715c15e 100644 --- a/rbutil/rbutilqt/installbootloader.h +++ b/rbutil/rbutilqt/installbootloader.h | |||
@@ -16,7 +16,7 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | 19 | ||
20 | #ifndef INSTALLBOOTLOADER_H | 20 | #ifndef INSTALLBOOTLOADER_H |
21 | #define INSTALLBOOTLOADER_H | 21 | #define INSTALLBOOTLOADER_H |
22 | 22 | ||
@@ -38,14 +38,14 @@ bool initSansapatcher(); | |||
38 | class BootloaderInstaller : public QObject | 38 | class BootloaderInstaller : public QObject |
39 | { | 39 | { |
40 | Q_OBJECT | 40 | Q_OBJECT |
41 | 41 | ||
42 | public: | 42 | public: |
43 | BootloaderInstaller(QObject* parent); | 43 | BootloaderInstaller(QObject* parent); |
44 | ~BootloaderInstaller() {} | 44 | ~BootloaderInstaller() {} |
45 | 45 | ||
46 | void install(ProgressloggerInterface* dp); | 46 | void install(ProgressloggerInterface* dp); |
47 | void uninstall(ProgressloggerInterface* dp); | 47 | void uninstall(ProgressloggerInterface* dp); |
48 | 48 | ||
49 | void setMountPoint(QString mountpoint) {m_mountpoint = mountpoint;} | 49 | void setMountPoint(QString mountpoint) {m_mountpoint = mountpoint;} |
50 | void setProxy(QUrl proxy) {m_proxy= proxy;} | 50 | void setProxy(QUrl proxy) {m_proxy= proxy;} |
51 | void setDevice(QString device) {m_device= device;} //!< the current plattform | 51 | void setDevice(QString device) {m_device= device;} //!< the current plattform |
@@ -56,14 +56,14 @@ public: | |||
56 | void setBootloaderInfoUrl(QString url) {m_bootloaderinfoUrl =url; } //!< the url for the info file | 56 | void setBootloaderInfoUrl(QString url) {m_bootloaderinfoUrl =url; } //!< the url for the info file |
57 | bool downloadInfo(); //!< should be called before install/uninstall, blocks until downloaded. | 57 | bool downloadInfo(); //!< should be called before install/uninstall, blocks until downloaded. |
58 | bool uptodate(); //!< returns wether the bootloader is uptodate | 58 | bool uptodate(); //!< returns wether the bootloader is uptodate |
59 | 59 | ||
60 | signals: | 60 | signals: |
61 | void done(bool error); //installation finished. | 61 | void done(bool error); //installation finished. |
62 | 62 | ||
63 | signals: // internal signals. Dont use this from out side. | 63 | signals: // internal signals. Dont use this from out side. |
64 | void prepare(); | 64 | void prepare(); |
65 | void finish(); | 65 | void finish(); |
66 | 66 | ||
67 | private slots: | 67 | private slots: |
68 | void createInstallLog(); // adds the bootloader entry to the log | 68 | void createInstallLog(); // adds the bootloader entry to the log |
69 | void removeInstallLog(); // removes the bootloader entry from the log | 69 | void removeInstallLog(); // removes the bootloader entry from the log |
@@ -74,23 +74,23 @@ private slots: | |||
74 | void infoDownloadDone(bool); | 74 | void infoDownloadDone(bool); |
75 | void infoRequestFinished(int, bool); | 75 | void infoRequestFinished(int, bool); |
76 | void installEnded(bool); | 76 | void installEnded(bool); |
77 | 77 | ||
78 | // gigabeat specific routines | 78 | // gigabeat specific routines |
79 | void gigabeatPrepare(); | 79 | void gigabeatPrepare(); |
80 | void gigabeatFinish(); | 80 | void gigabeatFinish(); |
81 | 81 | ||
82 | //iaudio specific routines | 82 | //iaudio specific routines |
83 | void iaudioPrepare(); | 83 | void iaudioPrepare(); |
84 | void iaudioFinish(); | 84 | void iaudioFinish(); |
85 | 85 | ||
86 | //h10 specific routines | 86 | //h10 specific routines |
87 | void h10Prepare(); | 87 | void h10Prepare(); |
88 | void h10Finish(); | 88 | void h10Finish(); |
89 | 89 | ||
90 | //ipod specific routines | 90 | //ipod specific routines |
91 | void ipodPrepare(); | 91 | void ipodPrepare(); |
92 | void ipodFinish(); | 92 | void ipodFinish(); |
93 | 93 | ||
94 | //sansa specific routines | 94 | //sansa specific routines |
95 | void sansaPrepare(); | 95 | void sansaPrepare(); |
96 | void sansaFinish(); | 96 | void sansaFinish(); |
@@ -98,25 +98,25 @@ private slots: | |||
98 | //iriver specific routines | 98 | //iriver specific routines |
99 | void iriverPrepare(); | 99 | void iriverPrepare(); |
100 | void iriverFinish(); | 100 | void iriverFinish(); |
101 | 101 | ||
102 | private: | 102 | private: |
103 | 103 | ||
104 | HttpGet *infodownloader; | 104 | HttpGet *infodownloader; |
105 | QTemporaryFile bootloaderInfo; | 105 | QTemporaryFile bootloaderInfo; |
106 | volatile bool infoDownloaded; | 106 | volatile bool infoDownloaded; |
107 | volatile bool infoError; | 107 | volatile bool infoError; |
108 | 108 | ||
109 | QString m_mountpoint, m_device,m_bootloadermethod,m_bootloadername; | 109 | QString m_mountpoint, m_device,m_bootloadermethod,m_bootloadername; |
110 | QString m_bootloaderUrlBase,m_tempfilename,m_origfirmware; | 110 | QString m_bootloaderUrlBase,m_tempfilename,m_origfirmware; |
111 | QUrl m_proxy; | 111 | QUrl m_proxy; |
112 | QString m_bootloaderinfoUrl; | 112 | QString m_bootloaderinfoUrl; |
113 | bool m_install; | 113 | bool m_install; |
114 | 114 | ||
115 | int series,table_entry; // for fwpatcher | 115 | int series,table_entry; // for fwpatcher |
116 | 116 | ||
117 | HttpGet *getter; | 117 | HttpGet *getter; |
118 | QTemporaryFile downloadFile; | 118 | QTemporaryFile downloadFile; |
119 | 119 | ||
120 | ProgressloggerInterface* m_dp; | 120 | ProgressloggerInterface* m_dp; |
121 | 121 | ||
122 | }; | 122 | }; |