mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muslineeventmonitor.h
changeset 0 f0cf47e981f9
child 32 73a1feb507fb
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005-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 that observes the status of the current CS call
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MUSLINEEVENTMONITORTEST_H
       
    21 #define MUSLINEEVENTMONITORTEST_H
       
    22 
       
    23 //#include <etelmm.h>
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 
       
    26 //#include "ut_musaocallmonitor.h"
       
    27 #include "muscallstatusmonitorobserver.h"
       
    28 
       
    29 class CMusLineEventMonitor;
       
    30 
       
    31 /**
       
    32  * Monitor, which observes status of current cs call
       
    33  * Observers will be notified, when call status is idle
       
    34  * i.e. call has ended.
       
    35  *
       
    36  * @lib ut_mushaoplugin.dll
       
    37  */
       
    38 NONSHARABLE_CLASS( UT_CMusLineEventMonitor )
       
    39     : public CEUnitTestSuiteClass, public MMusCallStatusMonitorObserver    
       
    40     {
       
    41 
       
    42 public: // constructors and destructor
       
    43 
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47     ~UT_CMusLineEventMonitor();
       
    48 
       
    49     /**
       
    50      * Two-phased constructor. Leaves on failure.
       
    51      * @return The constructed UT_CMusAoCallMonitorTest object.
       
    52      */
       
    53     static UT_CMusLineEventMonitor* NewLC();
       
    54 
       
    55 private:
       
    56 
       
    57     /**
       
    58      * C++ constructor.
       
    59      */
       
    60     UT_CMusLineEventMonitor();
       
    61 
       
    62     /**
       
    63      * Symbian 2nd-phase constructor.
       
    64      */
       
    65     void ConstructL();
       
    66     
       
    67 
       
    68 private: // test MMusCallStatusMonitorObserver    
       
    69 
       
    70     virtual void StatusChanged();
       
    71 
       
    72 public: // Unit test functions
       
    73 
       
    74     void UT_GetLineL();
       
    75     
       
    76     void UT_RemoteHoldCountL();
       
    77 
       
    78     void UT_RunLL();    
       
    79 
       
    80     void UT_DoCancelL();
       
    81 
       
    82     void UT_RunErrorL();
       
    83     
       
    84     void UT_AddCallEventMonitorLL();
       
    85     
       
    86     void UT_RemoveCallEventMonitorLL();
       
    87 
       
    88 private:
       
    89     void SetupL();
       
    90     
       
    91     void Teardown();
       
    92 
       
    93 private: // data
       
    94 
       
    95     CMusLineEventMonitor* iMonitor;
       
    96     
       
    97     EUNIT_DECLARE_TEST_TABLE; 
       
    98 
       
    99     };
       
   100 
       
   101 #endif // MUSLINEEVENTMONITORTEST_H