phonesrv_plat/phone_settings_observer_api/inc/MPsetDivertObs.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *       MPsetDivertObserver class defines protocol for reporting diverting events.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef     MPSETDIVERTOBS_H
       
    22 #define     MPSETDIVERTOBS_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <etelmm.h>
       
    26 #include "nwdefs.h"
       
    27 #include "MPsetCallDiverting.h"
       
    28 
       
    29 //  FORWARD DECLARATIONS
       
    30 class CMobilePhoneCFList;
       
    31 
       
    32 //  CLASS DEFINITIONS 
       
    33 /**
       
    34 *  MPsetDivertObserver class is virtual class for Divert observers.
       
    35 *  @lib phonesettings.lib
       
    36 *  @since 1.0
       
    37 */
       
    38 class   MPsetDivertObserver
       
    39     {
       
    40     public:
       
    41 
       
    42         /**
       
    43         * Handles showing notes, when diverts change.
       
    44         *
       
    45         * @param aSetting Setting which was changed.
       
    46         * @param aPlural Plural notes to be used.
       
    47         */
       
    48         virtual void HandleDivertingChangedL( 
       
    49             const TCallDivertSetting& aSetting, TBool aPlural ) = 0;
       
    50  
       
    51         /**
       
    52         * Handles showing of status inquiry notes.
       
    53         *
       
    54         * @param aBsc List of basic services.
       
    55         * @param aSetting Divert setting which was queried.
       
    56         * @param aPlural Plural notes to be used.
       
    57         */
       
    58 
       
    59         virtual void HandleDivertingStatusL( CMobilePhoneCFList& aSetting, 
       
    60             TBool aPlural ) = 0;
       
    61 
       
    62         /**
       
    63         * Handles showing of error notes.
       
    64         *
       
    65         * @param aReason Reason for diverting error.
       
    66         */
       
    67         virtual void HandleDivertingErrorL( TInt aReason ) = 0;
       
    68         
       
    69         /**
       
    70         * Handles requesting notes.
       
    71         *
       
    72         * @param aOngoing Is there a request going on.
       
    73         * @param aInterrupted Request needs to immediately cancelled.
       
    74         */
       
    75         virtual void HandleCFRequestingL( TBool aOngoing, 
       
    76             TBool aInterrupted ) = 0;
       
    77 
       
    78         /**
       
    79         * Sets pointer so that message is passed succesfully
       
    80         * from requester to observer.
       
    81         *
       
    82         * @param aDivertEngine Source for the events to observer.
       
    83         */
       
    84         virtual void SetEngineContact( MPsetCallDiverting* aDivertEngine ) = 0;
       
    85     };
       
    86 #endif // MPSETDIVERTOBS_H
       
    87 //End of file