Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32std.h>
Link against: euser.lib

Class RChangeNotifier

class RChangeNotifier : public RHandleBase;

Description

A handle to a change notifier.

The change notifier itself is a kernel object.

Derivation

Members

Defined in RChangeNotifier:

Inherited from RHandleBase:


Member functions


Create()

IMPORT_C TInt Create();

Description

Creates a change notifier, and opens this handle to that change notifier.

Ownership of this change notifier is vested in the current process.

Return value

TInt

KErrNone if successful, otherwise one of the other system-wide error codes.


Logon(TRequestStatus &)const

IMPORT_C TInt Logon(TRequestStatus &aStatus) const;

Description

Issues a request for notification when changes occur in the environment.

A switch in locale, or crossing over past midnight, are examples of changes that are reported.

When a change in the environment occurs, the request completes and the TRquestStatus object will contain one or more of the bit values defined by the TChanges enum.

Alternatively, if an outstanding request is cancelled by a call to this handle's RChangeNotifier::LogonCancel()const member function, then the request completes with a KErrCancel.

Note that if this is the first notification request after creation of the change notifier, then this request completes immediately.

Parameters

TRequestStatus &aStatus

A reference to the request status object.

Return value

TInt

KErrInUse, if there is an outstanding request; KErrNone otherwise.

See also:


LogonCancel()const

IMPORT_C TInt LogonCancel() const;

Description

Cancels an outstanding change notification request.

Return value

TInt

KErrGeneral, if there is no outstanding request; KErrNone otherwise.

See also: