diff --git a/kded/filetransferjob.cpp b/kded/filetransferjob.cpp index e1748f990..a5b408e01 100644 --- a/kded/filetransferjob.cpp +++ b/kded/filetransferjob.cpp @@ -37,6 +37,7 @@ FileTransferJob::FileTransferJob(const QSharedPointer& origin, int si mOrigin = origin; mSize = size; mWritten = 0; + mDeviceName = i18nc("Device name that will appear on the jobs", "KDE-Connect"); kDebug(kdeconnect_kded()) << "FileTransferJob Downloading payload to" << destination; } @@ -49,6 +50,10 @@ void FileTransferJob::start() { //kDebug(kdeconnect_kded()) << "FileTransferJob start"; + description(this, i18n("Receiving file over KDE-Connect"), + QPair(i18nc("File transfer origin", "From"), + QString(mDeviceName)), + QPair(i18nc("File transfer destination", "To"), mDestination->url().path())); //Open destination file mDestination->start(); } diff --git a/kded/filetransferjob.h b/kded/filetransferjob.h index e1a9b813d..d2c8c7dc9 100644 --- a/kded/filetransferjob.h +++ b/kded/filetransferjob.h @@ -40,6 +40,7 @@ public: virtual void start(); KUrl destination() { return mDestination->url(); } + void setDeviceName(const QString &deviceName) {mDeviceName = deviceName;}; public Q_SLOTS: void readyRead(); void open(KIO::Job*); @@ -49,6 +50,7 @@ public Q_SLOTS: private: QSharedPointer mOrigin; KIO::FileJob* mDestination; + QString mDeviceName; int mSize; int mWritten;