phonebookui/Phonebook2/UIServices/inc/MPbk2ConnectionObserver.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 Services connection observer interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2CONNECTIONOBSERVER_H
       
    20 #define MPBK2CONNECTIONOBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "Pbk2UIServices.hrh"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  * Phonebook 2 UI Services connection observer interface.
       
    29  */
       
    30 class MPbk2ConnectionObserver
       
    31     {
       
    32     public: // Interface
       
    33 
       
    34         /**
       
    35          * Operation complete callback.
       
    36          *
       
    37          * @param aContactLinks     Links to the contacts that were
       
    38          *                          assigned some data.
       
    39          * @param aExtraResultData  Additional data
       
    40          * @param aField            Field content of the selected contacts.
       
    41          */
       
    42         virtual void OperationCompleteL(
       
    43                 const TDesC8& aContactLinks, TInt aExtraResultData,
       
    44                 const TDesC& aField ) = 0;
       
    45 
       
    46         /**
       
    47          * Operation canceled callback.
       
    48          */
       
    49         virtual void OperationCanceledL() = 0;
       
    50 
       
    51         /**
       
    52          * Operation error callback.
       
    53          *
       
    54          * @param   aError      Error code.
       
    55          */
       
    56         virtual void OperationErrorL(
       
    57                 TInt aError ) = 0;
       
    58 
       
    59         /**
       
    60          * Ok to exit callback.
       
    61          *
       
    62          * @param aCommandId        Id of the exit command.
       
    63          * @param aExitParameter    Indicates whether to exit from
       
    64          *                          server application or from
       
    65          *                          client process.
       
    66          * @return  ETrue if it is ok to exit.
       
    67          */
       
    68         virtual TBool OkToExitL(
       
    69                 TInt aCommandId,
       
    70                 TPbk2ExitCommandParams aExitParameter ) = 0;
       
    71 
       
    72         /**
       
    73          * Accept selection verify callback.
       
    74          *
       
    75          * @param aNumberOfSelectedContacts     Number of selected contacts.
       
    76          * @param aContactLink                  Link to the contact currently
       
    77          *                                      being selected.
       
    78          * @return  ETrue if selection is accepted.
       
    79          */
       
    80         virtual TBool AcceptSelectionL(
       
    81                 TInt aNumberOfSelectedContacts,
       
    82                 HBufC8& aContactLink ) = 0;
       
    83 
       
    84     protected: // Disabled functions
       
    85         ~MPbk2ConnectionObserver()
       
    86             {}
       
    87     };
       
    88 
       
    89 #endif // MPBK2CONNECTIONOBSERVER_H
       
    90 
       
    91 // End of File