epoc32/include/app/MVPbkStoreContact2.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/app/MVPbkStoreContact2.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,71 @@
     1.4 +/*
     1.5 +* Copyright (c) 2004-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:  An interface for store contacts.
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef MVPBKSTORECONTACT2_H
    1.23 +#define MVPBKSTORECONTACT2_H
    1.24 +
    1.25 +
    1.26 +// FORWARD DECLARATIONS
    1.27 +class MVPbkStoreContactProperties;
    1.28 +
    1.29 +// CLASS DECLARATIONS
    1.30 +
    1.31 +/**
    1.32 + * This class is an extension to MVPbkStoreContact.
    1.33 + * See documentation of MVPbkStoreContact from header MVPbkStoreContact.h 
    1.34 + * 
    1.35 + *
    1.36 + * @see MVPbkStoreContact
    1.37 + * 
    1.38 + */
    1.39 +class MVPbkStoreContact2
    1.40 +    {
    1.41 +    public:  // Destructor
    1.42 +        virtual ~MVPbkStoreContact2() { }
    1.43 +
    1.44 +    public:
    1.45 +
    1.46 +        /**   
    1.47 +         * Returns auxiliary properties.
    1.48 +         * Can return NULL if underlying store doesn't support any 
    1.49 +         * of MVPbkStoreContactProperties functions.
    1.50 +         *
    1.51 +         * @return A properties object
    1.52 +        */
    1.53 +        virtual MVPbkStoreContactProperties* PropertiesL() const =0;
    1.54 +          
    1.55 +        /**
    1.56 +         * Set the contact as the store's current own contact asynchronously. 
    1.57 +         *
    1.58 +         * @param aObserver The observer to call back when this operation
    1.59 +         *                  completes. The observer will not be called if this
    1.60 +         *                  function leaves.
    1.61 +         * @exception KErrInUse If another asynchronous operation is already
    1.62 +         *            in progress.
    1.63 +         * @exception KErrNotSupported If store does not support own contact
    1.64 +         */
    1.65 +        virtual void SetAsOwnL(MVPbkContactObserver& aObserver) const =0;
    1.66 +        
    1.67 +        
    1.68 +        
    1.69 +      
    1.70 +    };
    1.71 +
    1.72 +#endif  // MVPBKSTORECONTACT2_H
    1.73 +
    1.74 +//End of file