diff --git a/plugins/sftp/README b/plugins/sftp/README --- 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.h b/plugins/sftp/mounter.h --- a/plugins/sftp/mounter.h +++ b/plugins/sftp/mounter.h @@ -46,7 +46,7 @@ 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); diff --git a/plugins/sftp/mounter.cpp b/plugins/sftp/mounter.cpp --- a/plugins/sftp/mounter.cpp +++ b/plugins/sftp/mounter.cpp @@ -39,7 +39,7 @@ , 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 @@ return loop.exec(); } -void Mounter::onPakcageReceived(const NetworkPacket& np) +void Mounter::onPackageReceived(const NetworkPacket& np) { if (np.get(QStringLiteral("stop"), false)) {