discohandler.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef DISCOHANDLER_H__
00015 #define DISCOHANDLER_H__
00016
00017 #include "macros.h"
00018 #include "disco.h"
00019
00020 #include <string>
00021
00022 namespace gloox
00023 {
00024
00025 class IQ;
00026
00034 class GLOOX_API DiscoHandler
00035 {
00036 public:
00040 virtual ~DiscoHandler() {}
00041
00050 virtual void handleDiscoInfo( const JID& from, const Disco::Info& info, int context ) = 0;
00051
00060 virtual void handleDiscoItems( const JID& from, const Disco::Items& items, int context ) = 0;
00061
00069 virtual void handleDiscoError( const JID& from, const Error* error, int context ) = 0;
00070
00077 virtual bool handleDiscoSet( const IQ& iq ) { (void)iq; return false; }
00078
00079 };
00080
00081 }
00082
00083 #endif // DISCOHANDLER_H__