gloox 1.0
mucinvitationhandler.h
00001 /*
00002   Copyright (c) 2006-2009 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
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__