cmmanager/cmmgr/cmmapi/inc/cmconnectionmethodapi.h
changeset 20 9c97ad6591ae
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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:
       
    15 * Client side IPC handling for Connection Method Manager server.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CMCONNECTIONMETHODAPI_H
       
    21 #define CMCONNECTIONMETHODAPI_H
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 
       
    26 NONSHARABLE_CLASS( RCmConnectionMethodApi ) : public RSubSessionBase
       
    27     {
       
    28 public:
       
    29     RCmConnectionMethodApi();
       
    30     TBool SessionConnected() const;
       
    31 
       
    32 public:
       
    33     void ConnectAndGetConnMethodWithIdL(
       
    34             const RSessionBase& aSession,
       
    35             const TUint32 aIapId,
       
    36             TInt& aExistingHandle );
       
    37     void ConnectAndGetConnMethodFromDestWithIndexL(
       
    38             const RSessionBase& aSession,
       
    39             const TInt aDestHandle,
       
    40             const TInt aIndex,
       
    41             TInt& aExistingHandle );
       
    42     void ConnectAndGetConnMethodFromDestWithIdL(
       
    43             const RSessionBase& aSession,
       
    44             const TInt aDestHandle,
       
    45             const TInt aIapId,
       
    46             TInt& aExistingHandle );
       
    47     void ConnectAndCreateConnMethodL(
       
    48             const RSessionBase& aSession,
       
    49             const TUint32 aBearerType );
       
    50     void ConnectAndCreateConnMethodWithIdL(
       
    51             const RSessionBase& aSession,
       
    52             const TUint32 aBearerType,
       
    53             const TUint32 aIapId );
       
    54     TInt ConnectAndCreateConnMethodCopy(
       
    55             const RSessionBase& aSession,
       
    56             const TInt aConnMethodHandle );
       
    57     void ConnectAndCreateConnMethodToDestL(
       
    58             const RSessionBase& aSession,
       
    59             const TInt aDestHandle,
       
    60             const TUint32 aBearerType );
       
    61     void ConnectAndCreateConnMethodToDestWithIdL(
       
    62             const RSessionBase& aSession,
       
    63             const TInt aDestHandle,
       
    64             const TUint32 aBearerType,
       
    65             const TUint32 aIapId );
       
    66 
       
    67     void Close();
       
    68 
       
    69     TInt GetIntAttribute(
       
    70             const TUint32 aAttribute,
       
    71             TUint32& aValue );
       
    72     TInt GetBoolAttribute(
       
    73             const TUint32 aAttribute,
       
    74             TBool& aValue );
       
    75     TInt GetStringAttribute(
       
    76             const TUint32 aAttribute,
       
    77             HBufC* aBuffer );
       
    78     TInt GetString8Attribute(
       
    79             const TUint32 aAttribute,
       
    80             HBufC8* aBuffer8 );
       
    81 
       
    82     TInt SetIntAttribute(
       
    83             const TUint32 aAttribute,
       
    84             const TUint32 aValue );
       
    85     TInt SetBoolAttribute(
       
    86             const TUint32 aAttribute,
       
    87             const TBool aValue );
       
    88     TInt SetStringAttribute(
       
    89             const TUint32 aAttribute,
       
    90             const TDesC16& aValue );
       
    91     TInt SetString8Attribute(
       
    92             const TUint32 aAttribute,
       
    93             const TDesC8& aValue );
       
    94 
       
    95     TInt Update();
       
    96     TInt Refresh();
       
    97     TInt Delete( TBool& aResult );
       
    98     TInt IsEqual( const TInt aHandle, TBool& aResult );
       
    99 
       
   100 private:
       
   101     // True when a subsession is established to the server.
       
   102     TBool iSessionConnected;
       
   103     };
       
   104 
       
   105 #endif // CMCONNECTIONMETHODAPI_H
       
   106 
       
   107 // End of file