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())); this, SLOT(unpair()));
connect(kcmUi->ping_button, SIGNAL(pressed()), connect(kcmUi->ping_button, SIGNAL(pressed()),
this, SLOT(sendPing())); this, SLOT(sendPing()));
connect(kcmUi->browse_button, SIGNAL(clicked(bool)),
this, SLOT(browseFilesystem()));
} }
@ -252,3 +254,8 @@ void KdeConnectKcm::sendPing()
currentDevice->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 requestPair();
void pluginsConfigChanged(); void pluginsConfigChanged();
void sendPing(); void sendPing();
void browseFilesystem();
void resetSelection(); void resetSelection();
void pairingSuccesful(); void pairingSuccesful();
void pairingFailed(const QString& error); void pairingFailed(const QString& error);

View file

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