1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/app/MVPbkContactLinkPacking.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,71 @@
1.4 +/*
1.5 +* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description: Virtual Phonebook link packing interface for packing
1.18 +* link internals.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +#ifndef MVPBKCONTACTLINKPACKING_H
1.24 +#define MVPBKCONTACTLINKPACKING_H
1.25 +
1.26 +// INCLUDES
1.27 +#include <e32cmn.h>
1.28 +#include <e32std.h>
1.29 +
1.30 +// FORWARD DECLARATIONS
1.31 +class RWriteStream;
1.32 +
1.33 +// CLASS DECLARATIONS
1.34 +
1.35 +/**
1.36 + * An interface Contact link packing.
1.37 + * This interface can be used to pack a contact link to a stream.
1.38 + */
1.39 +class MVPbkContactLinkPacking
1.40 + {
1.41 + public: // destructor
1.42 + /**
1.43 + * Destructor.
1.44 + */
1.45 + virtual ~MVPbkContactLinkPacking() { }
1.46 +
1.47 + public: // interface
1.48 + /**
1.49 + * Returns the packed size of internals (excluding the store URI) of
1.50 + * this link.
1.51 + * @return Packed size of internals (excluding the store URI) of
1.52 + * this link.
1.53 + */
1.54 + virtual TInt InternalPackedSize() const =0;
1.55 +
1.56 + /**
1.57 + * Appends the packed internals (excluding the URI) of this link.
1.58 + * @param aStream Stream to append to this link.
1.59 + */
1.60 + virtual void PackInternalsL(RWriteStream& aStream) const =0;
1.61 +
1.62 + /**
1.63 + * Returns an extension point for this interface or NULL.
1.64 + * @param aExtensionUid Uid of extension.
1.65 + * @return Extension point or NULL.
1.66 + */
1.67 + virtual TAny* ContactLinkPackingExtension(
1.68 + TUid /*aExtensionUid*/) { return NULL; }
1.69 +
1.70 + };
1.71 +
1.72 +#endif // MVPBKCONTACTLINKPACKING_H
1.73 +
1.74 +// End of File