Changeset View
Changeset View
Standalone View
Standalone View
src/util/externalcommand.cpp
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | 122 | { | |||
---|---|---|---|---|---|
178 | }; | 178 | }; | ||
179 | 179 | | |||
180 | connect(watcher, &QDBusPendingCallWatcher::finished, exitLoop); | 180 | connect(watcher, &QDBusPendingCallWatcher::finished, exitLoop); | ||
181 | loop.exec(); | 181 | loop.exec(); | ||
182 | 182 | | |||
183 | return rval; | 183 | return rval; | ||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | bool ExternalCommand::copyBlocks(CopySource& source, CopyTarget& target) | 186 | bool ExternalCommand::copyBlocks(const CopySource& source, CopyTarget& target) | ||
187 | { | 187 | { | ||
188 | bool rval = true; | 188 | bool rval = true; | ||
189 | const qint64 blockSize = 10 * 1024 * 1024; // number of bytes per block to copy | 189 | const qint64 blockSize = 10 * 1024 * 1024; // number of bytes per block to copy | ||
190 | 190 | | |||
191 | if (!QDBusConnection::systemBus().isConnected()) { | 191 | if (!QDBusConnection::systemBus().isConnected()) { | ||
192 | qWarning() << "Could not connect to DBus system bus"; | 192 | qWarning() << "Could not connect to DBus system bus"; | ||
193 | return false; | 193 | return false; | ||
194 | } | 194 | } | ||
▲ Show 20 Lines • Show All 290 Lines • Show Last 20 Lines |