diff options
Diffstat (limited to 'Swiften/Queries/IQRouter.h')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/Queries/IQRouter.h | 41 |
2 files changed, 0 insertions, 41 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/Queries/IQRouter.h b/Swiften/Queries/IQRouter.h deleted file mode 100644 index 717a845..0000000 --- a/Swiften/Queries/IQRouter.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef SWIFTEN_IQRouter_H -#define SWIFTEN_IQRouter_H - -#include <boost/shared_ptr.hpp> -#include <vector> - -#include "Swiften/Base/String.h" -#include "Swiften/Elements/IQ.h" - -namespace Swift { - class IQChannel; - class IQHandler; - - class IQRouter { - public: - IQRouter(IQChannel* channel); - ~IQRouter(); - - void addHandler(IQHandler* handler); - void removeHandler(IQHandler* handler); - void addHandler(boost::shared_ptr<IQHandler> handler); - void removeHandler(boost::shared_ptr<IQHandler> handler); - - void sendIQ(boost::shared_ptr<IQ> iq); - String getNewIQID(); - - bool isAvailable(); - - private: - void handleIQ(boost::shared_ptr<IQ> iq); - void processPendingRemoves(); - - private: - IQChannel* channel_; - std::vector< boost::shared_ptr<IQHandler> > handlers_; - std::vector< boost::shared_ptr<IQHandler> > queuedRemoves_; - bool queueRemoves_; - }; -} - -#endif |