Move UserlistProxy to src/server/user and fix capitalization (#5475)

* move file

* fix capitalization
This commit is contained in:
RickyRister 2025-01-15 05:14:16 -08:00 committed by GitHub
parent 2def02e140
commit 455d68f9ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 34 additions and 33 deletions

View file

@ -0,0 +1,21 @@
#ifndef COCKATRICE_USERLISTPROXY_H
#define COCKATRICE_USERLISTPROXY_H
class QString;
class ServerInfo_User;
/**
* Responsible for providing a bare-bones minimal interface into userlist information,
* including your current connection to the server as well as buddy/ignore/alluser lists.
*/
class UserListProxy
{
public:
virtual bool isOwnUserRegistered() const = 0;
virtual QString getOwnUsername() const = 0;
virtual bool isUserBuddy(const QString &userName) const = 0;
virtual bool isUserIgnored(const QString &userName) const = 0;
virtual const ServerInfo_User *getOnlineUser(const QString &userName) const = 0; // Can return nullptr
};
#endif // COCKATRICE_USERLISTPROXY_H