|
1 /* |
|
2 * Copyright (c) 2002-2007 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: |
|
15 : |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CVPBKCONTACTFIELDURIDATASTUB_H |
|
22 #define CVPBKCONTACTFIELDURIDATASTUB_H |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include <MVPbkContactFieldUriData.h> |
|
27 |
|
28 // CLASS DECLARATIONS |
|
29 |
|
30 /** |
|
31 * Virtual Phonebook Contact field URI data. |
|
32 * This interface is used to manipulate URI contact field data. |
|
33 */ |
|
34 class CVPbkContactFieldUriData_Stub : public MVPbkContactFieldUriData |
|
35 { |
|
36 public: // Destructor |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CVPbkContactFieldUriData_Stub(); |
|
41 |
|
42 CVPbkContactFieldUriData_Stub(); |
|
43 |
|
44 public: // Interface |
|
45 |
|
46 /** |
|
47 * Returns the URI scheme. |
|
48 * @return Pointer to the URI scheme. |
|
49 */ |
|
50 TPtrC Scheme() const ; |
|
51 |
|
52 /** |
|
53 * Returns the URI . |
|
54 * @return Pointer to the URI text. |
|
55 */ |
|
56 TPtrC Text() const ; |
|
57 |
|
58 /** |
|
59 * Returns the string data. |
|
60 * @return Pointer to the whole URI. |
|
61 */ |
|
62 TPtrC Uri() const ; |
|
63 |
|
64 /** |
|
65 * Sets the URI data. |
|
66 * @exception KErrOverflow if (aUri.Length() > MaxLength()) |
|
67 */ |
|
68 void SetUriL(const TDesC& aUri) ; |
|
69 |
|
70 /** |
|
71 * Sets the URI data. |
|
72 * @exception KErrOverflow if (aScheme.Length() + aText.Length() |
|
73 * + 1 > MaxLength()) |
|
74 */ |
|
75 void SetUriL(const TDesC& aScheme, const TDesC& aText) ; |
|
76 |
|
77 /** |
|
78 * Returns maximum length of the field. |
|
79 * @return Maximum length of the field or KVPbkUnlimitedFieldLength |
|
80 * if length is only limited by available memory. |
|
81 */ |
|
82 TInt MaxLength() const ; |
|
83 |
|
84 /** |
|
85 * Returns the derived data type id. |
|
86 * @return Contact field storage type. |
|
87 */ |
|
88 TVPbkFieldStorageType DataType() const; |
|
89 |
|
90 /** |
|
91 * Returns true if the storage is empty. |
|
92 * @return ETrue if the data field is empty. |
|
93 */ |
|
94 TBool IsEmpty() const; |
|
95 |
|
96 /** |
|
97 * Copies data from given field data. |
|
98 * @param aFieldData Data that is copied to this object. |
|
99 * @precond aFieldData.DataType() == this->DataType() |
|
100 */ |
|
101 void CopyL(const MVPbkContactFieldData& aFieldData) ; |
|
102 |
|
103 |
|
104 }; |
|
105 |
|
106 #endif // CVPBKCONTACTFIELDURIDATASTUB_H |
|
107 |
|
108 // End of File |