vpnengine/vpnmanager/inc/vpnmanagersession.h
changeset 2 ef893827b4d1
parent 0 33413c0669b9
equal deleted inserted replaced
1:c9c2ad51f972 2:ef893827b4d1
    21 #define __VPNMANAGERSESSION_H__
    21 #define __VPNMANAGERSESSION_H__
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 
    24 
    25 class CVpnManagerServer;
    25 class CVpnManagerServer;
    26 class CRequestDispatcher;
    26 class CVpnApiServant;   
    27    
    27 
    28 /** 
    28 /** 
    29  * A handler for the service requests received from clients.
    29  * A handler for the service requests received from clients.
    30  * An instance of class CVpnManagerSession is created for each client.
    30  * An instance of class CVpnManagerSession is created for each client.
    31  */
    31  */
    32 class CVpnManagerSession : public CSession2
    32 class CVpnManagerSession : public CSession2
    40      * @param The server
    40      * @param The server
    41      *
    41      *
    42      * @result Pointer to the new session
    42      * @result Pointer to the new session
    43      */
    43      */
    44     static CVpnManagerSession* NewL(CVpnManagerServer& aServer,
    44     static CVpnManagerSession* NewL(CVpnManagerServer& aServer,
    45                                     CRequestDispatcher& aRequestDispatcher);
    45                                     CVpnApiServant& aVpnApiServant);
    46     /**
    46     /**
    47      * Creates a CVpnManagerSession object using two phase construction,
    47      * Creates a CVpnManagerSession object using two phase construction,
    48      * and returns a pointer to the created object
    48      * and returns a pointer to the created object
    49      * (leaving a pointer to the object on the cleanup stack)
    49      * (leaving a pointer to the object on the cleanup stack)
    50      *
    50      *
    52      * @param The server
    52      * @param The server
    53      *
    53      *
    54      * @result Pointer to the new session
    54      * @result Pointer to the new session
    55      */
    55      */
    56     static CVpnManagerSession* NewLC(CVpnManagerServer& aServer,
    56     static CVpnManagerSession* NewLC(CVpnManagerServer& aServer,
    57                                      CRequestDispatcher& aRequestDispatcher);
    57                                      CVpnApiServant& aVpnApiServant);
    58 
    58 
    59 	/**
    59 	/**
    60      * Destroy the object and release all memory objects
    60      * Destroy the object and release all memory objects
    61      */
    61      */
    62     ~CVpnManagerSession();
    62     ~CVpnManagerSession();
    76      * 
    76      * 
    77      * @param Client's thread
    77      * @param Client's thread
    78      * @param The server
    78      * @param The server
    79      */
    79      */
    80     CVpnManagerSession(CVpnManagerServer& aServer,
    80     CVpnManagerSession(CVpnManagerServer& aServer,
    81                        CRequestDispatcher& aRequestDispatcher);
    81                        CVpnApiServant& aVpnApiServant);
    82 
    82 
    83     /**
    83     /**
    84      * The second phase of two phase construction
    84      * The second phase of two phase construction
    85      */
    85      */
    86     void ConstructL() ;
    86     void ConstructL() ;
    87 
    87 
    88 private:
    88 private:
    89     RMessage2               iMessage;
    89     RMessage2               iMessage;
    90     CVpnManagerServer&      iServer;
    90     CVpnManagerServer&      iServer;
    91     CRequestDispatcher&     iRequestDispatcher;    
    91     CVpnApiServant&         iVpnApiServant;    
    92     };
    92     };
    93 
    93 
    94 #endif // __VPNMANAGERSESSION_H__
    94 #endif // __VPNMANAGERSESSION_H__