convergedcallengine/csplugin/inc/cspcallinfomonitor.h
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 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:  Monitors changes in remote party info 
       
    15 *                (RMobileCall::TMobileCallRemotePartyInfoV1)
       
    16 *  Interface   : 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef     CSPCALLINFOMONITOR_H
       
    22 #define     CSPCALLINFOMONITOR_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include    <etelmm.h>
       
    26 #include    "mcspcallobserver.h"
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 
       
    30 class   CSPCallData;
       
    31 class   CSPPhoneData;
       
    32 class   RMobileCall;
       
    33 
       
    34 //  CLASS DEFINITIONS 
       
    35 
       
    36 /** Monitors changes in remote party info.
       
    37 *   This class monitors remote party info changes in ETel's call objects.
       
    38 *   @since 3.1
       
    39 */
       
    40 NONSHARABLE_CLASS( CSPCallInfoMonitor ): public CActive
       
    41     {
       
    42     public:
       
    43         /** 
       
    44         * Two-phased constructor 
       
    45         * @param aObserver Call info change observer
       
    46         * @param aCall This is the call to be monitored
       
    47         */
       
    48         static CSPCallInfoMonitor* NewL(
       
    49             MCSPCallObserver& aObserver, RMobileCall &aCall );
       
    50 
       
    51         /** D'tor. */
       
    52         ~CSPCallInfoMonitor();
       
    53 
       
    54     public:
       
    55         /** 
       
    56         * Starts monitoring.
       
    57         */
       
    58         void StartMonitoring( );
       
    59 
       
    60     private:
       
    61         /** Prohibited. */
       
    62         CSPCallInfoMonitor& operator=( const CSPCallInfoMonitor& );
       
    63 
       
    64         /**
       
    65         * C++ Constructor
       
    66         * @param aObserver aObserver Call info change observer        
       
    67         * @param aCall This is the call to be monitored.         
       
    68         */
       
    69         CSPCallInfoMonitor( MCSPCallObserver& aObserver, 
       
    70                             RMobileCall &aCall ); 
       
    71 
       
    72 
       
    73     private:    // from CActive
       
    74         /** @see CActive::RunL() */
       
    75         void RunL();
       
    76 
       
    77         /**  @see CActive::DoCancel() */
       
    78         void DoCancel();
       
    79       
       
    80         
       
    81 
       
    82     private:
       
    83     
       
    84         /**
       
    85         * Observer for info change.
       
    86         */
       
    87         MCSPCallObserver& iObserver;
       
    88         
       
    89         /**
       
    90         * Pointer to Call object.
       
    91         * Not own.
       
    92         */
       
    93         RMobileCall& iCall;
       
    94         
       
    95         /**
       
    96         * Remote party info.
       
    97         */ 
       
    98         RMobileCall::TMobileCallRemotePartyInfoV1 iRemotePartyInfo;
       
    99         
       
   100         /**
       
   101         * packaged remote party info.
       
   102         */         
       
   103         RMobileCall::TMobileCallRemotePartyInfoV1Pckg iRemotePartyInfoPckg;
       
   104     };
       
   105 
       
   106 #endif // CSPCALLINFOMONITOR_H
       
   107 
       
   108 // End of File