|
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 to-do data info. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPIMTODOVALIDATOR_H |
|
20 #define CPIMTODOVALIDATOR_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cpimvalidator.h" |
|
24 #include "pimcommon.h" |
|
25 |
|
26 /** |
|
27 * ToDo data info. |
|
28 * |
|
29 * Provides information about valid ToDo fields, attributes and |
|
30 * values. |
|
31 */ |
|
32 NONSHARABLE_CLASS(CPIMToDoValidator): public CPIMValidator |
|
33 { |
|
34 |
|
35 public: // Constructors and destructor |
|
36 |
|
37 //@{ |
|
38 /** |
|
39 * Two-phased constructors. |
|
40 */ |
|
41 static CPIMToDoValidator* NewL(); |
|
42 |
|
43 static CPIMToDoValidator* NewLC(); |
|
44 //@} |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CPIMToDoValidator(); |
|
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 CPIMToDoValidator(); |
|
68 |
|
69 }; |
|
70 |
|
71 #endif // CPIMTODOVALIDATOR_H |
|
72 // End of File |