upnp/upnpstack/controlpointbase/inc/upnpcpbinitialeventretry.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 #ifndef CUPNPCPBINITIALEVENTRETRY_H
       
    19 #define CUPNPCPBINITIALEVENTRETRY_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class CUpnpGenaMessage;
       
    27 class CUpnpCpbInitialEventRetryHandler;
       
    28 
       
    29 
       
    30 /**
       
    31  *  CUpnpCpbInitialEventRetry provides timeout for Gena message 
       
    32  * 
       
    33  */
       
    34 NONSHARABLE_CLASS( CUpnpCpbInitialEventRetry ) : public CTimer
       
    35     {
       
    36 public:
       
    37     // Constructors and destructor
       
    38     // Ownership of aMessage is passed through
       
    39     static CUpnpCpbInitialEventRetry* CUpnpCpbInitialEventRetry::NewLC(
       
    40             CUpnpGenaMessage* aMessage,
       
    41             CUpnpCpbInitialEventRetryHandler& iOwner );
       
    42 
       
    43     ~CUpnpCpbInitialEventRetry();
       
    44     
       
    45     // CTimer callback implementation
       
    46     void RunL();
       
    47 
       
    48     CUpnpGenaMessage& Message();
       
    49     
       
    50 private:    
       
    51     CUpnpCpbInitialEventRetry( CUpnpGenaMessage* aMessage,
       
    52                 CUpnpCpbInitialEventRetryHandler& iOwner );
       
    53     void ConstrucL();
       
    54 
       
    55 private:
       
    56     // owned
       
    57     CUpnpGenaMessage* iMessage;
       
    58     CUpnpCpbInitialEventRetryHandler& iOwner;
       
    59     
       
    60     };
       
    61 
       
    62 #endif // CUPNPCPBINITIALEVENTRETRY_H