#include <privacymanager.h>
Inherits IqHandler.
Inheritance diagram for PrivacyManager:
Public Member Functions | |
PrivacyManager (ClientBase *parent) | |
virtual | ~PrivacyManager () |
std::string | requestListNames () |
std::string | requestList (const std::string &name) |
std::string | store (const std::string &name, PrivacyListHandler::PrivacyList &list) |
std::string | removeList (const std::string &name) |
std::string | setDefault (const std::string &name) |
std::string | unsetDefault () |
std::string | setActive (const std::string &name) |
std::string | unsetActive () |
void | registerPrivacyListHandler (PrivacyListHandler *plh) |
void | removePrivacyListHandler () |
virtual bool | handleIq (Stanza *stanza) |
virtual bool | handleIqID (Stanza *stanza, int context) |
Definition at line 33 of file privacymanager.h.
|
Constructs a new PrivacyManager.
Definition at line 23 of file privacymanager.cpp. References ClientBase::registerIqHandler(). |
|
Virtual destructor. Definition at line 30 of file privacymanager.cpp. References ClientBase::removeIqHandler(). |
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 235 of file privacymanager.cpp. References Tag::addAttrib(), Tag::findAttribute(), Tag::findChild(), PrivacyListHandler::handlePrivacyListChanged(), Tag::hasAttribute(), Stanza::id(), ClientBase::send(), gloox::STANZA_IQ_SET, and Stanza::subtype(). |
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 256 of file privacymanager.cpp. References Tag::children(), Tag::findChild(), PrivacyListHandler::handlePrivacyListNames(), PrivacyListHandler::handlePrivacyListResult(), Stanza::id(), PrivacyListHandler::RESULT_ACTIVATE_SUCCESS, PrivacyListHandler::RESULT_DEFAULT_SUCCESS, PrivacyListHandler::RESULT_REMOVE_SUCCESS, PrivacyListHandler::RESULT_STORE_SUCCESS, gloox::STANZA_IQ_RESULT, and Stanza::subtype(). |
|
Use this function to register an object as PrivacyListHandler. Only one PrivacyListHandler at a time is possible.
Definition at line 384 of file privacymanager.cpp. |
|
Removes a list by its name.
Definition at line 71 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |
|
Use this function to clear the registered PrivacyListHandler. Definition at line 389 of file privacymanager.cpp. |
|
Triggers the retrieval of the named privacy lists.
Definition at line 52 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |
|
Triggers the request of the privacy lists currently stored on the server. Definition at line 36 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |
|
Sets the named list as active, i.e. active for this session
Definition at line 127 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |
|
Sets the named list as the default list, i.e. active by default after login.
Definition at line 90 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |
|
Stores the given list on the server. If a list with the given name exists, the existing list is overwritten.
Definition at line 164 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), PrivacyItem::TYPE_GROUP, PrivacyItem::TYPE_JID, and PrivacyItem::TYPE_SUBSCRIPTION. |
|
This function declines the use of any active list. Definition at line 146 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |
|
This function declines the use of any default list. Definition at line 109 of file privacymanager.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::send(), and ClientBase::trackID(). |