diff --git a/plugins/sftp/README b/plugins/sftp/README index bba4f450d..e94ba2f7c 100644 --- a/plugins/sftp/README +++ b/plugins/sftp/README @@ -1,16 +1,16 @@ -This plugins receives packages with type "kdeconnect.sftp" and reads the +This plugin receives packages with type "kdeconnect.sftp" and reads the following fields: -ip (string): ip of the curretly active network on device -port (string): port where sftp server starts -user (string): username to connect to sftp server -password (string): one session password to access sftp server -path (string): root directory to access device filesystem + ip (string): ip of the currently active network on device + port (string): port where sftp server starts + user (string): username to connect to sftp server + password (string): one session password to access sftp server + path (string): root directory to access device filesystem -This plugins sends packages with type "kdeconnect.sftp" and fills the +This plugin sends packages with type "kdeconnect.sftp" and fills the following fields: -startBrowsing (boolean): tell device to start sftp server and noify desktop + startBrowsing (boolean): tell device to start sftp server and notify desktop diff --git a/plugins/sftp/mounter.cpp b/plugins/sftp/mounter.cpp index 34910de9d..3d3526ed8 100644 --- a/plugins/sftp/mounter.cpp +++ b/plugins/sftp/mounter.cpp @@ -39,7 +39,7 @@ Mounter::Mounter(SftpPlugin* sftp) , m_started(false) { - connect(m_sftp, &SftpPlugin::packetReceived, this, &Mounter::onPakcageReceived); + connect(m_sftp, &SftpPlugin::packetReceived, this, &Mounter::onPackageReceived); connect(&m_connectTimer, &QTimer::timeout, this, &Mounter::onMountTimeout); @@ -74,7 +74,7 @@ bool Mounter::wait() return loop.exec(); } -void Mounter::onPakcageReceived(const NetworkPacket& np) +void Mounter::onPackageReceived(const NetworkPacket& np) { if (np.get(QStringLiteral("stop"), false)) { diff --git a/plugins/sftp/mounter.h b/plugins/sftp/mounter.h index 99d87833d..497837626 100644 --- a/plugins/sftp/mounter.h +++ b/plugins/sftp/mounter.h @@ -46,7 +46,7 @@ Q_SIGNALS: void failed(const QString& message); private Q_SLOTS: - void onPakcageReceived(const NetworkPacket& np); + void onPackageReceived(const NetworkPacket& np); void onStarted(); void onError(QProcess::ProcessError error); void onFinished(int exitCode, QProcess::ExitStatus exitStatus);