Add all useful classes as well: Jid, Iid, IrcChannel, IrcUser etc to properly keep the informations about what we receive from the IRC server. Only handle the MUC join stanza, and send the list of users in the IRC channel to the XMPP user, and the IRC channel’s topic, for now.
25 lines
445 B
C++
25 lines
445 B
C++
#ifndef IRC_USER_INCLUDED
|
|
# define IRC_USER_INCLUDED
|
|
|
|
#include <string>
|
|
|
|
/**
|
|
* Keeps various information about one IRC channel user
|
|
*/
|
|
class IrcUser
|
|
{
|
|
public:
|
|
explicit IrcUser(const std::string& name);
|
|
|
|
std::string nick;
|
|
std::string host;
|
|
|
|
private:
|
|
IrcUser(const IrcUser&) = delete;
|
|
IrcUser(IrcUser&&) = delete;
|
|
IrcUser& operator=(const IrcUser&) = delete;
|
|
IrcUser& operator=(IrcUser&&) = delete;
|
|
};
|
|
|
|
#endif // IRC_USER_INCLUDED
|