example/clientapi/smf/inc/common/smfpictures/smfcomment.h
changeset 1 4b1e636e8a71
equal deleted inserted replaced
0:5d2360e70d9f 1:4b1e636e8a71
       
     1 /**
       
     2  * @file	smfcomment.h
       
     3  * @author  Nalina Hariharan, Sasken Communication Technologies Ltd - Initial contribution
       
     4  * @version 1.0
       
     5  *
       
     6  * @section LICENSE
       
     7  *
       
     8  * Copyright (c) 2010 Sasken Communication Technologies Ltd. 
       
     9  * All rights reserved.
       
    10  * This component and the accompanying materials are made available 
       
    11  * under the terms of the "{License}" 
       
    12  * which accompanies  this distribution, and is available 
       
    13  * at the URL "{LicenseUrl}".
       
    14  * 
       
    15  * @section DESCRIPTION
       
    16  *
       
    17  * The comment class represents a comment on a picture or a music track
       
    18  */
       
    19 
       
    20 #ifndef SMFCOMMENT_H_
       
    21 #define SMFCOMMENT_H_
       
    22 
       
    23 #include <QDateTime>
       
    24 #include <qdatastream.h>
       
    25 #include "SmfClientGlobal.h"
       
    26 /**
       
    27  * The comment class represents a comment on a picture or a music track
       
    28  */
       
    29 class SMFCLIENT_EXPORT SmfComment : public QObject
       
    30 	{
       
    31 	Q_OBJECT
       
    32 public:
       
    33 	/**
       
    34 	 * Constructor with default argument
       
    35 	 * @param aParent The parent object 
       
    36 	 */
       
    37 	SmfComment( QObject *aParent = 0 );
       
    38 	/**
       
    39 	 * Destructor
       
    40 	 */
       
    41 	~SmfComment( );
       
    42 	
       
    43 
       
    44 	/**
       
    45 	 * Method to get the comment text
       
    46 	 * @param aText The comment text
       
    47 	 */
       
    48 	void getText( QString &aText );
       
    49 	
       
    50 	/**
       
    51 	 * Method to get the comment time stamp
       
    52 	 * @param aTimeStamp The comment time stamp value
       
    53 	 */
       
    54 	void getTimeStamp( QDateTime &aTimeStamp );
       
    55 	
       
    56 	/**
       
    57 	 * Method to get the id of the comment
       
    58 	 * @param aId The ID value 
       
    59 	 */
       
    60 	void getId( QString &aId );
       
    61 	
       
    62 	/**
       
    63 	 * Method to set the comment text
       
    64 	 * @param aText The comment text to be set
       
    65 	 */
       
    66 	void setText( const QString &aText );
       
    67 	
       
    68 	/**
       
    69 	 * Method to set the comment time stamp
       
    70 	 * @param aTimeStamp The comment time stamp value to be set
       
    71 	 */
       
    72 	void setTimeStamp( const QDateTime &aTimeStamp );
       
    73 	
       
    74 private:
       
    75 	QString m_text;			// comment text
       
    76 	QDateTime m_timeStamp;	// comment time stamp
       
    77 	QString m_commetnId;
       
    78 	
       
    79 	};
       
    80 /**
       
    81  * Externalization
       
    82  */
       
    83 QDataStream &operator<<(QDataStream &, const SmfComment &);
       
    84 /**
       
    85  * Internalization
       
    86  */
       
    87 QDataStream &operator>>(QDataStream &, SmfComment &);
       
    88 #endif /* SMFCOMMENT_H_ */