convergedcallengine/csplugin/inc/cspuuimonitor.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:  Monitor UUI messages.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSPUUIMONITOR_H
       
    20 #define CSPUUIMONITOR_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <etelmm.h>
       
    24 
       
    25 class MCSPUUSMessageObserver;
       
    26 
       
    27 /**
       
    28  *  Monitors UUI messages.
       
    29  *
       
    30  *  @lib PhoneEngine.lib
       
    31  *  @since S60 v3.2
       
    32  */
       
    33 NONSHARABLE_CLASS( CSPUUIMonitor ) : public CActive
       
    34     {
       
    35 public:
       
    36 
       
    37     static CSPUUIMonitor* NewL(RMobileCall& aCall,  
       
    38         MCSPUUSMessageObserver& aUUIHandler );
       
    39 
       
    40     virtual ~CSPUUIMonitor();
       
    41 
       
    42     /**
       
    43      * Starts monitoring the UUI messages
       
    44      *
       
    45      * @since S60 v3.2
       
    46      */
       
    47     void StartMonitor();
       
    48     
       
    49 protected:
       
    50 
       
    51 // from base class CActive
       
    52 
       
    53     /**
       
    54      * From CActive
       
    55      * Cancels the outstanding request
       
    56      *
       
    57      * @since S60 v3.2
       
    58      */
       
    59     void DoCancel();
       
    60     
       
    61     /**
       
    62      * From CActive
       
    63      * Handles request completion
       
    64      *
       
    65      * @since S60 v3.2
       
    66      */
       
    67     void RunL();
       
    68 
       
    69 private:
       
    70 
       
    71     CSPUUIMonitor(RMobileCall& aCall,  
       
    72         MCSPUUSMessageObserver& aUUIHandler );
       
    73 
       
    74     void ConstructL();
       
    75 
       
    76 private: // data
       
    77     
       
    78     /**
       
    79      * Etel call.
       
    80      * Not own.
       
    81      */
       
    82     RMobileCall& iCall;
       
    83     
       
    84     /**
       
    85      * UUI data.
       
    86      */
       
    87     RMobileCall::TMobileCallUUI iUUI;
       
    88     
       
    89    
       
    90     /**
       
    91      * UUI message observer;
       
    92      */
       
    93     MCSPUUSMessageObserver& iObserver;
       
    94 
       
    95     };
       
    96 
       
    97 #endif // CSPUUIMONITOR_H