upnpavcontroller/upnpavcontrollerclient/inc/upnpavconnectionactive.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 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:      AO for monitoring WLAN connection breakdown
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef C_UPNPAVCONNECTIONACTIVE_H
       
    24 #define C_UPNPAVCONNECTIONACTIVE_H
       
    25 
       
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 #include "upnpavrenderingsessionobserver.h"
       
    29 
       
    30 class RUPnPAVControllerClient;
       
    31 class MUPnPConnectionMonitorObserver;
       
    32 
       
    33 /**
       
    34  *  Active object for connection monitoring.
       
    35  *
       
    36  *  @lib upnpavcontrollerclient.lib
       
    37  *  @since S60 v3.1
       
    38  */
       
    39 class CUPnPAVConnectionActive : public CActive
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      */
       
    47     static CUPnPAVConnectionActive* NewL( RUPnPAVControllerClient& aServer,
       
    48         MUPnPConnectionMonitorObserver& aObserver );
       
    49 
       
    50     /**
       
    51      * Destructor
       
    52      */    
       
    53     virtual ~CUPnPAVConnectionActive();
       
    54        
       
    55 private:
       
    56 
       
    57     /**
       
    58      * Constructor
       
    59      */
       
    60     CUPnPAVConnectionActive( RUPnPAVControllerClient& aServer,
       
    61         MUPnPConnectionMonitorObserver& aObserver );
       
    62 
       
    63     /**
       
    64      * Two-phased constructor.
       
    65      */    
       
    66     void ConstructL();
       
    67 
       
    68 protected: // From CActive
       
    69 
       
    70     void RunL();
       
    71     
       
    72     void DoCancel();
       
    73     
       
    74     TInt RunError( TInt aError );
       
    75 
       
    76 public: // New functions    
       
    77 
       
    78     /**
       
    79      * Starts monitoring WLAN connection
       
    80      */
       
    81     void StartMonitoring();
       
    82 
       
    83 private:
       
    84 
       
    85     RUPnPAVControllerClient& iServer;
       
    86 
       
    87     MUPnPConnectionMonitorObserver& iObserver;       
       
    88     
       
    89     };
       
    90 
       
    91 #endif // C_UPNPAVCONNECTIONACTIVE_H