ORE Studio 0.0.4
Loading...
Searching...
No Matches
connection.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2025 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef ORES_CONNECTIONS_DOMAIN_CONNECTION_HPP
21#define ORES_CONNECTIONS_DOMAIN_CONNECTION_HPP
22
23#include <string>
24#include <optional>
25#include <boost/uuid/uuid.hpp>
26
27namespace ores::connections::domain {
28
40struct connection final {
44 boost::uuids::uuid id;
45
51 std::optional<boost::uuids::uuid> folder_id;
52
59 std::optional<boost::uuids::uuid> environment_id;
60
64 std::string name;
65
71 std::optional<std::string> host;
72
78 std::optional<int> port;
79
83 std::string username;
84
91 std::string encrypted_password;
92
96 std::string description;
97};
98
99}
100
101#endif
Represents a saved connection with credentials.
Definition connection.hpp:40
std::optional< std::string > host
Host name or IP address of the server.
Definition connection.hpp:71
std::string description
Optional description or notes about this connection.
Definition connection.hpp:96
std::optional< int > port
Port number the server is listening on.
Definition connection.hpp:78
std::string username
Username for authentication.
Definition connection.hpp:83
std::string name
Display name for this connection.
Definition connection.hpp:64
boost::uuids::uuid id
Unique identifier for this connection.
Definition connection.hpp:44
std::optional< boost::uuids::uuid > folder_id
Folder this connection belongs to.
Definition connection.hpp:51
std::optional< boost::uuids::uuid > environment_id
Environment this connection is linked to.
Definition connection.hpp:59
std::string encrypted_password
Encrypted password for authentication.
Definition connection.hpp:91