phonebookui/Phonebook2/ServerApplication/inc/MPbk2UiServiceObserver.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Phonebook 2 UI service observer interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2UISERVICEOBSERVER_H
       
    20 #define MPBK2UISERVICEOBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  * Phonebook 2 UI service observer interface.
       
    29  */
       
    30 class MPbk2UiServiceObserver
       
    31     {
       
    32     public: // Interface
       
    33 
       
    34         /**
       
    35          * Service complete callback.
       
    36          */
       
    37         virtual void ServiceComplete() = 0;
       
    38 
       
    39         /**
       
    40          * Service canceled callback.
       
    41          * Cancel indicates exiting the server application only.
       
    42          */
       
    43         virtual void ServiceCanceled() = 0;
       
    44 
       
    45         /**
       
    46          * Assign aborted callback.
       
    47          * Abort indicates exiting the server application
       
    48          * and the client process.
       
    49          */
       
    50         virtual void ServiceAborted() = 0;
       
    51 
       
    52         /**
       
    53          * Service error callback.
       
    54          *
       
    55          * @param aErrorCode    Error code
       
    56          */
       
    57         virtual void ServiceError(
       
    58                 TInt aErrorCode ) = 0;
       
    59 
       
    60         /**
       
    61          * Completes exit message.
       
    62          *
       
    63          * @param aExitCommandId    Id of the exit command.
       
    64          */
       
    65         virtual void CompleteExitMessage(
       
    66                 TInt aExitCommandId ) = 0;
       
    67 
       
    68         /**
       
    69          * Completes accept message.
       
    70          *
       
    71          * @param aMarkedEntries    Number of marked entries.
       
    72          * @param aLinkData         Lastly marked contact packed
       
    73          *                          in contact link buffer.
       
    74          */
       
    75         virtual void CompleteAcceptMsg(
       
    76                 const TDesC8& aMarkedEntries,
       
    77                 const TDesC8& aLinkData ) = 0;
       
    78 
       
    79     protected: // Disabled functions
       
    80         ~MPbk2UiServiceObserver()
       
    81             {};
       
    82     };
       
    83 
       
    84 #endif // MPBK2UISERVICEOBSERVER_H
       
    85 
       
    86 // End of File