remotestoragefw/gsplugin/inc/rsfwgsplugin.hrh
branchRCL_3
changeset 19 88ee4cf65e19
parent 16 87c71b25c937
child 20 1aa8c82cb4cb
equal deleted inserted replaced
16:87c71b25c937 19:88ee4cf65e19
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  contains comman definitions for menu id:s
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GS_RSFW_PLUGIN_HRH
       
    20 #define GS_RSFW_PLUGIN_HRH
       
    21 
       
    22 
       
    23 /**
       
    24  * TSettingItems - identifiers for individual setting items
       
    25  */
       
    26 enum TSettingItems
       
    27     {
       
    28     ESettingItemDriveName = 1,
       
    29     ESettingItemURL,
       
    30     ESettingItemAccessPoint,
       
    31     ESettingItemServerAddress,
       
    32     ESettingItemUserID,
       
    33     ESettingItemPassword  
       
    34     };
       
    35     
       
    36 
       
    37 // DATA TYPES
       
    38 // CONSTANTS
       
    39 #define MAXCONFITEMLENGTH 128
       
    40 
       
    41 // Menu commands
       
    42 enum TGSRsfwPluginMenuCommands
       
    43     {
       
    44     EGSCmdAppConnect = 400,
       
    45     EGSCmdAppOpen,
       
    46     EGSCmdAppDisconnect,
       
    47     EGSCmdAppEdit,
       
    48     EGSCmdAppChange,
       
    49     EGSCmdAppNew,
       
    50     EGSCmdAppDelete,
       
    51     EGSCmdAppSendLink,
       
    52     EGSCmdUpdateList
       
    53     };
       
    54     
       
    55 /**
       
    56  * Constants used in application
       
    57  */
       
    58 enum TRsfwSettingsIndex
       
    59     {
       
    60     ESettingNameIndex = 0,
       
    61     EServerAddressIndex,
       
    62     EAccessPointIndex,
       
    63     EUserIDIndex,
       
    64     EPasswordIndex
       
    65     };    
       
    66     
       
    67 /**
       
    68  * TRsfwSettingsViewType - Used inside UI to differentiate
       
    69  * different kinds of editing
       
    70  */ 
       
    71 enum TRsfwSettingsViewType
       
    72     {
       
    73     EEditExisting,
       
    74     ENewDefault,
       
    75     ENewFromExisting        
       
    76     };    
       
    77     
       
    78 /**
       
    79  * Constants used in resources and in application
       
    80  */
       
    81 // maximum length for the drive name
       
    82 #define KMaxFriendlyNameLength 20 // from UI spec
       
    83 #define KMaxSettingSetNameArrayGran 10
       
    84 #define KMaxUserIDLength 50
       
    85 #define KMaxServerAddressLength 200
       
    86 #define KMaxPasswordLength 50
       
    87 #define KMaxURLLength 200 // from UI spec
       
    88 #define KMaxServerNameLength 20
       
    89 #define KMaxAccessPointNameLength 100 // from ApSettingsHandlerUI
       
    90 #define KMaxAccessPointDesLength 10
       
    91 #define KMaxCompulsoryTextLength 25
       
    92 #define KMaxInactivityTimeoutString 10
       
    93 // maximum length for menu pane title
       
    94 #define KMaxMenuPaneTitleLength 25
       
    95 
       
    96 // List items of remote drive settings view   
       
    97 enum {
       
    98     KGSRsfwSettingsName,
       
    99     KGSRsfwSettingsAddress,
       
   100     KGSRsfwSettingsAccessPoint,
       
   101     KGSRsfwSettingsUserName,
       
   102     KGSRsfwSettingsPassword
       
   103     };
       
   104 
       
   105 #endif  // GS_RSFW_PLUGIN_HRH
       
   106 
       
   107 
       
   108 // End of File