summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-21 10:21:31 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-21 10:21:31 +0100
commitefacce58eb7239b71e9826b707b7152ba03f0347 (patch)
tree7e135882d81ba97ec828fad6e002daf58f08a425 /rbutil/rbutilqt/base
parentf29b81d5217f3ef21bbc88131bdab5227a677511 (diff)
downloadrockbox-efacce58eb7239b71e9826b707b7152ba03f0347.tar.gz
rockbox-efacce58eb7239b71e9826b707b7152ba03f0347.zip
rbutil: Modernize connect() to new pointer-to-member syntax.
Change-Id: I6bb86e34438eef10813f0d19e910599156a876e6
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallams.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallbase.cpp6
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp4
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallchinachip.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallfile.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallhex.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallimx.cpp4
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallipod.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallmi4.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallmpio.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstalls5l.cpp20
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallsansa.cpp2
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstalltcc.cpp2
13 files changed, 26 insertions, 26 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallams.cpp b/rbutil/rbutilqt/base/bootloaderinstallams.cpp
index 524ce99e98..be43ed52db 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallams.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallams.cpp
@@ -57,7 +57,7 @@ bool BootloaderInstallAms::install(void)
// download firmware from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallAms::installStage2);
downloadBlStart(m_blurl);
return true;
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
index efc61f7529..096c601b91 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
@@ -48,11 +48,11 @@ void BootloaderInstallBase::downloadBlStart(QUrl source)
{
m_http.setFile(&m_tempfile);
m_http.setCache(true);
- connect(&m_http, SIGNAL(done(bool)), this, SLOT(downloadBlFinish(bool)));
+ connect(&m_http, &HttpGet::done, this, &BootloaderInstallBase::downloadBlFinish);
// connect the http read signal to our logProgess *signal*
// to immediately emit it without any helper function.
- connect(&m_http, SIGNAL(dataReadProgress(int, int)),
- this, SIGNAL(logProgress(int, int)));
+ connect(&m_http, &HttpGet::dataReadProgress,
+ this, &BootloaderInstallBase::logProgress);
m_http.getFile(source);
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp b/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp
index f8eab408fd..02291b0151 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallbspatch.cpp
@@ -88,7 +88,7 @@ bool BootloaderInstallBSPatch::install(void)
LOG_INFO() << "downloading bootloader";
// download bootloader from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallBSPatch::installStage2);
downloadBlStart(m_blurl);
return true;
}
@@ -109,7 +109,7 @@ void BootloaderInstallBSPatch::installStage2(void)
m_thread->setOutputFile(m_patchedFile.fileName());
m_tempfile.close();
m_patchedFile.close();
- connect(m_thread, SIGNAL(finished()), this, SLOT(installStage3()));
+ connect(m_thread, &QThread::finished, this, &BootloaderInstallBSPatch::installStage3);
m_thread->start();
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallchinachip.cpp b/rbutil/rbutilqt/base/bootloaderinstallchinachip.cpp
index 32cc3c4cf1..f6af952b9a 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallchinachip.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallchinachip.cpp
@@ -49,7 +49,7 @@ bool BootloaderInstallChinaChip::install()
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallChinaChip::installStage2);
downloadBlStart(m_blurl);
return true;
diff --git a/rbutil/rbutilqt/base/bootloaderinstallfile.cpp b/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
index 209e56b4f3..bf3d5e449d 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
@@ -34,7 +34,7 @@ bool BootloaderInstallFile::install(void)
emit logItem(tr("Downloading bootloader"), LOGINFO);
LOG_INFO() << "installing bootloader";
downloadBlStart(m_blurl);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallFile::installStage2);
return true;
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallhex.cpp b/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
index 931c7dfa2e..b3dde0bbfa 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
@@ -122,7 +122,7 @@ bool BootloaderInstallHex::install(void)
// download firmware from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallHex::installStage2);
downloadBlStart(m_blurl);
return true;
diff --git a/rbutil/rbutilqt/base/bootloaderinstallimx.cpp b/rbutil/rbutilqt/base/bootloaderinstallimx.cpp
index 581d70270c..7428cf10c8 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallimx.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallimx.cpp
@@ -98,7 +98,7 @@ bool BootloaderInstallImx::install(void)
LOG_INFO() << "downloading bootloader";
// download bootloader from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallImx::installStage2);
downloadBlStart(m_blurl);
return true;
}
@@ -120,7 +120,7 @@ void BootloaderInstallImx::installStage2(void)
m_thread->setOutputFile(m_patchedFile.fileName());
m_tempfile.close();
m_patchedFile.close();
- connect(m_thread, SIGNAL(finished()), this, SLOT(installStage3()));
+ connect(m_thread, &QThread::finished, this, &BootloaderInstallImx::installStage3);
connect(m_thread, SIGNAL(terminated()), this, SLOT(installStage3()));
m_thread->start();
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
index 3535f9c69c..807c6e870b 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallipod.cpp
@@ -80,7 +80,7 @@ bool BootloaderInstallIpod::install(void)
emit logItem(tr("Downloading bootloader file"), LOGINFO);
downloadBlStart(m_blurl);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallIpod::installStage2);
return true;
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp b/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp
index 597c3ac37b..2657347b87 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp
@@ -34,7 +34,7 @@ bool BootloaderInstallMi4::install(void)
emit logItem(tr("Downloading bootloader"), LOGINFO);
LOG_INFO() << "installing bootloader";
downloadBlStart(m_blurl);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallMi4::installStage2);
return true;
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
index 9984366139..863418e591 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
@@ -52,7 +52,7 @@ bool BootloaderInstallMpio::install(void)
// download firmware from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallMpio::installStage2);
downloadBlStart(m_blurl);
return true;
diff --git a/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp b/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp
index 013abb2f5e..e8852d6df5 100644
--- a/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp
@@ -66,7 +66,7 @@ bool BootloaderInstallS5l::installStage1(void)
if (doInstall) {
// download firmware from server
emit logItem(tr("Downloading bootloader file..."), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStageMkdfu()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallS5l::installStageMkdfu);
downloadBlStart(m_blurl);
}
else {
@@ -87,8 +87,8 @@ void BootloaderInstallS5l::installStageMkdfu(void)
setProgress(0);
aborted = false;
- connect(this, SIGNAL(installAborted()), this, SLOT(abortInstall()));
- connect(this, SIGNAL(done(bool)), this, SLOT(installDone(bool)));
+ connect(this, &BootloaderInstallBase::installAborted, this, &BootloaderInstallS5l::abortInstall);
+ connect(this, &BootloaderInstallBase::done, this, &BootloaderInstallS5l::installDone);
if (doInstall) {
dfu_type = DFU_INST;
@@ -142,7 +142,7 @@ void BootloaderInstallS5l::installStageWaitForEject(void)
LOGWARNING);
actionShown = true;
}
- QTimer::singleShot(250, this, SLOT(installStageWaitForEject()));
+ QTimer::singleShot(250, this, &BootloaderInstallS5l::installStageWaitForEject);
return;
}
emit logItem(tr("Device successfully ejected."), LOGINFO);
@@ -169,7 +169,7 @@ void BootloaderInstallS5l::installStageWaitForProcs(void)
" Quit iTunes application."), LOGWARNING);
actionShown = true;
}
- QTimer::singleShot(250, this, SLOT(installStageWaitForProcs()));
+ QTimer::singleShot(250, this, &BootloaderInstallS5l::installStageWaitForProcs);
return;
}
if (actionShown) {
@@ -206,7 +206,7 @@ void BootloaderInstallS5l::installStageWaitForSpindown(void)
return; /* aborted */
if (progressTimer.elapsed() < progressTimeout) {
- QTimer::singleShot(250, this, SLOT(installStageWaitForSpindown()));
+ QTimer::singleShot(250, this, &BootloaderInstallS5l::installStageWaitForSpindown);
return;
}
@@ -232,7 +232,7 @@ void BootloaderInstallS5l::installStageWaitForDfu(void)
scanTimer.start();
}
if (!scanSuccess) {
- QTimer::singleShot(250, this, SLOT(installStageWaitForDfu()));
+ QTimer::singleShot(250, this, &BootloaderInstallS5l::installStageWaitForDfu);
return;
}
emit logItem(tr("DFU mode detected."), LOGINFO);
@@ -256,7 +256,7 @@ void BootloaderInstallS5l::installStageSendDfu(void)
return; /* aborted */
if (progressTimer.elapsed() < progressTimeout) {
- QTimer::singleShot(250, this, SLOT(installStageSendDfu()));
+ QTimer::singleShot(250, this, &BootloaderInstallS5l::installStageSendDfu);
return;
}
@@ -324,7 +324,7 @@ void BootloaderInstallS5l::installStageWaitForRemount(void)
LOGWARNING);
actionShown = true;
}
- QTimer::singleShot(250, this, SLOT(installStageWaitForRemount()));
+ QTimer::singleShot(250, this, &BootloaderInstallS5l::installStageWaitForRemount);
return;
}
emit logItem(tr("Device remounted."), LOGINFO);
@@ -350,7 +350,7 @@ void BootloaderInstallS5l::abortInstall(void)
{
LOG_INFO() << "abortInstall";
aborted = true;
- disconnect(this, SIGNAL(installAborted()), this, SLOT(abortInstall()));
+ disconnect(this, &BootloaderInstallBase::installAborted, this, &BootloaderInstallS5l::abortInstall);
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp b/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
index e4fd3766cb..b1f0167e42 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
@@ -79,7 +79,7 @@ bool BootloaderInstallSansa::install(void)
emit logItem(tr("Downloading bootloader file"), LOGINFO);
downloadBlStart(m_blurl);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallSansa::installStage2);
return true;
}
diff --git a/rbutil/rbutilqt/base/bootloaderinstalltcc.cpp b/rbutil/rbutilqt/base/bootloaderinstalltcc.cpp
index 1551d7c45d..ffc8555733 100644
--- a/rbutil/rbutilqt/base/bootloaderinstalltcc.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstalltcc.cpp
@@ -49,7 +49,7 @@ bool BootloaderInstallTcc::install(void)
// Download firmware from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
- connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
+ connect(this, &BootloaderInstallBase::downloadDone, this, &BootloaderInstallTcc::installStage2);
downloadBlStart(m_blurl);
return true;