• Main Page
  • Classes
  • Files
  • File List

Swiften/Queries/IQChannel.h

00001 /*
00002  * Copyright (c) 2010 Remko Tronçon
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <Swiften/Base/boost_bsignals.h>
00010 #include <boost/shared_ptr.hpp>
00011 
00012 #include <string>
00013 #include <Swiften/Base/API.h>
00014 #include <Swiften/Elements/IQ.h>
00015 
00016 namespace Swift {
00017   class SWIFTEN_API IQChannel {
00018     public:
00019       virtual ~IQChannel();
00020 
00021       virtual void sendIQ(boost::shared_ptr<IQ>) = 0;
00022       virtual std::string getNewIQID() = 0;
00023       
00024       virtual bool isAvailable() const = 0;
00025 
00026       boost::signal<void (boost::shared_ptr<IQ>)> onIQReceived;
00027   };
00028 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1