aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/network/room_member.h
diff options
context:
space:
mode:
authorB3n30 <[email protected]>2017-07-08 18:31:35 +0200
committerB3n30 <[email protected]>2017-07-16 21:29:11 +0200
commit77677e205ebf1a6c47114ac1d449fc78be250c6d (patch)
tree07bce36123f7f2a93560bb9590cc0bcd719cc173 /src/network/room_member.h
parent2af9a7146d17e89840c2c9c4f9134c992d27361c (diff)
downloadyuzu-mainline-77677e205ebf1a6c47114ac1d449fc78be250c6d.tar.gz
yuzu-mainline-77677e205ebf1a6c47114ac1d449fc78be250c6d.zip
Network: Send JoinRequest and handle the answer in RoomMember
Diffstat (limited to 'src/network/room_member.h')
-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;