vtengines/videoteleng/Inc/Base/cvtengincomingcallmonitor.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Monitor for incoming call
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_VTENGINCOMINGCALLMONITOR_H
       
    21 #define C_VTENGINCOMINGCALLMONITOR_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "MVtEngSettingPSObserver.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CVtEngPubSubsListener;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  Monitor for incoming call state.
       
    33 *
       
    34 *  @lib videoteleng
       
    35 *  @since S60 v3.2
       
    36 */
       
    37 NONSHARABLE_CLASS( CVtEngIncomingCallMonitor ) : public CBase, public MVtEngSettingPSObserver
       
    38     {
       
    39 public:  // Constructors and destructor
       
    40         
       
    41     static CVtEngIncomingCallMonitor* NewL();
       
    42 
       
    43     /**
       
    44      * Destructor.
       
    45      */
       
    46     virtual ~CVtEngIncomingCallMonitor();
       
    47 
       
    48 public: // New functions
       
    49         
       
    50 	/**
       
    51 	 * Sends event to UI of current incoming call state
       
    52      */
       
    53     void NotifyState() const;
       
    54 
       
    55 public: // From MVtEngSettingPSObserver
       
    56 	
       
    57 	/**
       
    58   	 * @see MVtEngSettingPSObserver::HandleNotifyPSL
       
    59      */
       
    60     void HandleNotifyPSL( const TUid aUid, const TInt& aKey, 
       
    61     	const TRequestStatus& aStatus );
       
    62 
       
    63 private:
       
    64     /**
       
    65      * C++ constructor.
       
    66      */
       
    67     CVtEngIncomingCallMonitor();
       
    68 
       
    69     /**
       
    70      * 2nd phase constructor
       
    71      */
       
    72     void ConstructL();
       
    73         
       
    74 private:
       
    75         
       
    76      // Listener for incoming call state
       
    77     CVtEngPubSubsListener* iIncomingCallListener;
       
    78     };
       
    79 
       
    80 #endif      // C_VTENGINCOMINGCALLMONITOR_H
       
    81             
       
    82 // End of File