cmmanager/cmmgr/Framework/Inc/cmapplicationsettingsuiimpl.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
       
     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:  Declaration of application selection dialog
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CMAPLICATIONSETTINGSUIIMPL_H
       
    19 #define C_CMAPLICATIONSETTINGSUIIMPL_H
       
    20 
       
    21 #include <e32def.h>
       
    22 #include <e32base.h>
       
    23 #include <ConeResLoader.h>
       
    24 #include <badesca.h>    // CDesCArrayFlat
       
    25 #include "cmmanager.hrh"
       
    26 #include "cmapplicationsettingsui.h"
       
    27 
       
    28 class TCmSettingSelection;
       
    29 class CCmManagerImpl;
       
    30 class CCmDestinationImpl;
       
    31 
       
    32 
       
    33 //IMPLEMENTATION REMOVED!!!!
       
    34 //JUST HERE TO MANTAIN BC COMPATIBILITY!!!
       
    35 /**
       
    36  *  Implementation of application setting UI.
       
    37  *
       
    38  *  @lib cmmanage.lib
       
    39  *  @since S60 v3.2
       
    40  */
       
    41 NONSHARABLE_CLASS(CCmApplicationSettingsUiImpl) : public CBase
       
    42     {
       
    43 
       
    44     public:
       
    45 
       
    46         IMPORT_C static CCmApplicationSettingsUiImpl* NewL();
       
    47 
       
    48 
       
    49     //=========================================================================    
       
    50     // UI API
       
    51     //
       
    52     public:
       
    53 
       
    54         /**
       
    55         * Launches the 'easy to use' Settings UI provided for applications
       
    56         * for handling Destinations and Connection Methods
       
    57         * @since 3.1U
       
    58         * @params aSelection User selection.
       
    59         * @returns ETrue if a selection was made
       
    60         */
       
    61         TBool RunApplicationSettingsL( TCmSettingSelection& aSelection );
       
    62 
       
    63 
       
    64         /**
       
    65         * Enables/Disabled AlwaysAsk
       
    66         * 
       
    67         * @param ETrue enables
       
    68         * @since S60 3.2
       
    69         */
       
    70         inline void EnableAlwaysAsk( TBool aEnable ) 
       
    71                                         { iShowAlwaysAsk = aEnable; }
       
    72         
       
    73         /**
       
    74         * Enables/Disabled EasyWlan
       
    75         * 
       
    76         * @param ETrue enables
       
    77         * @since S60 3.2
       
    78         */
       
    79         inline void EnableEasyWlan( TBool aEnable )
       
    80                                         { iShowEasyWlan = aEnable; }
       
    81         
       
    82         /**
       
    83         * Enables/Disabled VirtualCMs
       
    84         * 
       
    85         * @param ETrue enables
       
    86         * @since S60 3.2
       
    87         */
       
    88         inline void EnableVirtualCMs( TBool aEnable )
       
    89                                         { iShowVirtualCMs = aEnable; }
       
    90         
       
    91         /**
       
    92         * Enables/Disabled EmptyDestinations
       
    93         * 
       
    94         * @param ETrue enables
       
    95         * @since S60 3.2
       
    96         */
       
    97         inline void EnableEmptyDestinations( TBool aEnable ) 
       
    98                                         { iShowEmptyDestinations = aEnable; }
       
    99                                         
       
   100         /**
       
   101         * Sets a destination id which should be omitted from the list
       
   102         * typically this will be the parent destination of a virtual CM
       
   103         * 
       
   104         * @param aDestinationId
       
   105         * @since S60 3.2
       
   106         */
       
   107         inline void SetDestinationToOmit( TUint32 aDestinationId )
       
   108                                     { iDestinationToOmit = aDestinationId; }
       
   109 
       
   110                          
       
   111     private: // data
       
   112 
       
   113         /**
       
   114          * pointer to the CmManager - OWNED
       
   115          */
       
   116         CCmManagerImpl* iCmManagerImpl;
       
   117         
       
   118         /**
       
   119          * resource loader
       
   120          */
       
   121         RConeResourceLoader iResourceReader;
       
   122         
       
   123         /**
       
   124          * List of destination IDs to show
       
   125          */ 
       
   126         RArray<TUint32> iDestinations;
       
   127                 
       
   128         /**
       
   129          * Indicates whether Always Ask should be shown in the page
       
   130          */
       
   131         TBool iShowAlwaysAsk;
       
   132         
       
   133         /**
       
   134          * Indicates whether EasyWlan should be shown in the page
       
   135          */
       
   136         TBool iShowEasyWlan;
       
   137         
       
   138         /**
       
   139          * Indicates whether virtual iaps should be shown in the page
       
   140          */
       
   141         TBool iShowVirtualCMs;
       
   142         
       
   143         /**
       
   144          * Indicates whether Empty destinations should be shown in the page
       
   145          */
       
   146         TBool iShowEmptyDestinations;
       
   147         
       
   148         /**
       
   149          * Indicates the id of destination to specifically omit (usually a parent destination)
       
   150          * if zero, it can be ignored
       
   151          */
       
   152         TUint iDestinationToOmit;
       
   153     };
       
   154 
       
   155 #endif // C_CMAPLICATIONSETTINGSUIIMPL_H