19#include "dcdb_qdmi/device.h"
20#include "qdmi/constants.h"
23#include <dcdb/connection.h>
@ ALLOCATED
The session is allocated but not yet initialized.
Definition qaptiva.c:67
@ INITIALIZED
The session is successfully initialized.
Definition qaptiva.c:69
DCDB_QDMI_DEVICE_SESSION_STATUS
Enum of the session status that can be set internally.
Definition session.h:37
The implementation of the encapsulated type QDMI_Device_Session on the device-side.
Definition session.h:53
std::string username
Username used for authentication.
Definition session.h:62
DCDB_QDMI_DEVICE_SESSION_STATUS status
Current status of the session.
Definition session.h:88
void setHostname(const std::string &new_hostname)
Set a hostname for the session.
Definition session.h:94
std::string password
Password used for authentication.
Definition session.h:65
void setStatus(DCDB_QDMI_DEVICE_SESSION_STATUS _status)
Set the session's status.
Definition session.h:161
void setPort(const uint16_t new_port)
Set a port for the session.
Definition session.h:102
DCDB_QDMI_DEVICE_SESSION_STATUS getStatus()
Get function for the current session status.
Definition session.h:168
DCDB::Connection * connection
Pointer to the underlying DCDB connection object.
Definition session.h:68
DCDB::Connection * getConnection()
Get function for the underlying connection object.
Definition session.h:134
void setPassword(const std::string &new_password)
Set the password for authentication.
Definition session.h:126
~DCDB_QDMI_Device_Session_impl_d()
Destructor.
Definition session.h:171
uint16_t port
Port number of the DCDB server.
Definition session.h:59
std::string hostname
Hostname of the DCDB server.
Definition session.h:56
int connect()
Public function to connect to the DCDB server.
Definition session.h:153
void setUsername(const std::string &new_username)
Set the username for authentication.
Definition session.h:120
void setHostnameAndPort(const std::string &baseUrl)
Public function to set hostname and port number for the DCDB server.
Definition session.cpp:31
void disconnect()
Disconnect and clean up the session.
Definition session.h:156