Implement the Bridge class to translate between the two protocols
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.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user