diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2016-02-20 16:56:54 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-05-08 17:45:52 +0300 |
commit | ee1988eb4b3b35053c110a765314c804d27069f6 (patch) | |
tree | 0b4c0a40eebada2416260646911bfc6555417f79 /src/murmur/Server.h | |
parent | 9c55e95673591881f28c0a98796d443a3d50cb3a (diff) |
grpc: rename GRPC-specific Server::sendTextMessage to Server::sendTextMessageGRPC(), and add docs.
Diffstat (limited to 'src/murmur/Server.h')
-rw-r--r-- | src/murmur/Server.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/murmur/Server.h b/src/murmur/Server.h index b91a7619c..3542bc292 100644 --- a/src/murmur/Server.h +++ b/src/murmur/Server.h @@ -334,7 +334,15 @@ class Server : public QThread { void setUserState(User *p, Channel *parent, bool mute, bool deaf, bool suppressed, bool prioritySpeaker, const QString& name = QString(), const QString &comment = QString()); bool setChannelState(const MumbleProto::ChannelState &cs, QString &err); bool setChannelState(Channel *c, Channel *parent, const QString &qsName, const QSet<Channel *> &links, const QString &desc = QString(), const int position = 0); - void sendTextMessage(const ::MumbleProto::TextMessage &tm); + + /// Send a text message using the TextMessage protobuf message + /// as a template. + /// This is equivalent to the logic that happens in Server::msgTextMessage + /// when sending a receieved TextMessage, with the exception that this + /// method does not perform any permission checks. + /// It is used by our gRPC implementation to send text messages. + void sendTextMessageGRPC(const ::MumbleProto::TextMessage &tm); + void sendTextMessage(Channel *cChannel, ServerUser *pUser, bool tree, const QString &text); /// Returns true if a channel is full. If a user is provided, false will always |