epoc32/include/mw/apsettingshandlercommons.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description: 
williamr@2
    15
*     Contains common consts, typedefs for the Access Point settings.
williamr@2
    16
*
williamr@2
    17
*/
williamr@2
    18
williamr@2
    19
williamr@2
    20
#ifndef APSETTINGS_HANDLER_COMMONS_H
williamr@2
    21
#define APSETTINGS_HANDLER_COMMONS_H
williamr@2
    22
williamr@2
    23
// Deprecation warning
williamr@2
    24
#warning This header file has been deprecated. Will be removed in one of the next SDK releases.
williamr@2
    25
 
williamr@2
    26
 
williamr@2
    27
// INCLUDES
williamr@2
    28
#include <ApEngineConsts.h>
williamr@2
    29
williamr@2
    30
williamr@2
    31
//#define __TEST_OOMDEBUG
williamr@2
    32
williamr@2
    33
williamr@2
    34
// CONSTANTS
williamr@2
    35
_LIT( KEmpty, "");
williamr@2
    36
williamr@2
    37
_LIT( KTestFileName, "C:\\Data\\ApSetUiTest\\TestState.txt" );
williamr@2
    38
williamr@2
    39
const TInt  KApSelectionCanceled    = -350;
williamr@2
    40
const TInt  KTxtNotOverriden        = -351;
williamr@2
    41
const TInt  KErrInvalidTextId       = -355;
williamr@2
    42
williamr@2
    43
#ifdef __TEST_OOMDEBUG
williamr@2
    44
    const TInt  KDialogListTest      = 1;   // Done
williamr@2
    45
    const TInt  KPopupListTest       = 2;   // Done
williamr@2
    46
    const TInt  KQueryTest           = 3;   // Done
williamr@2
    47
    const TInt  KEditingTest         = 4;   // Done
williamr@2
    48
    const TInt  KViewerTest          = 5;   // impl.
williamr@2
    49
    const TInt  KCreateBlankTest     = 6;   // Impl
williamr@2
    50
    const TInt  KCreateUseExistTest  = 7;   // Impl
williamr@2
    51
    const TInt  KDeleteTest          = 8;   // N/I!
williamr@2
    52
williamr@2
    53
    const TUint32   KOOMRetryCount   = 10;
williamr@2
    54
    const TUint32   KOOMRetryOffset  = 5;
williamr@2
    55
#endif // __TEST_OOMDEBUG
williamr@2
    56
williamr@2
    57
// DATA TYPES
williamr@2
    58
enum TTextID    /// These enums are used to identify the 'overridable' 
williamr@2
    59
                /// text items in CApSettingsHandler.
williamr@2
    60
    {
williamr@2
    61
    EApSettingsSelStatusPaneText = 0x00,
williamr@2
    62
    EApSettingsSelListEmptyText,
williamr@2
    63
    EPopupPromptText            /// Only this last one is used & implemented.
williamr@2
    64
    };
williamr@2
    65
williamr@2
    66
williamr@2
    67
enum TTransactionResult         ///< Transaction results
williamr@2
    68
    {
williamr@2
    69
    EOwnTransaction,            ///< Own transaction started
williamr@2
    70
    EUsingAlreadyStarted,       ///< Used already started one
williamr@2
    71
    EFailedWithLocked           ///< Transaction start failed with KErrLocked
williamr@2
    72
    };
williamr@2
    73
williamr@2
    74
williamr@2
    75
enum TApUiExitReason
williamr@2
    76
    {
williamr@2
    77
    EExitNone,
williamr@2
    78
    EExit,
williamr@2
    79
    EShutDown
williamr@2
    80
    };
williamr@2
    81
williamr@2
    82
williamr@2
    83
// CONSTANTS
williamr@2
    84
const TInt  KTTextIdMin             =  EApSettingsSelStatusPaneText;
williamr@2
    85
const TInt  KTTextIdMax             =  EPopupPromptText;
williamr@2
    86
williamr@2
    87
const TInt  KMaxNumOfLockedDbRetries= 3;
williamr@2
    88
williamr@2
    89
/// Ui return code flags. They indicate what has happened inside the module. 
williamr@2
    90
/// They can be combined.
williamr@2
    91
/**
williamr@2
    92
* Ui return code flags. They indicate what has happened inside the module. 
williamr@2
    93
* They can be combined. The most important one is KApUiEventSelected and it 
williamr@2
    94
* indicates that the user selected an access point (in case of selection...)
williamr@2
    95
*/
williamr@2
    96
const TInt  KApUiEventNone              = 0x00000000;   ///< Nothign happend
williamr@2
    97
const TInt  KApUiEventSelected          = 0x00000001;   ///< Item was selected
williamr@2
    98
const TInt  KApUiEventCreatedBlank      = 0x00000002;   ///< New item created 
williamr@2
    99
                                                        ///< from blank
williamr@2
   100
const TInt  KApUiEventCreatedUsedOld    = 0x00000004;   ///< New item created 
williamr@2
   101
                                                        ///< from an existing 
williamr@2
   102
                                                        ///< one
williamr@2
   103
const TInt  KApUiEventEdited            = 0x00000008;   ///< Item edited
williamr@2
   104
const TInt  KApUiEventDeleted           = 0x00000010;   ///< Item deleted
williamr@2
   105
const TInt  KApUiEventExitRequested     = 0x00000020;   ///< User choosed Exit
williamr@2
   106
const TInt  KApUiEventShutDownRequested = 0x00000040;   ///< System shutdown
williamr@2
   107
williamr@2
   108
// INTERNAL flag
williamr@2
   109
const TUint32  KApUiEventInternal       = 0x80000000;   ///< Internal flag
williamr@2
   110
williamr@2
   111
williamr@2
   112
const TUint32  KApNoneUID               = 0x00000000;
williamr@2
   113
williamr@2
   114
williamr@2
   115
enum TSelectionListType         ///< Defines the list type to be used
williamr@2
   116
    {
williamr@2
   117
    EApSettingsSelListIsPopUp, 
williamr@2
   118
    EApSettingsSelListIsListPane,
williamr@2
   119
    EApSettingsSelListIsPopUpWithNone
williamr@2
   120
    };
williamr@2
   121
williamr@2
   122
williamr@2
   123
enum TSelectionMenuType         ///< Defines the Options menu type to be used
williamr@2
   124
    {
williamr@2
   125
    EApSettingsSelMenuNormal, 
williamr@2
   126
    EApSettingsSelMenuSelectOnly,
williamr@2
   127
    EApSettingsSelMenuSelectNormal
williamr@2
   128
    };
williamr@2
   129
williamr@2
   130
williamr@2
   131
williamr@2
   132
enum TApSettingsHandlerUiPanicCodes ///< Defines the Panic codes
williamr@2
   133
    {
williamr@2
   134
    EMenuCommandUnknown,            ///< Unknonw menu command
williamr@2
   135
    EInvalidDbType,                 ///< Invalid database type
williamr@2
   136
    EInvalidBitmapType,             ///< Invalid bitmap type
williamr@2
   137
    EInvalidBearerType,             ///< Invalid bearer type
williamr@2
   138
    EInvalidIspRequest,             ///< Invalid ISP request
williamr@2
   139
    ENullPointer,                   ///< Null pointer passed
williamr@2
   140
    EUnknownCase,                   ///< Unknown 'case' 
williamr@2
   141
    EInvalidTextType,               ///< Invalid text type
williamr@2
   142
    EInvalidState                   ///< Invalid state
williamr@2
   143
    } ;
williamr@2
   144
williamr@2
   145
williamr@2
   146
williamr@2
   147
/**
williamr@2
   148
* Panic
williamr@2
   149
* @param aPanic Panic code
williamr@2
   150
*/
williamr@2
   151
void Panic( TApSettingsHandlerUiPanicCodes aPanic );
williamr@2
   152
williamr@2
   153
williamr@2
   154
/**
williamr@2
   155
* Ask a query
williamr@2
   156
* @param aResId Resource id
williamr@2
   157
* @param aVar variable part of the query, if any
williamr@2
   158
* @return The result of the query
williamr@2
   159
*/
williamr@2
   160
TInt AskQueryL( TInt aResId, TDesC* aVar = NULL );
williamr@2
   161
williamr@2
   162
williamr@2
   163
/**
williamr@2
   164
* Shows a note
williamr@2
   165
* @param aResId Resource id
williamr@2
   166
* @param aVar variable part of the note, if any
williamr@2
   167
* @return The result of the note
williamr@2
   168
*/
williamr@2
   169
TInt ShowNoteL( TInt aResId, TDesC* aVar = NULL );
williamr@2
   170
williamr@2
   171
williamr@2
   172
#ifdef __TEST_OOMDEBUG
williamr@2
   173
    TInt GetTestState();
williamr@2
   174
#endif // __TEST_OOMDEBUG
williamr@2
   175
williamr@2
   176
#endif
williamr@2
   177
williamr@2
   178
williamr@2
   179
// End of File