00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "privacyitem.h"
00016
00017 namespace gloox
00018 {
00019
00020 PrivacyItem::PrivacyItem( const ItemType type, const ItemAction action,
00021 const int packetType, const std::string& value )
00022 : m_type( type ), m_action( action ), m_packetType( packetType ),
00023 m_value( value )
00024 {
00025 }
00026
00027 PrivacyItem::~PrivacyItem()
00028 {
00029 }
00030
00031 bool PrivacyItem::operator==( PrivacyItem& item ) const
00032 {
00033 if( m_type == item.type()
00034 && m_action == item.action()
00035 && m_packetType == item.packetType()
00036 && m_value == item.value() )
00037 return true;
00038 else
00039 return false;
00040 }
00041 }