messagingapp/msgutils/convergedmessageutils/inc/convergedmessageaddressimpl.h
branchRCL_3
changeset 57 ebe688cedc25
equal deleted inserted replaced
54:fa1df4b99609 57:ebe688cedc25
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  * Description: This is the implementation class for 
       
    14  * 				ConvergedMessageAddress
       
    15  */
       
    16 
       
    17 #ifndef CONVERGED_MESSAGE_ADDRESS_IMPL_H
       
    18 #define CONVERGED_MESSAGE_ADDRESS_IMPL_H
       
    19 
       
    20 #include <QString>
       
    21 
       
    22 /**
       
    23 * Implementation of ConvergedMessageAddress data object.
       
    24 * Encapsulates message real address and alias.
       
    25 */
       
    26 class ConvergedMessageAddressImpl 
       
    27 {
       
    28 public:
       
    29 	/**
       
    30 	* Constructor
       
    31 	*/
       
    32 	ConvergedMessageAddressImpl(const QString &address = QString(),
       
    33 			const QString &alias = QString());
       
    34 
       
    35 	/**
       
    36 	* Destructor     
       
    37 	*/
       
    38 	~ConvergedMessageAddressImpl();
       
    39 
       
    40 	/**
       
    41 	* Sets real address.
       
    42 	* @param address Real address.
       
    43 	*/
       
    44 	void setAddress( const QString &address );
       
    45 
       
    46 	/**
       
    47 	* Returns real address.
       
    48 	* @return Real address.
       
    49 	*/
       
    50 	const QString& address() const;
       
    51 
       
    52 	/**
       
    53 	* Sets alias for the real address.
       
    54 	* @param alias for the real address.
       
    55 	*/
       
    56 	void setAlias( const QString &alias );
       
    57 
       
    58 	/**
       
    59 	* Returns alias for the real address.
       
    60 	* @return alias for the Real address. 
       
    61 	*/    
       
    62 	const QString& alias() const;
       
    63 
       
    64 	/**
       
    65 	* Serialize the data memebers into the stream.
       
    66 	* @param stream data stream to which data is serialized. 
       
    67 	*/
       
    68 	void serialize(QDataStream &stream) const;
       
    69 
       
    70 	/**
       
    71 	* Deserialize the stream to data members.
       
    72 	* @param stream data stream from which data is deserialized. 
       
    73 	*/
       
    74 	void deserialize(QDataStream &stream);
       
    75 
       
    76 private:  // Data
       
    77 	/**
       
    78 	* Real address
       
    79 	*/
       
    80 	QString  mRealAddress;
       
    81 
       
    82 	/**
       
    83 	* Alias for real address
       
    84 	*/
       
    85 	QString  mAlias;
       
    86 };
       
    87 
       
    88 #endif //CONVERGED_MESSAGE_ADDRESS_IMPL_H