smf/smfservermodule/smfclient/common/smfactions_p.h
changeset 18 013a02bf2bb0
parent 17 106a4bfcb866
child 19 c412f0526c34
equal deleted inserted replaced
17:106a4bfcb866 18:013a02bf2bb0
     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  * Contains private implementation of the smfactions
       
    17  */
       
    18 
       
    19 #ifndef SMFACTIONS_P_H_
       
    20 #define SMFACTIONS_P_H_
       
    21 
       
    22 #include <QDateTime>
       
    23 #include <QSharedData>
       
    24 #include <QVariant>
       
    25 #include <QImage>
       
    26 #include <QDateTime>
       
    27 #include <QStringList>
       
    28 #include <QUrl>
       
    29 #include <qdatastream.h>
       
    30 #include <QSharedData>
       
    31 #include <QMetaType>
       
    32 
       
    33 #include "smfactions.h"
       
    34 #include "smfpost.h"
       
    35 #include "smfcontact.h"
       
    36 
       
    37 class SmfActivityObjectPrivate: public QSharedData
       
    38 	{
       
    39 public:	
       
    40 	SmfActivityObjectPrivate( ) {
       
    41 		m_id.clear();
       
    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( ) {}
       
    59 	
       
    60 	/**
       
    61 	 * Data members
       
    62 	 */
       
    63 	QString m_id;
       
    64 	QImage m_thumbnail;
       
    65 	QString m_caption;
       
    66 	SmfActivityObjectType m_type;
       
    67 	QVariant m_objData;
       
    68 	QString m_link;
       
    69 	QDateTime m_time;
       
    70 	QString m_content;
       
    71 	};
       
    72 
       
    73 class SmfActivityEntryPrivate: public QSharedData
       
    74 	{
       
    75 public:
       
    76 	SmfActivityEntryPrivate( ) {
       
    77 		m_id.clear();
       
    78 	}
       
    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 	 */
       
    95 	QString m_id;
       
    96 	SmfPost m_title;
       
    97 	SmfPost m_details;
       
    98 	SmfContact m_author;
       
    99 	SmfActivityVerb m_actionName;
       
   100 	QList<SmfActivityObject> m_activities;
       
   101 	SmfActivityObject m_targetObj;
       
   102 	};
       
   103 
       
   104 #endif /* SMFACTIONS_P_H_ */