servicediscoveryandcontrol/pnp/test/upnp/Client/upnpplugin/inc/ctimermappeduri.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CTIMERMAPPEDURI_H_
       
    17 #define __CTIMERMAPPEDURI_H_
       
    18 #include <e32base.h>
       
    19 /* This class stores a mapping of TDeltaTimerEntry corresponding to the uris
       
    20  for which search request has been  issued. It allows the entry to be removed in 
       
    21  case a new search/subscribe request with the same uri is issued or when cancelling
       
    22  the search/subscribe request 
       
    23  
       
    24  @internalComponent
       
    25  */
       
    26 class CTimerMappedUri : public CBase
       
    27 	{
       
    28 public:
       
    29 	inline static CTimerMappedUri* NewL(const TDesC8& aUri,TDeltaTimerEntry* aEntry,TInt aTime);
       
    30 	inline ~CTimerMappedUri();
       
    31 	inline TDeltaTimerEntry& GetTimerEntry() const;
       
    32 	inline TInt Delay() const;
       
    33 	inline TBool UriExists(const TDesC8& aUri) const;
       
    34 	inline const TDesC8& GetUri() const;
       
    35 	inline TBool MatchTimerEntry( const TDeltaTimerEntry* aEntry ) const ;
       
    36 private:
       
    37 	inline void ConstructL(const TDesC8& aUri);
       
    38 	inline CTimerMappedUri(TDeltaTimerEntry* aEntry, TInt aTime );
       
    39 	
       
    40 	RBuf8 iUri;
       
    41 	TDeltaTimerEntry* iEntry;
       
    42 	TInt iTime;
       
    43 	};
       
    44 
       
    45 #include "ctimermappeduri.inl"
       
    46 #endif /*CTIMERMAPPEDURI_H_*/