// Copyright 2009-2022 The Mumble Developers. All rights reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file at the root of the // Mumble source tree or at . #ifndef MUMBLE_USER_H_ #define MUMBLE_USER_H_ #ifndef Q_MOC_RUN # include #endif #include #include #include #include class Channel; class User { private: Q_DISABLE_COPY(User) public: unsigned int uiSession; int iId; QString qsName; QString qsComment; QByteArray qbaCommentHash; QString qsHash; bool bMute, bDeaf, bSuppress; bool bSelfMute, bSelfDeaf; bool bPrioritySpeaker; bool bRecording; Channel *cChannel; QByteArray qbaTexture; QByteArray qbaTextureHash; User(); virtual ~User(){}; static bool lessThan(const User *, const User *); }; // for last seen struct UserInfo { int user_id; QString name; boost::optional< int > last_channel; QDateTime last_active; UserInfo() : user_id(-1) {} UserInfo(int id, QString uname) : user_id(id), name(uname) {} }; #endif