summaryrefslogtreecommitdiffstats
blob: 7a8d00837e6e38c26da1e316170781bd311eae7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SWIFTEN_IQHandler_H
#define SWIFTEN_IQHandler_H

#include <boost/shared_ptr.hpp>

#include "Swiften/Elements/IQ.h"

namespace Swift {
	class IQRouter;

	class IQHandler {
		public:
			IQHandler(IQRouter* router);
			virtual ~IQHandler();

			virtual bool handleIQ(boost::shared_ptr<IQ>) = 0;

		protected:
			IQRouter* getRouter() const {
				return router_;
			}
	
		private:
			IQRouter* router_;
	};
}

#endif