bearermanagement/mpm/inc/mpmdefaultconnserversession.h
branchRCL_3
changeset 57 05bc53fe583b
parent 55 fc7b30ed2058
child 58 83ca720e2b9a
equal deleted inserted replaced
55:fc7b30ed2058 57:05bc53fe583b
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Session to MPM Default Connection server
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMPMDEFAULTCONNSERVERSESSION_H
       
    19 #define CMPMDEFAULTCONNSERVERSESSION_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include "mpmdefaultconnserver.h"
       
    23 
       
    24 
       
    25 /**
       
    26  *  Session to MPM Default Connection server
       
    27  *
       
    28  *  @lib MPMServer.exe
       
    29  *  @since S60 v3.2
       
    30  */
       
    31 class CMPMDefaultConnServerSession : public CSession2
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      */
       
    39     static CMPMDefaultConnServerSession* NewL( CMPMDefaultConnServer* aServer );
       
    40     
       
    41 
       
    42     /**
       
    43     * Destructor.
       
    44     */
       
    45     virtual ~CMPMDefaultConnServerSession();
       
    46 
       
    47    /**
       
    48      * Returns the default connection server object
       
    49      *
       
    50      * @since S60 v3.2
       
    51      * @return Default Connection server pointer
       
    52      */
       
    53      CMPMDefaultConnServer* DefaultConnServer();
       
    54 
       
    55 
       
    56 // from base class CSession2
       
    57 
       
    58       /**
       
    59        * From CSession2.
       
    60        * Serves client request
       
    61        *
       
    62        * @since S60 v3.2
       
    63        * @param aMessage Message from client
       
    64        */
       
    65        void ServiceL( const RMessage2& aMessage );
       
    66 
       
    67 
       
    68 private:
       
    69 
       
    70     CMPMDefaultConnServerSession( CMPMDefaultConnServer* aServer );
       
    71 
       
    72     void ConstructL();
       
    73     
       
    74     /**
       
    75      * Store IAP to be used as default connection in MPM Server
       
    76      *
       
    77      * @since S60 v3.2
       
    78      * @param aMessage Client message containing the IAP
       
    79      */
       
    80     void SetDefaultIAP( const RMessage2& aMessage );
       
    81 
       
    82     /**
       
    83      * Clear IAP from being used as default connection in MPM Server
       
    84      *
       
    85      * @since S60 v3.2
       
    86      */
       
    87     void ClearDefaultIAP( const RMessage2& aMessage );
       
    88 
       
    89 
       
    90 private: // data
       
    91 
       
    92     
       
    93     /**
       
    94      * Poiter to DefaultConnServer object. Not own
       
    95      */
       
    96     CMPMDefaultConnServer* iDefaultConnServer;
       
    97 
       
    98     };
       
    99 
       
   100 #endif // CMPMDEFAULTCONNSERVERSESSION_H