upnpavcontrolpoint/avcontrolframework/inc/upnpstateupdatehandler.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /** @file
       
     2 * Copyright (c) 2005-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:  Watches states of control point
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CUPNPSTATEUPDATEHANDLER_H
       
    21 #define C_CUPNPSTATEUPDATEHANDLER_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "upnpavcontrolpointobserver.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CUpnpService;
       
    30 class CUpnpAVControlPoint;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  UPnP event handler.
       
    36 *  This class contain functions to handle UPnP events.
       
    37 *
       
    38 *  @since Series 60 2.6
       
    39 */
       
    40 class CUpnpStateUpdateHandler : public CBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47 	    static CUpnpStateUpdateHandler* NewL( 
       
    48             MUpnpAVControlPointObserver& aAVCPObserver,
       
    49             CUpnpAVControlPoint& aAVCP );
       
    50         
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CUpnpStateUpdateHandler();
       
    55 
       
    56     public: // New functions
       
    57         
       
    58         /**
       
    59         * MAin function for event handling
       
    60         * @since Series 60 2.6
       
    61         * @param aService Service that has update events.
       
    62         * @return KErrNone 
       
    63         */
       
    64         TInt StateUpdated( CUpnpService*& aService );
       
    65         /**
       
    66         * Handler for Content Directory events.
       
    67         * @since Series 60 2.6
       
    68         * @param aDevice Device that has update events
       
    69         * @param aService Service that has update events
       
    70         * @return KErrNone, KErrNotsupported, KErrGeneral
       
    71         */
       
    72         TInt ContentDirectoryStateUpdated( 
       
    73             CUpnpDevice& aDevice,
       
    74             CUpnpService*& aService );
       
    75         /**
       
    76         * Handler for Connection Manager events.
       
    77         * @since Series 60 2.6
       
    78         * @param aDevice Device that has update events
       
    79         * @param aService Service that has update events
       
    80         * @return KErrNone, KErrNotsupported, KErrGeneral
       
    81         */
       
    82         TInt ConnectionManagerStateUpdated( 
       
    83             CUpnpDevice& aDevice, 
       
    84             CUpnpService*& aService);
       
    85         /**
       
    86         * Handler for Rendering Control events.
       
    87         * @since Series 60 2.6
       
    88         * @param aDevice Device that has update events
       
    89         * @param aService Service that has update events
       
    90         * @return KErrNone, KErrNotsupported, KErrGeneral
       
    91         */
       
    92         TInt RenderingControlStateUpdated( CUpnpDevice& aDevice, CUpnpService*& aService );
       
    93         /**
       
    94         * Handler for AV Transport events.
       
    95         * @since Series 60 2.6
       
    96         * @param aDevice Device that has update events
       
    97         * @param aService Service that has update events
       
    98         * @return KErrNone, KErrNotsupported, KErrGeneral
       
    99         */
       
   100         TInt AVTransportStateUpdated( CUpnpDevice& aDevice, CUpnpService*& aService );
       
   101 
       
   102     private:
       
   103 
       
   104         /**
       
   105         * C++ default constructor.
       
   106         */
       
   107 	    CUpnpStateUpdateHandler( MUpnpAVControlPointObserver& aAVCPObserver, 
       
   108 	    							CUpnpAVControlPoint& aAVCP );
       
   109 
       
   110         /**
       
   111         * By default Symbian 2nd phase constructor is private.
       
   112         */
       
   113 	    void ConstructL();
       
   114 
       
   115     private:    // Data
       
   116        
       
   117         //observer that is intrested about AVCP actions
       
   118           MUpnpAVControlPointObserver& iAVControlPointObserver;
       
   119           //AVCP main class
       
   120           CUpnpAVControlPoint& iAVCP;
       
   121     };
       
   122 
       
   123 #endif      // C_CUPNPSTATEUPDATEHANDLER_H   
       
   124             
       
   125 // End of File