javaextensions/pim/framework/inc.s60/cpimeventvalidator.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Valid event data info.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPIMEVENTVALIDATOR_H
       
    20 #define CPIMEVENTVALIDATOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cpimvalidator.h"
       
    24 #include "pimcommon.h"
       
    25 
       
    26 /**
       
    27  *  Event data info.
       
    28  *
       
    29  *  Provides information about valid Event fields, attributes and
       
    30  *  values.
       
    31  */
       
    32 NONSHARABLE_CLASS(CPIMEventValidator): public CPIMValidator
       
    33 {
       
    34 
       
    35 public: // Constructors and destructor
       
    36 
       
    37     //@{
       
    38     /**
       
    39      * Two-phased constructors.
       
    40      */
       
    41     static CPIMEventValidator* NewL();
       
    42 
       
    43     static CPIMEventValidator* NewLC();
       
    44     //@}
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      */
       
    49     virtual ~CPIMEventValidator();
       
    50 
       
    51 public: // Functions from CPIMValidator
       
    52 
       
    53     TBool IsValidIntegerValue(
       
    54         const TPIMField& aField,
       
    55         const TInt& aValue) const;
       
    56 
       
    57 protected: // Constructor and destructor
       
    58 
       
    59     /**
       
    60      * Sybian 2nd phase constructor.
       
    61      */
       
    62     void ConstructL();
       
    63 
       
    64     /**
       
    65      * C++ default constructor.
       
    66      */
       
    67     CPIMEventValidator();
       
    68 
       
    69 };
       
    70 
       
    71 #endif // CPIMEVENTVALIDATOR_H
       
    72 // End of File