upnp/upnpstack/messagehandler/inc/upnpssdphandlerdown.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CUPNPSSDPHANDLERDOWN_H
       
    20 #define CUPNPSSDPHANDLERDOWN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include "upnpssdphandlerbase.h"
       
    26 
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class MUpnpSsdpServerObserver;
       
    31 
       
    32 /**
       
    33  *  CUpnpSsdpHandlerDown handles the state when ssdp servers   
       
    34  *  are stopped. In this state most operation should do nothing 
       
    35  *  so respective methods have empty body
       
    36  */
       
    37 class CUpnpSsdpHandlerDown : public CUpnpSsdpHandlerBase
       
    38     {
       
    39 public:
       
    40     // Constructors and destructor
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     ~CUpnpSsdpHandlerDown();
       
    46 
       
    47     /**
       
    48      * Two-phased constructor.
       
    49      */
       
    50     static CUpnpSsdpHandlerDown* NewL( MUpnpSsdpServerObserver& aSsdpServerObserver );
       
    51 
       
    52     /**
       
    53      * Empty implementation
       
    54      */
       
    55     virtual void StartL( RSocketServ& aSocketServ );
       
    56           
       
    57     /**
       
    58      * Empty implementation
       
    59      */
       
    60     virtual void Stop();
       
    61              
       
    62     /**
       
    63      * Empty implementation
       
    64      */
       
    65     virtual void SsdpSearchL( const TDesC8& aSearchString, TDesC8& aMX );
       
    66         
       
    67     /**
       
    68      * Empty implementation
       
    69      */
       
    70     virtual void AdvertiseDeviceL( TInt aLive,  CUpnpDeviceLibraryElement& aElement );
       
    71     
       
    72     /**
       
    73      * Always returns true
       
    74      */    
       
    75     virtual TBool IsStarted();
       
    76     
       
    77      /**
       
    78      * Method for address change event
       
    79      */    
       
    80     virtual void AddressChangeL( TInetAddr& aAddress );
       
    81     
       
    82 private:
       
    83 
       
    84     /**
       
    85      * Constructor for performing 1st stage construction
       
    86      */
       
    87     CUpnpSsdpHandlerDown( MUpnpSsdpServerObserver& aSsdpServerObserver );
       
    88 
       
    89     /**
       
    90      * EPOC default constructor for performing 2nd stage construction
       
    91      */
       
    92     void ConstructL();
       
    93     
       
    94     };
       
    95 
       
    96 #endif // CUPNPSSDPHANDLERDOWN_H