|
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 contact data info. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPIMCONTACTVALIDATOR_H |
|
20 #define CPIMCONTACTVALIDATOR_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cpimvalidator.h" |
|
24 #include "pimcommon.h" |
|
25 |
|
26 /** |
|
27 * Contact data info. |
|
28 * |
|
29 * Provides information about valid Contact fields, attributes and |
|
30 * values. |
|
31 */ |
|
32 NONSHARABLE_CLASS(CPIMContactValidator): public CPIMValidator |
|
33 { |
|
34 |
|
35 public: // Constructors and destructor |
|
36 |
|
37 //@{ |
|
38 /** |
|
39 * Two-phased constructors. |
|
40 */ |
|
41 static CPIMContactValidator* NewL(); |
|
42 |
|
43 static CPIMContactValidator* NewLC(); |
|
44 //@} |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CPIMContactValidator(); |
|
50 |
|
51 public: // Functions from CPIMValidator |
|
52 |
|
53 TInt NumElementsL( |
|
54 const TPIMField& aStringArrayField) const; |
|
55 |
|
56 TBool IsValidIntegerValue( |
|
57 const TPIMField& aField, |
|
58 const TInt& aValue) const; |
|
59 |
|
60 TBool IsValidStringArrayValue( |
|
61 const TPIMField& aField, |
|
62 const CDesCArray& aValue) const; |
|
63 |
|
64 protected: // Constructor and destructor |
|
65 |
|
66 /** |
|
67 * Sybian 2nd phase constructor. |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 /** |
|
72 * C++ default constructor. |
|
73 */ |
|
74 CPIMContactValidator(); |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // CPIMCONTACTVALIDATOR_H |
|
79 // End of File |