ipcm_pub/connection_settings_api/inc/cmmanager.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
     1 /*
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:  Connection manager IF class.
    15 * Connection method manager IF class.
       
    16 *
    15 *
    17 */
    16 */
    18 
    17 
    19 
       
    20 #ifndef CMMANAGER_H
    18 #ifndef CMMANAGER_H
    21 #define CMMANAGER_H
    19 #define CMMANAGER_H
    22 
    20 
       
    21 // System Includes
       
    22 #include <e32std.h>
    23 #include <e32base.h>
    23 #include <e32base.h>
       
    24 #include <e32cmn.h>
    24 #include <cmdefconnvalues.h>
    25 #include <cmdefconnvalues.h>
    25 #include <cmgenconnsettings.h>
    26 #include <cmgenconnsettings.h>
    26 
    27 
    27 // Forward declarations
    28 // Forward Declarations
    28 class RCmConnectionMethod;
    29 class RCmConnectionMethod;
    29 class RCmDestination;
    30 class RCmDestination;
       
    31 class CCmManagerImpl;
    30 class TBearerPriority;
    32 class TBearerPriority;
    31 class RCmManagerApi;
    33 class CGulIcon;
    32 
       
    33 
    34 
    34 /**
    35 /**
    35  *  RCmManager gives access to network destinations and connection methods.
    36  *  RCmManager gives access to network destinations and connection methods.
    36  *
    37  *
    37  *  @lib cmmanager.lib
    38  *  @lib cmmanager.lib
    38  *  @since S60 v3.2
    39  *  @since S60 v3.2
    39  */
    40  */
    40 NONSHARABLE_CLASS( RCmManager )
    41 NONSHARABLE_CLASS(RCmManager)
    41     {
    42       {          
       
    43     //=====================================================================
       
    44     // Constructors/Destructors
       
    45     // 
    42     public:
    46     public:
    43         /**
    47     
    44         * Default constructor.
    48         /**
       
    49         * Default constructor. 
    45         */
    50         */
    46         inline RCmManager();
    51         inline RCmManager();
    47 
    52 
       
    53     //=====================================================================
       
    54     // API functions
       
    55     public:
       
    56         
    48         /**
    57         /**
    49         * Symbian constructor
    58         * Symbian constructor
    50         *
    59         *
    51         * @since S60 3.2
    60         * @since S60 3.2
    52         */
    61         */
    53         IMPORT_C void OpenL();
    62         IMPORT_C void OpenL();    
    54 
    63         
    55         /**
    64         /**
    56         * Symbian constructor
    65         * Symbian constructor
    57         * Pushes the object on the cleanup stack
    66         * Pushes the object on the cleanup stack
    58         *
    67         *
    59         * @since S60 3.2
    68         * @since S60 3.2
    60         */
    69         */
    61         IMPORT_C void OpenLC();
    70         IMPORT_C void OpenLC();    
    62 
    71         
    63         /**
    72         /**
    64         * Secondary destructor
    73         * Secondary destructor
    65         *
    74         *
    66         * @since S60 3.2
    75         * @since S60 3.2
    67         */
    76         */
    68         IMPORT_C void Close();
    77         IMPORT_C void Close();
    69 
    78         
    70     public:
    79     //=======================================================================
       
    80     // Getter API
       
    81     public:    
       
    82       
    71         /**
    83         /**
    72         * Used to query bearer information that doesn't belong
    84         * Used to query bearer information that doesn't belong
    73         * to a specific connection method, such as
    85         * to a specific connection method, such as 
    74         * ECmCoverage or ECmDefaultPriority etc.
    86         * ECmCoverage or ECmDefaultPriority etc.
    75         *
    87         *
    76         * @since S60 3.2
    88         * @since S60 3.2
    77         * @param aBearerType the bearer
    89         * @param aBearerType the bearer
    78         * @param aAttribute the setting value
    90         * @param aAttribute the setting value
    79         * @return the setting value
    91         * @return the setting value
    80         */
    92         */
    81         IMPORT_C TUint32 GetBearerInfoIntL(
    93         IMPORT_C TUint32 GetBearerInfoIntL( TUint32 aBearerType,
    82                 TUint32 aBearerType,
    94                                   TUint32 aAttribute ) const;
    83                 TUint32 aAttribute ) const;
    95                                   
    84 
    96         
    85         /**
    97         /**
    86         * Used to query bearer information that doesn't belong
    98         * Used to query bearer information that doesn't belong
    87         * to a specific connection method, such as
    99         * to a specific connection method, such as 
    88         * ECmCoverage or ECmDefaultPriority etc.
   100         * ECmCoverage or ECmDefaultPriority etc.
    89         *
   101         *
    90         * @since S60 3.2
   102         * @since S60 3.2
    91         * @param aBearerType the bearer
   103         * @param aBearerType the bearer
    92         * @param aAttribute the setting value
   104         * @param aAttribute the setting value
    93         * @return the setting value
   105         * @return the setting value
    94         */
   106         */
    95         IMPORT_C TBool GetBearerInfoBoolL(
   107         IMPORT_C TBool GetBearerInfoBoolL( TUint32 aBearerType,
    96                 TUint32 aBearerType,
   108                                  TUint32 aAttribute ) const;
    97                 TUint32 aAttribute ) const;
       
    98 
       
    99         /**
   109         /**
   100         * Used to query bearer information that doesn't belong
   110         * Used to query bearer information that doesn't belong
   101         * to a specific connection method, such as
   111         * to a specific connection method, such as 
   102         * ECmCoverage or ECmDefaultPriority etc.
   112         * ECmCoverage or ECmDefaultPriority etc.
   103         * HBuf ownership is passed to the caller
   113         * HBuf ownership is passed to the caller
   104         *
   114         *
   105         * @since S60 3.2
   115         * @since S60 3.2
   106         * @param aBearerType the bearer
   116         * @param aBearerType the bearer
   107         * @param aAttribute the setting value
   117         * @param aAttribute the setting value
   108         * @return the setting value
   118         * @return the setting value
   109         */
   119         */        
   110         IMPORT_C HBufC* GetBearerInfoStringL(
   120         IMPORT_C HBufC* GetBearerInfoStringL( TUint32 aBearerType,
   111                 TUint32 aBearerType,
   121                                     TUint32 aAttribute ) const;
   112                 TUint32 aAttribute ) const;
       
   113 
       
   114         /**
   122         /**
   115         * Used to query bearer information that does not belong
   123         * Used to query bearer information that does not belong
   116         * to a specific connection method, such as
   124         * to a specific connection method, such as 
   117         * ECmCoverage or ECmDefaultPriority, etc.
   125         * ECmCoverage or ECmDefaultPriority, etc.
   118         * HBuf ownership is passed to the caller
   126         * HBuf ownership is passed to the caller
   119         *
   127         *
   120         * @since S60 3.2
   128         * @since S60 3.2
   121         * @param aBearerType the bearer
   129         * @param aBearerType the bearer
   122         * @param aAttribute the setting value
   130         * @param aAttribute the setting value
   123         * @return the setting value
   131         * @return the setting value
   124         */
   132         */
   125         IMPORT_C HBufC8* GetBearerInfoString8L(
   133         IMPORT_C HBufC8* GetBearerInfoString8L( TUint32 aBearerType,
   126                 TUint32 aBearerType,
   134                                     TUint32 aAttribute ) const;
   127                 TUint32 aAttribute ) const;
   135                     
   128 
       
   129         /**
   136         /**
   130         * Used to query any non-bearer specific information about
   137         * Used to query any non-bearer specific information about
   131         * a given connection method. This can be e.g. ECmBearerType,
   138         * a given connection method. This can be e.g. ECmBearerType,
   132         * ECmName, ECmStartPage, etc.
   139         * ECmName, ECmStartPage, etc.
   133         *
   140         *
   134         * @since S60 3.2
   141         * @since S60 3.2
   135         * @param aIapId the connection method id
   142         * @param aIapId the connection method id
   136         * @param aAttribute the setting value
   143         * @param aAttribute the setting value
   137         * @return the setting value
   144         * @return the setting value
   138         */
   145         */
   139         IMPORT_C TUint32 GetConnectionMethodInfoIntL(
   146         IMPORT_C TUint32 GetConnectionMethodInfoIntL( TUint32 aIapId,
   140                 TUint32 aIapId,
   147                                              TUint32 aAttribute ) const;
   141                 TUint32 aAttribute ) const;
   148         
   142 
       
   143         /**
   149         /**
   144         * Used to query any, non-bearer specific information about
   150         * Used to query any, non-bearer specific information about
   145         * a given connection method. This can be e.g. ECmBearerType,
   151         * a given connection method. This can be e.g. ECmBearerType,
   146         * ECmName, ECmStartPage, etc.
   152         * ECmName, ECmStartPage, etc.
   147         *
   153         *
   148         * @since S60 3.2
   154         * @since S60 3.2
   149         * @param aIapId the connection method id
   155         * @param aIapId the connection method id
   150         * @param aAttribute the setting value
   156         * @param aAttribute the setting value
   151         * @return the setting value
   157         * @return the setting value
   152         */
   158         */
   153         IMPORT_C TBool GetConnectionMethodInfoBoolL(
   159         IMPORT_C TBool GetConnectionMethodInfoBoolL( TUint32 aIapId,
   154                 TUint32 aIapId,
   160                                             TUint32 aAttribute ) const;
   155                 TUint32 aAttribute ) const;
       
   156 
   161 
   157         /**
   162         /**
   158         * Used to query any non-bearer specific information about
   163         * Used to query any non-bearer specific information about
   159         * a given connection method. This can be e.g. ECmBearerType,
   164         * a given connection method. This can be e.g. ECmBearerType,
   160         * ECmName, ECmStartPage, etc.
   165         * ECmName, ECmStartPage, etc.
   163         * @since S60 3.2
   168         * @since S60 3.2
   164         * @param aIapId the connection method id
   169         * @param aIapId the connection method id
   165         * @param aAttribute the setting value
   170         * @param aAttribute the setting value
   166         * @return the setting value
   171         * @return the setting value
   167         */
   172         */
   168         IMPORT_C HBufC* GetConnectionMethodInfoStringL(
   173         IMPORT_C HBufC* GetConnectionMethodInfoStringL( TUint32 aIapId,
   169                 TUint32 aIapId,
   174                                                TUint32 aAttribute ) const;
   170                 TUint32 aAttribute ) const;
       
   171 
   175 
   172         /**
   176         /**
   173         * Used to query any non-bearer specific information about
   177         * Used to query any non-bearer specific information about
   174         * a given connection method. This can be e.g. ECmBearerType,
   178         * a given connection method. This can be e.g. ECmBearerType,
   175         * ECmName, ECmStartPage, etc.
   179         * ECmName, ECmStartPage, etc.
   178         * @since S60 3.2
   182         * @since S60 3.2
   179         * @param aIapId the connection method id
   183         * @param aIapId the connection method id
   180         * @param aAttribute the setting value
   184         * @param aAttribute the setting value
   181         * @return the setting value
   185         * @return the setting value
   182         */
   186         */
   183         IMPORT_C HBufC8* GetConnectionMethodInfoString8L(
   187         IMPORT_C HBufC8* GetConnectionMethodInfoString8L( TUint32 aIapId,
   184                 TUint32 aIapId,
   188                                                TUint32 aAttribute ) const;
   185                 TUint32 aAttribute ) const;
   189                 
   186 
       
   187         /**
   190         /**
   188         * Returns the connection method queried by its ID
   191         * Returns the connection method queried by its ID
   189         *
   192         *
   190         * @since S60 3.2
   193         * @since S60 3.2
   191         * @param aConnectionMethodId id of the connection method
   194         * @param aConnectionMethodId id of the connection method
   192         * @return RCmConnectionMethod connection method
   195         * @return RCmConnectionMethod connection method
   193         */
   196         */
   194         IMPORT_C RCmConnectionMethod ConnectionMethodL(
   197         IMPORT_C RCmConnectionMethod ConnectionMethodL( 
   195                 TUint32 aConnectionMethodId ) const;
   198                                      TUint32 aConnectionMethodId ) const;
   196 
   199                         
   197         /**
   200         /**
   198         * Returns the list of connection methods. Connection Methods are
   201         * Returns the list of connection methods. Connection Methods are 
   199         * filtered by the switch parameters e.g. aLegacyOnly.
   202         * filtered by the switch parameters e.g. aLegacyOnly.
   200         *
   203         *
   201         * @since S60 3.2
   204         * @since S60 3.2
   202         * @param aCMArray on return it is the array of IAP ids.
   205         * @param aCMArray on return it is the array of IAP ids.
   203         * @param aCheckBearerType If ETrue only connection methods with
   206         * @param aCheckBearerType If ETrue only connection methods with 
   204         *                         supported bearer type are returned
   207         *                         supported bearer type are returned
   205         * @param aLegacyOnly when set to ETrue only Legacy IAP ids will
   208         * @param aLegacyOnly when set to ETrue only Legacy IAP ids will
   206         *                         be returned
   209         *                         be returned
   207         * @param aEasyWlan when set to ETrue EasyWlan id is returned, too
   210         * @param aEasyWlan when set to ETrue EasyWlan id is returned, too
   208         */
   211         */
   209         IMPORT_C void ConnectionMethodL(
   212         IMPORT_C void ConnectionMethodL( RArray<TUint32>& aCMArray, 
   210                 RArray<TUint32>& aCmArray,
   213                                          TBool aCheckBearerType = ETrue,
   211                 TBool aCheckBearerType = ETrue,
   214                                          TBool aLegacyOnly = ETrue,
   212                 TBool aLegacyOnly = ETrue,
   215                                          TBool aEasyWlan = EFalse ) const;
   213                 TBool aEasyWlan = EFalse ) const;
   216         
   214 
       
   215         /**
   217         /**
   216         * Returns an array of all destination id's
   218         * Returns an array of all destination id's
   217         *
   219         *
   218         * @since S60 3.2
   220         * @since S60 3.2
   219         * @param aDestArray list all available destinations' id
   221         * @param aDestArray list all available destinations' id
   220         */
   222         */ 
   221         IMPORT_C void AllDestinationsL( RArray<TUint32>& aDestArray ) const;
   223         IMPORT_C void AllDestinationsL( RArray<TUint32>& aDestArray ) const;
   222 
   224 
   223         /**
   225         /**
   224         * Returns the destination to which a specified
   226         * Returns the destination to which a specified 
   225         * connection method belongs, search is by destination ID
   227         * connection method belongs, search is by destination ID
   226         *
   228         *
   227         * @since S60 3.2
   229         * @since S60 3.2
   228         * @param aDestinationId id of destination
   230         * @param aDestinationId id of destination
   229         * @return RCmDestination network destination
   231         * @return RCmDestination network destination 
   230         */
   232         */
   231         IMPORT_C RCmDestination DestinationL( TUint32 aDestinationId ) const;
   233         IMPORT_C RCmDestination DestinationL( TUint32 aDestinationId ) const;
   232 
   234        
   233         /**
   235         /**
   234         * Returns the copy of the bearer priority array. Ownership is passed.
   236         * Returns the copy of the bearer priority array. Ownership is passed.
   235         *
   237         *
   236         * @since S60 3.2
   238         * @since S60 3.2
   237         * @param aArray bearer priority array
   239         * @param aArray bearer priority array
   238         */
   240         */          
   239         IMPORT_C void BearerPriorityArrayL(
   241         IMPORT_C void BearerPriorityArrayL( 
   240                 RArray<TBearerPriority>& aArray ) const;
   242                                    RArray<TBearerPriority>& aArray ) const;
   241 
   243        
   242         /**
   244         /**
   243         * Clean up passed global bearer priority array. Delete
   245         * Clean up passed global bearer priority array. Delete
   244         * the elements and calls Reset and Close on the array.
   246         * the elements and calls Reset and Close on the array.
   245         *
   247         *
   246         * @since S60 3.2
   248         * @since S60 3.2
   247         * @param aArray array to be cleaned up
   249         * @param aArray array to be cleaned up
   248         */
   250         */
   249         IMPORT_C void CleanupGlobalPriorityArray(
   251         IMPORT_C void CleanupGlobalPriorityArray( 
   250                 RArray<TBearerPriority>& aArray ) const;
   252                                    RArray<TBearerPriority>& aArray ) const;
   251 
   253         
   252         /**
   254         /**
   253         * Returns the id of the EasyWlan connection method.
   255         * Returns the id of the EasyWlan connection method.
   254         *
   256         *
   255         * @since S60 3.2
   257         * @since S60 3.2
   256         * @return id of the EasyWLan connection method. 0 if not found.
   258         * @return id of the EasyWLan connection method. 0 if not found.
   257         */
   259         */
   258         IMPORT_C TUint32 EasyWlanIdL() const;
   260         IMPORT_C TUint32 EasyWlanIdL() const;
   259 
   261         
   260         /**
   262         /**
   261         * Returns the default connection method/SNAP.
   263         * Returns the default connection method/SNAP.
   262         *
   264         *
   263         * @since S60 3.2
   265         * @since S60 3.2
   264         */
   266         */
   265         IMPORT_C void ReadDefConnL( TCmDefConnValue& aDefConnSetting );
   267         IMPORT_C void ReadDefConnL( TCmDefConnValue& aDCSetting );
   266 
   268 
   267         /**
   269         /**
   268         * Stores the default connection method/SNAP.
   270         * Stores the default connection method/SNAP.
   269         *
   271         *
   270         * @since S60 3.2
   272         * @since S60 3.2
   271         */
   273         */
   272         IMPORT_C void WriteDefConnL( const TCmDefConnValue& aDefConnSetting );
   274         IMPORT_C void WriteDefConnL( const TCmDefConnValue& aDCSetting );  
   273 
   275 
   274 
   276 
   275         /**
   277         /**
   276         * Returns the general connection settings.
   278         * Returns the general connection settings.
   277         *
   279         *
   283         * Writes the general connection settings.
   285         * Writes the general connection settings.
   284         *
   286         *
   285         * @since S60 9.2
   287         * @since S60 9.2
   286         */
   288         */
   287         IMPORT_C void WriteGenConnSettingsL( const TCmGenConnSettings& aGenConnSettings );
   289         IMPORT_C void WriteGenConnSettingsL( const TCmGenConnSettings& aGenConnSettings );
   288 
   290         
   289 
   291         
   290         /** Open session and create tables if they don't exist*/
   292         /** Open session and create tables if they don't exist*/
   291         IMPORT_C void CreateTablesAndOpenL();
   293         IMPORT_C void CreateTablesAndOpenL();    
   292 
   294 
   293         /**
   295         /**
   294         * Creates a Destination with the passed name.
   296         * Creates a Destination with the passed name. 
   295         * @param aName the name of the new destination.
   297         * @param aName the name of the new destination.
   296         * @return RCmDestination new destination. ownership is passed to the
   298         * @return RCmDestination new destination. ownership is passed to the 
   297         * caller
   299         * caller
   298         */
   300         */
   299         IMPORT_C RCmDestination CreateDestinationL( const TDesC& aName );
   301         IMPORT_C RCmDestination CreateDestinationL( const TDesC& aName );
   300 
   302 
   301         /**
   303         /**
   302         * Creates a connection method does not belong to any destination
   304         * Creates a connection method does not belong to any destination
   303         * @param aImplementationUid - bearer type of the new connection method
   305         * @param aImplementationUid - bearer type of the new connection method
   304         * @return RCmConnectionMethod newly created connection method.
   306         * @return RCmConnectionMethod newly created connection method.
   305         */
   307         */
   306         IMPORT_C RCmConnectionMethod CreateConnectionMethodL(
   308         IMPORT_C RCmConnectionMethod CreateConnectionMethodL( TUint32 aBearerType );        
   307                 TUint32 aBearerType );
   309 
   308 
   310         /**
   309         /**
   311         * Copies a connection method belonging to one destination to 
   310         * Copies a connection method belonging to one destination to
       
   311         * another. The connection method becomes shared.
   312         * another. The connection method becomes shared.
   312         * Calls UpdateL on the destination
   313         * Calls UpdateL on the destination
   313         * @param aTargetDestination
   314         * @param aTargetDestination
   314         * @param aConnectionMethodId
   315         * @param aConnectionMethodId
   315         * @return TInt - index in the Connection Method list
   316         * @return TInt - index in the Connection Method list
   316         */
   317         */
   317         IMPORT_C TInt CopyConnectionMethodL(
   318         IMPORT_C TInt CopyConnectionMethodL( RCmDestination& aTargetDestination,
   318                 RCmDestination& aTargetDestination,
   319                                              RCmConnectionMethod& aConnectionMethod );
   319                 RCmConnectionMethod& aConnectionMethod );
   320 
   320 
   321         /**
   321         /**
   322         * Moves a connection method belonging to one destination to 
   322         * Moves a connection method belonging to one destination to
       
   323         * another. The connection method is removed from the source destination
   323         * another. The connection method is removed from the source destination
   324         * @param aSourceDestination
   324         * @param aSourceDestination
   325         * @param aTargetDestination
   325         * @param aTargetDestination
   326         * @param aConnectionMethod
   326         * @param aConnectionMethod
   327         * @return TInt - index in the Connection Method list
   327         * @return TInt - index in the Connection Method list
   328         */
   328         */
   329         IMPORT_C TInt MoveConnectionMethodL(
   329         IMPORT_C TInt MoveConnectionMethodL( RCmDestination& aSourceDestination,
   330                 RCmDestination& aSourceDestination,
   330                                              RCmDestination& aTargetDestination,
   331                 RCmDestination& aTargetDestination,
   331                                              RCmConnectionMethod& aConnectionMethod );
   332                 RCmConnectionMethod& aConnectionMethod );
       
   333 
   332 
   334         /**
   333         /**
   335         * Remove connection method from the destination
   334         * Remove connection method from the destination
   336         * @param aDestination destination the connection method is attached to
   335         * @param aDestination destination the connection method is attached to
   337         * @param aConnectionMethod connection method to be removed
   336         * @param aConnectionMethod connection method to be removed
   338         */
   337         */
   339         IMPORT_C void RemoveConnectionMethodL(
   338         IMPORT_C void RemoveConnectionMethodL( RCmDestination& aDestination,
   340                 RCmDestination& aDestination,
   339                                                RCmConnectionMethod& aConnectionMethod );
   341                 RCmConnectionMethod& aConnectionMethod );
   340 
   342 
   341         /**
   343         /**
   342         * Removes connection method from every destination and make it 
   344         * Removes connection method from every destination and make it
       
   345         * uncategorized.
   343         * uncategorized.
   346         * @param aConnectionMethod connection method to be removed
   344         * @param aConnectionMethod connection method to be removed
   347         */
   345         */
   348         IMPORT_C void RemoveAllReferencesL(
   346         IMPORT_C void RemoveAllReferencesL( RCmConnectionMethod& aConnectionMethod );
   349                 RCmConnectionMethod& aConnectionMethod );
       
   350 
   347 
   351         /**
   348         /**
   352         * Update bearer priority array
   349         * Update bearer priority array
   353         * @param aArray array with new global bearer priority
   350         * @param aArray array with new global bearer priority
   354         */
   351         */          
   355         IMPORT_C void UpdateBearerPriorityArrayL(
   352         IMPORT_C void UpdateBearerPriorityArrayL( const RArray<TBearerPriority>& aArray );
   356                 const RArray<TBearerPriority>& aArray );
   353 
   357 
   354         /**
   358         /**
   355         * Creates a Destination with the passed name and id. 
   359         * Creates a Destination with the passed name and id.
       
   360         * @param aName the name of the new destination.
   356         * @param aName the name of the new destination.
   361         * @param aDestId Predefined id of the destination.
   357         * @param aDestId Predefined id of the destination.
   362         * @return RCmDestination newly created destination or leaves with
   358         * @return RCmDestination newly created destination or leaves with
   363         * KErrAlreadyExists if there exists CM with the same Id.
   359         * KErrAlreadyExists if there exists CM with the same Id.
   364         * Ownership is passed to the caller.
   360         * Ownership is passed to the caller.
   365         */
   361         */
   366         IMPORT_C RCmDestination CreateDestinationL(
   362         IMPORT_C RCmDestination CreateDestinationL( const TDesC& aName,
   367                 const TDesC& aName,
   363                                                        TUint32      aDestId );
   368                 TUint32 aDestId );
       
   369 
   364 
   370         /**
   365         /**
   371         * Creates a connection method does not belong to any destination
   366         * Creates a connection method does not belong to any destination
   372         * @param aImplementationUid - bearer type of the new connection
   367         * @param aImplementationUid - bearer type of the new connection
   373         * method
   368         * method
   374         * @param aConnMethodId Predefined id for the connection method.
   369         * @param aConnMethodId Predefined id for the connection method.
   375         * @return RCmConnectionMethod newly created connection
   370         * @return RCmConnectionMethod newly created connection
   376         * method or leaves with KErrAlreadyExists if there exists CM
   371         * method or leaves with KErrAlreadyExists if there exists CM
   377         * with the same Id.
   372         * with the same Id.
   378         */
   373         */
   379         IMPORT_C RCmConnectionMethod CreateConnectionMethodL(
   374         IMPORT_C RCmConnectionMethod CreateConnectionMethodL( TUint32 aImplementationUid,
   380                 TUint32 aBearerType,
   375                                                               TUint32 aConnMethodId );
   381                 TUint32 aConnMethodId );
       
   382 
   376 
   383         /**
   377         /**
   384         * Query all of the supported bearer types.
   378         * Query all of the supported bearer types.
   385         * @param aArray list of all supported bearer types.
   379         * @param aArray list of all supported bearer types.
   386         */
   380         */          
   387         IMPORT_C void SupportedBearersL( RArray<TUint32>& aArray ) const;
   381         IMPORT_C void SupportedBearersL( RArray<TUint32>& aArray ) const;
   388 
   382 
   389         /**
   383         /**
   390          * Gets the "Uncategorized" icon identifier(name). It can
   384         * Returns "Uncategorized" icon.
   391          * contain path information. HBufC* ownership is passed to the caller.
   385         * This fucton leaves if the client does not have a valid UI context
   392          * @return Returns pointer to a buffer which identifies the requested
   386         * @return CGulIcon* Icon of uncategorized connection methods. Ownership 
   393          * icon.
   387         * is passed.
       
   388         */          
       
   389         IMPORT_C CGulIcon* UncategorizedIconL() const;
       
   390         
       
   391     private:
       
   392         /**
       
   393         * This is a private copy constructor without implementation.
       
   394         * The sole purpose of this declaration is to forbid the copying of 
       
   395         * the objects of this class.
       
   396         */          
       
   397         RCmManager(RCmManager&  );
       
   398         /**
       
   399         * This is a private copy constructor without implementation.
       
   400         * The sole purpose of this declaration is to forbid the copying of 
       
   401         * the objects of this class.
       
   402         */          
       
   403         RCmManager& operator=( RCmManager& );
       
   404     //=========================================================================
       
   405     // Member data
       
   406     
       
   407     private:
       
   408     
       
   409         /**
       
   410          * the implementation class
   394          */
   411          */
   395         IMPORT_C HBufC* GetUncategorizedIconL() const;
   412         CCmManagerImpl* iImplementation;
   396 
       
   397 
       
   398     private:
       
   399         /**
       
   400         * This is a private copy constructor without implementation.
       
   401         * The sole purpose of this declaration is to forbid the copying of
       
   402         * the objects of this class.
       
   403         */
       
   404         RCmManager( RCmManager& );
       
   405 
       
   406         /**
       
   407         * This is a private copy constructor without implementation.
       
   408         * The sole purpose of this declaration is to forbid the copying of
       
   409         * the objects of this class.
       
   410         */
       
   411         RCmManager& operator=( RCmManager& );
       
   412 
       
   413     private:
       
   414         RCmManagerApi* iCmManagerApi;
       
   415     };
   413     };
   416 
   414 
   417 
   415 #include "cmmanager.inl"
   418 inline RCmManager::RCmManager() : iCmManagerApi( NULL )
   416     
   419     {
       
   420     }
       
   421 
       
   422 
       
   423 #endif // CMMANAGER_H
   417 #endif // CMMANAGER_H
   424 
       
   425 // End of file