CUpnpTimeoutElement Class Reference
class CUpnpTimeoutElement : public CActive |
This is a virtual base class containing a timeout functionality. This class is used by following steps:
1. Inherit your class from CUpnpTimeoutElement;
2. In the constructor of the derived class, call also the constructor of CUpnpTimeoutElement. This means you have to have an element library class which is derived from the class MUpnpTimeoutElementParent. This element library has to be passed to the constructor of CUpnpTimeoutElement.
3. Call the SetTimeout function to set the timeout of the element
4. If the timeout should be renewed after a timeout, call SetRenew to set the member variable iRenew. That variable can be used later to decide the destiny of an element.
Constructor & Destructor Documentation
CUpnpTimeoutElement(MUpnpTimeoutElementParent &)
Constructor function; call from the constructor of a derived class.
- Since
- Series60 2.0
Parameters
MUpnpTimeoutElementParent & aParent | A class implementing the parent interface MUpnpTimeoutElementParent, in practice the library class |
~CUpnpTimeoutElement()
IMPORT_C | ~CUpnpTimeoutElement | ( | ) | [virtual] |
Destructor function; called automatically from the destructor of a derived class
Member Functions Documentation
BaseConstructL()
IMPORT_C void | BaseConstructL | ( | ) | [protected] |
Base class constructor function
- Since
- Series60 2.0
DoCancel()
IMPORT_C void | DoCancel | ( | ) | [virtual] |
Standard callback function of CActive-derived functions
- Since
- Series60 2.0
Renew()
Returns the current renew setting
- Since
- Series60 2.0
RunError(TInt)
IMPORT_C TInt | RunError | ( | TInt | aError | ) | [virtual] |
Standard callback function of CActive-derived functions
- Since
- Series60 2.0
RunL()
IMPORT_C void | RunL | ( | ) | [virtual] |
Standard callback function of CActive-derived functions
- Since
- Series60 2.0
SetRenew(TRenew)
IMPORT_C void | SetRenew | ( | TRenew | aRenew | ) | |
ets the renew setting of this element
- Since
- Series60 2.0
Parameters
TRenew aRenew | The new renew setting |
SetTimeout(TInt)
IMPORT_C void | SetTimeout | ( | TInt | aSeconds | ) | |
This function sets the timeout of the element. The TimeoutExpired() function of the parent of this element is called after the timeout
- Since
- Series60 2.0
Member Enumerations Documentation
Member Data Documentation
const TUint32 KMicroInSec
const TUint32 | KMicroInSec | [private, static] |
const TInt KTime
const TInt | KTime | [private, static] |
MUpnpTimeoutElementParent & iParent
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.