smf/smfservermodule/smfclient/client/smfclientsymbiansession.h
changeset 14 a469c0e6e7fb
parent 7 be09cf1f39dd
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
    45      */
    45      */
    46     TInt sendRequest(SmfRequestTypeID requestType);
    46     TInt sendRequest(SmfRequestTypeID requestType);
    47     void Close(){};
    47     void Close(){};
    48 	bool isConnected();
    48 	bool isConnected();
    49 	bool connected;
    49 	bool connected;
       
    50 	/**
       
    51 	 * Sends async request to the Smf server
       
    52 	 * @param aSerializedData Serialized data to be sent to the server.
       
    53 	 * Consists of provider Info(SmfProvider*)+ Other common class data
       
    54 	 * (when applicable)-serialized
       
    55 	 * @param aInterfaceName Name of the interface
       
    56 	 * @param aStatus TRequestStatus
       
    57 	 * @param maxSize Size of the data to be allocated. This info is sent to the server
       
    58 	 * @param aXtraInfo When xtra common data class instances to be passed other than SmfProvider
       
    59 	 * so that it can allocate this much of memory.
       
    60 	 */
    50 	void sendAsyncRequest(QByteArray& aSerializedData,
    61 	void sendAsyncRequest(QByteArray& aSerializedData,
    51 			QString aInterfaceName,
    62 			QString aInterfaceName,
    52 			SmfRequestTypeID aRequestType,
    63 			SmfRequestTypeID aRequestType,
    53 			TRequestStatus& aStatus);
    64 			TRequestStatus& aStatus,
       
    65 			TInt aMaxAllocation,
       
    66 			QByteArray aXtraInfo=QByteArray());
    54 	/**
    67 	/**
    55 	 * This for getservices only
    68 	 * Sends sync request to the Smf server
    56 	 */
    69 	 */
    57 	TPtr8 sendSyncRequest(QString aInterfaceName,
    70 	TPtr8 sendSyncRequest(QString aInterfaceName,
    58 			SmfRequestTypeID aRequestType);
    71 			SmfRequestTypeID aRequestType,
       
    72 			TInt maxSize=0);
       
    73 	/**
       
    74 	 * Sends DSM related sync request to the Smf server
       
    75 	 */
       
    76 	TPtr8 sendDSMSyncRequest(SmfRequestTypeID aRequestType,
       
    77 			QByteArray& aSerializedData,
       
    78 			SmfError aErr,
       
    79 			TInt maxSize=0);
    59 	void writeLog(QString log) const;
    80 	void writeLog(QString log) const;
    60     /**
    81     /**
    61      * Returns data,used to return back the data received from server
    82      * Returns data,used to return back the data received from server
    62      */
    83      */
    63     TPtr8 getData()
    84     TPtr8 getData()
    73 	 */
    94 	 */
    74 	QByteArray iBaseProvider;
    95 	QByteArray iBaseProvider;
    75     TBuf8<525> iProviderSymbian;
    96     TBuf8<525> iProviderSymbian;
    76     TBuf<125> iInterfaceSymbian;
    97     TBuf<125> iInterfaceSymbian;
    77     TBuf8<125> iInterfaceSymbian8;
    98     TBuf8<125> iInterfaceSymbian8;
       
    99     TBuf<100> iDSMErr;
    78 	QString iInterfaceName;
   100 	QString iInterfaceName;
    79 	QByteArray iInterfaceNamebyte;
   101 	QByteArray iInterfaceNamebyte;
    80 
   102 
    81 	TPtr8 iDataPtr;
   103 	TPtr8 iDataPtr;
    82 	TPtr iDataPtr16;
   104 	TPtr iDataPtr16;
    86 	HBufC8* iIntfNameBuffer8;
   108 	HBufC8* iIntfNameBuffer8;
    87 	HBufC8* iProviderBuf;
   109 	HBufC8* iProviderBuf;
    88 	TPtr8 iPtrProvider;
   110 	TPtr8 iPtrProvider;
    89 	TPtr iIntfNamePtr;
   111 	TPtr iIntfNamePtr;
    90 	TPtr8 iIntfNamePtr8;
   112 	TPtr8 iIntfNamePtr8;
    91 	
   113 	HBufC8* iSlot0Buffer;
       
   114 	TPtr8 iPtrToSlot0;
    92 	TInt iMaxMessageSize;
   115 	TInt iMaxMessageSize;
       
   116 	TInt iMaxSize;
    93 	/**
   117 	/**
    94 	 * Last request opcode
   118 	 * Last request opcode
    95 	 */
   119 	 */
    96 	TInt iLastRequest;
   120 	TInt iLastRequest;
    97 	
   121