example/clientapi/smf/inc/common/smfcontacts/smfpost.h
changeset 1 4b1e636e8a71
child 2 86af6c333601
equal deleted inserted replaced
0:5d2360e70d9f 1:4b1e636e8a71
       
     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 "{License}"
       
     6 * which accompanies  this distribution, and is available
       
     7 * at the URL "{LicenseUrl}".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Manasij Roy
       
    14 * Description:
       
    15 * Interface spefication for sfm service provider
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SMFPOST_H_
       
    20 #define SMFPOST_H_
       
    21 #include "SmfClientGlobal.h"
       
    22 /**
       
    23  * class for post, later may be we need to add media. 
       
    24  * Post consists of a title and description
       
    25  */
       
    26 
       
    27 class SMFCLIENT_EXPORT SmfPost : public QObject
       
    28 	{
       
    29 	Q_OBJECT
       
    30 public:
       
    31 	/**
       
    32 	 * Constructs a post 
       
    33 	 */
       
    34 	SmfPost(QObject* provider=0);
       
    35 	
       
    36 	/**
       
    37 	 * Constructs a post with text,image and url
       
    38 	 */
       
    39 	SmfPost(QString text,QPixmap image, QString url);
       
    40 	~SmfPost();
       
    41 	
       
    42 	/**
       
    43 	 * Gets post title
       
    44 	 */
       
    45 	QString* getTitle();
       
    46 	
       
    47 	/**
       
    48 	 * Gets post text
       
    49 	 */
       
    50 	QString* getDescription();
       
    51 	
       
    52 	/**
       
    53 	 * Sets post title
       
    54 	 */
       
    55 	void setTitle(QString* title);
       
    56 	
       
    57 	/**
       
    58 	 * Sets post text
       
    59 	 */
       
    60 	void setDescription(QString* desc);
       
    61 
       
    62 private:
       
    63 	QString m_text;
       
    64 	QPixmap m_image;
       
    65 	QString m_url;
       
    66 	};
       
    67 /**
       
    68 * Externalization
       
    69 */
       
    70 QDataStream &operator<<(QDataStream &, const SmfPost&);
       
    71 /**
       
    72  * Internalization
       
    73  */
       
    74 QDataStream &operator>>(QDataStream &, SmfPost&);
       
    75 #endif /* SMFPOST_H_ */