videoutils_plat/videoconnutility_api/tsrc/VCXConnUtilTestExe/inc/VCXConnUtilTester.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:20:37 +0100
branchRCL_3
changeset 23 13a33d82ad98
parent 0 822a42b6c3f1
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:   ?Description*
*/


#ifndef VCXCONNUTILTESTER_H
#define VCXCONNUTILTESTER_H

#include <e32base.h>
#include "VCXConnUtilTester.h"

#include "vcxconnutilengineobserver.h"
#include "../../../../../videoconnutility/inc/vcxconnectionutility.hrh"
#include "MIptvTestTimerObserver.h"

class CIptvTestTimer;
class CIptvTestActiveWait;
class CVcxConnectionUtility;

/**
* Video connection utility tester class.
*/
class CVCXConnUtilTester : public CBase,
                           public MConnUtilEngineObserver,
                           public MIptvTestTimerObserver
    {
    public:

        /**
        * Two-phased constructor.
        */
        static CVCXConnUtilTester* NewL();

        /**
        * C++ default constructor.
        */
        CVCXConnUtilTester();

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

    public: // Public new functions

        /**
         * ConnUtil GetIap
         *
         * @return an error code.
         */
        TInt GetIap( TUint32& aIapId, TBool aSilent, TBool aIsTimed );

        /**
         * ConnUtil WapIdFromIapIdL
         */
        TUint32 WapIdFromIapIdL( const TInt32& aIapId );
        
        /**
         * ConnUtil Disconnect
         *
         * @return an error code.
         */
        TInt Disconnect();

    private: // Constructors and destructor

        /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL();

    private: // Functions from base classes
        /**
         * From MConnUtilEngineObserver.
         */
        TBool RequestIsRoamingAllowedL();

        /**
         * From MConnUtilEngineObserver.
         */
        void  IapChangedL();

        /**
        * From MIptvTestTimerObserver Handles timer completion
        * @since
        * @param aTimerId
        * @param aError
        */
        void TimerComplete(TInt aTimerId, TInt aError);

    private: // Data

        CVcxConnectionUtility* iConnUtil;

    public: // Data
        TBool iIsRoamingAllowed;

        TBool iLeaveAtRoamingRequest;

        TInt iDelaySecondsAtRoamingRequest;

        CIptvTestTimer* iTimer;

        CIptvTestActiveWait* iWait;

        // This will show in function traces.
        TBuf<256> iName;
    };

#endif // VCXCONNUTILTESTER_H