phonesrv_plat/phone_settings_notes_ui_api/inc/PsuiCliObserver.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002,2003 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:  CPsuiCliObserver class is responsible for handling notes 
       
    15 *                related to CLIR, CLIP, COLR, COLP and CNAP.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPSUICLIOBSERVER_H
       
    21 #define CPSUICLIOBSERVER_H
       
    22 
       
    23 // INCLUDES            
       
    24 #include <MPsetCliObserver.h>   
       
    25 #include "PsuiConstants.h"      
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class CPsuiResourceLoader;
       
    29 class CPsuiContainer;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  CPsuiCliObserver class is responsible for handling notes related
       
    35 *  to CLIR, CLIP, COLR, COLP and CNAP.
       
    36 *  @lib psui.lib
       
    37 *  @since 1.0
       
    38 */
       
    39 class CPsuiCliObserver : public CBase, 
       
    40                          public MPsetCliObserver 
       
    41     {
       
    42     public: // Constructor
       
    43 
       
    44         /**
       
    45         * Symbian OS two-phased constructor.
       
    46         *
       
    47         * @param aContainer Reference to container
       
    48         * @return Returns CPsuiCliObserver pointer
       
    49         */
       
    50         IMPORT_C static CPsuiCliObserver* NewL( CPsuiContainer& aContainer );
       
    51         
       
    52     public: 
       
    53 
       
    54         /**
       
    55         * From MPsetCliObserver, handles calling identity notes.
       
    56         *
       
    57         * @param aType Type of call identity information
       
    58         */
       
    59         void CliInformationL( TPsuiCli aType );
       
    60 
       
    61         /**
       
    62         * From MPsetCliObserver, handles requesting notes.
       
    63         *
       
    64         * @param aOngoing If ETrue, there is an active request
       
    65         * @param aInterrupted If ETrue, means that notemaster should be 
       
    66         *                     immediately deleted.
       
    67         */
       
    68         void HandleCliRequestingL( TBool aOngoing, 
       
    69             TBool aInterrupted = EFalse );
       
    70 
       
    71         /**
       
    72         * From MPsetCliObserver, defines reference to requesting object.
       
    73         *
       
    74         * @param aEngine Reference to the Phone Settings
       
    75         */
       
    76         void SetEngineContact( MPsetCli* aEngine );
       
    77 
       
    78         /**
       
    79         * From MPsetCliObserver.
       
    80         * DEPRECATED.
       
    81         */
       
    82         void HandleCliStatusL( 
       
    83             TUint8[] /*aBsc[KPSUIMaxBscNumber]*/, 
       
    84             TPsuiCli /*aMode*/ ) {}
       
    85 
       
    86         /**
       
    87         * This method shows CNAP status.
       
    88         * @since 1.2
       
    89         *
       
    90         * @param aStatus Status of CNAP
       
    91         *
       
    92         */
       
    93         void HandleCnapStatusL( TInt aStatus );
       
    94 
       
    95         /**
       
    96         * Handles errors.
       
    97         * @since 2.0
       
    98         *
       
    99         * @param aError error code.
       
   100         *
       
   101         */
       
   102         void HandleCliErrorL( TInt aError );
       
   103 
       
   104         /**
       
   105         * Destructor
       
   106         * @since 2.0
       
   107         */
       
   108         ~CPsuiCliObserver();
       
   109         
       
   110     private: // new
       
   111 
       
   112         void SetContainer( CPsuiContainer& aContainer );
       
   113 
       
   114     private: // member variables
       
   115 
       
   116         //container object
       
   117         CPsuiContainer* iContainer;
       
   118     };
       
   119 
       
   120 
       
   121 #endif //CPSUICLIOBSERVER_H
       
   122 
       
   123 
       
   124