summaryrefslogtreecommitdiff
path: root/src/sessionManager.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-11 13:37:25 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:44:58 +0800
commit4764b5f494fd5c0fe41dbc01779738c450198933 (patch)
treea7880b2e6beb97152414cea6f451204c41ddf110 /src/sessionManager.hpp
parent513623fc0e5182d37aaf91c6dc42670bca3aa888 (diff)
clang-format
Diffstat (limited to 'src/sessionManager.hpp')
-rw-r--r--src/sessionManager.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sessionManager.hpp b/src/sessionManager.hpp
index 8f2130a..be81dd9 100644
--- a/src/sessionManager.hpp
+++ b/src/sessionManager.hpp
@@ -10,22 +10,22 @@ class CSessionManager {
public:
CSessionManager();
~CSessionManager();
-
+
std::pair<std::jthread, std::shared_ptr<CSession>> *newSession(Hyprutils::OS::CFileDescriptor sockfd);
- void run();
- void broadcast(const std::string &msg, eFormatType type = NONE) const;
- void kick(const CSession *session) const;
- void addSession(const CSession &session);
- void removeSession(std::pair<std::jthread, std::shared_ptr<CSession>> *session);
+ void run();
+ void broadcast(const std::string &msg, eFormatType type = NONE) const;
+ void kick(const CSession *session) const;
+ void addSession(const CSession &session);
+ void removeSession(std::pair<std::jthread, std::shared_ptr<CSession>> *session);
- bool nameExists(const std::string &name);
- void shutdownSessions();
+ bool nameExists(const std::string &name);
+ void shutdownSessions();
private:
- void broadcastChat(const std::string &msg, const std::string &username) const;
+ void broadcastChat(const std::string &msg, const std::string &username) const;
std::vector<std::pair<std::jthread, std::shared_ptr<CSession>>> m_vSessions;
- friend class CChatManager;
+ friend class CChatManager;
};
inline std::shared_ptr<CSessionManager> g_pSessionManager;