Changeset View
Changeset View
Standalone View
Standalone View
plugins/sftp/sftpplugin.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 76 | { | |||
---|---|---|---|---|---|
77 | QUrl kioUrl("kdeconnect://"+deviceId+"/"); | 77 | QUrl kioUrl("kdeconnect://"+deviceId+"/"); | ||
78 | QModelIndex index = m_d->placesModel.closestItem(kioUrl); | 78 | QModelIndex index = m_d->placesModel.closestItem(kioUrl); | ||
79 | while (index.row() != -1) { | 79 | while (index.row() != -1) { | ||
80 | m_d->placesModel.removePlace(index); | 80 | m_d->placesModel.removePlace(index); | ||
81 | index = m_d->placesModel.closestItem(kioUrl); | 81 | index = m_d->placesModel.closestItem(kioUrl); | ||
82 | } | 82 | } | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void SftpPlugin::connected() | | |||
86 | { | | |||
87 | QDBusConnection::sessionBus().registerObject(dbusPath(), this, QDBusConnection::ExportScriptableContents); | | |||
88 | } | | |||
89 | | ||||
90 | void SftpPlugin::mount() | 85 | void SftpPlugin::mount() | ||
91 | { | 86 | { | ||
92 | qCDebug(KDECONNECT_PLUGIN_SFTP) << "Mount device:" << device()->name(); | 87 | qCDebug(KDECONNECT_PLUGIN_SFTP) << "Mount device:" << device()->name(); | ||
93 | if (m_d->mounter) { | 88 | if (m_d->mounter) { | ||
94 | return; | 89 | return; | ||
95 | } | 90 | } | ||
96 | 91 | | |||
97 | m_d->mounter = new Mounter(this); | 92 | m_d->mounter = new Mounter(this); | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |