diff options
Diffstat (limited to 'Swiften/Client/BlockList.h')
-rw-r--r-- | Swiften/Client/BlockList.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Swiften/Client/BlockList.h b/Swiften/Client/BlockList.h index 1ee1ad9..c200f20 100644 --- a/Swiften/Client/BlockList.h +++ b/Swiften/Client/BlockList.h @@ -13,25 +13,25 @@ #include <Swiften/JID/JID.h> namespace Swift { - class SWIFTEN_API BlockList { - public: - enum State { - Init, - Requesting, - Available, - Error - }; - virtual ~BlockList(); - - virtual State getState() const = 0; - - virtual const std::vector<JID>& getItems() const = 0; - - bool isBlocked(const JID& jid) const; - - public: - boost::signal<void ()> onStateChanged; - boost::signal<void (const JID&)> onItemAdded; - boost::signal<void (const JID&)> onItemRemoved; - }; + class SWIFTEN_API BlockList { + public: + enum State { + Init, + Requesting, + Available, + Error + }; + virtual ~BlockList(); + + virtual State getState() const = 0; + + virtual const std::vector<JID>& getItems() const = 0; + + bool isBlocked(const JID& jid) const; + + public: + boost::signal<void ()> onStateChanged; + boost::signal<void (const JID&)> onItemAdded; + boost::signal<void (const JID&)> onItemRemoved; + }; } |