• Main Page
  • Classes
  • Files
  • File List

Swiften/Queries/DummyIQChannel.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 <vector>
00010 
00011 #include <Swiften/Queries/IQChannel.h>
00012 
00013 namespace Swift {
00014   class DummyIQChannel : public IQChannel {
00015     public:
00016       DummyIQChannel() {}
00017 
00018       virtual void sendIQ(boost::shared_ptr<IQ> iq) {
00019         iqs_.push_back(iq);
00020       }
00021 
00022       virtual std::string getNewIQID() {
00023         return "test-id";
00024       }
00025 
00026       virtual bool isAvailable() const {
00027         return true;
00028       }
00029 
00030       std::vector<boost::shared_ptr<IQ> > iqs_;
00031   };
00032 }

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