mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muspttcallmonitor.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:36:18 +0300
changeset 22 496ad160a278
parent 0 f0cf47e981f9
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Monitor that observes the status of the current CS call
*
*/



#ifndef UT_MUSPTTCALLMONITOR_H
#define UT_MUSPTTCALLMONITOR_H

#include <digia/eunit/ceunittestsuiteclass.h>
#include "mmusptteventobserver.h"

class CMusPttCallMonitor;

/**
 * Monitor, which observes status of Kodiak PTT Call *
 * @lib ut_mushaoplugin.dll
 */
NONSHARABLE_CLASS( UT_CMusPTTCallMonitor )
    : public CEUnitTestSuiteClass,MMusPttEventObserver
    {

public: // constructors and destructor
     /**
     * Two-phased constructor. Leaves on failure.
     * @return The constructed CMusAoCallMonitorTest object.
     */
    static UT_CMusPTTCallMonitor* NewLC();

    /**
     * Destructor.
     */
    ~UT_CMusPTTCallMonitor();

private:

    /**
     * C++ constructor.
     */
    UT_CMusPTTCallMonitor();

    /**
     * Symbian 2nd-phase constructor.
     */
    void ConstructL();

    void PttCallEventOccuredL(TPSCTsyKodiakPtt& /*aVal*/)
        {
        
        };

public: 

    void UT_RunLL();
    
    void UT_IsPTTCallExistL();    

    void UT_DoCancelL();

private:

    void SetupL();
    
    void Teardown();      

private: // data

    CMusPttCallMonitor* iMonitor;
    
    EUNIT_DECLARE_TEST_TABLE; 
    };

#endif // UT_MUSPTTCALLMONITOR_H