dirty kcm integration

This commit is contained in:
Samoilenko Yuri 2014-01-07 00:59:54 +04:00
parent 16f8675bb6
commit e74627ce15
3 changed files with 15 additions and 0 deletions

View file

@ -73,6 +73,8 @@ KdeConnectKcm::KdeConnectKcm(QWidget *parent, const QVariantList&)
this, SLOT(unpair()));
connect(kcmUi->ping_button, SIGNAL(pressed()),
this, SLOT(sendPing()));
connect(kcmUi->browse_button, SIGNAL(clicked(bool)),
this, SLOT(browseFilesystem()));
}
@ -252,3 +254,8 @@ void KdeConnectKcm::sendPing()
currentDevice->sendPing();
}
void KdeConnectKcm::browseFilesystem()
{
if (!currentDevice) return;
SftpDbusInterface(currentDevice->id(), this).browseFilesystem();
}

View file

@ -58,6 +58,7 @@ private Q_SLOTS:
void requestPair();
void pluginsConfigChanged();
void sendPing();
void browseFilesystem();
void resetSelection();
void pairingSuccesful();
void pairingFailed(const QString& error);

View file

@ -169,6 +169,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="browse_button">
<property name="text">
<string>Browse</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>