wvuing/IMPSConnectionUI/Inc/IMPSPresenceLoginDetailValidator.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Validator to check the IMPS id correctness.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IMPSPRESENCELOGINDETAILVALIDATOR_H
       
    19 #define __IMPSPRESENCELOGINDETAILVALIDATOR_H
       
    20 
       
    21 
       
    22 //  INCLUDES
       
    23 #include <E32Std.h>
       
    24 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28  * Validator to check the Presence login id correctness.
       
    29  *
       
    30  * @since 2.1
       
    31  */
       
    32 class IMPSPresenceLoginDetailValidator
       
    33     {
       
    34     public: // New functions
       
    35 
       
    36         /**
       
    37          * Validates given presence login id.
       
    38          *
       
    39          * Checks is the given presence id a valid login
       
    40          * id or not. Assumes the presence id to be a WV id.
       
    41          *
       
    42          * Checks the following details from the presence (WV) id:
       
    43          * - forbidden characters
       
    44          * - user part format
       
    45          * - domain part format
       
    46          * - id not too long
       
    47          *
       
    48          * @since 2.1
       
    49          * @param aWvId The presence id to check.
       
    50          * @return ETrue if the id is a valid login id.
       
    51          * Else EFalse.
       
    52          */
       
    53         IMPORT_C static TBool ValidWVLoginIdL( const TDesC& aWvId );
       
    54 
       
    55 
       
    56         /**
       
    57          * Validates given IAP validity for presence login.
       
    58          *
       
    59          * Checks is the given IAP a valid IAP
       
    60          * for presence login or not.
       
    61          *
       
    62          * @since 2.1
       
    63          * @param aIAP The IAP to check.
       
    64          * @return ETrue if the IAP is a valid login IAP.
       
    65          * Else EFalse.
       
    66          */
       
    67         IMPORT_C static TBool ValidWVLoginIAPL( TUint32 aIAP );
       
    68 
       
    69 
       
    70 
       
    71 
       
    72     private: //prohibited constructors / destructors
       
    73         IMPSPresenceLoginDetailValidator();
       
    74         ~IMPSPresenceLoginDetailValidator();
       
    75     };
       
    76 
       
    77 #endif      // __IMPSPRESENCELOGINDETAILVALIDATOR_H
       
    78 
       
    79 // End of File