phonesrv_plat/sat_client_api/inc/RSatSession.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-2008 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:  Common session for accessing SatServer services.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RSATSESSION_H
       
    19 #define RSATSESSION_H
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25  * Definitions of SAT API versions.
       
    26  */ 
       
    27 #define SIM_ATK_SERVICE_API_V1
       
    28 
       
    29 /**
       
    30 * Handles the connection to SatServer. This class
       
    31 * is used with the sub-sessions.
       
    32 *
       
    33 * @lib SatClient
       
    34 * @since Series60 2.6
       
    35 */
       
    36 class RSatSession : public RSessionBase
       
    37     {
       
    38 
       
    39     public: // New functions
       
    40 
       
    41         /**
       
    42         * C++ default constructor.
       
    43         */
       
    44         IMPORT_C RSatSession();
       
    45 
       
    46         /**
       
    47         * Opens session to SatServer
       
    48         */
       
    49         IMPORT_C void ConnectL();
       
    50 
       
    51         /**
       
    52         * The client API version.
       
    53         */
       
    54         IMPORT_C TVersion Version() const;
       
    55 
       
    56     private:
       
    57 
       
    58         /**
       
    59         * Prohibit copy constructor if not deriving from CBase.
       
    60         */
       
    61         RSatSession( const RSatSession& );
       
    62 
       
    63         /**
       
    64         * Prohibit assigment operator if not deriving from CBase.
       
    65         */
       
    66         RSatSession& operator=( const RSatSession& );
       
    67 
       
    68     };
       
    69 
       
    70 #endif      // RSATSESSION_H