#include <privacyitem.h>
Public Types | |
| enum | ItemType { TypeUndefined, TypeJid, TypeGroup, TypeSubscription } |
| enum | ItemAction { ActionAllow, ActionDeny } |
| enum | ItemPacketType { PacketMessage = 1, PacketPresenceIn = 2, PacketPresenceOut = 4, PacketIq = 8, PacketAll = 15 } |
Public Member Functions | |
| PrivacyItem (const ItemType type=TypeUndefined, const ItemAction action=ActionAllow, const int packetType=0, const std::string &value="") | |
| virtual | ~PrivacyItem () |
| const ItemType | type () const |
| const ItemAction | action () const |
| const int | packetType () const |
| const std::string | value () const |
| bool | operator== (PrivacyItem &item) const |
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. |
|
|
Compares the current PrivacyItem with another one.
Definition at line 31 of file privacyitem.cpp. |
|
|
Returns the packet type the item affects.
Definition at line 101 of file privacyitem.h. |
|
|
Returns the item type.
Definition at line 89 of file privacyitem.h. |
|
|
Returns the value of the item's 'value' attribute.
Definition at line 107 of file privacyitem.h. |
1.4.1