62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
/**
|
|
* @file include/ActivOneApi/Constants/SessionStates.h
|
|
*
|
|
* @brief Header for the SessionState definitions.
|
|
*/
|
|
|
|
#if (!defined ACTIV_ONE_API_CONSTANTS_SESSION_STATES_H)
|
|
#define ACTIV_ONE_API_CONSTANTS_SESSION_STATES_H
|
|
|
|
#include "ActivOneApi/External.h"
|
|
|
|
#include "ActivOneApi/TypeDefinitions.h"
|
|
|
|
//! Activ namespace.
|
|
namespace Activ
|
|
{
|
|
|
|
//! OneApi namespace.
|
|
namespace OneApi
|
|
{
|
|
|
|
//! Connected to the platform.
|
|
const SessionState SESSION_STATE_CONNECTED = 0;
|
|
|
|
//! Establishing a control connection.
|
|
const SessionState SESSION_STATE_W4_CONTROL_CONNECT = 1;
|
|
|
|
//! Waiting for a login response.
|
|
const SessionState SESSION_STATE_W4_LOGIN = 2;
|
|
|
|
//! Synchronizing data with the platform.
|
|
const SessionState SESSION_STATE_W4_SYNC = 3;
|
|
|
|
//! Establishing data connections.
|
|
const SessionState SESSION_STATE_W4_DATA_CONNECT = 4;
|
|
|
|
//! Waiting for services.
|
|
const SessionState SESSION_STATE_W4_SERVICES = 5;
|
|
|
|
//! Disconnecting from the platform.
|
|
const SessionState SESSION_STATE_W4_DISCONNECT = 6;
|
|
|
|
//! Disconnected from the platform.
|
|
const SessionState SESSION_STATE_DISCONNECTED = 7;
|
|
|
|
// ---------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
/**
|
|
* @brief Convert a SessionState to a string.
|
|
*
|
|
* @param sessionState
|
|
*
|
|
* @return String representation of @a sessionState.
|
|
*/
|
|
ACTIV_ONE_API String SessionStateToString(const SessionState sessionState);
|
|
|
|
} // namespace OneApi
|
|
|
|
} // namespace Activ
|
|
|
|
#endif // (!defined ACTIV_ONE_API_CONSTANTS_SESSION_STATES_H)
|