Commit 749b54c4 authored by Samoilenko Yuri's avatar Samoilenko Yuri
Browse files

signalling from sftp

parent 77654340
......@@ -165,6 +165,8 @@ void SftpPlugin::onMounted()
, i18n("Filesystem mounted at %1").arg(mountPoint())
, KIconLoader::global()->loadIcon("drive-removable-media", KIconLoader::Desktop)
);
Q_EMIT mounted();
}
void SftpPlugin::onUnmounted(bool idleTimeout)
......@@ -186,6 +188,8 @@ void SftpPlugin::onUnmounted(bool idleTimeout)
m_d->mounter->deleteLater();
m_d->mounter = 0;
Q_EMIT unmounted();
}
void SftpPlugin::onFailed(const QString& message)
......@@ -196,6 +200,8 @@ void SftpPlugin::onFailed(const QString& message)
);
m_d->mounter->deleteLater();
m_d->mounter = 0;
Q_EMIT unmounted();
}
void SftpPlugin::knotify(int type, const QString& text, const QPixmap& icon) const
......
......@@ -46,6 +46,8 @@ public:
Q_SIGNALS:
void packageReceived(const NetworkPackage& np);
Q_SCRIPTABLE void mounted();
Q_SCRIPTABLE void unmounted();
public Q_SLOTS:
virtual bool receivePackage(const NetworkPackage& np);
......@@ -58,6 +60,8 @@ public Q_SLOTS:
Q_SCRIPTABLE bool startBrowsing();
Q_SCRIPTABLE QString mountPoint();
private Q_SLOTS:
void onMounted();
......
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