|
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 CVPBKCONTACTLINKSTUB_H |
|
22 #define CVPBKCONTACTLINKSTUB_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <MVPbkContactLink.h> |
|
26 |
|
27 |
|
28 // CLASS DECLARATIONS |
|
29 |
|
30 /** |
|
31 * Virtual Phonebook Contact link. |
|
32 * An object that uniquely identifies a single Contact and its ContactStore. |
|
33 */ |
|
34 class CVPbkContactLinkStub : public CBase, public MVPbkContactLink |
|
35 { |
|
36 public: // destructor |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CVPbkContactLinkStub(); |
|
41 |
|
42 CVPbkContactLinkStub(); |
|
43 public: // interface |
|
44 |
|
45 /** |
|
46 * Returns the contact store which this link belongs to. |
|
47 * @return Contact store associated with this link. |
|
48 */ |
|
49 MVPbkContactStore& ContactStore() const ; |
|
50 |
|
51 /** |
|
52 * Returns ETrue if this link refers to the same contact than |
|
53 * aOther, EFalse otherwise. |
|
54 * @param aOther Contact to check equality for. |
|
55 * @return ETrue if this link refers to the same contact than |
|
56 * aOther, EFalse otherwise. |
|
57 */ |
|
58 TBool IsSame(const MVPbkContactLink& aOther) const ; |
|
59 |
|
60 /** |
|
61 * Checks if this link refers to the contact aContact. |
|
62 * @param aContact Contact to check. |
|
63 * @return ETrue if this link refers to aContact, EFalse otherwise. |
|
64 */ |
|
65 TBool RefersTo(const MVPbkBaseContact& aContact) const ; |
|
66 |
|
67 /** |
|
68 * Returns persistent streaming interface for this object, or NULL |
|
69 * if persistent streaming is not supported. |
|
70 * @return Persistent streaming object or NULL if not supported. |
|
71 */ |
|
72 const MVPbkStreamable* Streamable() const ; |
|
73 |
|
74 /** |
|
75 * Returns a packing interface for this link. |
|
76 * @see CVPbkContactLinkArray |
|
77 * @internal |
|
78 * @return Link packing object. |
|
79 */ |
|
80 const MVPbkContactLinkPacking& Packing() const ; |
|
81 |
|
82 /** |
|
83 * Returns a clone of this contact link. |
|
84 * @return Contact link copy. |
|
85 */ |
|
86 MVPbkContactLink* CloneLC() const ; |
|
87 |
|
88 |
|
89 }; |
|
90 |
|
91 |
|
92 |
|
93 #endif // CVPBKCONTACTLINKSTUB_H |
|
94 |
|
95 // End of File |