gloox 1.0
|
00001 /* 00002 Copyright (c) 2004-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 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__