CuteHMI - Shared Database (CuteHMI.SharedDatabase.0)
DatabaseConfig.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_SHAREDDATABASE_0_INCLUDE_CUTEHMI_SHAREDDATABASE_INTERNAL_DATABASECONFIG_HPP
2 #define H_EXTENSIONS_CUTEHMI_SHAREDDATABASE_0_INCLUDE_CUTEHMI_SHAREDDATABASE_INTERNAL_DATABASECONFIG_HPP
3 
4 #include "common.hpp"
5 
6 #include <QSharedDataPointer>
7 
8 namespace cutehmi {
9 namespace shareddatabase {
10 namespace internal {
11 
12 class CUTEHMI_SHAREDDATABASE_PRIVATE DatabaseConfig final
13 {
14  public:
15  class Data:
16  public QSharedData
17  {
18  public:
19  Data();
20 
21  Data(const Data & other) = default;
22 
25  int port;
30  };
31 
33 
35 
36  DatabaseConfig(const DatabaseConfig &) = default;
37 
38  ~DatabaseConfig() = default;
39 
40  DatabaseConfig & operator=(const DatabaseConfig &) = default;
41 
42  const DataPtr & data() const;
43 
44  DataPtr & data();
45 
46  private:
48 };
49 
50 }
51 }
52 }
53 
54 #endif
55 
56 //(c)C: Copyright © 2020, Michał Policht <michal@policht.pl>. All rights reserved.
57 //(c)C: This file is a part of CuteHMI.
58 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
59 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
60 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
QSharedData
cutehmi::shareddatabase::internal::DatabaseConfig::DataPtr
QSharedDataPointer< Data > DataPtr
Definition: DatabaseConfig.hpp:32
cutehmi::shareddatabase::internal::DatabaseConfig::Data::user
QString user
Definition: DatabaseConfig.hpp:27
cutehmi::shareddatabase::internal::DatabaseConfig::Data::connectionName
QString connectionName
Definition: DatabaseConfig.hpp:29
cutehmi::shareddatabase::internal::DatabaseConfig::Data
Definition: DatabaseConfig.hpp:15
cutehmi::shareddatabase::internal::DatabaseConfig::Data::name
QString name
Definition: DatabaseConfig.hpp:26
QSharedDataPointer
cutehmi::shareddatabase::internal::DatabaseConfig
Definition: DatabaseConfig.hpp:12
cutehmi::shareddatabase::internal::DatabaseConfig::Data::password
QString password
Definition: DatabaseConfig.hpp:28
cutehmi::shareddatabase::internal::DatabaseConfig::Data::port
int port
Definition: DatabaseConfig.hpp:25
cutehmi
QString
cutehmi::shareddatabase::internal::DatabaseConfig::Data::type
QString type
Definition: DatabaseConfig.hpp:23
cutehmi::shareddatabase::internal::DatabaseConfig::Data::host
QString host
Definition: DatabaseConfig.hpp:24