gloox
1.0
|
00001 /* 00002 Copyright (c) 2005-2009 by Jakob Schroeter <js@camaya.net> 00003 This file is part of the gloox library. http://camaya.net/gloox 00004 00005 This software is distributed under a license. The full license 00006 agreement can be found in the file LICENSE in this distribution. 00007 This software may not be copied, modified, sold or distributed 00008 other than expressed in the named license agreement. 00009 00010 This software is distributed without any warranty. 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==( const 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 00042 }