mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-23 01:10:39 -05:00
Implemented login on Retroshare Android QML App
Login works fine but soon after retroshare-android-service crashes probably when trying to determine local address (getLocalAddresses) Added RsLoginPassView.qml generic login/pass/button view retroshare-android-service can be build as a separate app on non-android systems
This commit is contained in:
parent
8d6d3d1894
commit
c12cfd60b8
9 changed files with 195 additions and 74 deletions
|
|
@ -5,16 +5,24 @@ import org.retroshare.qml_components.LibresapiLocalClient 1.0
|
|||
|
||||
Item
|
||||
{
|
||||
function refreshData() { rsApi.request("/peers/self/certificate/", "") }
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
rsApi.openConnection(apiSocketPath)
|
||||
rsApi.request("/peers/self/certificate/", "")
|
||||
refreshData()
|
||||
}
|
||||
onFocusChanged: focus && refreshData()
|
||||
|
||||
LibresapiLocalClient
|
||||
{
|
||||
id: rsApi
|
||||
onGoodResponseReceived: myKeyField.text = JSON.parse(msg).data.cert_string
|
||||
onGoodResponseReceived:
|
||||
{
|
||||
var jsonData = JSON.parse(msg)
|
||||
if(jsonData && jsonData.data && jsonData.data.cert_string)
|
||||
myKeyField.text = jsonData.data.cert_string
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout
|
||||
|
|
@ -22,7 +30,7 @@ Item
|
|||
anchors.top: parent.top
|
||||
anchors.bottom: bottomButton.top
|
||||
|
||||
TextField { id: myKeyField }
|
||||
Text { id: myKeyField }
|
||||
TextField { id: otherKeyField }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue