cmapplicationsettingsui.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : cmapplicationsettingsui.h
00004 *  Part of     : Networking Utilities / Connection Method Manager
00005 *  Description : 
00006 *  Version     : %version: 10.1.1 %
00007 *
00008 *  Copyright © 2006 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 */
00018 #ifndef C_CMAPPLICATIONSETTINGSUI_H
00019 #define C_CMAPPLICATIONSETTINGSUI_H
00020 
00021 #include <E32def.h>
00022 #include <e32base.h>
00023 
00024 class CCmConnSettingsUiImpl;
00025 namespace CMManager
00026     {
00027     
00037     const TInt KErrConnectionNotFound = -32700;
00038     
00042     enum TCmSettingSelectionMode
00043         {
00044         EAlwaysAsk,         
00047         EDestination,       
00050         EConnectionMethod,  
00053         EDefaultConnection // The user selected Default Connection 
00054 
00055         };
00056         
00057     
00064     enum TCmSelectionDialogItems
00065         {
00066         EShowAlwaysAsk = 0x01,          
00070         EShowDefaultConnection = 0x02,  
00094         EShowDestinations = 0x04,       
00100         EShowConnectionMethods = 0x08,  
00108         };    
00109         
00110     }// namespace CMManger
00111 
00112 
00113     // Structs
00114     
00121 NONSHARABLE_STRUCT( TCmSettingSelection )
00122     {
00126     CMManager::TCmSettingSelectionMode iResult;
00127     
00131     TUint iId;
00132     };
00133 
00143 typedef RArray<TUint32> TBearerFilterArray;
00144 
00154 NONSHARABLE_CLASS( CCmApplicationSettingsUi ) : public CBase
00155     {
00156 
00157     public: // construction/destruction
00158 
00160         IMPORT_C static CCmApplicationSettingsUi* NewL();
00161 
00165         IMPORT_C static CCmApplicationSettingsUi* NewLC();
00166 
00168         virtual ~CCmApplicationSettingsUi();
00169 
00170     //=======================================================================
00171     // UI API
00172     //
00173     public:
00174 
00190         IMPORT_C TBool RunApplicationSettingsL( 
00191                                         TCmSettingSelection& aSelection );
00192 
00275         IMPORT_C TBool RunApplicationSettingsL( 
00276                                         TCmSettingSelection& aSelection, 
00277                                         TUint aListItems,
00278                                         TBearerFilterArray& aFilterArray);
00279 
00280     private:
00281 
00283         CCmApplicationSettingsUi();
00284 
00290         void ConstructL();
00291 
00292     private: // data
00293 
00297         CCmConnSettingsUiImpl* iImpl;    
00298     };
00299 
00300 #endif // C_CMAPPLICATIONSETTINGSUI_H

Copyright © Nokia Corporation 2001-2007
Back to top