mucinvitationhandler.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef MUCINVITATIONHANDLER_H__
00016 #define MUCINVITATIONHANDLER_H__
00017
00018 #include "clientbase.h"
00019 #include "macros.h"
00020 #include "jid.h"
00021 #include "mucroom.h"
00022
00023 #include <string>
00024
00025 namespace gloox
00026 {
00027
00036 class GLOOX_API MUCInvitationHandler
00037 {
00038 public:
00043 MUCInvitationHandler( ClientBase* parent )
00044 {
00045 if( parent )
00046 parent->registerStanzaExtension( new MUCRoom::MUCUser() );
00047 }
00048
00052 virtual ~MUCInvitationHandler() {}
00053
00065 virtual void handleMUCInvitation( const JID& room, const JID& from, const std::string& reason,
00066 const std::string& body, const std::string& password,
00067 bool cont, const std::string& thread ) = 0;
00068 };
00069
00070 }
00071
00072 #endif // MUCINVITATIONHANDLER_H__