840a50e54b
Insert copyright statements Implemented CRUD for connections Refactor C++ connection side, create debugview and connect C++ to UI Implement SSL verification, reconnection, import moment.js, refactor UI logic Storing SSL certificate for later use now works Add missing comments Follow the end of a TextListComponent if view was already at bottom Initial protocol stubs for WeeChat protocol Add README
34 lines
842 B
QML
34 lines
842 B
QML
/*
|
|
* © Mikko Ahlroth 2014
|
|
* WeeCRApp is open source software. For licensing information, please check
|
|
* the LICENCE file.
|
|
*/
|
|
|
|
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
import "pages"
|
|
import "js/connection.js" as C
|
|
|
|
import harbour.weechatrelay.connectionhandler 1.0
|
|
|
|
ApplicationWindow
|
|
{
|
|
initialPage: Component { ConnectionList { } }
|
|
cover: Qt.resolvedUrl("cover/DefaultCover.qml")
|
|
|
|
Component.onCompleted: {
|
|
C.init(connectionHandler, pageStack);
|
|
|
|
// Connect signals to UI logic
|
|
connectionHandler.connected.connect(C.onConnected);
|
|
connectionHandler.disconnected.connect(C.onDisconnected);
|
|
connectionHandler.displayDebugData.connect(C.onDisplayDebugData);
|
|
connectionHandler.sslError.connect(C.onSslError);
|
|
}
|
|
|
|
ConnectionHandler {
|
|
id: connectionHandler
|
|
}
|
|
}
|
|
|
|
|