sipplugins/sippsipsettingsui/inc/sipserversettingvalidator.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     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:  Validation methods for checking username etc.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SIP_SERVER_SETTING_VALIDATOR_H
       
    20 #define SIP_SERVER_SETTING_VALIDATOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 /**
       
    27 *  SIPServerSettingValidator utility class
       
    28 *  @since 3.0
       
    29 *  Utility class for validating attributes
       
    30 */
       
    31 class SIPServerSettingValidator
       
    32     {
       
    33     public: // New functions
       
    34         
       
    35         /**
       
    36         * Used to validate proxy/registrar server username
       
    37         * @param aTxt Pointer to descriptor containing the name
       
    38         * @return ETrue OK, EFalse invalid characters used
       
    39         */
       
    40         static TBool ValidateServerUsernameL( TAny* aDes );
       
    41 
       
    42         /**
       
    43         * Used to validate proxy/registrar server address
       
    44         * @param aTxt Pointer to descriptor containing the name
       
    45         * @return ETrue OK, EFalse invalid characters used
       
    46         */
       
    47         static TBool ValidateServerAddressL( TAny* aDes );
       
    48 
       
    49     private:
       
    50 
       
    51         /**
       
    52         * C++ default constructor.
       
    53         */
       
    54         SIPServerSettingValidator();        
       
    55     };
       
    56 
       
    57 #endif      // SIP_SERVER_SETTING_VALIDATOR_H
       
    58             
       
    59 // End of File