This repository has been archived on 2021-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-23 23:42:51 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
|
|
|
// defined in cwtch.im/cwtch/model/profile.go ln24
|
|
|
|
readonly property string auth_unknown: "unknown"
|
|
|
|
readonly property string auth_blocked: "blocked"
|
|
|
|
readonly property string auth_approved: "approved"
|
|
|
|
|
|
|
|
// defined in cwtch.im/ui/go/constants/attributes.go
|
|
|
|
readonly property string show_blocked: "show-blocked"
|
2020-08-24 22:01:00 +00:00
|
|
|
|
|
|
|
// defined in cwtch.im/cwtch/protocol/connection/state.go
|
|
|
|
//0:Disconnected,1:Connecting,2:Connected,3:Authenticated,4:Synced,5:Failed,6:Killed
|
|
|
|
readonly property int state_disconnected: 0
|
|
|
|
readonly property int state_connecting: 1
|
|
|
|
readonly property int state_connected: 2
|
|
|
|
readonly property int state_authenticated: 3
|
|
|
|
readonly property int state_synced: 4
|
|
|
|
readonly property int state_failed: 5
|
|
|
|
readonly property int state_killed: 6
|
|
|
|
|
|
|
|
|
2020-06-23 23:42:51 +00:00
|
|
|
}
|