serviceproviders/sapi_mediamanagement/mediamanagementservice/inc/mgservice.h
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 33 50974a8b132e
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <clfcontentlisting.hrh>
    24 #include <clfcontentlisting.hrh>
    25 
    25 
    26 #include "mgservice.hrh"
    26 #include "mgservice.hrh"
    27 
    27 
       
    28 class CAsynchRequestManager;
    28 class CPostFilter;
    29 class CPostFilter;
    29 class MCLFSortingStyle;
    30 class MCLFSortingStyle;
    30 class MMgOperationObserver;
    31 class MMgOperationObserver;
    31 class CLiwGenericParamList;
    32 class CLiwGenericParamList;
    32 class MCLFContentListingEngine;
    33 class MCLFContentListingEngine;
   176        	*					 should performed
   177        	*					 should performed
   177         */
   178         */
   178  	    void SetSortingFieldL(  const TDesC8& aSortField ,
   179  	    void SetSortingFieldL(  const TDesC8& aSortField ,
   179  	    					    const TDesC8&  aOrder ,
   180  	    					    const TDesC8&  aOrder ,
   180         					    const RArray<TInt>& aMediaTypes,
   181         					    const RArray<TInt>& aMediaTypes,
   181         					    MCLFItemListModel* alistModel );
   182         					    MCLFItemListModel* alistModel,
       
   183         					    MCLFSortingStyle* aSortingStyle );
   182 
   184 
   183         /**
   185         /**
   184         * It will set the metadata field and values on which the result
   186         * It will set the metadata field and values on which the result
   185         * should be filtered.
   187         * should be filtered.
   186         * Leave with KErrNotSupported/KErrArgument
   188         * Leave with KErrNotSupported/KErrArgument
   189         * @param aFilterField filter criteria
   191         * @param aFilterField filter criteria
   190         * @param aStartVal Start value of the filter criteria
   192         * @param aStartVal Start value of the filter criteria
   191         * @param aEndVal	End Value of the filter criteria
   193         * @param aEndVal	End Value of the filter criteria
   192         * @param aMediaTypes specify the media type for which this
   194         * @param aMediaTypes specify the media type for which this
   193        	*		 filtering should be performed
   195        	*		 filtering should be performed
       
   196        	* @param aFilter It is instance of filter	 
   194         */
   197         */
   195         void SetFilterMetaDataL( const TDesC8& aFilterField,
   198         void SetFilterMetaDataL( const TDesC8& aFilterField,
   196         					     const TDesC& aStartVal,
   199         					     const TDesC& aStartVal,
   197         					     const TDesC& aEndVal,
   200         					     const TDesC& aEndVal,
   198         					     const RArray<TInt>& aMediaTypes,
   201         					     const RArray<TInt>& aMediaTypes,
   199         					     MCLFItemListModel* alistModel );
   202         					     MCLFItemListModel* alistModel,
       
   203         					     CPostFilter* aFilter);
   200 
   204 
   201         /**
   205         /**
   202         * Two-phased constructor
   206         * Two-phased constructor
   203         * @since  Series60 v3.2
   207         * @since  Series60 v3.2
   204         * @param  void
   208         * @param  void
   234         * @param aFilterField It specifies the Filter criteria
   238         * @param aFilterField It specifies the Filter criteria
   235         * @param aStartVal 	It specifies the start value for filter criteria
   239         * @param aStartVal 	It specifies the start value for filter criteria
   236         * @param aEndVal   	It specifies the end value for filter criteria
   240         * @param aEndVal   	It specifies the end value for filter criteria
   237         * @param aSortField	It specifies the field for sorting the result
   241         * @param aSortField	It specifies the field for sorting the result
   238         * @param aOrder		It specifies the sorting order Ascending/Descending
   242         * @param aOrder		It specifies the sorting order Ascending/Descending
       
   243         * @param aListModel It stores the instance of Listmodel object
       
   244         * @param aFilter    It stores the instance of filter param 
       
   245         * @param aSortingStyle It stores the instance of MCLSortingStyle
   239         * @return 			System wide error code if the operation did not
   246         * @return 			System wide error code if the operation did not
   240         *         			succeed.
   247         *         			succeed.
   241         */
   248         */
   242         void SendRequestToClfL( const TDesC8& aFileType,
   249         void SendRequestToClfL( const TDesC8& aFileType,
   243         					   const TDesC8& aFilterField,
   250         					   const TDesC8& aFilterField,
   244         					   const TDesC& aStartVal,
   251         					   const TDesC& aStartVal,
   245         					   const TDesC& aEndVal,
   252         					   const TDesC& aEndVal,
   246         					   const TDesC8& aSortField,
   253         					   const TDesC8& aSortField,
   247         					   const TDesC8& aOrder,
   254         					   const TDesC8& aOrder,
   248         					   MCLFItemListModel* listModel );
   255         					   MCLFItemListModel* aListModel,
       
   256         					   CPostFilter* aFilter,
       
   257         					   MCLFSortingStyle* aSortingStyle );
   249 
   258 
   250          /**
   259          /**
   251         * This function will check whether metadata is supported for
   260         * This function will check whether metadata is supported for
   252         * requested mediafiles or not,If it is supported 
   261         * requested mediafiles or not,If it is supported 
   253         * then convert it into equivalent metadata ID
   262         * then convert it into equivalent metadata ID
   287 
   296 
   288     	/**
   297     	/**
   289      	* store the instance of CPostfilter which filters the result
   298      	* store the instance of CPostfilter which filters the result
   290      	* as per the set filter criteria
   299      	* as per the set filter criteria
   291      	*/
   300      	*/
   292     	CPostFilter* iFilter;
   301     	//CPostFilter* iFilter;
   293 
   302 
   294     	/**
   303     	/**
   295      	* store the instance of sorting style which sorts the result
   304      	* store the instance of sorting style which sorts the result
   296      	* as per the set sort criteria
   305      	* as per the set sort criteria
   297      	*/
   306      	*/
   298        	MCLFSortingStyle* iSortingStyle;
   307        	//MCLFSortingStyle* iSortingStyle;
   299 
   308 
   300        	/**
   309        	/**
   301      	* store the instance of class which observes CLF event
   310      	* store the instance of class which observes CLF event
   302      	*/
   311      	*/
   303        	CClfOperationObserver* iClfObserver;
   312        	//CClfOperationObserver* iClfObserver;
   304        	
   313        	
   305        	/**
   314        	/**
   306      	* stores the Cuurent TransactionID
   315      	* stores the Cuurent TransactionID
   307      	*/
   316      	*/
   308     	TUint  iTransactionID;
   317     	TUint  iTransactionID;
   309 
   318 
   310         /**
   319         /**
   311         * stors the instance of iTumbnailGeneration
   320         * stores the instance of TumbnailGeneration
   312         */    	
   321         */    	
   313     	CThumbnailGeneration* iTumbnailGeneration; 
   322     	CThumbnailGeneration* iTumbnailGeneration; 
   314     	
   323     	
       
   324     	/**
       
   325     	 * stores the instance of AsyncRequestManager 
       
   326     	 */
       
   327     	CAsynchRequestManager* iAsyncRequestManager;
   315     	
   328     	
   316     	
   329     	
   317     	
   330     	
   318       };
   331       };
   319 
   332