#include <privacyitem.h>
Public Types | |
enum | ItemType { TYPE_UNDEFINED, TYPE_JID, TYPE_GROUP, TYPE_SUBSCRIPTION } |
enum | ItemAction { ACTION_ALLOW, ACTION_DENY } |
enum | ItemPacketType { PACKET_MESSAGE = 1, PACKET_PRESENCE_IN = 2, PACKET_PRESENCE_OUT = 4, PACKET_IQ = 8, PACKET_ALL = 15 } |
Public Member Functions | |
PrivacyItem (const ItemType type=TYPE_UNDEFINED, const ItemAction action=ACTION_ALLOW, const int packetType=0, const std::string &value="") | |
virtual | ~PrivacyItem () |
const ItemType | type () |
const ItemAction | action () |
const int | packetType () |
const std::string | value () |
bool | operator== (PrivacyItem &item) |
Definition at line 31 of file privacyitem.h.
|
Two possible actions. Only one is allowed at a time.
Definition at line 52 of file privacyitem.h. |
|
The packet type a privacy item affects (blocks). Combinations are allowed.
Definition at line 61 of file privacyitem.h. |
|
Three possible types of an item. Only one is allowed at a time.
Definition at line 38 of file privacyitem.h. |
|
Constructs a new privacy item.
Definition at line 20 of file privacyitem.cpp. |
|
Virtual destructor. Definition at line 27 of file privacyitem.cpp. |
|
Returns the item's action.
Definition at line 95 of file privacyitem.h. Referenced by PrivacyItem::operator==(). |
|
Compares the current PrivacyItem with another one.
Definition at line 31 of file privacyitem.cpp. References PrivacyItem::action(), PrivacyItem::packetType(), PrivacyItem::type(), and PrivacyItem::value(). |
|
Returns the packet type the item affects.
Definition at line 101 of file privacyitem.h. Referenced by PrivacyItem::operator==(). |
|
Returns the item type.
Definition at line 89 of file privacyitem.h. Referenced by PrivacyItem::operator==(). |
|
Returns the value of the item's 'value' attribute.
Definition at line 107 of file privacyitem.h. Referenced by PrivacyItem::operator==(). |