smf/smfservermodule/smfclient/common/smfpicture.cpp
changeset 14 a469c0e6e7fb
parent 7 be09cf1f39dd
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
    15  * Description:
    15  * Description:
    16  * The picture class represents an instance of a picture
    16  * The picture class represents an instance of a picture
    17  *
    17  *
    18  */
    18  */
    19 
    19 
    20 #include <smfpicture.h>
    20 #include "smfpicture.h"
    21 #include <smfpicture_p.h>
    21 #include "smfpicture_p.h"
    22 
    22 
    23 /**
    23 /**
    24  * Constructor with default argument
    24  * Constructor with default argument
    25  */
    25  */
    26 SmfPicture::SmfPicture( )
    26 SmfPicture::SmfPicture(/*bool aDownloaded*/)
    27 	{
    27 	{
    28 	d = new SmfPicturePrivate;
    28 	d = new SmfPicturePrivate;
       
    29 	//d->isDownloaded = aDownloaded;
    29 	}
    30 	}
    30 
    31 
    31 /**
    32 /**
    32  * Copy Constructor
    33  * Copy Constructor
    33  * @param aOther The reference object
    34  * @param aOther The reference object
   160  */
   161  */
   161 QString SmfPicture::id( ) const
   162 QString SmfPicture::id( ) const
   162 	{
   163 	{
   163 	return d->m_photoId;
   164 	return d->m_photoId;
   164 	}
   165 	}
   165 
   166 bool SmfPicture::downloadFlag()
       
   167 	{
       
   168 	return d->isDownloaded;
       
   169 	}
   166 /**
   170 /**
   167  * Method to set a picture owner
   171  * Method to set a picture owner
   168  * @param aOwner The owner of the picture
   172  * @param aOwner The owner of the picture
   169  */
   173  */
   170 void SmfPicture::setOwner( const QString &aOwner )
   174 void SmfPicture::setOwner( const QString &aOwner )
   319 	
   323 	
   320 	// Deserialize d->m_description
   324 	// Deserialize d->m_description
   321 	aDataStream>>aPic.d->m_description;
   325 	aDataStream>>aPic.d->m_description;
   322 	
   326 	
   323 	// Deserialize d->m_picVisibility
   327 	// Deserialize d->m_picVisibility
   324 	quint32 val = aPic.d->m_picVisibility;
   328 	quint32 val = 0;
   325 	aDataStream>>val;
   329 	aDataStream>>val;
   326 	//aPic.d->m_picVisibility = val;
   330 	aPic.d->m_picVisibility = (SmfPictureVisibility)val;
   327 
   331 
   328 	// Deserialize d->m_postedOn
   332 	// Deserialize d->m_postedOn
   329 	aDataStream>>aPic.d->m_postedOn;
   333 	aDataStream>>aPic.d->m_postedOn;
   330 	
   334 	
   331 	// Deserialize d->m_comments
   335 	// Deserialize d->m_comments