Changeset View
Changeset View
Standalone View
Standalone View
plugins/sftp/sftpplugin.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
63 | QDBusConnection::sessionBus().unregisterObject(dbusPath(), QDBusConnection::UnregisterTree); | 63 | QDBusConnection::sessionBus().unregisterObject(dbusPath(), QDBusConnection::UnregisterTree); | ||
64 | removeFromDolphin(); | 64 | removeFromDolphin(); | ||
65 | unmount(); | 65 | unmount(); | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | void SftpPlugin::addToDolphin() | 68 | void SftpPlugin::addToDolphin() | ||
69 | { | 69 | { | ||
70 | removeFromDolphin(); | 70 | removeFromDolphin(); | ||
71 | | ||||
71 | QUrl kioUrl("kdeconnect://"+deviceId+"/"); | 72 | QUrl kioUrl("kdeconnect://"+deviceId+"/"); | ||
72 | d->m_placesModel.addPlace(device()->name(), kioUrl, QStringLiteral("kdeconnect")); | 73 | d->m_placesModel.addPlace(device()->name(), kioUrl, QStringLiteral("kdeconnect")); | ||
73 | qCDebug(KDECONNECT_PLUGIN_SFTP) << "add to dolphin"; | 74 | qCDebug(KDECONNECT_PLUGIN_SFTP) << "add to dolphin"; | ||
74 | } | 75 | } | ||
75 | 76 | | |||
76 | void SftpPlugin::removeFromDolphin() | 77 | void SftpPlugin::removeFromDolphin() | ||
77 | { | 78 | { | ||
78 | QUrl kioUrl("kdeconnect://"+deviceId+"/"); | 79 | QUrl kioUrl("kdeconnect://"+deviceId+"/"); | ||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |