Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <SCHINFO.H>
Link against: schsvr.lib

Class TTaskInfo

class TTaskInfo;

Description

Contains detailed information for a single task.

A schedule can have any number of tasks. An object of this type is passed to RScheduler::ScheduleTask(TTaskInfo &,HBufC &,const TInt). Objects of this type are also returned by functions within RScheduler that retrieve information about tasks.

Members

Defined in TTaskInfo:

See also:

Related Topics


Construction and destruction


TTaskInfo(TInt,TName &,TInt,TInt)

IMPORT_C TTaskInfo(TInt aTaskId, TName &aName, TInt aPriority, TInt aRepeat);

Description

Constructor taking the specified parameters.

Parameters

TInt aTaskId

The task Id.

TBuf &aName

The name of the task.

TInt aPriority

The task priority.

TInt aRepeat

How often the task is to be repeated


TTaskInfo()

IMPORT_C TTaskInfo();

Description

Default constructor.

[Top]


Member functions


operator=(const TTaskInfo &)

IMPORT_C TTaskInfo& operator=(const TTaskInfo &aTaskInfo);

Description

Parameters

const TTaskInfo &aTaskInfo

Return value

TTaskInfo &


ExternalizeL(RWriteStream &)const

IMPORT_C void ExternalizeL(RWriteStream &aStream) const;

Description

Externalises an object of this class to a write stream.

The presence of this function means that the standard templated operator<<(RWriteStream &,const T &) can be used to externalise objects of this class.

Parameters

RWriteStream &aStream

Stream to which the object should be externalised.


InternalizeL(RReadStream &)

IMPORT_C void InternalizeL(RReadStream &aStream);

Description

Internalises an object of this class from a read stream.

The presence of this function means that the standard templated operator>>(RReadStream &,T &) can be used to internalise objects of this class.

Note that the function has assignment semantics. It replaces the old value of the object with a new value read from the read stream.

Parameters

RReadStream &aStream

Stream from which the object is to be internalised.

[Top]


Member data


iRepeat

TInt iRepeat;

Description

Specifies how often the task is to be repeated.

This is defined by the client.

A value of 1 means once, a value of 2 means twice etc.

Note that zero is interpreted to mean once, and a negative value is interpreted to mean that the task will be repeated until it is explicitly deleted.


iTaskId

TInt iTaskId;

Description

The unique Id for the task.

This is generated by the Task Scheduler. Clients should use the generated Id to refer to the task in future transactions.


iName

TName iName;

Description

The name of the task.

This is defined by the client.

See also:


iPriority

TInt iPriority;

Description

The priority of the task.

This is defined by the client.

Determines the order in which a client's tasks are executed. Where a client has two tasks with different priorities, the task with the higher priority will be executed first.