cmmanager/cmmgr/Framework/Inc/cmsettingsuiimpl.h
branchRCL_3
changeset 57 05bc53fe583b
parent 55 fc7b30ed2058
child 58 83ca720e2b9a
equal deleted inserted replaced
55:fc7b30ed2058 57:05bc53fe583b
     1 /*
       
     2 * Copyright (c) 2006-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:  Implementation of setting UI
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CMSETTINGSUIIMPL_H
       
    19 #define C_CMSETTINGSUIIMPL_H
       
    20 
       
    21 #include <e32def.h>
       
    22 #include <e32base.h>
       
    23 #include <ConeResLoader.h>
       
    24 
       
    25 class CCmManagerImpl;
       
    26 
       
    27 /**
       
    28  *  Implementation of setting UI
       
    29  *
       
    30  *  @lib cmmanager.lib
       
    31  *  @since S60 v3.2
       
    32  */
       
    33 NONSHARABLE_CLASS(CCmSettingsUiImpl) : public CBase
       
    34     {
       
    35     public:
       
    36 
       
    37         /** Epoc constructor */
       
    38         static CCmSettingsUiImpl* NewL();
       
    39 
       
    40         /** Destructor */
       
    41         virtual ~CCmSettingsUiImpl();
       
    42 
       
    43     //=========================================================================    
       
    44     // UI API
       
    45     //
       
    46     public:
       
    47 
       
    48         /**
       
    49         * Launches the Settings UI 
       
    50         * for handling Destinations and Connection Methods
       
    51         * @since 3.2
       
    52         */
       
    53         TInt RunSettingsL();
       
    54         
       
    55         /**
       
    56         * Launches a dialog with a list of Destination
       
    57         * @since 3.2
       
    58         * @param  aDestinationId ID of the selected Destination
       
    59         * @return TBool
       
    60         */
       
    61         TBool SelectDestinationDlgL( TUint32& aDestinationId );
       
    62         
       
    63         /**
       
    64         * Launches the dialog for adding connection methods
       
    65         * @since 3.2.3
       
    66         * @param  aDestUid destination id for the new cm
       
    67         * @param  aBearerType bearer type for the new cm
       
    68         * @return TUint32 id of the new cm
       
    69         */
       
    70         TUint32 AddCmL( TUint32& aDestUid, TUint32 aBearerType );
       
    71 
       
    72         /**
       
    73         * Launches the dialog for editing connection methods
       
    74         * @since 3.2.3
       
    75         * @param  aCmId id of the cm to edit
       
    76         * @return TInt - KDialogUserExit or KDialogUserBack
       
    77         */
       
    78         TInt EditCmL( TUint32 aCmId );
       
    79 
       
    80 
       
    81     private:
       
    82 
       
    83         /** First stage constructor */
       
    84         CCmSettingsUiImpl();
       
    85 
       
    86         /** Epoc constructor */
       
    87         void ConstructL();
       
    88 
       
    89         /** Load resource */
       
    90         TInt LoadResourceL ();
       
    91 
       
    92     private: // data
       
    93 
       
    94         CCmManagerImpl* iCmManagerImpl;
       
    95         RConeResourceLoader iResourceReader;
       
    96     };
       
    97 
       
    98 #endif // C_CMSETTINGSUIIMPL_H