smf/smfservermodule/smfclient/client/smfgallery.cpp
changeset 14 a469c0e6e7fb
parent 7 be09cf1f39dd
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
    34 		  m_private = NULL;
    34 		  m_private = NULL;
    35 		  }
    35 		  }
    36 	  }
    36 	  }
    37 
    37 
    38   /**
    38   /**
    39    * Get the picture listing asynchronously.
    39  * Get the album listing asynchronously.
    40    * The picturesAvailable() signal is emitted with SmfPictureList once the pictures have arrived.
    40  * The albumsAvailable() signal is emitted with SmfPictureAlbumList once the albums have arrived.
    41    * When the list is big user can specify the page number and per page item data.
    41    * When the list is big user can specify the page number and per page item data.
    42    * If not supplied by the user default values are used.
    42    * If not supplied by the user default values are used.
       
    43  * @param names the subject or any keywords to be used to filter albums with that name
       
    44  * @param user the user whose albums are requested 
    43    * @param pageNum Page number to download, SMF_FIRST_PAGE denotes fresh query.
    45    * @param pageNum Page number to download, SMF_FIRST_PAGE denotes fresh query.
    44    * @param perPage Item per page, default is SMF_ITEMS_PER_PAGE
    46    * @param perPage Item per page, default is SMF_ITEMS_PER_PAGE
    45    */
    47    */
    46   void SmfGallery::pictures(int pageNum,int perPage)
    48 void SmfGallery::albums(QStringList names, SmfContact* user, int pageNum,int perPage)
    47 	  {
    49 	  {
    48 	  m_private->pictures(pageNum,perPage);
    50 		m_private->albums(names,user, pageNum, perPage);	
    49 	  }
    51 	  }
    50 
    52 
    51   /**
    53   /**
    52    * Returns a user title/caption for the picture
    54  * Get the picture listing asynchronously.
       
    55  * The picturesAvailable() signal is emitted with SmfPictureList once the pictures have arrived.
       
    56  * When the list is big user can specify the page number and per page item data.
       
    57  * If not supplied by the user default values are used.
       
    58  * @param pageNum Page number to download, SMF_FIRST_PAGE denotes fresh query.
       
    59  * @param perPage Item per page, default is SMF_ITEMS_PER_PAGE
    53    */
    60    */
    54   QString SmfGallery::description(SmfPicture& picture)
    61 void SmfGallery::pictures(SmfPictureAlbumList &albums, int pageNum,int perPage)
    55 	  {
    62 	  {
    56 	  m_private->description(picture);
    63 	m_private->pictures( albums, pageNum, perPage);
    57 	  }
    64 	  }
    58 
    65 
    59   //APIs to get/set base provider info (SmfProvider)
    66   //APIs to get/set base provider info (SmfProvider)
    60 
    67 
    61   /**
    68   /**
    69 	/**
    76 	/**
    70 	 * Upload an image.Implemented as slot to connect to UI controls more easily
    77 	 * Upload an image.Implemented as slot to connect to UI controls more easily
    71 	 * uploadFinished() signal is emitted with the success value of the upload
    78 	 * uploadFinished() signal is emitted with the success value of the upload
    72 	 * @param image the image to be uploaded
    79 	 * @param image the image to be uploaded
    73 	 */
    80 	 */
    74    void SmfGallery::upload(SmfPicture* image) 
    81 void SmfGallery::upload(SmfPicture* image, SmfPictureAlbum* album)
    75 	   {
    82 	   {
    76 	   m_private->upload(image);
    83 	m_private->upload(image,album);
    77 	   }
    84 	   }
    78 
    85 
    79 	/**
    86 	/**
    80 	 * Upload an list image.Implemented as slot to connect to UI controls more easily
    87 	 * Upload an list image.Implemented as slot to connect to UI controls more easily
    81 	 * uploadFinished() signal is emitted with the success value of the upload
    88 	 * uploadFinished() signal is emitted with the success value of the upload
    82 	 * @param images the list image to be uploaded
    89 	 * @param images the list image to be uploaded
    83 	 */
    90 	 */
    84    void SmfGallery::upload(SmfPictureList* images) 
    91 
       
    92 void SmfGallery::upload(SmfPictureList* images, SmfPictureAlbum* album) 
    85 	   {
    93 	   {
    86 	   m_private->upload(images);
    94 	m_private->upload(images,album);
    87 	   }
    95 	   }
    88 
    96 
    89   /**
    97   /**
    90    * Posts a comment for an image. uploadFinished() signal is emitted
    98    * Posts a comment for an image. uploadFinished() signal is emitted
    91    * with success of the post once comment is posted.
    99    * with success of the post once comment is posted.
    94    */
   102    */
    95    void SmfGallery::postComment(SmfPicture image, SmfComment comment) 
   103    void SmfGallery::postComment(SmfPicture image, SmfComment comment) 
    96 	   {
   104 	   {
    97 	   m_private->postComment(image,comment);
   105 	   m_private->postComment(image,comment);
    98 	   }
   106 	   }
    99 
   107    
       
   108 QString SmfGallery::description(SmfPicture& picture)
       
   109    {
       
   110 		Q_UNUSED(picture);
       
   111    }
       
   112 /**
       
   113  * Request for a custom operation.
       
   114  * @param operationId OperationId
       
   115  * @param customData Custom data to be sent
       
   116  * Note:-Interpretation of operationId and customData is upto the concerned
       
   117  * plugin and client application. service provider should provide some
       
   118  * serializing-deserializing utilities for these custom data
       
   119  */
       
   120 void SmfGallery::customRequest(const int& operationId,QByteArray* customData)
       
   121 	{
       
   122 	/*to be implemented*/
       
   123 	Q_UNUSED(operationId);
       
   124 	Q_UNUSED(customData);
       
   125 	}