ipcm_pub/connection_settings_api/inc/cmsettingsui.h
changeset 53 4af712113915
parent 47 cb7afde124a3
child 60 a9c709db68db
equal deleted inserted replaced
47:cb7afde124a3 53:4af712113915
     1 /*
       
     2 * Copyright (c) 2006 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 settings UI
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CMSETTINGSUI_H
       
    19 #define C_CMSETTINGSUI_H
       
    20 
       
    21 #include <E32def.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 class CCmSettingsUiImpl;
       
    25 
       
    26 /**
       
    27  *  Implementation of Setting UI
       
    28  *
       
    29  *  @lib cmmanager.lib
       
    30  *  @since S60 v3.2
       
    31  */
       
    32 NONSHARABLE_CLASS(CCmSettingsUi) : public CBase
       
    33     {
       
    34     public:
       
    35 
       
    36         enum TResult
       
    37                 {
       
    38                 EBack,
       
    39                 EExit
       
    40                 };
       
    41 
       
    42         /** Epoc constructor */
       
    43         IMPORT_C static CCmSettingsUi* NewL();
       
    44 
       
    45         /** Destructor */
       
    46         virtual ~CCmSettingsUi();
       
    47 
       
    48     //=========================================================================    
       
    49     // UI API
       
    50     //
       
    51     public:
       
    52 
       
    53         /**
       
    54         * Launches the Settings UI 
       
    55         * for handling Destinations and Connection Methods
       
    56         * @since 3.2
       
    57         * @return TResult - the softkey the user exited with
       
    58         */
       
    59         IMPORT_C TResult RunSettingsL();
       
    60         
       
    61         /**
       
    62         * Launches a dialog with a list of Destination
       
    63         * @since 3.2
       
    64         * @param  aDestinationId ID of the selected Destination
       
    65         * @return TBool
       
    66         */
       
    67         IMPORT_C TBool SelectDestinationDlgL( TUint32& aDestinationId );
       
    68 
       
    69     private:
       
    70 
       
    71         /** First stage constructor */
       
    72         CCmSettingsUi();
       
    73 
       
    74         /** Epoc constructor */
       
    75         void ConstructL();
       
    76 
       
    77     private: // data
       
    78 
       
    79         CCmSettingsUiImpl* iImpl;
       
    80     };
       
    81 
       
    82 #endif // C_CMSETTINGSUI_H