2
* Copyright (C) 2008-2014 The Communi Project
4
* This example is free, and not covered by the LGPL license. There is no
5
* restriction applied to their modification, redistribution, using and so on.
6
* You can study them, modify them, use them in your own program - either
7
* completely or partially.
11
import Ubuntu.Components 0.1
17
objectName: "mainView"
18
applicationName: "irc client"
19
automaticOrientation: true
20
anchorToKeyboard: true
23
property bool isConnected: false
26
Component.onCompleted: push(connectPage)
36
chatPage.currentBuffer = serverBuffer
37
connection.sendCommand(cmd.createJoin(channel))
39
pageStack.push(chatPage)
47
title: isConnected ? currentBuffer.name : "Connecting"
49
bufferModel: IrcBufferModel {
52
sortMethod: Irc.SortByTitle
53
connection: IrcConnection {
55
host: connectPage.host
56
port: connectPage.port
57
secure: connectPage.secure
58
saslMechanism: connectPage.sasl ? supportedSaslMechanisms[0] : ""
59
nickName: connectPage.nickName
60
realName: connectPage.realName
61
userName: connectPage.userName
62
password: connectPage.password
64
onMessageIgnored: serverBuffer.receiveMessage(message)
68
connection.quit(qsTr("Irc Client"))
73
serverBuffer: IrcBuffer {
77
name: connection.displayName
78
Component.onCompleted: bufferModel.add(serverBuffer)
86
IrcCommand { id: cmd }
88
Component.onDestruction: bufferModel.quit()