example/clientapi/smf/inc/common/smfcontacts/smfpost_p.h
changeset 3 0446eb7b28aa
parent 2 86af6c333601
child 4 969092730d34
equal deleted inserted replaced
2:86af6c333601 3:0446eb7b28aa
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "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  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  * 
       
    15  * Description:
       
    16  * Private class implemented for implicit sharing of SmfPost class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFPOST_P_H_
       
    21 #define SMFPOST_P_H_
       
    22 
       
    23 #include <QSharedData>
       
    24 
       
    25 class SmfPostPrivate : public QSharedData
       
    26 {
       
    27 public:
       
    28 	/**
       
    29 	 * Constructor
       
    30 	 */
       
    31 	SmfPostPrivate( ) { m_title.clear(); m_desc.clear(); m_url.clear(); m_postId.clear(); }
       
    32 	
       
    33 	/**
       
    34 	 * Constructor
       
    35 	 */
       
    36 	SmfPostPrivate( QString aTitle, QString aDesc, QImage aImage, QUrl aUrl ) 
       
    37 		{
       
    38 		m_title = aTitle; 
       
    39 		m_desc = aDesc;
       
    40 		m_image = aImage;
       
    41 		m_url = aUrl;
       
    42 		m_postId.clear();
       
    43 		}
       
    44 	
       
    45 	/**
       
    46 	 * Copy Consturctor
       
    47 	 * @param aOther The reference object to be copy constructed
       
    48 	 */
       
    49 	SmfPostPrivate( const SmfPostPrivate &aOther ) : 
       
    50 		QSharedData ( aOther ), 
       
    51 		m_title ( aOther.m_title ), 
       
    52 		m_desc ( aOther.m_desc ),
       
    53 		m_image ( aOther.m_image ),
       
    54 		m_url ( aOther.m_url ),
       
    55 		m_postId ( aOther.m_postId )	{ }
       
    56 	
       
    57 	/**
       
    58 	 * Destructor
       
    59 	 */
       
    60 	~SmfPostPrivate( );
       
    61   
       
    62 	QString m_title;	// title
       
    63 	QString m_desc;		// description
       
    64 	QImage m_image;		// image
       
    65 	QUrl m_url;			// url
       
    66 	QString m_postId;	// post's unique Id
       
    67 	
       
    68 };
       
    69 
       
    70 #endif /* SMFPOST_P_H_ */