upnp/upnpstack/controlpointbase/inc/upnpcpbdiscoveryagent.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 2007-2007 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:  Declares ControlPoint Discovery class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CUPNPCPBDISCOVERYAGENT_H
       
    20 #define C_CUPNPCPBDISCOVERYAGENT_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "upnpdiscoveryobserver.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CUpnpDevice;
       
    28 class CUpnpControlPoint;
       
    29 class MUpnpCpbHttpMessageController;
       
    30 #ifdef RD_UPNP_REMOTE_ACCESS
       
    31 class CUpnpRadaSync;
       
    32 #endif
       
    33 
       
    34 /**
       
    35  * Mediator class handling whole discovery process.
       
    36  * It gets device description and decides how it should be treated
       
    37  * and how to discorery it.
       
    38  *
       
    39  * @lib controlpointbase.lib
       
    40  * @since S60 v5.0
       
    41  */
       
    42 NONSHARABLE_CLASS( CUpnpCpbDiscoveryAgent ) : public CBase
       
    43     {
       
    44     public:
       
    45     /**
       
    46      * Two-phased constructor
       
    47      * @since S60 v5.0
       
    48      */
       
    49     static CUpnpCpbDiscoveryAgent* CUpnpCpbDiscoveryAgent::NewL(
       
    50         MUpnpCpbHttpMessageController& aMessanger );
       
    51 
       
    52     /**
       
    53      * Destructor
       
    54      * @since S60 v5.0
       
    55      */
       
    56     ~CUpnpCpbDiscoveryAgent();
       
    57 
       
    58     public: // Functions from devired class
       
    59 
       
    60     /**
       
    61      * Make a SSDP search. Search string should be some of these strings (defined in UPnP Device Architecture)
       
    62      * @since Series60 5.0
       
    63      * @param aSearchString The search target.
       
    64      */
       
    65     void SearchL( const TDesC8& aSearchString );
       
    66 
       
    67     #ifdef RD_UPNP_REMOTE_ACCESS
       
    68     /*
       
    69      * Enables rada device
       
    70      * @since Series60 5.0
       
    71      */
       
    72     void EnableRadaDeviceL( TRequestStatus& aStatus );
       
    73 
       
    74     /*
       
    75      * Enables rada device
       
    76      * @since Series60 5.0
       
    77      * @return Rada device start status
       
    78      */
       
    79     TInt EnableRadaDeviceL();
       
    80 
       
    81     /*
       
    82      * Disables rada device
       
    83      * @since Series60 5.0
       
    84      */
       
    85     void DisableRadaDeviceL();
       
    86 
       
    87     /**********IPFinterng*****/
       
    88 
       
    89     void StartIPFilteringL();
       
    90 
       
    91     void StopIPFiltering();
       
    92 
       
    93     /***********************/
       
    94     #endif
       
    95 
       
    96     private:
       
    97     /**
       
    98      * Constructor
       
    99      * @since S60 v5.0
       
   100      */
       
   101     CUpnpCpbDiscoveryAgent( MUpnpCpbHttpMessageController& aMessanger );
       
   102 
       
   103     /**
       
   104      * Second phase constructor
       
   105      * @since S60 v5.0
       
   106      */
       
   107     void ConstructL();
       
   108 
       
   109     private:
       
   110     //not owned
       
   111     MUpnpCpbHttpMessageController& iMessanger;
       
   112 
       
   113     #ifdef RD_UPNP_REMOTE_ACCESS
       
   114     // RADA client
       
   115     CUpnpRadaSync* iRadaClient;
       
   116     #endif
       
   117     };
       
   118 
       
   119 #endif // C_CUPNPCPBDISCOVERYAGENT_H
       
   120 //  End of File