SignalProxy objects are special, because these are actual classes you’ll use in your representation of the client state,
with actual behavior (described in another document).
All of these objects are translated into QVariantMap as network representation, this document describes their fields
at runtime, and how those are translated into the maps used in InitData responses and arguments to Sync and RPC
messages.
All types in this document are written in typescript typings notation.
In Network representation, all map/hash notations refer to QVariantMaps, all list/array notations to QVariantList.
For most network objects, the runtime representation contains a "Array of Structures" (AoS), while, for better
compression, on the network a "Structure of Arrays" (SoA) representation is used.
As this protocol uses QVariantMap with QString keys in UTF-16BE, this saves significant overhead.
[{"name":"intro","expansion":"/welcome $1; /assist"},{"name":"welcome","expansion":"/say Welcome to the support channel for the IRC client Quassel, $1"},{"name":"assist","expansion":"/say How may I assist you today?"}]
{"names":["intro","welcome","assist"],"expansions":["/welcome $1; /assist","/say Welcome to the support channel for the IRC client Quassel, $1","/say How may I assist you today?"]}
interfaceAliasManager{aliases: Alias[]// C->S calls/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callsaddAlias(name: QString,expansion: QString)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}interfaceAlias{name: QString,expansion: QString}
interfaceBacklogManager{// C->S calls/** * Loads backlog for [bufferId], where the message id is >= [first] and < [last]. * If [first] or [last] is unset, the list will be unbounded in that direction. * * If a [limit] is set, the list will be truncated to the newest N messages. * * If both [first] and [last] are set, and the list of messages is not truncated by [limit], * [additional] messages will be loaded before [last]. */requestBacklog(bufferId: BufferId,first: MsgId,last: MsgId,limit: Int,additional: Int)/** * Loads backlog for [bufferId], where the message id is >= [first] and < [last]. * If [first] or [last] is unset, the list will be unbounded in that direction. * * If a [limit] is set, the list will be truncated to the newest N messages. * * If both [first] and [last] are set, and the list of messages is not truncated by [limit], * [additional] messages will be loaded before [last]. * * Only messages matching [type] and [flags] will be returned and counted. */requestBacklogFiltered(bufferId: BufferId,first: MsgId,last: MsgId,limit: Int,additional: Int,type:Int,flags: Int)/** * Loads backlog for [bufferId], where the message id is >= [first] and < [last]. * If [first] or [last] is unset, the list will be unbounded in that direction. * * If a [limit] is set, the list will be truncated to the oldest N messages. * * Only messages matching [type] and [flags] will be returned and counted. */requestBacklogForward(bufferId: BufferId,first: MsgId,last: MsgId,limit: Int,type:Int,flags: Int)/** * Loads backlog for all buffers, where the message id is >= [first] and < [last]. * If [first] or [last] is unset, the list will be unbounded in that direction. * * If a [limit] is set, the list will be truncated to the newest N messages. * * If both [first] and [last] are set, and the list of messages is not truncated by [limit], * [additional] messages will be loaded before [last]. */requestBacklogAll(first: MsgId,last: MsgId,limit: Int,additional: Int)/** * Loads backlog for all buffers, where the message id is >= [first] and < [last]. * If [first] or [last] is unset, the list will be unbounded in that direction. * * If a [limit] is set, the list will be truncated to the newest N messages. * * If both [first] and [last] are set, and the list of messages is not truncated by [limit], * [additional] messages will be loaded before [last]. * * Only messages matching [type] and [flags] will be returned and counted. */requestBacklogAllFiltered(first: MsgId,last: MsgId,limit: Int,additional: Int,type:Int,flags: Int)// S->C calls/** * Response to the corresponding [requestBacklog] call. * [messages] contains the messages as `QVariant<Message>` */receiveBacklog(bufferId: BufferId,first: MsgId,last: MsgId,limit: Int,additional: Int,messages: QVariantList)/** * Response to the corresponding [requestBacklogFiltered] call. * [messages] contains the messages as `QVariant<Message>` */receiveBacklogFiltered(bufferId: BufferId,first: MsgId,last: MsgId,limit: Int,additional: Int,type:Int,flags: Int,messages: QVariantList)/** * Response to the corresponding [requestBacklogForward] call. * [messages] contains the messages as `QVariant<Message>` */receiveBacklogForward(bufferId: BufferId,first: MsgId,last: MsgId,limit: Int,type:Int,flags: Int,messages: QVariantList)/** * Response to the corresponding [requestBacklogAll] call. * [messages] contains the messages as `QVariant<Message>` */receiveBacklogAll(first: MsgId,last: MsgId,limit: Int,additional: Int,messages: QVariantList)/** * Response to the corresponding [requestBacklogAllFiltered] call. * [messages] contains the messages as `QVariant<Message>` */receiveBacklogAllFiltered(first: MsgId,last: MsgId,limit: Int,additional: Int,type:Int,flags: Int,messages: QVariantList)}
Network
Its network representation is an empty QVariantMap, as it has no syncable fields. For the same reason it also does
not support the otherwise standard update call.
interfaceBufferSyncer{/** * A bitset of all message types of unread messages for each chat. */activities:{[key:BufferId]:Message.Type},/** * Number of unread messages with highlights per chat. */highlightCounts:{[key:BufferId]:Int},/** * The last "marked as read" message per chat */lastSeenMsg:{[key:BufferId]:MsgId},/** * The scrollposition at the bottom of the window of the last client that had * each chat open */markerLine:{[key:BufferId]:MsgId}// C->S callsrequestMarkBufferAsRead(buffer: BufferId)requestMergeBuffersPermanently(buffer1: BufferId,buffer2: BufferId)requestPurgeBufferIds()requestRemoveBuffer(buffer: BufferId)requestRenameBuffer(buffer: BufferId)requestSetLastSeenMsg(buffer: BufferId,msgid: MsgId)requestSetMarkerLine(buffer: BufferId,msgid: MsgId)// S->C callsmarkBufferAsRead(buffer: BufferId)mergeBuffersPermanently(buffer1: BufferId,buffer2: BufferId)removeBuffer(buffer: BufferId)renameBuffer(buffer: BufferId,newName: QString)setBufferActivity(buffer: BufferId,activity: Int)setHighlightCount(buffer: BufferId,count: Int)setLastSeenMsg(buffer: BufferId,msgId: MsgId)setMarkerLine(buffer: BufferId,msgId: MsgId)}
interfaceBufferViewConfig{buffers: BufferId[],removedBuffers: BufferId[],temporarilyRemovedBuffers: BufferId[],/** ID of the associated BufferView */bufferViewId: Int,/** Display name of the associated BufferView */bufferViewName: QString,/** If showing only buffers from one network, the NetworkId of it */networkId: NetworkId,/** Automatically add new buffers when created */addNewBuffersAutomatically: Bool,/** Sort buffers alphabetically */sortAlphabetically: Bool,/** Hide buffers which are disconnected/parted */hideInactiveBuffers: Bool,/** Hide networks which are disconnected/quit */hideInactiveNetworks: Bool,/** Disable buffer decoration (not fully implemented) */disableDecoration: Bool,/** * Filter buffers by type * Int value of the BufferInfo.Type enum */allowedBuffersTypes: Int,/** * Filter buffers by minimum activity * Bitset of the BufferInfo.Activity enum values which should be shown */minimumActivity: Int,/** Persistently show the buffer search UI */showSearch: Bool// C->S callsrequestAddBuffer(bufferId: BufferId,pos: Int)requestMoveBuffer(bufferId: BufferId,pos: Int)requestRemoveBuffer(bufferId: BufferId)requestRemoveBufferPermanently(bufferId: BufferId)requestSetBufferViewName(bufferViewName: QString)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callsaddBuffer(bufferId: BufferId,pos: Int)moveBuffer(bufferId: BufferId,pos: Int)removeBuffer(bufferId: BufferId)removeBufferPermanently(bufferId: BufferId)setAddNewBuffersAutomatically(addNewBuffersAutomatically: Bool)setAllowedBufferTypes(bufferTypes: Int)setBufferViewName(bufferViewName: QString)setDisableDecoration(disableDecoration: Bool)setHideInactiveBuffers(hideInactiveBuffers: Bool)setHideInactiveNetworks(hideInactiveNetworks: Bool)setMinimumActivity(activity: Int)setNetworkId(networkId: NetworkId)setShowSearch(showSearch: Bool)setSortAlphabetically(sortAlphabetically: Bool)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}
interfaceBufferViewManager{bufferViewConfigs:{[key:Int]:BufferViewConfig},// C->S callsrequestCreateBufferView(properties: QVariantMap)requestCreateBufferViews(properties: QVariantList)requestDeleteBufferView(bufferViewId: Int)requestDeleteBufferViews(bufferViews: QVariantList)// S->C callsaddBufferViewConfig(bufferViewConfigId: Int)deleteBufferViewConfig(bufferViewConfigId: Int)newBufferViewConfig(bufferViewConfigId: Int)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}
interfaceCertManager{sslKey: QByteArray,sslCert: QByteArray// C->S calls/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callssetSslCert(encoded: QByteBuffer|null)setSslKey(encoded: QByteBuffer|null)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}
interfaceCoreInfo{coreData: CoreData// S->C callssetCoreData(coreData: QVariantMap)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}interfaceCoreData{quasselVersion: QString,quasselBuildDate: QString,startTime: QDateTime,sessionConnectedClients: Int,sessionConnectedClientData: ConnectedClient[]}interfaceConnectedClient{id: Int,remoteAddress: String,location: String,clientVersion: String,clientVersionDate: String,connectedSince: QDateTime,secure: Bool,features: Int,featureList: QStringList}
interfaceHighlightRuleManager{highlightRuleList: HighlightRule[],highlightNick: HighlightNickType,nicksCaseSensitive: Bool// C->S calls/** * Request removal of an ignore rule based on the rule itself. * Use this method if you want to remove a single ignore rule * and get that synced with the core immediately. */requestRemoveHighlightRule(highlightRule: Int)/** * Request toggling of "isEnabled" flag of a given ignore rule. * Use this method if you want to toggle the "isEnabled" flag of a single ignore rule * and get that synced with the core immediately. */requestToggleHighlightRule(highlightRule: Int)/** * Request an HighlightRule to be added to the ignore list * Items added to the list with this method, get immediately synced with the core */requestAddHighlightRule(id: Int,name: QString,isRegEx: Boolean,isCaseSensitive: Boolean,isEnabled: Boolean,isInverse: Boolean,sender: QString,chanName: QString)requestSetHighlightNick(highlightNick: Int)requestSetNicksCaseSensitive(nicksCaseSensitive: Boolean)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callsremoveHighlightRule(highlightRule: Int)toggleHighlightRule(highlightRule: Int)addHighlightRule(id: Int,name: QString,isRegEx: Boolean,isCaseSensitive: Boolean,isEnabled: Boolean,isInverse: Boolean,sender: QString,chanName: QString)setHighlightNick(highlightNick: Int)setNicksCaseSensitive(nicksCaseSensitive: Boolean)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}interfaceHighlightRule{id: Int,name: QString,isRegEx: Bool,isCaseSensitive: Bool,isEnabled: Bool,isInverse: Bool,sender: QString,channel: QString}enumHighlightNickType{NoNick=0x00,CurrentNick=0x01,AllNicks=0x02}
interfaceIdentity{identityId: IdentityId,identityName: QString,realName: QString,nicks: QStringList,awayNick: QString,awayNickEnabled: Bool,awayReason: QString,awayReasonEnabled: Bool,autoAwayEnabled: Bool,autoAwayTime: Int,autoAwayReason: QString,autoAwayReasonEnabled: Bool,detachAwayEnabled: Bool,detachAwayReason: QString,detachAwayReasonEnabled: Bool,ident: QString,kickReason: QString,partReason: QString,quitReason: QString// C->S calls/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callscopyFrom(other: Identity)setAutoAwayEnabled(enabled: Bool)setAutoAwayReason(reason: QString)setAutoAwayReasonEnabled(enabled: Bool)setAutoAwayTime(time: Int)setAwayNick(awayNick: QString)setAwayNickEnabled(enabled: Bool)setAwayReason(awayReason: QString)setAwayReasonEnabled(enabled: Bool)setDetachAwayEnabled(enabled: Bool)setDetachAwayReason(reason: QString)setDetachAwayReasonEnabled(enabled: Bool)setId(id: IdentityId)setIdent(ident: QString)setIdentityName(name: QString)setKickReason(reason: QString)setNicks(nicks: QStringList)setPartReason(reason: QString)setQuitReason(reason: QString)setRealName(realName: QString)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}
interfaceIgnoreListManager{ignoreList: IgnoreListItem[]// C->S callsrequestAddIgnoreListItem(type:Int,ignoreRule: QString,isRegEx: Bool,strictness: Int,scope: Int,scopeRule: QString,isActive: Bool)requestRemoveIgnoreListItem(ignoreRule: QString)requestToggleIgnoreRule(ignoreRule: QString)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callsaddIgnoreListItem(type:Int,ignoreRule: QString,isRegEx: Bool,strictness: Int,scope: Int,scopeRule: QString,isActive: Bool)removeIgnoreListItem(ignoreRule: QString)toggleIgnoreRule(ignoreRule: QString)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}interfaceIgnoreListItem{type:IgnoreType,ignoreRule: String,isRegEx: Boolean,strictness: StrictnessType,scope: ScopeType,scopeRule: String,isActive: Boolean}enumIgnoreType{SenderIgnore=0x00,MessageIgnore=0x01,CtcpIgnore=0x02}enumStrictnessType{UnmatchedStrictness=0x00,/** * Dynamic ignore, ignore rule has to be applied by the client to the * messages it receives */SoftStrictness=0x01,/** Permanent ignore, messages don't even get saved to the database */HardStrictness=0x02}enumScopeType{GlobalScope=0x00,NetworkScope=0x01,ChannelScope=0x02}
The objectName of an IrcChannel is the string representation of the networkId of the network it belongs to, followed by
a "/", followed by the name of the channel.
interfaceIrcChannel{channelModesA:{[key:QChar]:QStringList},channelModesB:{[key:QChar]:QString},channelModesC:{[key:QChar]:QString},channelModesD: QChar[],name: QString,topic: QString,password: QString,encrypted: Bool// S->C callsaddChannelMode(mode: QChar,value: QString)addUserMode(nick: QString,mode: QString)joinIrcUsers(nicks: QStringList,modes: QStringList)part(nick: QString)removeChannelMode(mode: QChar,value: QString)removeUserMode(nick: QString,mode: QString)setEncrypted(encrypted: Bool)setPassword(password: QString)setTopic(topic: QString)setUserModes(nick: QString,modes: QString)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}
Its network representation is an empty QVariantMap, as it has no syncable fields. For the same reason it also does
not support the otherwise standard update call.
The objectName of an IrcUser is the string representation of the networkId of the network it belongs to, followed by a
"/", followed by the nick of the user.
interfaceNetworkConfig{pingTimeoutEnabled: Bool,pingInterval: Int,maxPingCount: Int,autoWhoEnabled: Bool,autoWhoInterval: Int,autoWhoNickLimit: Int,autoWhoDelay: Int,standardCtcp: Bool// C->S callsrequestSetAutoWhoDelay(delay: Int)requestSetAutoWhoEnabled(enabled: Boolean)requestSetAutoWhoInterval(interval: Int)requestSetAutoWhoNickLimit(limit: Int)requestSetMaxPingCount(count: Int)requestSetPingInterval(interval: Int)requestSetPingTimeoutEnabled(enabled: Boolean)requestSetStandardCtcp(enabled: Boolean)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */requestUpdate(properties: QVariantMap)// S->C callssetAutoWhoDelay(delay: Int)setAutoWhoEnabled(enabled: Boolean)setAutoWhoInterval(interval: Int)setAutoWhoNickLimit(limit: Int)setMaxPingCount(count: Int)setPingInterval(interval: Int)setPingTimeoutEnabled(enabled: Boolean)setStandardCtcp(standardCtcp: Boolean)/** * Replaces all properties of the object with the content of the * "properties" parameter. This parameter is in network representation. */update(properties: QVariantMap)}