QSymbianEvent Class

The QSymbianEvent class contains a Symbian event of any type. 更多...

頭: #include <QSymbianEvent>
Since: Qt 4.6

公共類型

enum Type { InvalidEvent, WindowServerEvent, CommandEvent, ResourceChangeEvent }

公共函數

QSymbianEvent (const TWsEvent * windowServerEvent )
QSymbianEvent (Type eventType , int value )
~QSymbianEvent ()
int command () const
bool isValid () const
int resourceChangeType () const
類型 type () const
const TWsEvent * windowServerEvent () const

詳細描述

The QSymbianEvent class contains a Symbian event of any type.

The class is used as a generic container type for all types of Symbian events.

注意: This class is only available on Symbian.

另請參閱 QApplication::symbianEventFilter ().

成員類型文檔編製

enum QSymbianEvent:: Type

常量 描述
QSymbianEvent::InvalidEvent 0 The event is not valid.
QSymbianEvent::WindowServerEvent 1 Indicates an event of type TWsEvent .
QSymbianEvent::CommandEvent 2 Indicates that the event is a Symbian command.
QSymbianEvent::ResourceChangeEvent 3 Indicates that the event is a Symbian resource change type.

成員函數文檔編製

QSymbianEvent:: QSymbianEvent (const TWsEvent * windowServerEvent )

構造 QSymbianEvent containing the given window server event windowServerEvent .

QSymbianEvent:: QSymbianEvent ( Type eventType , int value )

構造 QSymbianEvent containing the given event value value . The type of event is controlled by the eventType 參數。

QSymbianEvent:: ~QSymbianEvent ()

銷毀 QSymbianEvent .

int QSymbianEvent:: command () const

Returns the command contained in the class instance, or 0 if the event type is not CommandEvent .

bool QSymbianEvent:: isValid () const

返迴是否此 QSymbianEvent instance contains a valid event.

int QSymbianEvent:: resourceChangeType () const

Returns the resource change type contained in the class instance, or 0 if the event type is not ResourceChangeEvent .

Type QSymbianEvent:: type () const

Returns the event type contained in the QSymbianEvent 實例。

const TWsEvent * QSymbianEvent:: windowServerEvent () const

Returns the window server event contained in the class instance, or 0 if the event type is not WindowServerEvent .