omads/omadsappui/AspSyncUtil/inc/AspDefines.h
changeset 0 dab8a81a92de
child 15 3f1ffafb31ec
equal deleted inserted replaced
-1:000000000000 0:dab8a81a92de
       
     1 /*
       
     2 * Copyright (c) 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 general data definitions for AspSyncUtil.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ASPDEFINES_H
       
    20 #define ASPDEFINES_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <AiwGenericParam.hrh>
       
    26 
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // resource files
       
    32 _LIT( KResFileName, "z:aspsyncutil.rsc" );
       
    33 _LIT( KBitmapFileName, "z:AspSyncUtil.mbm" );
       
    34 
       
    35 
       
    36 _LIT(KHttpHeader, "http://");
       
    37 
       
    38 // central repository uid for scheduled sync settings
       
    39 const TUid KCRUidNSmlDSApp       = { 0x101F9A1D };
       
    40 
       
    41 //unicode value for clock icon
       
    42 const TUint KClockCharacter = 0xF815 ;
       
    43 
       
    44 // consumer app uids
       
    45 const TUid KUidAppSync       = { 0x101F6DE4 };
       
    46 const TUid KUidAppPhonebook  = { 0x101F4CCE };
       
    47 const TUid KUidAppCalendar   = { 0x10005901 };
       
    48 const TUid KUidAppMessages   = { 0x100058C5 };
       
    49 const TUid KUidAppNotepad    = { 0x10005907 };
       
    50 const TUid KUidAppTest       = { 0x0995CDE9 };
       
    51 const TUid KUidAppMailEditor = { 0x101F4CD6 };
       
    52 
       
    53 
       
    54 
       
    55 // medium type uids
       
    56 const TUid KUidNSmlMediumTypeInternet  = { 0x101F99F0 };
       
    57 const TUid KUidNSmlMediumTypeBluetooth = { 0x101F99F1 };
       
    58 const TUid KUidNSmlMediumTypeUSB       = { 0x101F99F2 };
       
    59 const TUid KUidNSmlMediumTypeIrDA      = { 0x101F99F3 };
       
    60 
       
    61 
       
    62 // medium type uids for convergence
       
    63 //const TUid KUidNSmlMediumTypeInternet  = { 0x10009F76 };
       
    64 //const TUid KUidNSmlMediumTypeBluetooth = { 0x10009F79 };
       
    65 //const TUid KUidNSmlMediumTypeUSB       = { 0x10009FB5 };
       
    66 //const TUid KUidNSmlMediumTypeIrDA      = { 0x10009F78 };
       
    67 //const TUid KUidNSmlMediumTypeWSP       = { 0x10009F77 };
       
    68 //const TUid KUidNSmlMediumTypeNSmlUSB   = { 0x101F9A04 };
       
    69 
       
    70 
       
    71 
       
    72 // sync adapder uids
       
    73 const TUid KUidNSmlAdapterCalendar  = { 0x101F6DDE };
       
    74 const TUid KUidNSmlAdapterContact   = { 0x101F6DDD };
       
    75 const TUid KUidNSmlAdapterEMail     = { 0x101F6DDF };
       
    76 const TUid KUidNSmlAdapterNote      = { 0x101F8612 };
       
    77 const TUid KUidNSmlAdapterSms       = { 0x10206B5C };
       
    78 const TUid KUidNSmlAdapterMMS       = { 0x101FB0E9 };
       
    79 const TUid KUidNSmlAdapterBookmarks = { 0x102751BA };
       
    80 
       
    81 // convergence sync adapder uids
       
    82 //const TUid KUidNSmlAdapterCalendar  = { 0x10009FD1 };
       
    83 //const TUid KUidNSmlAdapterContact   = { 0x10009FD3 };
       
    84 
       
    85 
       
    86 // sync application uid
       
    87 const TUid KUidSmlSyncApp             = { 0x101F6DE4 };
       
    88 
       
    89 // password editor constatnts
       
    90 _LIT(KSecretEditorMask, "*");
       
    91 const TInt KSecretEditorMaskLength = 4;
       
    92 
       
    93 // string sizes
       
    94 const TInt KBufSize = 128;
       
    95 const TInt KBufSize255 = 255;
       
    96 const TInt KBufSize16 = 16;
       
    97 const TInt KBufSize64 = 64;
       
    98 const TInt KBufSize32 = 32;
       
    99 
       
   100 const TInt KDefaultArraySize = 10;
       
   101 
       
   102 
       
   103 //
       
   104 // text editor max sizes (from nsmlconstantdefs.h)
       
   105 //
       
   106 const TInt KAspMaxProfileNameLength         = 50;
       
   107 const TInt KAspMaxUsernameLength            = 80;
       
   108 const TInt KAspMaxPasswordLength            = 22;
       
   109 const TInt KAspMaxLocalNameLength           = 255;
       
   110 const TInt KAspMaxAdapterDisplayNameLength  = 50;
       
   111 const TInt KAspMaxServerIdLength            = 150;
       
   112 const TInt KAspMaxURILength                 = 144;
       
   113 const TInt KAspMaxRemoteNameLength          = 125;
       
   114 
       
   115 // max number of profiles
       
   116 const TInt KMaxProfileCount = 50;
       
   117 
       
   118 // setting dialog listbox update delay after db event
       
   119 const TInt KListBoxUpdateDelay = 250;
       
   120 
       
   121 
       
   122 
       
   123 // DATA TYPES
       
   124 
       
   125 enum TAspApplicationIds
       
   126 	{
       
   127 	EApplicationIdSync = 0,
       
   128 	EApplicationIdBookmarks = 1,//value not available in AiwGenericParam.hrh
       
   129 	EApplicationIdContact = EGenericParamContactItem,    // 20
       
   130 	EApplicationIdCalendar = EGenericParamCalendarItem,  // 21
       
   131 	EApplicationIdEmail = EGenericParamMessageItemEMail, // 31
       
   132 	EApplicationIdNote = EGenericParamNoteItem,          // 23
       
   133 	EApplicationIdMms = EGenericParamMessageItemMMS,     // 32
       
   134 	EApplicationIdSms = EGenericParamMessageItemSMS      // 30
       
   135 	};
       
   136 
       
   137 enum TASpSettingValue
       
   138 	{
       
   139 	EAspSettingDisabled = 0,
       
   140 	EAspSettingEnabled = 1
       
   141 	};
       
   142 
       
   143 // NOTE: do not change these enums. They are also used in sync app
       
   144 enum TAspDialogMode
       
   145 	{
       
   146 	EModeDialogWait = 3,
       
   147 	EModeDialogNoWait = 4
       
   148 	};
       
   149 
       
   150 enum TDialogMode
       
   151 	{
       
   152 	EDialogModeEdit,
       
   153 	EDialogModeEditMandatory,
       
   154 	EDialogModeReadOnly,
       
   155 	EDialogModeSettingEnforcement
       
   156 	};
       
   157 
       
   158 enum TAspMandatoryProfileData
       
   159 	{
       
   160 	EMandatoryOk,
       
   161 	EMandatoryNoProfileName,
       
   162     EMandatoryNoHostAddress,
       
   163     EMandatoryIncorrectBearerType,
       
   164     EMandatoryIncorrectAccessPoint,
       
   165 
       
   166     EMandatoryNoContent,
       
   167 	EMandatoryNoLocalDatabase,
       
   168 	EMandatoryNoRemoteDatabase,
       
   169 	EMandatoryNoSyncType
       
   170 	};
       
   171 
       
   172 enum TAspSettingItemVisibility
       
   173 	{
       
   174 	EVisibilityNormal,
       
   175 	EVisibilityReadOnly,
       
   176 	EVisibilityHidden
       
   177 	};
       
   178 
       
   179 enum TASpBearerType
       
   180 	{
       
   181 	EAspBearerInternet = 0,
       
   182 	EAspBearerUsb = 1,
       
   183 	EAspBearerBlueTooth = 2,
       
   184 	EAspBearerIrda = 3,
       
   185 	EAspBearerWsp = 4,
       
   186 	EAspBearerSmlUsb = 5,
       
   187     EAspBearerLast = 6
       
   188 	};
       
   189 
       
   190 
       
   191 
       
   192 //
       
   193 // NOTE: this enum must match to resource r_asp_connection_dialog_setting_items
       
   194 //
       
   195 enum TAspConnectionSettingItem
       
   196 	{
       
   197 	EAspProfileName = 0,
       
   198 	EAspServerId = 1,
       
   199 	EAspConnType = 2,
       
   200 	EAspAccessPoint = 3,
       
   201 	EAspHostAddress = 4,
       
   202 	EAspPort = 5,
       
   203 	EAspUsername = 6,
       
   204 	EAspPassword = 7,
       
   205 	EAspServerAlert = 8,
       
   206 	EAspHttpsUsername = 9,
       
   207 	EAspHttpsPassword = 10,
       
   208     EAspSyncDirection = 11,
       
   209 	EAspProtocolVersion = 12,
       
   210 	EAspSyncContent = 13,
       
   211 	EAspSchedulingSetting = 14,
       
   212 	EAspProfileSetting = 15
       
   213 	};
       
   214 
       
   215 
       
   216 enum TAspContentSettingItem
       
   217 	{
       
   218 	EAspLocalDatabase = 0,
       
   219 	EAspRemoteDatabase = 1,
       
   220 	EAspUseFilters = 2
       
   221 	};
       
   222 
       
   223 enum TAspAutoSyncSettingItem
       
   224 	{
       
   225     EAspAutoSyncProfile = 0,
       
   226     EAspAutoSyncContents,
       
   227     EAspAutoSyncFrequency,
       
   228     EAspAutoSyncPeakSchedule,
       
   229     EAspAutoSyncOffPeakSchedule,
       
   230     EAspAutoSyncScheduleTime,
       
   231     EAspAutoSyncPeakStartTime,
       
   232     EAspAutoSyncPeakEndTime,
       
   233     EAspAutoSyncPeakDays,
       
   234     EAspAutoSyncRoamingStatus
       
   235 	};
       
   236 
       
   237 
       
   238 // NOTE: This enum must match with r_asp_sync_type
       
   239 enum TAspSyncDirection
       
   240 	{
       
   241 	ESyncDirectionTwoWay,
       
   242 	ESyncDirectionOneWayFromDevice,
       
   243 	ESyncDirectionOneWayIntoDevice,
       
   244 	ESyncDirectionRefreshFromServer
       
   245 	};
       
   246 
       
   247 // NOTE: This enum must match with r_asp_server_alert_type
       
   248 enum TAspSASyncState
       
   249 	{
       
   250 	ESASyncStateEnable = 0,
       
   251 	ESASyncStateConfirm = 1,
       
   252 	ESASyncStateDisable = 2
       
   253 	};
       
   254 
       
   255 
       
   256 
       
   257 // NOTE: this enum must match with property array described in 
       
   258 // SyncML_Sync_Agent_Client_API_Specification.doc.
       
   259 
       
   260 // transport property setting ids
       
   261 enum TAspTransportProperties
       
   262 	{
       
   263 	EPropertyIntenetAccessPoint = 0,
       
   264 	EPropertyHttpUsed = 5,
       
   265 	EPropertyHttpUserName = 6,
       
   266 	EPropertyHttpPassword = 7
       
   267 	};
       
   268 
       
   269 /*
       
   270 // transport property setting ids for convergence
       
   271 enum TNSmlSyncTransportProperties
       
   272 	{
       
   273 	EPropertyIntenetAccessPoint = 3,
       
   274 	//EPropertyHttpUsed = 0,
       
   275 	EPropertyHttpUserName = 0,
       
   276 	EPropertyHttpPassword = 1
       
   277 	};
       
   278 */
       
   279 
       
   280 enum TASpProtocolType
       
   281 	{
       
   282 	EAspProtocol_1_1 = 0,
       
   283 	EAspProtocol_1_2 = 1
       
   284 	};
       
   285 
       
   286 // Roaming Settings
       
   287 enum TRoamingSettings
       
   288     {
       
   289     ERoamingSettingAlwaysAsk = 0,
       
   290     ERoamingSettingAlwaysAllow = 1,
       
   291     ERoamingSettingNeverAllow = 2,
       
   292     ERoamingSettingBlock = 3
       
   293     };
       
   294 
       
   295 
       
   296 
       
   297 
       
   298 enum TAdvanceSettingsItem
       
   299     {
       
   300     ERoamingSettings = 0
       
   301     };
       
   302 
       
   303 #endif  // ASPDEFINES_H
       
   304 
       
   305 // End of File