Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class TScheduleState2

class TScheduleState2;

Description

Defines the state of a schedule.

An object of this type is passed to, and populated by, a call to RScheduler::GetScheduleL(const TInt,TScheduleState2 &,CArrayFixFlat< TScheduleEntryInfo2 > &,CArrayFixFlat< TTaskInfo > &,TTsTime &).

Members

Defined in TScheduleState2:

See also:


Construction and destruction


TScheduleState2()

IMPORT_C TScheduleState2();

Description

Default Constructor for TScheduleState2. By default, this state: has an empty string name, is non persistent, non enabled and its due time is set to zero.


TScheduleState2(const TScheduleState2 &)

IMPORT_C TScheduleState2(const TScheduleState2 &aScheduleState);

Description

Copy constructor for TScheduleState2

Parameters

const TScheduleState2 &aScheduleState

The TScheduleState2 object to be copied


TScheduleState2(const TName &,const TTsTime &,TBool,TBool)

IMPORT_C TScheduleState2(const TName &aName, const TTsTime &aDueTime, TBool aPersists, TBool aEnabled);

Description

Constructor taking the specified parameters.

Parameters

const TBuf &aName

The name of the schedule

const TTsTime &aDueTime

The time when the schedule is next due.

TBool aPersists

Boolean to indicate whether the schedule is persistent or not. if a schedule is persistent, its lifetime is not limited to the lifetime of the tasks associated with it. If a schedule is transient, it is created together with a new scheduled task, and is destroyed when the task is destroyed

TBool aEnabled

Boolean to indicate whether the shedule is enabled or not.

[Top]


Member functions


Name()const

IMPORT_C const TName& Name() const;

Description

Return value

const TBuf &

The name of the schedule


SetName(const TName &)

IMPORT_C void SetName(const TName &aName);

Description

Sets the name of the schedule

Parameters

const TBuf &aName

The name of the schedule


DueTime()const

IMPORT_C const TTsTime& DueTime() const;

Description

Returns the time when the schedule is next due.

Return value

const TTsTime &

The time when the schedule is next due. This time could be either home time (for floating schedules) or UTC time.

See also:


SetDueTime(const TTsTime &)

IMPORT_C void SetDueTime(const TTsTime &aDueTime);

Description

Sets the time when the schedule is next due.

Parameters

const TTsTime &aDueTime

The time when the schedule is next due. This time could be either home time (for floating schedules) or UTC time.

See also:


Persists()const

IMPORT_C TBool Persists() const;

Description

Returns a boolean whether this schedule perists or not.

Return value

TBool

Etrue if this schedule persists, EFalse if this schedule doen't persist.


SetPersists(TBool)

IMPORT_C void SetPersists(TBool aPersists);

Description

Sets a boolean whether this schedule perists or not.

Parameters

TBool aPersists

Etrue if this schedule persits, EFalse if this schedule doen't persist.


Enabled()const

IMPORT_C TBool Enabled() const;

Description

Returns information on whether this schedule is enabled or not.

Return value

TBool

Etrue if the schedule is enabled, EFalse id the schedule is not enabled.


SetEnabled(TBool)

IMPORT_C void SetEnabled(TBool aEnabled);

Description

Sets information on whether this schedule is enabled or not.

Parameters

TBool aEnabled


operator=(const TScheduleState2 &)

IMPORT_C TScheduleState2& operator=(const TScheduleState2 &aScheduleState);

Description

Assigns a TScheduleState2 to this object.

Parameters

const TScheduleState2 &aScheduleState

Return value

TScheduleState2 &

See also: