omacp/omacpadapters/EmailAdapter/src/WPEmail.hrh
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     This file contains declarations for constants.
       
    16 *     The file can be included in C++ or resource file.
       
    17 *     
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef WPEMAIL_HRH
       
    23 #define WPEMAIL_HRH
       
    24 
       
    25 // CONSTANTS
       
    26 #if ( defined (__WINS__) || defined (__WINSCW) ) // this different on hw
       
    27     _LIT( KAdapterName, "WPEmailAdapterResource" );
       
    28 #else
       
    29     _LIT( KAdapterName, "WPEmailAdapter" );
       
    30 #endif
       
    31 
       
    32 
       
    33 // secure settin string
       
    34 _LIT(KSecureString, "STARTTLS");
       
    35 // supports these ports
       
    36 _LIT( KEmailSettingPortSMTP, "25" );
       
    37 _LIT( KEmailSettingPortIMAP, "143" );
       
    38 _LIT( KEmailSettingPortPOP, "110" );
       
    39 // SSL/TLS setting strings
       
    40 _LIT( KEmailSettingSecurePortSMTP, "465" ); 
       
    41 _LIT( KEmailSettingSecurePortPOP, "995" ); 
       
    42 _LIT( KEmailSettingSecurePortIMAP, "993" ); 
       
    43 
       
    44 const TInt KEmailSslWrappedSmtpPort		= 465;
       
    45 const TInt KEmailSslWrappedPop3Port		= 995;
       
    46 const TInt KEmailSslWrappedImap4Port            = 993;
       
    47 
       
    48 // maximum lenghts
       
    49 const TInt KIacMaxIapLength             = 30;
       
    50 const TInt KIacMaxRemMbxUserNameLength  = 50;
       
    51 const TInt KIacMaxPasswdLength          = 50;
       
    52 const TInt KIacMaxAddressLength         = 100;
       
    53 const TInt KIacMaxRecHostLength         = 50;
       
    54 const TInt KIacMaxSendHostLength        = 50;
       
    55 const TInt KIacMaxRemoteMbxNameLength   = 30;
       
    56 
       
    57 const TInt KIacFetchHeadersDefaultLimit = 30;
       
    58 const TInt KSettingsNameMaxLength       = 30;
       
    59 
       
    60 //Min and Max values
       
    61 const TUint KEmailPortMinValue    = 1;
       
    62 const TUint KEmailPortMaxValue    = 65535;
       
    63 
       
    64 // Default port values
       
    65 const TUint KEmailSettingPortValueSMTP = 25;
       
    66 const TUint KEmailSettingPortValueIMAP = 143;
       
    67 const TUint KEmailSettingPortValuePOP = 110;
       
    68 
       
    69 #endif // WPEMAIL_HRH
       
    70 
       
    71 // End of File
       
    72