apsettingshandlercommons.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : ApSettingsHandlerCommons.h 
00004 *  Part of  : Access Point Settings Handler UI
00005 *
00006 *  Description:
00007 *     Contains common consts, typedefs for the Access Point settings.
00008 *  Version:
00009 *
00010 *  Copyright (C) 2002 Nokia Corporation.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia Corporation. All rights are reserved. Copying, 
00014 *  including reproducing, storing,  adapting or translating, any 
00015 *  or all of this material requires the prior written consent of 
00016 *  Nokia Corporation. This material also contains confidential 
00017 *  information which may not be disclosed to others without the 
00018 *  prior written consent of Nokia Corporation.
00019 *
00020 * ============================================================================
00021 */
00022 
00023 #ifndef APSETTINGS_HANDLER_COMMONS_H
00024 #define APSETTINGS_HANDLER_COMMONS_H
00025 
00026 // Deprecation warning
00027 #warning This header file has been deprecated. Will be removed in one of the next SDK releases.
00028  
00029  
00030 // INCLUDES
00031 #include <ApEngineConsts.h>
00032 
00033 
00034 //#define __TEST_OOMDEBUG
00035 
00036 
00037 // CONSTANTS
00038 _LIT( KEmpty, "");
00039 
00040 _LIT( KTestFileName, "C:\\Data\\ApSetUiTest\\TestState.txt" );
00041 
00042 const TInt  KApSelectionCanceled    = -350;
00043 const TInt  KTxtNotOverriden        = -351;
00044 const TInt  KErrInvalidTextId       = -355;
00045 
00046 #ifdef __TEST_OOMDEBUG
00047     const TInt  KDialogListTest      = 1;   // Done
00048     const TInt  KPopupListTest       = 2;   // Done
00049     const TInt  KQueryTest           = 3;   // Done
00050     const TInt  KEditingTest         = 4;   // Done
00051     const TInt  KViewerTest          = 5;   // impl.
00052     const TInt  KCreateBlankTest     = 6;   // Impl
00053     const TInt  KCreateUseExistTest  = 7;   // Impl
00054     const TInt  KDeleteTest          = 8;   // N/I!
00055 
00056     const TUint32   KOOMRetryCount   = 10;
00057     const TUint32   KOOMRetryOffset  = 5;
00058 // __TEST_OOMDEBUG
00059 #endif
00060 
00061 // DATA TYPES
00062 enum TTextID    
00063 
00064     {
00065     EApSettingsSelStatusPaneText = 0x00,
00066     EApSettingsSelListEmptyText,
00067     EPopupPromptText            
00068     };
00069 
00070 
00071 enum TTransactionResult         
00072     {
00073     EOwnTransaction,            
00074     EUsingAlreadyStarted,       
00075     EFailedWithLocked           
00076     };
00077 
00078 
00079 enum TApUiExitReason
00080     {
00081     EExitNone,
00082     EExit,
00083     EShutDown
00084     };
00085 
00086 
00087 // CONSTANTS
00088 const TInt  KTTextIdMin             =  EApSettingsSelStatusPaneText;
00089 const TInt  KTTextIdMax             =  EPopupPromptText;
00090 
00091 const TInt  KMaxNumOfLockedDbRetries= 3;
00092 
00095 
00100 const TInt  KApUiEventNone              = 0x00000000;   
00101 const TInt  KApUiEventSelected          = 0x00000001;   
00102 const TInt  KApUiEventCreatedBlank      = 0x00000002;   
00103 
00104 const TInt  KApUiEventCreatedUsedOld    = 0x00000004;   
00105 
00106 
00107 const TInt  KApUiEventEdited            = 0x00000008;   
00108 const TInt  KApUiEventDeleted           = 0x00000010;   
00109 const TInt  KApUiEventExitRequested     = 0x00000020;   
00110 const TInt  KApUiEventShutDownRequested = 0x00000040;   
00111 
00112 // INTERNAL flag
00113 const TUint32  KApUiEventInternal       = 0x80000000;   
00114 
00115 
00116 const TUint32  KApNoneUID               = 0x00000000;
00117 
00118 
00119 enum TSelectionListType         
00120     {
00121     EApSettingsSelListIsPopUp, 
00122     EApSettingsSelListIsListPane,
00123     EApSettingsSelListIsPopUpWithNone
00124     };
00125 
00126 
00127 enum TSelectionMenuType         
00128     {
00129     EApSettingsSelMenuNormal, 
00130     EApSettingsSelMenuSelectOnly,
00131     EApSettingsSelMenuSelectNormal
00132     };
00133 
00134 
00135 
00136 enum TApSettingsHandlerUiPanicCodes 
00137     {
00138     EMenuCommandUnknown,            
00139     EInvalidDbType,                 
00140     EInvalidBitmapType,             
00141     EInvalidBearerType,             
00142     EInvalidIspRequest,             
00143     ENullPointer,                   
00144     EUnknownCase,                   
00145     EInvalidTextType,               
00146     EInvalidState                   
00147     } ;
00148 
00149 
00150 
00155 void Panic( TApSettingsHandlerUiPanicCodes aPanic );
00156 
00157 
00164 TInt AskQueryL( TInt aResId, TDesC* aVar = NULL );
00165 
00166 
00173 TInt ShowNoteL( TInt aResId, TDesC* aVar = NULL );
00174 
00175 
00176 #ifdef __TEST_OOMDEBUG
00177     TInt GetTestState();
00178 // __TEST_OOMDEBUG
00179 #endif
00180 
00181 #endif
00182 
00183 
00184 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top