Changed some KNotifications to KDebugs

This commit is contained in:
Albert Vaca 2014-02-14 17:11:12 +01:00
parent 245ee18089
commit e1649f1b1e
2 changed files with 5 additions and 17 deletions

View file

@ -157,11 +157,9 @@ void Mounter::onError(QProcess::ProcessError error)
void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
Q_UNUSED(exitCode);
if (exitStatus == QProcess::NormalExit)
{
kDebug(kdeconnect_kded()) << "Porcess finished";
kDebug(kdeconnect_kded()) << "Process finished (exit code: " << exitCode << ")";
if (m_proc->property(idleTimeout_c).toBool())
{
@ -174,7 +172,7 @@ void Mounter::onFinished(int exitCode, QProcess::ExitStatus exitStatus)
}
else
{
kDebug(kdeconnect_kded()) << "Porcess failed";
kDebug(kdeconnect_kded()) << "Porcess failed (exit code: " << exitCode << ")";
Q_EMIT failed(i18n("Error when accessing to filesystem"));
}

View file

@ -161,11 +161,7 @@ QString SftpPlugin::mountPoint()
void SftpPlugin::onMounted()
{
kDebug(kdeconnect_kded()) << QString("Remote filesystem mounted at %1").arg(mountPoint());
knotify(KNotification::Notification
, i18n("Remote filesystem mounted")
, KIconLoader::global()->loadIcon("drive-removable-media", KIconLoader::Desktop)
);
kDebug(kdeconnect_kded()) << device()->name() << QString("Remote filesystem mounted at %1").arg(mountPoint());
Q_EMIT mounted();
}
@ -174,17 +170,11 @@ void SftpPlugin::onUnmounted(bool idleTimeout)
{
if (idleTimeout)
{
knotify(KNotification::Notification
, i18n("Filesystem unmounted by idle timeout")
, KIconLoader::global()->loadIcon("clock", KIconLoader::Desktop)
);
kDebug(kdeconnect_kded()) << device()->name() << "Remote filesystem unmounted by idle timeout";
}
else
{
knotify(KNotification::Notification
, i18n("Filesystem unmounted")
, KIconLoader::global()->loadIcon("dialog-ok", KIconLoader::Desktop)
);
kDebug(kdeconnect_kded()) << device()->name() << "Remote filesystem unmounted";
}
m_d->mounter->deleteLater();