smf/smfservermodule/smfclient/common/smfactions_p.h
changeset 14 a469c0e6e7fb
parent 8 4102c67b6e56
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
     8  *
     8  *
     9  * Initial Contributors:
     9  * Initial Contributors:
    10  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
    10  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
    11  *
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  * 
    12  * Description:
    15  * Description:
    13  * Contains private implementation of the smfactions
    16  * Contains private implementation of the smfactions
    14  */
    17  */
    15 
    18 
    16 #ifndef SMFACTIONS_P_H_
    19 #ifndef SMFACTIONS_P_H_
    17 #define SMFACTIONS_P_H_
    20 #define SMFACTIONS_P_H_
    18 
    21 
    19 #include <QDateTime>
    22 #include <QDateTime>
    20 #include <QSharedData>
    23 #include <QSharedData>
    21 #include <QList>
    24 #include <QVariant>
    22 #include <QImage>
    25 #include <QImage>
    23 #include <QDateTime>
    26 #include <QDateTime>
    24 #include <QStringList>
    27 #include <QStringList>
    25 #include <QUrl>
    28 #include <QUrl>
    26 #include <qdatastream.h>
    29 #include <qdatastream.h>
    27 #include <QSharedData>
    30 #include <QSharedData>
    28 #include <QMetaType>
    31 #include <QMetaType>
    29 
    32 
    30 #include "smfactions.h"
    33 #include "smfactions.h"
       
    34 #include "smfpost.h"
       
    35 #include "smfcontact.h"
    31 
    36 
    32 class SmfActivityObjectPrivate: public QSharedData
    37 class SmfActivityObjectPrivate: public QSharedData
    33 	{
    38 	{
    34 public:	
    39 public:	
    35 	SmfActivityObjectPrivate();
    40 	SmfActivityObjectPrivate( ) {
    36 	SmfActivityObjectPrivate(const SmfActivityObjectPrivate& aOther);
    41 		m_id.clear();
    37 	~SmfActivityObjectPrivate();
    42 		m_caption.clear();
       
    43 		m_link.clear();
       
    44 		m_content.clear();
       
    45 	}
       
    46 	
       
    47 	SmfActivityObjectPrivate( const SmfActivityObjectPrivate& aOther ) :
       
    48 		QSharedData (aOther),
       
    49 		m_id (aOther.m_id),
       
    50 		m_thumbnail (aOther.m_thumbnail),
       
    51 		m_caption (aOther.m_caption),
       
    52 		m_type (aOther.m_type),
       
    53 		m_objData (aOther.m_objData),
       
    54 		m_link (aOther.m_link),
       
    55 		m_time (aOther.m_time),
       
    56 		m_content (aOther.m_content) { }
       
    57 
       
    58 	~SmfActivityObjectPrivate( ) {}
    38 	
    59 	
    39 	/**
    60 	/**
    40 	 * Data members
    61 	 * Data members
    41 	 */
    62 	 */
    42 	QString m_id;
    63 	QString m_id;
    50 	};
    71 	};
    51 
    72 
    52 class SmfActivityEntryPrivate: public QSharedData
    73 class SmfActivityEntryPrivate: public QSharedData
    53 	{
    74 	{
    54 public:
    75 public:
    55 	SmfActivityEntryPrivate();
    76 	SmfActivityEntryPrivate( ) {
    56 	SmfActivityEntryPrivate(const SmfActivityEntryPrivate& aOther);
    77 		m_id.clear();
    57 	~SmfActivityEntryPrivate();
    78 	}
    58 	
    79 	
       
    80 	SmfActivityEntryPrivate( const SmfActivityEntryPrivate& aOther ) :
       
    81 		QSharedData (aOther),
       
    82 		m_id (aOther.m_id),
       
    83 		m_title (aOther.m_title),
       
    84 		m_details (aOther.m_details),
       
    85 		m_author (aOther.m_author),
       
    86 		m_actionName (aOther.m_actionName),
       
    87 		m_activities (aOther.m_activities),
       
    88 		m_targetObj (aOther.m_targetObj)  { }
       
    89 
       
    90 	~SmfActivityEntryPrivate( ) { }
       
    91 	
       
    92 	/**
       
    93 	 * Data members
       
    94 	 */
    59 	QString m_id;
    95 	QString m_id;
    60 	SmfPost m_title;
    96 	SmfPost m_title;
    61 	SmfPost m_details;
    97 	SmfPost m_details;
    62 	SmfContact m_author;
    98 	SmfContact m_author;
    63 	SmfActivityVerb m_actionName;
    99 	SmfActivityVerb m_actionName;