summaryrefslogtreecommitdiffstats
path: root/src/network/room_member.h
diff options
context:
space:
mode:
authorB3n30 <benediktthomas@gmail.com>2017-07-08 18:31:35 +0200
committerB3n30 <benediktthomas@gmail.com>2017-07-16 21:29:11 +0200
commit77677e205ebf1a6c47114ac1d449fc78be250c6d (patch)
tree07bce36123f7f2a93560bb9590cc0bcd719cc173 /src/network/room_member.h
parentNetwork: Handle join request in Room (diff)
downloadyuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar
yuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar.gz
yuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar.bz2
yuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar.lz
yuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar.xz
yuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar.zst
yuzu-77677e205ebf1a6c47114ac1d449fc78be250c6d.zip
Diffstat (limited to '')
-rw-r--r--src/network/room_member.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/network/room_member.h b/src/network/room_member.h
index 89ec6ae5a..f8bdbaea8 100644
--- a/src/network/room_member.h
+++ b/src/network/room_member.h
@@ -6,6 +6,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "common/common_types.h"
#include "network/room.h"
@@ -31,6 +32,14 @@ public:
CouldNotConnect ///< The room is not responding to a connection attempt
};
+ struct MemberInformation {
+ std::string nickname; ///< Nickname of the member.
+ std::string game_name; ///< Name of the game they're currently playing, or empty if they're
+ /// not playing anything.
+ MacAddress mac_address; ///< MAC address associated with this member.
+ };
+ using MemberList = std::vector<MemberInformation>;
+
RoomMember();
~RoomMember();
@@ -40,6 +49,15 @@ public:
State GetState() const;
/**
+ * Returns information about the members in the room we're currently connected to.
+ */
+ const MemberList& GetMemberInformation() const;
+ /**
+ * Returns information about the room we're currently connected to.
+ */
+ RoomInformation GetRoomInformation() const;
+
+ /**
* Returns whether we're connected to a server or not.
*/
bool IsConnected() const;