Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

discohandler.h

00001 /*
00002   Copyright (c) 2004-2008 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 #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 
00078       virtual bool handleDiscoSet( const IQ& iq ) { (void)iq; return false; }
00079 
00080   };
00081 
00082 }
00083 
00084 #endif // DISCOHANDLER_H__

Generated on Sun Oct 12 16:25:15 2008 for gloox by  doxygen 1.4.1