summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-01-25 17:48:38 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-01-25 17:48:38 +0000
commit6343111e00da93a8b792b4e6245184be31b8feff (patch)
tree531790bb8bebad377717a66f390f097da83a91de
parent07894de36dd2af7054db87fc00dc953f73c72f0d (diff)
downloadrockbox-6343111e00da93a8b792b4e6245184be31b8feff.tar.gz
rockbox-6343111e00da93a8b792b4e6245184be31b8feff.zip
Remove "needsbootloader" configuration value as it is implicitly available from "bootloadermethod". Explicitly use bootloadermethod "none" if no bootloader is needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19855 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/rbsettings.cpp15
-rw-r--r--rbutil/rbutilqt/rbsettings.h13
-rw-r--r--rbutil/rbutilqt/rbutil.ini47
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp6
4 files changed, 19 insertions, 62 deletions
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp
index 28e507fd6a..45e61bee51 100644
--- a/rbutil/rbutilqt/rbsettings.cpp
+++ b/rbutil/rbutilqt/rbsettings.cpp
@@ -81,23 +81,12 @@ QString RbSettings::curVersion()
81{ 81{
82 return userSettings->value("rbutil_version").toString(); 82 return userSettings->value("rbutil_version").toString();
83} 83}
84 84
85bool RbSettings::cacheOffline() 85bool RbSettings::cacheOffline()
86{ 86{
87 return userSettings->value("offline").toBool(); 87 return userSettings->value("offline").toBool();
88} 88}
89 89
90bool RbSettings::curNeedsBootloader()
91{
92 QString result = deviceSettingCurGet("needsbootloader", "").toString();
93 if( result == "no")
94 {
95 return false;
96 }
97 else
98 return true;
99}
100
101QString RbSettings::mountpoint() 90QString RbSettings::mountpoint()
102{ 91{
103 return userSettings->value("mountpoint").toString(); 92 return userSettings->value("mountpoint").toString();
@@ -228,7 +217,7 @@ QString RbSettings::curManual()
228 217
229QString RbSettings::curBootloaderMethod() 218QString RbSettings::curBootloaderMethod()
230{ 219{
231 return deviceSettingCurGet("bootloadermethod").toString(); 220 return deviceSettingCurGet("bootloadermethod", "none").toString();
232} 221}
233 222
234QString RbSettings::curBootloaderName() 223QString RbSettings::curBootloaderName()
diff --git a/rbutil/rbutilqt/rbsettings.h b/rbutil/rbutilqt/rbsettings.h
index beea602977..afa1900e7b 100644
--- a/rbutil/rbutilqt/rbsettings.h
+++ b/rbutil/rbutilqt/rbsettings.h
@@ -79,7 +79,7 @@ class RbSettings : public QObject
79 int encoderComplexity(QString enc); 79 int encoderComplexity(QString enc);
80 double encoderVolume(QString enc); 80 double encoderVolume(QString enc);
81 bool encoderNarrowband(QString enc); 81 bool encoderNarrowband(QString enc);
82 82
83 QStringList allPlatforms(); 83 QStringList allPlatforms();
84 QString name(QString plattform); 84 QString name(QString plattform);
85 QString brand(QString plattform); 85 QString brand(QString plattform);
@@ -88,8 +88,7 @@ class RbSettings : public QObject
88 QMap<int, QString> usbIdMap(); 88 QMap<int, QString> usbIdMap();
89 QMap<int, QString> usbIdErrorMap(); 89 QMap<int, QString> usbIdErrorMap();
90 QMap<int, QString> usbIdIncompatMap(); 90 QMap<int, QString> usbIdIncompatMap();
91 91
92 bool curNeedsBootloader();
93 QString curBrand(); 92 QString curBrand();
94 QString curName(); 93 QString curName();
95 QString curPlatform(); 94 QString curPlatform();
@@ -135,21 +134,21 @@ class RbSettings : public QObject
135 void setEncoderNarrowband(QString enc,bool nb); 134 void setEncoderNarrowband(QString enc,bool nb);
136 135
137 private: 136 private:
138 137
139 //! helper function to get an entry in the current platform section 138 //! helper function to get an entry in the current platform section
140 QVariant deviceSettingCurGet(QString entry,QString def=""); 139 QVariant deviceSettingCurGet(QString entry,QString def="");
141 //! helper function to get an entry out of a group in the userSettings 140 //! helper function to get an entry out of a group in the userSettings
142 QVariant userSettingsGroupGet(QString group,QString entry,QVariant def=""); 141 QVariant userSettingsGroupGet(QString group,QString entry,QVariant def="");
143 //! helper function to set an entry in a group in the userSettings 142 //! helper function to set an entry in a group in the userSettings
144 void userSettingsGroupSet(QString group,QString entry,QVariant value); 143 void userSettingsGroupSet(QString group,QString entry,QVariant value);
145 144
146 145
147 //! private copy constructors to prvent copying 146 //! private copy constructors to prvent copying
148 RbSettings& operator= (const RbSettings& other) 147 RbSettings& operator= (const RbSettings& other)
149 { (void)other; return *this; } 148 { (void)other; return *this; }
150 RbSettings(const RbSettings& other) :QObject() 149 RbSettings(const RbSettings& other) :QObject()
151 { (void)other; } 150 { (void)other; }
152 151
153 //! pointers to our setting objects 152 //! pointers to our setting objects
154 QSettings *devices; 153 QSettings *devices;
155 QSettings *userSettings; 154 QSettings *userSettings;
diff --git a/rbutil/rbutilqt/rbutil.ini b/rbutil/rbutilqt/rbutil.ini
index fb500d4345..8bd93f0ca1 100644
--- a/rbutil/rbutilqt/rbutil.ini
+++ b/rbutil/rbutilqt/rbutil.ini
@@ -52,8 +52,7 @@ platform60=mrobe100
52[player] 52[player]
53name="Jukebox Player 6000 / Jukebox Studio 5 / 10 / 20" 53name="Jukebox Player 6000 / Jukebox Studio 5 / 10 / 20"
54platform=player 54platform=player
55needsbootloader=no 55bootloadermethod=none
56bootloadermethod=
57bootloadername= 56bootloadername=
58resolution=11x2x1 57resolution=11x2x1
59manualname= 58manualname=
@@ -65,8 +64,7 @@ encoder=lame
65[recorder] 64[recorder]
66name="Jukebox Recorder 6 / 10 / 15 / 20" 65name="Jukebox Recorder 6 / 10 / 15 / 20"
67platform=recorder 66platform=recorder
68needsbootloader=no 67bootloadermethod=none
69bootloadermethod=
70bootloadername= 68bootloadername=
71resolution=112x64x1 69resolution=112x64x1
72manualname= 70manualname=
@@ -78,8 +76,7 @@ encoder=lame
78[recorder8mb] 76[recorder8mb]
79name="Jukebox Recorder 6 / 10 / 15 / 20 (with 8MiB memory)" 77name="Jukebox Recorder 6 / 10 / 15 / 20 (with 8MiB memory)"
80platform=recorder8mb 78platform=recorder8mb
81needsbootloader=no 79bootloadermethod=none
82bootloadermethod=
83bootloadername= 80bootloadername=
84resolution=112x64x1 81resolution=112x64x1
85manualname=rockbox-recorder 82manualname=rockbox-recorder
@@ -91,8 +88,7 @@ encoder=lame
91[recorderv2] 88[recorderv2]
92name="Jukebox Recorder v2 (20GB)" 89name="Jukebox Recorder v2 (20GB)"
93platform=recorderv2 90platform=recorderv2
94needsbootloader=no 91bootloadermethod=none
95bootloadermethod=
96bootloadername= 92bootloadername=
97resolution=112x64x1 93resolution=112x64x1
98manualname= 94manualname=
@@ -104,8 +100,7 @@ encoder=lame
104[fmrecorder] 100[fmrecorder]
105name="Jukebox Recorder FM" 101name="Jukebox Recorder FM"
106platform=fmrecorder 102platform=fmrecorder
107needsbootloader=no 103bootloadermethod=none
108bootloadermethod=
109bootloadername= 104bootloadername=
110resolution=112x64x1 105resolution=112x64x1
111manualname= 106manualname=
@@ -117,8 +112,7 @@ encoder=lame
117[fmrecorder8mb] 112[fmrecorder8mb]
118name="Jukebox Recorder FM (with 8MiB memory)" 113name="Jukebox Recorder FM (with 8MiB memory)"
119platform=fmrecorder8mb 114platform=fmrecorder8mb
120needsbootloader=no 115bootloadermethod=none
121bootloadermethod=
122bootloadername= 116bootloadername=
123resolution=112x64x1 117resolution=112x64x1
124manualname=rockbox-fmrecorder 118manualname=rockbox-fmrecorder
@@ -130,8 +124,7 @@ encoder=lame
130[ondiosp] 124[ondiosp]
131name="Ondio SP" 125name="Ondio SP"
132platform=ondiosp 126platform=ondiosp
133needsbootloader=no 127bootloadermethod=none
134bootloadermethod=
135bootloadername= 128bootloadername=
136resolution=112x64x1 129resolution=112x64x1
137manualname= 130manualname=
@@ -143,8 +136,7 @@ encoder=lame
143[ondiofm] 136[ondiofm]
144name="Ondio FM" 137name="Ondio FM"
145platform=ondiofm 138platform=ondiofm
146needsbootloader=no 139bootloadermethod=none
147bootloadermethod=
148bootloadername= 140bootloadername=
149resolution=112x64x1 141resolution=112x64x1
150manualname= 142manualname=
@@ -156,7 +148,6 @@ encoder=lame
156[h100] 148[h100]
157name="iHP100 / iHP110" 149name="iHP100 / iHP110"
158platform=h100 150platform=h100
159needsbootloader=yes
160bootloadermethod=hex 151bootloadermethod=hex
161bootloadername=/iriver/bootloader-h100.bin 152bootloadername=/iriver/bootloader-h100.bin
162bootloaderfile=/ihp_100.hex 153bootloaderfile=/ihp_100.hex
@@ -171,7 +162,6 @@ encoder=rbspeex
171[h120] 162[h120]
172name="iHP120 / iHP140 / H120 / H140" 163name="iHP120 / iHP140 / H120 / H140"
173platform=h120 164platform=h120
174needsbootloader=yes
175bootloadermethod=hex 165bootloadermethod=hex
176bootloadername=/iriver/bootloader-h120.bin 166bootloadername=/iriver/bootloader-h120.bin
177bootloaderfile=/ihp_120.hex 167bootloaderfile=/ihp_120.hex
@@ -186,7 +176,6 @@ encoder=rbspeex
186[h300] 176[h300]
187name="H320 / H340" 177name="H320 / H340"
188platform=h300 178platform=h300
189needsbootloader=yes
190bootloadermethod=hex 179bootloadermethod=hex
191bootloadername=/iriver/bootloader-h300.bin 180bootloadername=/iriver/bootloader-h300.bin
192bootloaderfile=/H300.hex 181bootloaderfile=/H300.hex
@@ -201,7 +190,6 @@ encoder=rbspeex
201[h10_5gbums] 190[h10_5gbums]
202name="H10 (5 / 6GB) UMS" 191name="H10 (5 / 6GB) UMS"
203platform=h10_5gb 192platform=h10_5gb
204needsbootloader=yes
205bootloadermethod=mi4 193bootloadermethod=mi4
206bootloadername=/iriver/H10.mi4 194bootloadername=/iriver/H10.mi4
207bootloaderfile=/System/H10.mi4 195bootloaderfile=/System/H10.mi4
@@ -216,7 +204,6 @@ encoder=rbspeex
216[h10_5gbmtp] 204[h10_5gbmtp]
217name="H10 (5 / 6GB) MTP" 205name="H10 (5 / 6GB) MTP"
218platform=h10_5gb 206platform=h10_5gb
219needsbootloader=yes
220bootloadermethod=mi4 207bootloadermethod=mi4
221bootloadername=/iriver/H10_5GB-MTP/H10.mi4 208bootloadername=/iriver/H10_5GB-MTP/H10.mi4
222bootloaderfile=/System/H10.mi4 209bootloaderfile=/System/H10.mi4
@@ -231,7 +218,6 @@ encoder=rbspeex
231[h10] 218[h10]
232name="H10 (20GB)" 219name="H10 (20GB)"
233platform=h10 220platform=h10
234needsbootloader=yes
235bootloadermethod=mi4 221bootloadermethod=mi4
236bootloadername=/iriver/H10_20GC.mi4 222bootloadername=/iriver/H10_20GC.mi4
237bootloaderfile=/System/H10_20GC.mi4 223bootloaderfile=/System/H10_20GC.mi4
@@ -247,7 +233,6 @@ encoder=rbspeex
247[ipod1g2g] 233[ipod1g2g]
248name="Ipod (1st / 2nd gen)" 234name="Ipod (1st / 2nd gen)"
249platform=ipod1g2g 235platform=ipod1g2g
250needsbootloader=yes
251bootloadermethod=ipod 236bootloadermethod=ipod
252bootloadername=/ipod/bootloader-ipod1g2g.ipod 237bootloadername=/ipod/bootloader-ipod1g2g.ipod
253resolution=160x128x2 238resolution=160x128x2
@@ -260,7 +245,6 @@ encoder=rbspeex
260[ipodcolor] 245[ipodcolor]
261name="Ipod Colour / Photo / U2 (4th gen)" 246name="Ipod Colour / Photo / U2 (4th gen)"
262platform=ipodcolor 247platform=ipodcolor
263needsbootloader=yes
264bootloadermethod=ipod 248bootloadermethod=ipod
265bootloadername=/ipod/bootloader-ipodcolor.ipod 249bootloadername=/ipod/bootloader-ipodcolor.ipod
266resolution=220x176x16 250resolution=220x176x16
@@ -273,7 +257,6 @@ encoder=rbspeex
273[ipodnano] 257[ipodnano]
274name="Ipod Nano (1st gen)" 258name="Ipod Nano (1st gen)"
275platform=ipodnano 259platform=ipodnano
276needsbootloader=yes
277bootloadermethod=ipod 260bootloadermethod=ipod
278bootloadername=/ipod/bootloader-ipodnano.ipod 261bootloadername=/ipod/bootloader-ipodnano.ipod
279resolution=176x132x16 262resolution=176x132x16
@@ -287,7 +270,6 @@ encoder=rbspeex
287[ipod4gray] 270[ipod4gray]
288name="Ipod (4th gen, greyscale)" 271name="Ipod (4th gen, greyscale)"
289platform=ipod4gray 272platform=ipod4gray
290needsbootloader=yes
291bootloadermethod=ipod 273bootloadermethod=ipod
292bootloadername=/ipod/bootloader-ipod4g.ipod 274bootloadername=/ipod/bootloader-ipod4g.ipod
293resolution=160x128x2 275resolution=160x128x2
@@ -300,7 +282,6 @@ encoder=rbspeex
300[ipodvideo] 282[ipodvideo]
301name="Ipod Video (5th gen) 30GB" 283name="Ipod Video (5th gen) 30GB"
302platform=ipodvideo 284platform=ipodvideo
303needsbootloader=yes
304bootloadermethod=ipod 285bootloadermethod=ipod
305bootloadername=/ipod/bootloader-ipodvideo.ipod 286bootloadername=/ipod/bootloader-ipodvideo.ipod
306resolution=320x240x16 287resolution=320x240x16
@@ -313,7 +294,6 @@ encoder=rbspeex
313[ipodvideo64mb] 294[ipodvideo64mb]
314name="Ipod Video (5th gen) 60/80GB" 295name="Ipod Video (5th gen) 60/80GB"
315platform=ipodvideo64mb 296platform=ipodvideo64mb
316needsbootloader=yes
317bootloadermethod=ipod 297bootloadermethod=ipod
318bootloadername=/ipod/bootloader-ipodvideo.ipod 298bootloadername=/ipod/bootloader-ipodvideo.ipod
319resolution=320x240x16 299resolution=320x240x16
@@ -327,7 +307,6 @@ encoder=rbspeex
327[ipod3g] 307[ipod3g]
328name="Ipod (3rd gen)" 308name="Ipod (3rd gen)"
329platform=ipod3g 309platform=ipod3g
330needsbootloader=yes
331bootloadermethod=ipod 310bootloadermethod=ipod
332bootloadername=/ipod/bootloader-ipod3g.ipod 311bootloadername=/ipod/bootloader-ipod3g.ipod
333resolution=160x128x2 312resolution=160x128x2
@@ -341,7 +320,6 @@ encoder=rbspeex
341[ipodmini1g] 320[ipodmini1g]
342name="Ipod Mini (1st gen)" 321name="Ipod Mini (1st gen)"
343platform=ipodmini1g 322platform=ipodmini1g
344needsbootloader=yes
345bootloadermethod=ipod 323bootloadermethod=ipod
346bootloadername=/ipod/bootloader-ipodmini.ipod 324bootloadername=/ipod/bootloader-ipodmini.ipod
347resolution=138x110x2 325resolution=138x110x2
@@ -354,7 +332,6 @@ encoder=rbspeex
354[ipodmini2g] 332[ipodmini2g]
355name="Ipod Mini (2nd gen)" 333name="Ipod Mini (2nd gen)"
356platform=ipodmini2g 334platform=ipodmini2g
357needsbootloader=yes
358bootloadermethod=ipod 335bootloadermethod=ipod
359bootloadername=/ipod/bootloader-ipodmini2g.ipod 336bootloadername=/ipod/bootloader-ipodmini2g.ipod
360resolution=138x110x2 337resolution=138x110x2
@@ -367,7 +344,6 @@ encoder=rbspeex
367[iaudiox5] 344[iaudiox5]
368name="iAudio X5 / X5L" 345name="iAudio X5 / X5L"
369platform=iaudiox5 346platform=iaudiox5
370needsbootloader=yes
371bootloadermethod=file 347bootloadermethod=file
372bootloadername=/iaudio/x5_fw.bin 348bootloadername=/iaudio/x5_fw.bin
373bootloaderfile=/FIRMWARE/x5_fw.bin 349bootloaderfile=/FIRMWARE/x5_fw.bin
@@ -382,7 +358,6 @@ encoder=rbspeex
382[iaudiox5v] 358[iaudiox5v]
383name="iAudio X5V" 359name="iAudio X5V"
384platform=iaudiox5 360platform=iaudiox5
385needsbootloader=yes
386bootloadermethod=file 361bootloadermethod=file
387bootloadername=/iaudio/x5v_fw.bin 362bootloadername=/iaudio/x5v_fw.bin
388bootloaderfile=/FIRMWARE/x5v_fw.bin 363bootloaderfile=/FIRMWARE/x5v_fw.bin
@@ -396,7 +371,6 @@ encoder=rbspeex
396[iaudiom5] 371[iaudiom5]
397name="iAudio M5 / M5L" 372name="iAudio M5 / M5L"
398platform=iaudiom5 373platform=iaudiom5
399needsbootloader=yes
400bootloadermethod=file 374bootloadermethod=file
401bootloadername=/iaudio/m5_fw.bin 375bootloadername=/iaudio/m5_fw.bin
402bootloaderfile=/FIRMWARE/m5_fw.bin 376bootloaderfile=/FIRMWARE/m5_fw.bin
@@ -411,7 +385,6 @@ encoder=rbspeex
411[iaudiom3] 385[iaudiom3]
412name="iAudio M3 / M3L" 386name="iAudio M3 / M3L"
413platform=iaudiom3 387platform=iaudiom3
414needsbootloader=yes
415bootloadermethod=file 388bootloadermethod=file
416bootloadername=/iaudio/cowon_m3.bin 389bootloadername=/iaudio/cowon_m3.bin
417bootloaderfile=/FIRMWARE/cowon_m3.bin 390bootloaderfile=/FIRMWARE/cowon_m3.bin
@@ -426,7 +399,6 @@ encoder=rbspeex
426[gigabeatf] 399[gigabeatf]
427name="Gigabeat F / X" 400name="Gigabeat F / X"
428platform=gigabeatf 401platform=gigabeatf
429needsbootloader=yes
430bootloadermethod=file 402bootloadermethod=file
431bootloadername=/gigabeat/FWIMG01.DAT 403bootloadername=/gigabeat/FWIMG01.DAT
432bootloaderfile=/GBSYSTEM/FWIMG/FWIMG01.DAT 404bootloaderfile=/GBSYSTEM/FWIMG/FWIMG01.DAT
@@ -441,7 +413,6 @@ encoder=rbspeex
441[sansae200] 413[sansae200]
442name="Sansa E200" 414name="Sansa E200"
443platform=sansae200 415platform=sansae200
444needsbootloader=yes
445bootloadermethod=sansa 416bootloadermethod=sansa
446bootloadername=/sandisk-sansa/e200/PP5022.mi4 417bootloadername=/sandisk-sansa/e200/PP5022.mi4
447resolution=176x220x16 418resolution=176x220x16
@@ -457,7 +428,6 @@ encoder=rbspeex
457[sansac200] 428[sansac200]
458name="Sansa C200" 429name="Sansa C200"
459platform=sansac200 430platform=sansac200
460needsbootloader=yes
461bootloadermethod=sansa 431bootloadermethod=sansa
462bootloadername=/sandisk-sansa/c200/firmware.mi4 432bootloadername=/sandisk-sansa/c200/firmware.mi4
463resolution=132x80x16 433resolution=132x80x16
@@ -471,7 +441,6 @@ encoder=rbspeex
471[mrobe100] 441[mrobe100]
472name="m:robe100" 442name="m:robe100"
473platform=mrobe100 443platform=mrobe100
474needsbootloader=yes
475bootloadermethod=mi4 444bootloadermethod=mi4
476bootloadername=/olympus/mrobe100/pp5020.mi4 445bootloadername=/olympus/mrobe100/pp5020.mi4
477bootloaderfile=/System/pp5020.mi4 446bootloaderfile=/System/pp5020.mi4
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 5ef43b6732..585ea17e78 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -315,7 +315,7 @@ void RbUtilQt::updateSettings()
315 315
316void RbUtilQt::updateDevice() 316void RbUtilQt::updateDevice()
317{ 317{
318 if(!settings->curNeedsBootloader() ) { 318 if(settings->curBootloaderMethod() == "none" ) {
319 ui.buttonBootloader->setEnabled(false); 319 ui.buttonBootloader->setEnabled(false);
320 ui.buttonRemoveBootloader->setEnabled(false); 320 ui.buttonRemoveBootloader->setEnabled(false);
321 ui.labelBootloader->setEnabled(false); 321 ui.labelBootloader->setEnabled(false);
@@ -333,7 +333,7 @@ void RbUtilQt::updateDevice()
333 ui.buttonRemoveBootloader->setEnabled(true); 333 ui.buttonRemoveBootloader->setEnabled(true);
334 } 334 }
335 } 335 }
336 336
337 // displayed device info 337 // displayed device info
338 QString mountpoint = settings->mountpoint(); 338 QString mountpoint = settings->mountpoint();
339 QString brand = settings->curBrand(); 339 QString brand = settings->curBrand();
@@ -457,7 +457,7 @@ bool RbUtilQt::smallInstallInner()
457 return true; 457 return true;
458 } 458 }
459 // Bootloader 459 // Bootloader
460 if(settings->curNeedsBootloader()) 460 if(settings->curBootloaderMethod() != "none")
461 { 461 {
462 m_error = false; 462 m_error = false;
463 m_installed = false; 463 m_installed = false;