2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Virtual Phonebook link packing interface for packing
20 #ifndef MVPBKCONTACTLINKPACKING_H
21 #define MVPBKCONTACTLINKPACKING_H
27 // FORWARD DECLARATIONS
33 * An interface Contact link packing.
34 * This interface can be used to pack a contact link to a stream.
36 class MVPbkContactLinkPacking
42 virtual ~MVPbkContactLinkPacking() { }
46 * Returns the packed size of internals (excluding the store URI) of
48 * @return Packed size of internals (excluding the store URI) of
51 virtual TInt InternalPackedSize() const =0;
54 * Appends the packed internals (excluding the URI) of this link.
55 * @param aStream Stream to append to this link.
57 virtual void PackInternalsL(RWriteStream& aStream) const =0;
60 * Returns an extension point for this interface or NULL.
61 * @param aExtensionUid Uid of extension.
62 * @return Extension point or NULL.
64 virtual TAny* ContactLinkPackingExtension(
65 TUid /*aExtensionUid*/) { return NULL; }
69 #endif // MVPBKCONTACTLINKPACKING_H