sensorfw
Orientation Class Reference

QObject facade for OrientationData. More...

#include <orientation.h>

List of all members.

Public Types

enum  DisplayOrientation {
  OrientationUndefined = 0, OrientationDisplayUp, OrientationDisplayDown, OrientationDisplayLeftUp,
  OrientationDisplayRightUp, OrientationDisplayUpwards, OrientationDisplayDownwards
}
 Display orientation. More...

Public Member Functions

 Orientation ()
 Default constructor.
 Orientation (const OrientationData &orientationData)
 Constructor.
 Orientation (const Orientation &orientation)
 Copy constructor.
const OrientationDataorientationData () const
 Accessor for contained OrientationData.
int x () const
 Accessor for X coordinate.
int y () const
 Accessor for Y coordinate.
int z () const
 Accessor for Z coordinate.
DisplayOrientation orientation () const
 Accessor for display orientation.

Properties

int x
int y
int z
DisplayOrientation orientation

Friends

const QDBusArgument & operator>> (const QDBusArgument &argument, Orientation &orientation)
 Unmarshall Orientation data from the D-Bus argument.

Detailed Description

QObject facade for OrientationData.

Definition at line 36 of file orientation.h.


Member Enumeration Documentation

Display orientation.

Deprecated:
Not used.
Enumerator:
OrientationUndefined 
OrientationDisplayUp 
OrientationDisplayDown 
OrientationDisplayLeftUp 
OrientationDisplayRightUp 
OrientationDisplayUpwards 
OrientationDisplayDownwards 

Definition at line 51 of file orientation.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 65 of file orientation.h.

Orientation::Orientation ( const OrientationData orientationData)

Constructor.

Parameters:
orientationDataSource object.
Orientation::Orientation ( const Orientation orientation)

Copy constructor.

Parameters:
orientationSource object.

Member Function Documentation

Accessor for display orientation.

Returns:
display orientation.
Deprecated:
Returns always OrientationUndefined.

Definition at line 116 of file orientation.h.

const OrientationData& Orientation::orientationData ( ) const [inline]

Accessor for contained OrientationData.

Returns:
contained OrientationData.

Definition at line 86 of file orientation.h.

int Orientation::x ( ) const [inline]

Accessor for X coordinate.

Returns:
X coordinate.

Definition at line 93 of file orientation.h.

int Orientation::y ( ) const [inline]

Accessor for Y coordinate.

Returns:
Y coordinate.

Definition at line 100 of file orientation.h.

int Orientation::z ( ) const [inline]

Accessor for Z coordinate.

Returns:
Z coordinate.

Definition at line 107 of file orientation.h.


Friends And Related Function Documentation

const QDBusArgument& operator>> ( const QDBusArgument &  argument,
Orientation orientation 
) [friend]

Unmarshall Orientation data from the D-Bus argument.

Parameters:
argumentdbus argument.
orientationunmarshalled data.
Returns:
dbus argument.

Definition at line 148 of file orientation.h.


Property Documentation

Definition at line 43 of file orientation.h.

int Orientation::x [read]

Definition at line 40 of file orientation.h.

int Orientation::y [read]

Definition at line 41 of file orientation.h.

int Orientation::z [read]

Definition at line 42 of file orientation.h.


The documentation for this class was generated from the following file: