cellular/telephonysettings/tsrc/public/basic/PhoneSettingsTest/inc/PhoneSettingsTestCallDivertingObserver.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: Declaration of CPhoneSettingsTestCallDivertingObserver class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PHONESETTINGSTESTCALLDIVERTINGGOBSERVER_H
       
    21 #define PHONESETTINGSTESTCALLDIVERTINGGOBSERVER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <MPsetDivertObs.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 NONSHARABLE_CLASS(CPhoneSettingsTestCallDivertingObserver) : 
       
    29     public MPsetDivertObserver,
       
    30     public CBase
       
    31     {
       
    32     public:  // Constructors and destructor
       
    33 
       
    34         /**
       
    35         * Two-phased constructor.
       
    36         */
       
    37         static CPhoneSettingsTestCallDivertingObserver* NewL();
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         virtual ~CPhoneSettingsTestCallDivertingObserver();
       
    43 
       
    44     private:
       
    45 
       
    46         /**
       
    47         * C++ default constructor.
       
    48         */
       
    49         CPhoneSettingsTestCallDivertingObserver(); 
       
    50 
       
    51         /**
       
    52         * By default Symbian 2nd phase constructor is private.
       
    53         */
       
    54         void ConstructL();
       
    55         
       
    56     public: // Derived from MPsetDivertObserver       
       
    57     
       
    58         /**
       
    59         * Handles showing notes, when diverts change.
       
    60         *
       
    61         * @param aSetting Setting which was changed.
       
    62         * @param aPlural Plural notes to be used.
       
    63         */
       
    64         virtual void HandleDivertingChangedL( 
       
    65             const TCallDivertSetting& aSetting, TBool aPlural );
       
    66  
       
    67         /**
       
    68         * Handles showing of status inquiry notes.
       
    69         *
       
    70         * @param aBsc List of basic services.
       
    71         * @param aSetting Divert setting which was queried.
       
    72         * @param aPlural Plural notes to be used.
       
    73         */
       
    74 
       
    75         virtual void HandleDivertingStatusL( CMobilePhoneCFList& aSetting, 
       
    76             TBool aPlural );
       
    77 
       
    78         /**
       
    79         * Handles showing of error notes.
       
    80         *
       
    81         * @param aReason Reason for diverting error.
       
    82         */
       
    83         virtual void HandleDivertingErrorL( TInt aReason );
       
    84         
       
    85         /**
       
    86         * Handles requesting notes.
       
    87         *
       
    88         * @param aOngoing Is there a request going on.
       
    89         * @param aInterrupted Request needs to immediately cancelled.
       
    90         */
       
    91         virtual void HandleCFRequestingL( TBool aOngoing, 
       
    92             TBool aInterrupted );
       
    93 
       
    94         /**
       
    95         * Sets pointer so that message is passed succesfully
       
    96         * from requester to observer.
       
    97         *
       
    98         * @param aDivertEngine Source for the events to observer.
       
    99         */
       
   100         virtual void SetEngineContact( MPsetCallDiverting* aDivertEngine );  
       
   101 
       
   102     private: // Data
       
   103         
       
   104         // Pointer to Diverting Engine 
       
   105         MPsetCallDiverting* iDivertEngine; 
       
   106     };
       
   107 
       
   108 #endif      // PHONESETTINGSTESTCALLDIVERTINGGOBSERVER_H
       
   109 
       
   110 // End of File