smf/smfservermodule/smfserver/transportmgr/smftransportmanagerutil.h
changeset 14 a469c0e6e7fb
parent 7 be09cf1f39dd
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
   183 	 */
   183 	 */
   184 	void convertErrorType( const QNetworkReply::NetworkError &aError,  
   184 	void convertErrorType( const QNetworkReply::NetworkError &aError,  
   185 			SmfTransportResult &aResult );
   185 			SmfTransportResult &aResult );
   186 	
   186 	
   187 	/**
   187 	/**
   188 	 * Method to deflate a gzipped network response. Once this method is called, 
   188 	 * Method to inflate a gzipped network response.
   189 	 * QNetworkReply internal buffer for holding network response is emptied.
   189 	 * @param aResponse The QByteArray holding the gzip encoded data
   190 	 * @param aResponse The QByteArray instance holding the gzip encoded data
       
   191 	 * @param aError Argument indicating error
   190 	 * @param aError Argument indicating error
   192 	 * @return a QByteArray* containing the deflated data. If deflating fails, 
   191 	 * @return a QByteArray* containing the inflated data. If inflation fails, 
   193 	 * the encoded data itself without deflation is returned.
   192 	 * NULL is returned
   194 	 */
   193 	 */
   195 	QByteArray* inflateResponse ( QByteArray &aResponse, int& aError );
   194 	QByteArray* inflateResponse ( QByteArray &aResponse, SmfError& aError );
       
   195 	
       
   196 	/**
       
   197 	 * Method to deflate a network request to gzip format.
       
   198 	 * @param aResponse The QByteArray that has to be gzipped
       
   199 	 * @param aError Argument indicating error
       
   200 	 * @return a QByteArray* containing the deflated data. If deflation fails, 
       
   201 	 * NULL is returned
       
   202 	 */
       
   203 	QByteArray* deflateRequest( QByteArray &aResponse, SmfError& aError );
   196 	
   204 	
   197 private:
   205 private:
   198 	/**
   206 	/**
   199 	 * Constructor with default argument
   207 	 * Constructor with default argument
   200 	 */
   208 	 */