williamr@4: /* williamr@4: * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). williamr@4: * All rights reserved. williamr@4: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@4: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: * williamr@4: * Initial Contributors: williamr@4: * Nokia Corporation - initial contribution. williamr@4: * williamr@4: * Contributors: williamr@4: * williamr@4: * Description: Virtual Phonebook link packing interface for packing williamr@4: * link internals. williamr@4: * williamr@4: */ williamr@4: williamr@4: williamr@4: #ifndef MVPBKCONTACTLINKPACKING_H williamr@4: #define MVPBKCONTACTLINKPACKING_H williamr@4: williamr@4: // INCLUDES williamr@4: #include williamr@4: #include williamr@4: williamr@4: // FORWARD DECLARATIONS williamr@4: class RWriteStream; williamr@4: williamr@4: // CLASS DECLARATIONS williamr@4: williamr@4: /** williamr@4: * An interface Contact link packing. williamr@4: * This interface can be used to pack a contact link to a stream. williamr@4: */ williamr@4: class MVPbkContactLinkPacking williamr@4: { williamr@4: public: // destructor williamr@4: /** williamr@4: * Destructor. williamr@4: */ williamr@4: virtual ~MVPbkContactLinkPacking() { } williamr@4: williamr@4: public: // interface williamr@4: /** williamr@4: * Returns the packed size of internals (excluding the store URI) of williamr@4: * this link. williamr@4: * @return Packed size of internals (excluding the store URI) of williamr@4: * this link. williamr@4: */ williamr@4: virtual TInt InternalPackedSize() const =0; williamr@4: williamr@4: /** williamr@4: * Appends the packed internals (excluding the URI) of this link. williamr@4: * @param aStream Stream to append to this link. williamr@4: */ williamr@4: virtual void PackInternalsL(RWriteStream& aStream) const =0; williamr@4: williamr@4: /** williamr@4: * Returns an extension point for this interface or NULL. williamr@4: * @param aExtensionUid Uid of extension. williamr@4: * @return Extension point or NULL. williamr@4: */ williamr@4: virtual TAny* ContactLinkPackingExtension( williamr@4: TUid /*aExtensionUid*/) { return NULL; } williamr@4: williamr@4: }; williamr@4: williamr@4: #endif // MVPBKCONTACTLINKPACKING_H williamr@4: williamr@4: // End of File