Commit 7bdfd386 authored by Nicolas Fella's avatar Nicolas Fella

Remove trailing whitespace

parent 5c16bfda
Pipeline #4277 passed with stage
in 8 minutes and 54 seconds
......@@ -63,7 +63,7 @@ bool FindThisDevicePlugin::receivePacket(const NetworkPacket& np)
soundURL = QUrl::fromUserInput(soundFilename,
winDirPath,
QUrl::AssumeLocalFile);
}
}
else {
qCWarning(KDECONNECT_PLUGIN_FINDTHISDEVICE) << "Not playing sounds, system doesn't know WINDIR : " << soundFilename;
}
......
......@@ -65,14 +65,14 @@ bool MprisControlPlugin::receivePacket(const NetworkPacket &np)
::SendInput(1,&input,sizeof(INPUT));
}
}
}
NetworkPacket answer(PACKET_TYPE_MPRIS);
bool somethingToSend = false;
if (np.get<bool>(QStringLiteral("requestNowPlaying"))) {
answer.set(QStringLiteral("pos"), 0);
answer.set(QStringLiteral("isPlaying"), false);
answer.set(QStringLiteral("canPause"), false);
......@@ -96,4 +96,4 @@ bool MprisControlPlugin::receivePacket(const NetworkPacket &np)
return true;
}
#include "mpriscontrolplugin-win.moc"
\ No newline at end of file
#include "mpriscontrolplugin-win.moc"
......@@ -43,7 +43,7 @@ static const QSet<QString> fields_c = QSet<QString>() << QStringLiteral("ip") <<
struct SftpPlugin::Pimpl
{
Pimpl() : m_mounter(nullptr) {}
//Add KIO entry to Dolphin's Places
KFilePlacesModel m_placesModel;
Mounter* m_mounter;
......@@ -52,7 +52,7 @@ struct SftpPlugin::Pimpl
SftpPlugin::SftpPlugin(QObject* parent, const QVariantList& args)
: KdeConnectPlugin(parent, args)
, d(new Pimpl())
{
{
deviceId = device()->id();
addToDolphin();
qCDebug(KDECONNECT_PLUGIN_SFTP) << "Created device:" << device()->name();
......@@ -60,14 +60,14 @@ SftpPlugin::SftpPlugin(QObject* parent, const QVariantList& args)
SftpPlugin::~SftpPlugin()
{
removeFromDolphin();
removeFromDolphin();
unmount();
}
void SftpPlugin::addToDolphin()
{
removeFromDolphin();
QUrl kioUrl(QStringLiteral("kdeconnect://") + deviceId + QStringLiteral("/"));
d->m_placesModel.addPlace(device()->name(), kioUrl, QStringLiteral("kdeconnect"));
qCDebug(KDECONNECT_PLUGIN_SFTP) << "add to dolphin";
......@@ -117,7 +117,7 @@ bool SftpPlugin::isMounted() const
}
QString SftpPlugin::getMountError()
{
{
if (!mountError.isEmpty()) {
return mountError;
}
......@@ -140,7 +140,7 @@ bool SftpPlugin::receivePacket(const NetworkPacket& np)
// packet is invalid
return false;
}
Q_EMIT packetReceived(np);
remoteDirectories.clear();
......@@ -179,7 +179,7 @@ void SftpPlugin::onUnmounted()
qCDebug(KDECONNECT_PLUGIN_SFTP) << device()->name() << "Remote filesystem unmounted";
unmount();
Q_EMIT unmounted();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment