diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook2/ServerApplication/inc/MPbk2ServicePhase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/ServerApplication/inc/MPbk2ServicePhase.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,101 @@ +/* +* Copyright (c) 2005-2007 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: Phonebook 2 phased service interface. +* +*/ + + +#ifndef MPBK2SERVICEPHASE_H +#define MPBK2SERVICEPHASE_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class MVPbkContactLinkArray; +class MVPbkStoreContact; + +// CLASS DECLARATION + +/** + * Phonebook 2 phased service interface. + */ +class MPbk2ServicePhase + { + public: // Interface + + /** + * Destructor. + */ + virtual ~MPbk2ServicePhase() {}; + + /** + * Launches the phased service. + */ + virtual void LaunchServicePhaseL() = 0; + + /** + * Cancels the phased service by force. + */ + virtual void CancelServicePhase() = 0; + + /** + * Request the phased service to cancel itself. + * + * @param aExitCommandId Cancel command id. + */ + virtual void RequestCancelL( + TInt aExitCommandId ) = 0; + + /** + * Notifies of delayed acception. + * + * @param aContactLinkBuffer Buffer containing accepted + * contact links. + */ + virtual void AcceptDelayedL( + const TDesC8& aContactLinkBuffer ) = 0; + + /** + * Returns the results. + * + * @return Results. + */ + virtual MVPbkContactLinkArray* Results() const = 0; + + /** + * Returns additional result data if supported. + * + * @return TInt result data or KErrNotSupported. + */ + virtual TInt ExtraResultData() const = 0; + + /** + * Takes store contact from the phase. + * + * @return Results. + */ + virtual MVPbkStoreContact* TakeStoreContact() = 0; + + /** + * Returns content of the selected field if supported. + * + * @return field content or NULL. + */ + virtual HBufC* FieldContent() const = 0; + }; + +#endif // MPBK2SERVICEPHASE_H + +// End of File