Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32cmn.h

Class TSecureId

class TSecureId;

Description

A class used to represent the Secure ID of a process or executable image.

Constructors and conversion operators are provided to enable conversion of this class to and from both TUint32 and TUid objects.

Because this class has non-default constructors, compilers will not initialise this objects at compile time, instead code will be generated to construct the object at run-time. This is wastefull, and Symbian OS DLLs are not permitted to have such uninitialised data. To overcome these problems a macro is provided to construct a const object which behaves like a TSecureId. This is _LIT_SECURE_ID. This macro should be used where it is desirable to define const TSecureId objects, like in header files. E.g. Instead of writing:

    const TSecureId MyId=0x1234567

use

    _LIT_SECURE_ID(MyId,0x1234567)

Members

Defined in TSecureId:
TSecureId(), TSecureId(), TSecureId(), iId, operator TUid(), operator TUint32()


Construction and destruction


TSecureId()

inline TSecureId();

Description

Default constructor. This leaves the object in an undefined state


TSecureId()

inline TSecureId(TUint32 aId);

Description

Construct 'this' using a TUint32

Parameters

TUint32 aId

The value for the ID


TSecureId()

inline TSecureId(TUid aId);

Description

Construct 'this' using a TUid

Parameters

TUid aId

The value for the ID

[Top]


Member functions


operator TUint32()

inline operator TUint32() const;

Description

Convert 'this' into a TUint32

Return value


operator TUid()

inline operator TUid() const;

Description

Convert 'this' into a TUid

Return value

[Top]


Member data


iId

TUint32 iId;

Description