1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/app/MVPbkContactAttribute.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,64 @@
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 interface for contact attributes.
1.18 +* Attributes are e.g speed dial or defaults
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +#ifndef MVPBKCONTACTATTRIBUTE_H
1.24 +#define MVPBKCONTACTATTRIBUTE_H
1.25 +
1.26 +// INCLUDE FILES
1.27 +#include <e32cmn.h>
1.28 +#include <e32std.h>
1.29 +
1.30 +/**
1.31 + * Virtual Phonebook Contact attribute interface.
1.32 + * Base class for different kinds of attributes.
1.33 + * The UID returned by AttributeType uniquely identifies
1.34 + * the implementation class of this interface.
1.35 + */
1.36 +class MVPbkContactAttribute
1.37 + {
1.38 + public:
1.39 + /**
1.40 + * Destructor.
1.41 + */
1.42 + virtual ~MVPbkContactAttribute() {}
1.43 +
1.44 + /**
1.45 + * Returns the attribute type of the object.
1.46 + * @return The attribute type of the object.
1.47 + */
1.48 + virtual TUid AttributeType() const =0;
1.49 +
1.50 + /**
1.51 + * Returns a copy of this object.
1.52 + * @return A copy of this object.
1.53 + */
1.54 + virtual MVPbkContactAttribute* CloneLC() const =0;
1.55 +
1.56 + /**
1.57 + * Returns an extension point for this interface or NULL.
1.58 + * @param aExtensionUid Extension identifier.
1.59 + * @return An extension object.
1.60 + */
1.61 + virtual TAny* ContactAttributeExtension(
1.62 + TUid /*aExtensionUid*/) { return NULL; }
1.63 + };
1.64 +
1.65 +#endif // MVPBKCONTACTATTRIBUTE_H
1.66 +
1.67 +// End of File