diff -r 000000000000 -r 5f000ab63145 phoneengine/PhoneCntFinder/inc/cphcntcontactid.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/PhoneCntFinder/inc/cphcntcontactid.h Mon Jan 18 20:18:27 2010 +0200 @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Abstract base class for contact identifier. +* +*/ + + +#ifndef CPHCNTCONTACTID_H +#define CPHCNTCONTACTID_H + +#include +#include + +/** + * Abstract base class for identifying a single contact + * in contact stores. + * + * @lib PhoneCntFinder + * @since S60 v3.1 + */ +class CPhCntContactId : public CBase + { +public: + + /** + * Clones contact id. + * + * @since S60 v3.1 + * @return New cloned instance of contact id. + */ + virtual CPhCntContactId* CloneL() const = 0; + + /** + * Invalidates this contact id. After this call, + * IsValid call will return false. + * @since S60 v3.1 + */ + virtual void Invalidate() = 0; + + /** + * Is contact id valid. + * + * @since S60 v3.1 + * @return ETrue if contact id is valid. + */ + virtual TBool IsValid() const = 0; + + /** + * Gives contact item id. If this id is not valid, then + * contact item id given is not valid. + * + * @since S60 v3.1 + * @return Contact item id. + */ + virtual TContactItemId ContactId() const = 0; + + /** + * Packs Virtual phonebook contact link to descriptor. + * If this link is not valid, then packed data is not valid. + * + * @since S60 v3.1 + * @return Packed virtual phonebook contact link. + */ + virtual HBufC8* PackLC() const = 0; + + virtual ~CPhCntContactId() {}; + }; + +#endif // CPHCNTCONTACTID_H