diff -r 000000000000 -r 5f000ab63145 phoneengine/PhoneCntFinder/ContactService/inc/cphcntspeeddialcontactlinkfetch.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/PhoneCntFinder/ContactService/inc/cphcntspeeddialcontactlinkfetch.h Mon Jan 18 20:18:27 2010 +0200 @@ -0,0 +1,111 @@ +/* +* Copyright (c) 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: Definition of CPhCntSpeedDialContactLinkFetch class. +* +*/ + + +#ifndef CPHCNTSPEEDDIALCONTACTFETCH_H +#define CPHCNTSPEEDDIALCONTACTFETCH_H + +#include "cphcntcontactlinkarrayfetch.h" + +class MPhCntContactManager; +class MVPbkContactLink; +class MVPbkContactOperationBase; + +/** + * ?one_line_short_description + * + * ?more_complete_description + * + * @lib ?library + * @since S60 ?S60_version *** for example, S60 v3.0 + */ +NONSHARABLE_CLASS( CPhCntSpeedDialContactLinkFetch ) : public CPhCntContactLinkArrayFetch + { + +public: + + static CPhCntSpeedDialContactLinkFetch* NewL( + MPhCntContactManager& aContactManager ); + + static CPhCntSpeedDialContactLinkFetch* NewLC( + MPhCntContactManager& aContactManager ); + + virtual ~CPhCntSpeedDialContactLinkFetch(); + + /** + * Fetches contact link which is assigned to speed dial position. + * + * @since S60 v3.1 + * @param aSpeedDialPosition Speed dial position. + * @return Contact link to speed dial contact. + */ + const MVPbkContactLink& FetchSpeedDialLinkL( + TInt aSpeedDialPosition ); + + /** + * From CPhCntAsyncToSync + * + * @since S60 ?S60_version + * @param ?arg1 ?description + * @param ?arg2 ?description + * @return ?description + */ + void DoMakeAsyncRequestL(); + + +// from base class ?base_class1 + + /** + * From ?base_class1. + * ?description + * + * @since S60 ?S60_version + * @param ?arg1 ?description + */ + +// from base class ?base_class2 + +private: + + CPhCntSpeedDialContactLinkFetch( + MPhCntContactManager& aContactManager ); + + void ConstructL(); + + +private: // data + + /** + * Contact manager. + * Not own. + */ + MPhCntContactManager& iContactManager; + + /** + * Operation of contact link fetch. + * Own. + */ + MVPbkContactOperationBase* iOperation; + + /** + * Parameter stored from FetchSpeedDialLinkL + */ + TInt iSpeedDialPosition; + + }; + +#endif // CPHCNTSPEEDDIALCONTACTFETCH_H