phoneplugins/csplugin/tsrc/automaticanswertest/etelincomingcallmonitor.h
author hgs
Mon, 23 Aug 2010 15:42:12 +0300
changeset 60 1eef62f5c541
parent 45 6b911d05207e
permissions -rw-r--r--
201033

/*
* Copyright (c) 2007 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:  Declarations for class CSPEtelIncomingCallMonitor
*
*/


#ifndef ETELINCOMINGCALLMONITOR_H
#define ETELINCOMINGCALLMONITOR_H

#include <e32base.h>
#include <etelmm.h>


/**
* Monitors single ETel RMobileLine for incoming calls.
*
*  This monitor is applied only for listening incoming calls, i.e.
*  line capabilites are not monitored.
*
*/
class CEtelIncomingCallMonitor: public CActive
    {
    
    public: //Constructors and descructor

        /**
        * C++ default constructor
        * @param aLine the line associated with the call
        * @param aLineId line identifier
        */
        CEtelIncomingCallMonitor( /*RMobileLine& aLine,
                                  TInt aLineId */);    
        /**
        * C++ default destructor
        */
        virtual ~CEtelIncomingCallMonitor( );

        /**
        * Start monitoring call events
        * @since S60 3.2
        */
        void StartMonitoring();
    
    protected: // From CActive
        /**
        * From CActive
        * RunL
        * @since S60 3.2
        */
        void RunL();
        
        /**
        * From CActive
        * Cancels the monitor
        * @since S60 3.2
        */
        void DoCancel();

    private: // data

        /**
        * Incoming call name received from ETel.
        */ 
        TName iCallName;
        
        /**
        * Line that is being observed for incoming call.
        */
        RMobileLine iLine;
        
        /**
        * Line identifier / type.
        */
        TInt iLineId;
        
        RTelServer iServer;
        
        RTelServer::TPhoneInfo iPhoneInfo;
    };
    
#endif // ETELINCOMINGCALLMONITOR_H