smf/smfcredentialmgr/smfcredmgrclient/smfcredmgrclientsession.h
changeset 14 a469c0e6e7fb
child 26 83d6a149c755
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
       
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "Eclipse Public License v1.0"
       
     6  * which accompanies  this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Pritam Roy Biswas, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Description:
       
    13  *  Client-side handle to a session with a server. Derives from RSessionBase to 
       
    14  *   create a communicating channel with the server.
       
    15  *
       
    16  */
       
    17 #ifndef RSMFCREDMGRCLIENTSESSION_H_
       
    18 #define RSMFCREDMGRCLIENTSESSION_H_
       
    19 
       
    20 #ifdef Q_OS_SYMBIAN
       
    21 #include <smfcredmgrcommon.h>
       
    22 #include <e32std.h>
       
    23 #include <e32std.h>
       
    24 #include <e32cmn.h>
       
    25 #endif
       
    26 
       
    27 /**
       
    28  * Class for client side handle and to create a channel with the server. 
       
    29  * Derives from RSessionBase.
       
    30  */
       
    31 class RSmfCredMgrClientSession : public RSessionBase
       
    32 	{
       
    33 public:
       
    34 	/**
       
    35 	 * Constructor
       
    36 	 */
       
    37 	RSmfCredMgrClientSession();
       
    38 
       
    39 	/**
       
    40 	 * Connection to server to be made using CreateSession()
       
    41 	 */
       
    42 	TInt connectToServer();
       
    43 
       
    44 	/**
       
    45 	 * Method to retrieve the Version of the Server
       
    46 	 */
       
    47 	TVersion Version() const;
       
    48 
       
    49 	/**
       
    50 	 * Close the session
       
    51 	 */
       
    52 	void Close();
       
    53 
       
    54 	/**
       
    55 	 * Calls SendReceive with requestType opcode and packaged data
       
    56 	 * depending on requestType
       
    57 	 */
       
    58 	void RequestAsyncService(TCredentialServerRequestID aRequestType,
       
    59 			TRequestStatus& aStatus);
       
    60 
       
    61 	/**
       
    62 	 * Issue request to server using SendReceive()
       
    63 	 */
       
    64 	void RequestService(TCredentialServerRequestID aRequestType,
       
    65 			const TIpcArgs &aArgs);
       
    66 
       
    67 	};
       
    68 
       
    69 #endif /* RSMFCREDMGRCLIENTSESSION_H_ */