smf/smfservermodule/smfclient/common/smfpicture_p.h
changeset 14 a469c0e6e7fb
parent 7 be09cf1f39dd
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
    40 		m_title.clear();
    40 		m_title.clear();
    41 		m_description.clear();
    41 		m_description.clear();
    42 		m_comments.clear();
    42 		m_comments.clear();
    43 		m_tags.clear();
    43 		m_tags.clear();
    44 		m_url.clear();
    44 		m_url.clear();
       
    45 		isDownloaded = false;
    45 	}
    46 	}
    46 	/**
    47 	/**
    47 	 * Constructor
    48 	 * Constructor
    48 	 */
    49 	 */
    49 	SmfPicturePrivate( const QImage &aImage ) { 
    50 	SmfPicturePrivate( const QImage &aImage ) { 
    53 		m_description.clear();
    54 		m_description.clear();
    54 		m_comments.clear();
    55 		m_comments.clear();
    55 		m_tags.clear();
    56 		m_tags.clear();
    56 		m_url.clear();
    57 		m_url.clear();
    57 		m_picture = aImage;
    58 		m_picture = aImage;
       
    59 		//false by default
       
    60 		isDownloaded = false;
    58 	}
    61 	}
    59 	
    62 	
    60 	/**
    63 	/**
    61 	 * Copy Consturctor
    64 	 * Copy Consturctor
    62 	 * @param aOther The reference object to be copy constructed
    65 	 * @param aOther The reference object to be copy constructed
    70 		m_picVisibility ( aOther.m_picVisibility ),
    73 		m_picVisibility ( aOther.m_picVisibility ),
    71 		m_postedOn ( aOther.m_postedOn ),
    74 		m_postedOn ( aOther.m_postedOn ),
    72 		m_comments ( aOther.m_comments ),
    75 		m_comments ( aOther.m_comments ),
    73 		m_tags ( aOther.m_tags ),
    76 		m_tags ( aOther.m_tags ),
    74 		m_url ( aOther.m_url ),
    77 		m_url ( aOther.m_url ),
    75 		m_picture ( aOther.m_picture )	{ }
    78 		m_picture ( aOther.m_picture ),
       
    79 		isDownloaded(aOther.isDownloaded)
       
    80 			{
       
    81 		
       
    82 			}
    76 	
    83 	
    77 	/**
    84 	/**
    78 	 * Destructor
    85 	 * Destructor
    79 	 */
    86 	 */
    80 	~SmfPicturePrivate( )
    87 	~SmfPicturePrivate( )
    89 	QDateTime m_postedOn;	// date posted
    96 	QDateTime m_postedOn;	// date posted
    90 	QList<SmfComment> m_comments;		 // comments
    97 	QList<SmfComment> m_comments;		 // comments
    91 	QStringList m_tags;		// tags
    98 	QStringList m_tags;		// tags
    92 	QUrl m_url;				// url
    99 	QUrl m_url;				// url
    93 	QImage m_picture;		// picture data as bytearray
   100 	QImage m_picture;		// picture data as bytearray
    94 	
   101 	/**
       
   102 	 * Flag whether the content is actually available in device - 
       
   103 	 * if this is false then only the url/link to the media is available 
       
   104 	 * in the class - clients can use the link to download the content/visit 
       
   105 	 * the site.
       
   106 	 */
       
   107 	bool isDownloaded;
    95 };
   108 };
    96 
   109 
    97 #endif /* SMFPICTURE_P_H_ */
   110 #endif /* SMFPICTURE_P_H_ */