smf/smfservermodule/smfserver/pluginmgr/smfpluginmanagerutil.h
changeset 18 013a02bf2bb0
parent 14 a469c0e6e7fb
child 25 a180113055cb
equal deleted inserted replaced
17:106a4bfcb866 18:013a02bf2bb0
    61 	 * This method calls the respective plugin methods for creation of 
    61 	 * This method calls the respective plugin methods for creation of 
    62 	 * web queries using the aOperation and aInputData parameters.
    62 	 * web queries using the aOperation and aInputData parameters.
    63 	 * @param aInstance Instance of the loaded plugin that perform this operation
    63 	 * @param aInstance Instance of the loaded plugin that perform this operation
    64 	 * @param aOperation The type of operation to be performed
    64 	 * @param aOperation The type of operation to be performed
    65 	 * @param aInputData The data required to create the web query
    65 	 * @param aInputData The data required to create the web query
    66 	 * @param aReqData [out] The request data created by the plugin
    66 	 * @param aReqData [out] The request data created by the 
       
    67 	 * plugin (don't consider for synchronous requests)
    67 	 * @param aResult [out] SmfError, The result of the operation
    68 	 * @param aResult [out] SmfError, The result of the operation
    68 	 * It can be :-
    69 	 * It can be :-
    69 	 * SmfPluginNoError (if plugin has created the request successfully)
    70 	 * SmfPluginNoError (if plugin has created the request successfully)
    70 	 * SmfPluginUnknownPluginService (if plugin service is not known or unsupported)
    71 	 * SmfPluginUnknownPluginService (if plugin service is not known or unsupported)
    71 	 * SmfPluginRequestCreationFailed (if request creation has failed)
    72 	 * SmfPluginRequestCreationFailed (if request creation has failed)
       
    73 	 * @param aOutputData [out] The output data to be filled by the 
       
    74 	 * plugins (for synchronous request only), don't consider for asynchronous requests
    72 	 */
    75 	 */
    73 	void createRequest ( QObject* aInstance, 
    76 	void createRequest ( QObject* aInstance, 
    74 			const SmfRequestTypeID &aOperation, 
    77 			const SmfRequestTypeID &aOperation, 
    75 			QByteArray &aInputData,
    78 			QByteArray &aInputData,
    76 			SmfPluginRequestData &aReqData,
    79 			SmfPluginRequestData &aReqData,
    77 			SmfError &aResult );
    80 			SmfError &aResult,
       
    81 			QByteArray &aOutputData );
    78 	
    82 	
    79 	/**
    83 	/**
    80 	 * Method to create a web query to fetch activities
    84 	 * Method to create a web query to fetch activities
    81 	 * @param aPlugin The instance of the loaded plugin that performs the 
    85 	 * @param aPlugin The instance of the loaded plugin that performs the 
    82 	 * contact fetch operation.
    86 	 * contact fetch operation.
   204 	 */
   208 	 */
   205 	SmfPluginError createGalleryRequest ( QObject *aPlugin, 
   209 	SmfPluginError createGalleryRequest ( QObject *aPlugin, 
   206 			const SmfRequestTypeID &aOperation, 
   210 			const SmfRequestTypeID &aOperation, 
   207 			QByteArray &aInputData,
   211 			QByteArray &aInputData,
   208 			SmfPluginRequestData &aReqData );
   212 			SmfPluginRequestData &aReqData );
       
   213 	
       
   214 	/**
       
   215 	 * Method called to create a synchronous plugin request.
       
   216 	 * @param aPlugin The instance of the loaded plugin that performs the 
       
   217 	 * contact fetch operation.
       
   218 	 * @param aOperation The type of operation to be performed
       
   219 	 * @param aInputData The data required to create the web query
       
   220 	 * @param aOutputData [out] The output data to be filled by the plugins
       
   221 	 * @return SmfPluginError
       
   222 	 */
       
   223 	SmfPluginError createSyncRequest ( QObject *aPlugin, 
       
   224 			const SmfRequestTypeID &aOperation, 
       
   225 			QByteArray &aInputData,
       
   226 			QByteArray &aOutputData );
   209 	
   227 	
   210 	/**
   228 	/**
   211 	 * Method called by Plugin Manager when network response is available
   229 	 * Method called by Plugin Manager when network response is available
   212 	 * @param aInstance The instance of the loaded plugin that requested 
   230 	 * @param aInstance The instance of the loaded plugin that requested 
   213 	 * the network operation.
   231 	 * the network operation.