Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-12 03:00:26 +03:00
1 parent c1a11ffe29
commit 09a3a4fee3
6 files changed
+177 -29

No files matched your search

+8
View File
@@ -48,8 +48,16 @@ namespace Void::TeamSpeak
std::function<void(const RemoteClient&)> clientEntered;
std::function<void(const ClientLeft&)> clientLeft;
std::function<void(const ClientMoved&)> clientMoved;
std::function<void(const ClientUpdated&)> clientUpdated;
std::function<void(const TalkStatusChanged&)> talkStatusChanged;
std::function<void(const TextMessage&)> textMessage;
std::function<void(const ChannelChanged&)> channelChanged;
std::function<void(const ServerUpdated&)> serverUpdated;
std::function<void(const ServerGroupMembershipChanged&)>
serverGroupMembershipChanged;
std::function<void(const ChannelGroupMembershipChanged&)>
channelGroupMembershipChanged;
std::function<void(const FileTransferStatus&)> fileTransferStatus;
std::function<void(std::span<const std::uint8_t>)> voice;
};
+45
View File
@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <map>
#include <string>
#include <optional>
#include <vector>
@@ -57,6 +58,23 @@ namespace Void::TeamSpeak
ChannelId channel;
};
struct ClientUpdated {
ClientId id;
std::optional<std::string> nickname;
std::optional<std::string> uniqueId;
std::optional<bool> inputMuted;
std::optional<bool> outputMuted;
std::optional<bool> away;
std::optional<bool> recording;
std::map<std::string, std::string> properties;
};
struct TalkStatusChanged {
ClientId id;
bool talking{false};
bool whisper{false};
};
struct Channel {
ChannelId id;
std::optional<ChannelId> parent;
@@ -101,6 +119,33 @@ namespace Void::TeamSpeak
Channel channel;
};
struct ServerUpdated {
std::optional<std::string> name;
std::optional<std::string> welcomeMessage;
ClientId invoker;
std::map<std::string, std::string> properties;
};
struct ServerGroupMembershipChanged {
bool added{false};
ServerGroupId group;
ClientDatabaseId client;
ClientId invoker;
};
struct ChannelGroupMembershipChanged {
ChannelGroupId group;
ChannelId channel;
ClientDatabaseId client;
ClientId invoker;
};
struct FileTransferStatus {
std::uint64_t id{};
int status{};
std::string message;
};
struct Error {
enum class Code {
InvalidArgument,