Changeset View
Changeset View
Standalone View
Standalone View
kio/kiokdeconnect.cpp
Context not available. | |||||
30 | 30 | | |||
---|---|---|---|---|---|
31 | Q_LOGGING_CATEGORY(KDECONNECT_KIO, "kdeconnect.kio") | 31 | Q_LOGGING_CATEGORY(KDECONNECT_KIO, "kdeconnect.kio") | ||
32 | 32 | | |||
33 | extern "C" int Q_DECL_EXPORT kdemain(int argc, char **argv) | 33 | extern "C" int Q_DECL_EXPORT kdemain(int argc, char** argv) | ||
34 | { | 34 | { | ||
35 | if (argc != 4) { | 35 | if (argc != 4) { | ||
36 | fprintf(stderr, "Usage: kio_kdeconnect protocol pool app\n"); | 36 | fprintf(stderr, "Usage: kio_kdeconnect protocol pool app\n"); | ||
Context not available. | |||||
72 | return false; | 72 | return false; | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | KioKdeconnect::KioKdeconnect(const QByteArray &pool, const QByteArray &app) | 75 | KioKdeconnect::KioKdeconnect(const QByteArray& pool, const QByteArray& app) | ||
76 | : SlaveBase("kdeconnect", pool, app), | 76 | : SlaveBase("kdeconnect", pool, app), | ||
77 | m_dbusInterface(new DaemonDbusInterface(this)) | 77 | m_dbusInterface(new DaemonDbusInterface(this)) | ||
78 | { | 78 | { | ||
Context not available. | |||||
177 | 177 | | |||
178 | 178 | | |||
179 | 179 | | |||
180 | void KioKdeconnect::listDir(const QUrl &url) | 180 | void KioKdeconnect::listDir(const QUrl& url) | ||
181 | { | 181 | { | ||
182 | qCDebug(KDECONNECT_KIO) << "Listing..." << url; | 182 | qCDebug(KDECONNECT_KIO) << "Listing..." << url; | ||
183 | 183 | | |||
Context not available. | |||||
198 | } | 198 | } | ||
199 | } | 199 | } | ||
200 | 200 | | |||
201 | void KioKdeconnect::stat(const QUrl &url) | 201 | void KioKdeconnect::stat(const QUrl& url) | ||
202 | { | 202 | { | ||
203 | qCDebug(KDECONNECT_KIO) << "Stat: " << url; | 203 | qCDebug(KDECONNECT_KIO) << "Stat: " << url; | ||
204 | 204 | | |||
Context not available. | |||||
209 | finished(); | 209 | finished(); | ||
210 | } | 210 | } | ||
211 | 211 | | |||
212 | void KioKdeconnect::get(const QUrl &url) | 212 | void KioKdeconnect::get(const QUrl& url) | ||
213 | { | 213 | { | ||
214 | qCDebug(KDECONNECT_KIO) << "Get: " << url; | 214 | qCDebug(KDECONNECT_KIO) << "Get: " << url; | ||
215 | mimeType(QLatin1String("")); | 215 | mimeType(QLatin1String("")); | ||
216 | finished(); | 216 | finished(); | ||
217 | } | 217 | } | ||
218 | 218 | | |||
219 | void KioKdeconnect::setHost(const QString &hostName, quint16 port, const QString &user, const QString &pass) | 219 | void KioKdeconnect::setHost(const QString& hostName, quint16 port, const QString& user, const QString& pass) | ||
220 | { | 220 | { | ||
221 | 221 | | |||
222 | //This is called before everything else to set the file we want to show | 222 | //This is called before everything else to set the file we want to show | ||
Context not available. |