Skip to content

Commit

Permalink
Improved API documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Virtanen committed Mar 21, 2011
1 parent 73fdebc commit a2f0af4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/idutils.h
Expand Up @@ -28,6 +28,11 @@

#include <QString>

/**
* Return leftmost part separated by ";". For example return for "foo;bar" is "foo".
*
* @param id ID to clean.
*/
inline QString getCleanId(const QString& id)
{
const char SENSOR_TYPE_SEPARATOR = ';';
Expand Down
7 changes: 7 additions & 0 deletions include/serviceinfo.h
Expand Up @@ -29,7 +29,14 @@

#include <QString>

/**
* Name of the exported DBus service.
*/
const QString SERVICE_NAME = "com.nokia.SensorService";

/**
* Name of the exported DBus object.
*/
const QString OBJECT_PATH = "/SensorManager";

#endif // SRVC_INFO_H
9 changes: 9 additions & 0 deletions include/sfwerror.h
Expand Up @@ -26,8 +26,14 @@
#ifndef SFW_ERROR_H
#define SFW_ERROR_H

/**
* Symbol for invalid session ID.
*/
static const int INVALID_SESSION = -1;

/**
* Enumeration about SensorManager error states.
*/
typedef enum
{
SmNoError = 0,
Expand All @@ -41,6 +47,9 @@ typedef enum
SmAdaptorNotStarted
} SensorManagerError;

/**
* Enumeration about sensor error states.
*/
typedef enum
{
SNoError = 0,
Expand Down

0 comments on commit a2f0af4

Please sign in to comment.