adhoccommandprovider.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ADHOCCOMMANDPROVIDER_H__
00016 #define ADHOCCOMMANDPROVIDER_H__
00017
00018 #include "tag.h"
00019 #include "jid.h"
00020 #include "adhoc.h"
00021
00022 #include <list>
00023 #include <map>
00024 #include <string>
00025
00026 namespace gloox
00027 {
00028
00036 class GLOOX_API AdhocCommandProvider
00037 {
00038 public:
00042 virtual ~AdhocCommandProvider() {}
00043
00053 virtual void handleAdhocCommand( const JID& from, const Adhoc::Command& command,
00054 const std::string& sessionID ) = 0;
00055
00068 virtual bool handleAdhocAccessRequest( const JID& from, const std::string& command )
00069 {
00070 (void)from;
00071 (void)command;
00072 return true;
00073 }
00074
00075 };
00076
00077 }
00078
00079 #endif // ADHOCCOMMANDPROVIDER_H__