cmmanager/cmmgr/cmmapi/inc/cmdestinationapi.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     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 CMDESTINATIONAPI_H
       
    21 #define CMDESTINATIONAPI_H
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 
       
    26 NONSHARABLE_CLASS( RCmDestinationApi ) : public RSubSessionBase
       
    27     {
       
    28 public:
       
    29     RCmDestinationApi();
       
    30     TBool SessionConnected();
       
    31 
       
    32 public:
       
    33     void ConnectAndGetDestWithIdL(
       
    34             const RSessionBase& aSession,
       
    35             const TUint32 aId,
       
    36             TInt& aExistingHandle );
       
    37     void ConnectAndCreateDestWithNameL(
       
    38             const RSessionBase& aSession,
       
    39             const TDesC& aName );
       
    40     void ConnectAndCreateDestWithNameAndIdL(
       
    41             const RSessionBase& aSession,
       
    42             const TDesC& aName,
       
    43             const TUint32 aId );
       
    44     void ConnectAndGetConnMethodAsEmbeddedDestL(
       
    45             const RSessionBase& aSession,
       
    46             const TInt aConnMethodHandle,
       
    47             TInt& aExistingHandle );
       
    48 
       
    49     void Close();
       
    50     TInt ConnectionMethodCount( TInt& aCount );
       
    51 
       
    52     TInt Priority( const TInt aHandle, TUint& aPriority );
       
    53     TInt GetName( HBufC* aBuffer );
       
    54 
       
    55     TInt GetId( TUint32& aId );
       
    56     TInt GetElementId( TUint32& aElementId );
       
    57     TInt GetMetadata(
       
    58             const TUint32 aMetadataField,
       
    59             TUint32& aValue );
       
    60     TInt GetProtectionLevel( TInt& aProtectionLevel );
       
    61 
       
    62     TInt AddConnectionMethod(
       
    63             const TInt aConnMethodHandle,
       
    64             TInt& aIndex );
       
    65     TInt AddEmbeddedDestination(
       
    66             const TInt aDestHandle,
       
    67             TInt& aIndex );
       
    68     TInt DeleteConnectionMethod(
       
    69             const TInt aConnMethodHandle );
       
    70     TInt RemoveConnectionMethod(
       
    71             const TInt aConnMethodHandle );
       
    72 
       
    73     TInt ModifyPriority(
       
    74             const TInt aConnMethodHandle,
       
    75             const TUint aIndex );
       
    76     TInt SetName( const TDesC& aValue );
       
    77     TInt SetMetadata(
       
    78             const TUint32 aMetaField,
       
    79             const TUint32 aValue );
       
    80     TInt SetProtection( const TInt aValue );
       
    81     TInt SetHidden( const TBool aHidden );
       
    82     TInt Update();
       
    83     TInt Refresh();
       
    84     TInt Delete();
       
    85     TInt IsConnected( TBool& aResult );
       
    86     TInt IsHidden( TBool& aResult );
       
    87     TInt IsEqual( const TInt aHandle, TBool& aResult );
       
    88     TInt GetIcon( HBufC* aBuffer );
       
    89     TInt SetIcon( const TDesC& aValue );
       
    90 
       
    91 private:
       
    92     // True when a subsession is established to the server.
       
    93     TBool iSessionConnected;
       
    94     };
       
    95 
       
    96 #endif // CMDESTINATIONAPI_H
       
    97 
       
    98 // End of file