phonebookui/Phonebook2/ServerApplication/inc/MPbk2UiService.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:41:07 +0300
branchRCL_3
changeset 18 d4f567ce2e7c
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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 application server UI service interface.
*
*/


#ifndef MPBK2UISERVICE_H
#define MPBK2UISERVICE_H

// INCLUDES
#include <e32std.h>
#include "Pbk2ServerApp.hrh"

// FORWARD DECLARATIONS
class MVPbkContactLinkArray;

// CLASS DECLARATION

/**
 * Phonebook 2 application server UI service interface.
 */
class MPbk2UiService
    {
    public: // Interface

        struct TServiceResults
        {
            MVPbkContactLinkArray* iLinkArray;
            TInt iExtraData;
            HBufC* iFieldContent;
        };

        /**
         * Destructor.
         */
        virtual ~MPbk2UiService()
                {}

        /**
         * Launches the service.
         */
        virtual void LaunchServiceL() = 0;

        /**
         * Cancels the service.
         */
        virtual void CancelService() = 0;

        /**
         * Accepts the delayed contacts as part of
         * the contact set used in the service.
         *
         * @param aContactLinkBuffer    Accepted contacts.
         */
        virtual void AcceptDelayedContactsL(
                const TDesC8& aContactLinkBuffer ) = 0;

        /**
         * Deny the delayed contacts as part of
         * the contact set used in the service.
         * 
         * Purpose: Sometimes client maybe deny the selected contact, 
         * the function is used to deliver the client's feedback to phonebook.
         * 
         * @param aContactLinkBuffer    Denied contacts.
         */
        virtual void DenyDelayedContactsL(
                const TDesC8& aContactLinkBuffer) = 0;
        
        /**
         * Exits the service.
         *
         * @param aExitCommandId    The id of the exit command.
         */
        virtual void ExitServiceL(
                TInt aExitCommandId ) = 0;

        /**
         * Retrieves service results.
         *
         * @return  Contact links in an array.
         */
        virtual void ServiceResults(TServiceResults* aResults) const = 0;
    };

#endif // MPBK2UISERVICE_H

// End of File