Skip to content
Snippets Groups Projects
Verified Commit 06f962fa authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improve documentation on RPC calls

parent 84168b72
No related branches found
No related tags found
No related merge requests found
# Protocol Overview
!!! danger
The documentation is still being worked on.
\ No newline at end of file
...@@ -82,7 +82,7 @@ interface AliasManager { ...@@ -82,7 +82,7 @@ interface AliasManager {
// S->C calls // S->C calls
addAlias(name: QString | null, expansion: QString | null) addAlias(name: QString, expansion: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -222,7 +222,7 @@ interface BufferSyncer { ...@@ -222,7 +222,7 @@ interface BufferSyncer {
markBufferAsRead(buffer: BufferId) markBufferAsRead(buffer: BufferId)
mergeBuffersPermanently(buffer1: BufferId, buffer2: BufferId) mergeBuffersPermanently(buffer1: BufferId, buffer2: BufferId)
removeBuffer(buffer: BufferId) removeBuffer(buffer: BufferId)
renameBuffer(buffer: BufferId, newName: QString | null) renameBuffer(buffer: BufferId, newName: QString)
setBufferActivity(buffer: BufferId, activity: Int) setBufferActivity(buffer: BufferId, activity: Int)
setHighlightCount(buffer: BufferId, count: Int) setHighlightCount(buffer: BufferId, count: Int)
setLastSeenMsg(buffer: BufferId, msgId: MsgId) setLastSeenMsg(buffer: BufferId, msgId: MsgId)
...@@ -298,7 +298,7 @@ interface BufferViewConfig { ...@@ -298,7 +298,7 @@ interface BufferViewConfig {
requestMoveBuffer(bufferId: BufferId, pos: Int) requestMoveBuffer(bufferId: BufferId, pos: Int)
requestRemoveBuffer(bufferId: BufferId) requestRemoveBuffer(bufferId: BufferId)
requestRemoveBufferPermanently(bufferId: BufferId) requestRemoveBufferPermanently(bufferId: BufferId)
requestSetBufferViewName(bufferViewName: QString | null) requestSetBufferViewName(bufferViewName: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -313,7 +313,7 @@ interface BufferViewConfig { ...@@ -313,7 +313,7 @@ interface BufferViewConfig {
removeBufferPermanently(bufferId: BufferId) removeBufferPermanently(bufferId: BufferId)
setAddNewBuffersAutomatically(addNewBuffersAutomatically: Bool) setAddNewBuffersAutomatically(addNewBuffersAutomatically: Bool)
setAllowedBufferTypes(bufferTypes: Int) setAllowedBufferTypes(bufferTypes: Int)
setBufferViewName(bufferViewName: QString | null) setBufferViewName(bufferViewName: QString)
setDisableDecoration(disableDecoration: Bool) setDisableDecoration(disableDecoration: Bool)
setHideInactiveBuffers(hideInactiveBuffers: Bool) setHideInactiveBuffers(hideInactiveBuffers: Bool)
setHideInactiveNetworks(hideInactiveNetworks: Bool) setHideInactiveNetworks(hideInactiveNetworks: Bool)
...@@ -565,9 +565,9 @@ interface HighlightRuleManager { ...@@ -565,9 +565,9 @@ interface HighlightRuleManager {
* Request an HighlightRule to be added to the ignore list * Request an HighlightRule to be added to the ignore list
* Items added to the list with this method, get immediately synced with the core * Items added to the list with this method, get immediately synced with the core
*/ */
requestAddHighlightRule(id: Int, name: QString | null, isRegEx: Boolean, requestAddHighlightRule(id: Int, name: QString, isRegEx: Boolean,
isCaseSensitive: Boolean, isEnabled: Boolean, isInverse: Boolean, isCaseSensitive: Boolean, isEnabled: Boolean, isInverse: Boolean,
sender: QString | null, chanName: QString | null) sender: QString, chanName: QString)
requestSetHighlightNick(highlightNick: Int) requestSetHighlightNick(highlightNick: Int)
requestSetNicksCaseSensitive(nicksCaseSensitive: Boolean) requestSetNicksCaseSensitive(nicksCaseSensitive: Boolean)
/** /**
...@@ -581,9 +581,9 @@ interface HighlightRuleManager { ...@@ -581,9 +581,9 @@ interface HighlightRuleManager {
removeHighlightRule(highlightRule: Int) removeHighlightRule(highlightRule: Int)
toggleHighlightRule(highlightRule: Int) toggleHighlightRule(highlightRule: Int)
addHighlightRule(id: Int, name: QString | null, isRegEx: Boolean, addHighlightRule(id: Int, name: QString, isRegEx: Boolean,
isCaseSensitive: Boolean, isEnabled: Boolean, isInverse: Boolean, isCaseSensitive: Boolean, isEnabled: Boolean, isInverse: Boolean,
sender: QString | null, chanName: QString | null) sender: QString, chanName: QString)
setHighlightNick(highlightNick: Int) setHighlightNick(highlightNick: Int)
setNicksCaseSensitive(nicksCaseSensitive: Boolean) setNicksCaseSensitive(nicksCaseSensitive: Boolean)
/** /**
...@@ -680,24 +680,24 @@ interface Identity { ...@@ -680,24 +680,24 @@ interface Identity {
copyFrom(other: Identity) copyFrom(other: Identity)
setAutoAwayEnabled(enabled: Bool) setAutoAwayEnabled(enabled: Bool)
setAutoAwayReason(reason: QString | null) setAutoAwayReason(reason: QString)
setAutoAwayReasonEnabled(enabled: Bool) setAutoAwayReasonEnabled(enabled: Bool)
setAutoAwayTime(time: Int) setAutoAwayTime(time: Int)
setAwayNick(awayNick: QString | null) setAwayNick(awayNick: QString)
setAwayNickEnabled(enabled: Bool) setAwayNickEnabled(enabled: Bool)
setAwayReason(awayReason: QString | null) setAwayReason(awayReason: QString)
setAwayReasonEnabled(enabled: Bool) setAwayReasonEnabled(enabled: Bool)
setDetachAwayEnabled(enabled: Bool) setDetachAwayEnabled(enabled: Bool)
setDetachAwayReason(reason: QString | null) setDetachAwayReason(reason: QString)
setDetachAwayReasonEnabled(enabled: Bool) setDetachAwayReasonEnabled(enabled: Bool)
setId(id: IdentityId) setId(id: IdentityId)
setIdent(ident: QString | null) setIdent(ident: QString)
setIdentityName(name: QString | null) setIdentityName(name: QString)
setKickReason(reason: QString | null) setKickReason(reason: QString)
setNicks(nicks: QStringList) setNicks(nicks: QStringList)
setPartReason(reason: QString | null) setPartReason(reason: QString)
setQuitReason(reason: QString | null) setQuitReason(reason: QString)
setRealName(realName: QString | null) setRealName(realName: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -747,11 +747,11 @@ interface IgnoreListManager { ...@@ -747,11 +747,11 @@ interface IgnoreListManager {
// C->S calls // C->S calls
requestAddIgnoreListItem(type: Int, ignoreRule: QString | null, requestAddIgnoreListItem(type: Int, ignoreRule: QString,
isRegEx: Bool, strictness: Int, scope: Int, scopeRule: QString | null, isRegEx: Bool, strictness: Int, scope: Int, scopeRule: QString,
isActive: Bool) isActive: Bool)
requestRemoveIgnoreListItem(ignoreRule: QString | null) requestRemoveIgnoreListItem(ignoreRule: QString)
requestToggleIgnoreRule(ignoreRule: QString | null) requestToggleIgnoreRule(ignoreRule: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -761,10 +761,10 @@ interface IgnoreListManager { ...@@ -761,10 +761,10 @@ interface IgnoreListManager {
// S->C calls // S->C calls
addIgnoreListItem(type: Int, ignoreRule: QString | null, isRegEx: Bool, addIgnoreListItem(type: Int, ignoreRule: QString, isRegEx: Bool,
strictness: Int, scope: Int, scopeRule: QString | null, isActive: Bool) strictness: Int, scope: Int, scopeRule: QString, isActive: Bool)
removeIgnoreListItem(ignoreRule: QString | null) removeIgnoreListItem(ignoreRule: QString)
toggleIgnoreRule(ignoreRule: QString | null) toggleIgnoreRule(ignoreRule: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -852,16 +852,16 @@ interface IrcChannel { ...@@ -852,16 +852,16 @@ interface IrcChannel {
// S->C calls // S->C calls
addChannelMode(mode: QChar, value: QString | null) addChannelMode(mode: QChar, value: QString)
addUserMode(nick: QString | null, mode: QString | null) addUserMode(nick: QString, mode: QString)
joinIrcUsers(nicks: QStringList, modes: QStringList) joinIrcUsers(nicks: QStringList, modes: QStringList)
part(nick: QString | null) part(nick: QString)
removeChannelMode(mode: QChar, value: QString | null) removeChannelMode(mode: QChar, value: QString)
removeUserMode(nick: QString | null, mode: QString | null) removeUserMode(nick: QString, mode: QString)
setEncrypted(encrypted: Bool) setEncrypted(encrypted: Bool)
setPassword(password: QString | null) setPassword(password: QString)
setTopic(topic: QString | null) setTopic(topic: QString)
setUserModes(nick: QString | null, modes: QString | null) setUserModes(nick: QString, modes: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -948,29 +948,29 @@ interface IrcUser { ...@@ -948,29 +948,29 @@ interface IrcUser {
// S->C calls // S->C calls
addUserModes(modes: QString | null) addUserModes(modes: QString)
joinChannel(channelname: QString | null) joinChannel(channelname: QString)
partChannel(channelname: QString | null) partChannel(channelname: QString)
quit() quit()
removeUserModes(modes: QString | null) removeUserModes(modes: QString)
setAccount(account: QString | null) setAccount(account: QString)
setAway(away: Boolean) setAway(away: Boolean)
setAwayMessage(awayMessage: QString | null) setAwayMessage(awayMessage: QString)
setEncrypted(encrypted: Boolean) setEncrypted(encrypted: Boolean)
setHost(host: QString | null) setHost(host: QString)
setIdleTime(idleTime: QDateTime) setIdleTime(idleTime: QDateTime)
setIrcOperator(ircOperator: QString | null) setIrcOperator(ircOperator: QString)
setLastAwayMessage(lastAwayMessage: Int) setLastAwayMessage(lastAwayMessage: Int)
setLastAwayMessageTime(lastAwayMessageTime: QDateTime) setLastAwayMessageTime(lastAwayMessageTime: QDateTime)
setLoginTime(loginTime: Temporal) setLoginTime(loginTime: Temporal)
setNick(nick: QString | null) setNick(nick: QString)
setRealName(realName: QString | null) setRealName(realName: QString)
setServer(server: QString | null) setServer(server: QString)
setSuserHost(suserHost: QString | null) setSuserHost(suserHost: QString)
setUser(user: QString | null) setUser(user: QString)
setUserModes(modes: QString | null) setUserModes(modes: QString)
setWhoisServiceReply(whoisServiceReply: QString | null) setWhoisServiceReply(whoisServiceReply: QString)
updateHostmask(mask: QString | null) updateHostmask(mask: QString)
/** /**
* Replaces all properties of the object with the content of the * Replaces all properties of the object with the content of the
* "properties" parameter. This parameter is in network representation. * "properties" parameter. This parameter is in network representation.
...@@ -1027,7 +1027,7 @@ interface Network { ...@@ -1027,7 +1027,7 @@ interface Network {
ircUsers: Map<QString, IrcUser>, ircUsers: Map<QString, IrcUser>,
ircChannels: Map<QString, IrcChannel>, ircChannels: Map<QString, IrcChannel>,
supports: Map<QString, QString>, supports: Map<QString, QString>,
caps: Map<QString, QString | null>, caps: Map<QString, QString>,
capsEnabled: [QString], capsEnabled: [QString],
networkInfo: NetworkInfo networkInfo: NetworkInfo
...@@ -1041,18 +1041,18 @@ interface Network { ...@@ -1041,18 +1041,18 @@ interface Network {
// S->C calls // S->C calls
acknowledgeCap(capability: QString | null) acknowledgeCap(capability: QString)
addCap(capability: String, value: QString | null = null) addCap(capability: String, value: QString)
addIrcChannel(channel: QString | null) addIrcChannel(channel: QString)
addIrcUser(hostmask: QString | null) addIrcUser(hostmask: QString)
addSupport(param: QString | null, value: QString | null = null) addSupport(param: QString, value: QString)
clearCaps() clearCaps()
emitConnectionError(error: QString | null) emitConnectionError(error: QString)
ircUserNickChanged(before: QString | null, after: QString | null) ircUserNickChanged(before: QString, after: QString)
removeCap(capability: QString | null) removeCap(capability: QString)
removeSupport(param: QString | null) removeSupport(param: QString)
setAutoIdentifyPassword(password: QString | null) setAutoIdentifyPassword(password: QString)
setAutoIdentifyService(service: QString | null) setAutoIdentifyService(service: QString)
setAutoReconnectInterval(interval: UInt) setAutoReconnectInterval(interval: UInt)
setAutoReconnectRetries(retries: UShort) setAutoReconnectRetries(retries: UShort)
setCodecForDecoding(codecName: QByteBuffer | null) setCodecForDecoding(codecName: QByteBuffer | null)
...@@ -1060,18 +1060,18 @@ interface Network { ...@@ -1060,18 +1060,18 @@ interface Network {
setCodecForServer(codecName: QByteBuffer | null) setCodecForServer(codecName: QByteBuffer | null)
setConnected(isConnected: Bool) setConnected(isConnected: Bool)
setConnectionState(state: Int) setConnectionState(state: Int)
setCurrentServer(currentServer: QString | null) setCurrentServer(currentServer: QString)
setIdentity(identity: IdentityId) setIdentity(identity: IdentityId)
setLatency(latency: Int) setLatency(latency: Int)
setMessageRateBurstSize(burstSize: UInt) setMessageRateBurstSize(burstSize: UInt)
setMessageRateDelay(messageDelay: UInt) setMessageRateDelay(messageDelay: UInt)
setMyNick(mynick: QString | null) setMyNick(mynick: QString)
setNetworkName(networkName: QString | null) setNetworkName(networkName: QString)
setNetworkInfo(info: NetworkInfo) setNetworkInfo(info: NetworkInfo)
setPerform(perform: QStringList) setPerform(perform: QStringList)
setRejoinChannels(rejoinChannels: Bool) setRejoinChannels(rejoinChannels: Bool)
setSaslAccount(account: QString | null) setSaslAccount(account: QString)
setSaslPassword(password: QString | null) setSaslPassword(password: QString)
setServerList(serverList: QVariantList) setServerList(serverList: QVariantList)
setActualServerList(serverList: [NetworkServer]) setActualServerList(serverList: [NetworkServer])
setUnlimitedMessageRate(unlimitedRate: Bool) setUnlimitedMessageRate(unlimitedRate: Bool)
......
# SignalProxy RPC calls
## C->S calls
### `2createIdentity(Identity,QVariantMap)`
- `identity`: `Identity`
- `additional`: `QVariantMap`
Always empty
### `2removeIdentity(IdentityId)`
- `identity`: `IdentityId`
### `2createNetwork(NetworkInfo,QStringList)`
- `networkInfo`: `NetworkInfo`
- `channels`: `QStringList`
### `2removeNetwork(NetworkId)`
- `network`: `NetworkId`
### `2changePassword(PeerPtr,QString,QString,QString)`
- `peerPtr`: `Long`
Always zero, only has a value within of the core itself.
- `user`: `QString`
Username
- `before`: `QString`
Old password
- `after`: `QString`
New password
### `2kickClient(int)`
- `id`: `Int`
Client id of client to be kicked.
Ids can be found here [CoreInfo](signalproxy_objects.md#coreinfo)
### `2sendInput(BufferInfo,QString)`
- `bufferInfo`: `BufferInfo`
- `message`: `QString`
## S->C calls
### `__objectRenamed__`
- `classname`: `QByteArray`
- `newname`: `QString`
- `oldname`: `QString`
Called whenever an object has been renamed, and the object store should update
its name. All future sync calls for this object will use the new name instead.
### `2displayMsg(Message)`
- `message`: `Message`
Called when a new IRC message has been received, and the client should display
or store it.
### `2displayStatusMsg(QString,QString)`
- `network`: `QString`
- `message`: `QString`
Status message for an IRC network to be shown in the client’s status bar (if
available).
### `2bufferInfoUpdated(BufferInfo)`
- `bufferInfo`: `BufferInfo`
### `2identityCreated(Identity)`
- `identity`: `Identity`
### `2identityRemoved(IdentityId)`
- `identity`: `IdentityId`
### `2networkCreated(NetworkId)`
- `network`: `NetworkId`
### `2networkRemoved(NetworkId)`
- `network`: `NetworkId`
### `2passwordChanged(PeerPtr,bool)`
- `peerPtr`: `Long`
Always zero, only has a value within of the core itself
- `success`: `Bool`
Returns if the recent password change attempt has been a success.
This is one of the few responses which only gets sent to the client which sent
the original request.
### `2disconnectFromCore()`
Requests the current client to disconnect from the core. Only this client sees
this message.
\ No newline at end of file
...@@ -12,15 +12,17 @@ nav: ...@@ -12,15 +12,17 @@ nav:
- "Usage": - "Usage":
- "Upgrade Guide": usage/upgrade_guide.md - "Upgrade Guide": usage/upgrade_guide.md
- "Protocol": - "Protocol":
- "Overview": protocol/overview.md
- "Layers": - "Layers":
- "Framing": protocol/layers/framing.md - "Framing": protocol/layers/framing.md
- "Message": protocol/layers/message.md - "Message": protocol/layers/message.md
- "Serialization": - "Serialization":
- "Handshake Messages": protocol/serialization/handshake_messages.md
- "Features": protocol/serialization/features.md - "Features": protocol/serialization/features.md
- "Primitive Objects": protocol/serialization/primitive_objects.md
- "Handshake Messages": protocol/serialization/handshake_messages.md
- "SignalProxy Messages": protocol/serialization/signalproxy_messages.md - "SignalProxy Messages": protocol/serialization/signalproxy_messages.md
- "SignalProxy Objects": protocol/serialization/signalproxy_objects.md - "SignalProxy Objects": protocol/serialization/signalproxy_objects.md
- "Primitive Objects": protocol/serialization/primitive_objects.md - "SignalProxy RPC calls": protocol/serialization/signalproxy_rpc.md
extra: extra:
social: social:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment