upnpavcontroller/upnpavcontrollerclient/inc/upnpavconnectionactive.h
author Sampo Huttunen <sampo.huttunen@nokia.com>
Wed, 24 Nov 2010 09:39:46 +0200
branchIOP_Improvements
changeset 45 a6c41ca11adf
parent 0 7f85d04be362
permissions -rw-r--r--
Updated the SIS package, there was some BC issue with the earlier version. Also updated the platform UID to S^3 version.

/*
* Copyright (c) 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:      AO for monitoring WLAN connection breakdown
*
*/






#ifndef C_UPNPAVCONNECTIONACTIVE_H
#define C_UPNPAVCONNECTIONACTIVE_H

#include <e32std.h>
#include <e32base.h>
#include "upnpavrenderingsessionobserver.h"

class RUPnPAVControllerClient;
class MUPnPConnectionMonitorObserver;

/**
 *  Active object for connection monitoring.
 *
 *  @lib upnpavcontrollerclient.lib
 *  @since S60 v3.1
 */
class CUPnPAVConnectionActive : public CActive
    {

public:

    /**
     * Two-phased constructor.
     */
    static CUPnPAVConnectionActive* NewL( RUPnPAVControllerClient& aServer,
        MUPnPConnectionMonitorObserver& aObserver );

    /**
     * Destructor
     */    
    virtual ~CUPnPAVConnectionActive();
       
private:

    /**
     * Constructor
     */
    CUPnPAVConnectionActive( RUPnPAVControllerClient& aServer,
        MUPnPConnectionMonitorObserver& aObserver );

    /**
     * Two-phased constructor.
     */    
    void ConstructL();

protected: // From CActive

    void RunL();
    
    void DoCancel();
    
    TInt RunError( TInt aError );

public: // New functions    

    /**
     * Starts monitoring WLAN connection
     */
    void StartMonitoring();

private:

    RUPnPAVControllerClient& iServer;

    MUPnPConnectionMonitorObserver& iObserver;       
    
    };

#endif // C_UPNPAVCONNECTIONACTIVE_H