diff options
Diffstat (limited to 'Swiften/Client/BlockList.h')
-rw-r--r-- | Swiften/Client/BlockList.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Swiften/Client/BlockList.h b/Swiften/Client/BlockList.h index 39a211d..99c83c1 100644 --- a/Swiften/Client/BlockList.h +++ b/Swiften/Client/BlockList.h @@ -7,5 +7,5 @@ #pragma once -#include <set> +#include <vector> #include <Swiften/JID/JID.h> @@ -16,7 +16,8 @@ namespace Swift { public: enum State { + Init, Requesting, Available, - Error, + Error }; virtual ~BlockList(); @@ -24,5 +25,7 @@ namespace Swift { virtual State getState() const = 0; - virtual const std::set<JID>& getItems() const = 0; + virtual const std::vector<JID>& getItems() const = 0; + + bool isBlocked(const JID& jid) const; public: |