-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from electux/dev
[microhil] Preparing migration to gtkmm 4.0 #159
- Loading branch information
Showing
4 changed files
with
92 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* -*- Mode: H; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ | ||
/* | ||
* settings_setup.h | ||
* Copyright (C) 2024 Vladimir Roncevic <elektron.ronca@gmail.com> | ||
* | ||
* microhildesk is free software: you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* microhildesk 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 General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#pragma once | ||
|
||
#include <glibmm/ustring.h> | ||
#include <vector> | ||
|
||
namespace Electux::App::View::Settings | ||
{ | ||
////////////////////////////////////////////////////////////////////////// | ||
/// @brief Setup settings for collected parameters | ||
class SettingsSetup | ||
{ | ||
public: | ||
////////////////////////////////////////////////////////////////////// | ||
/// @brief SettingsSetup constructor | ||
inline SettingsSetup() noexcept = default; | ||
|
||
////////////////////////////////////////////////////////////////////// | ||
/// @brief SettingsSetup destructor | ||
inline ~SettingsSetup() noexcept = default; | ||
|
||
////////////////////////////////////////////////////////////////////// | ||
/// @brief Settings parameters | ||
/// m_serial_device_path - absolute path for serial device file | ||
/// m_serial_params - baud, data, parity, stop parameters | ||
/// m_log_file_path - absolute path for log file | ||
/// m_log_level - log level | ||
Glib::ustring m_serial_device_path; | ||
std::vector<int> m_serial_params; | ||
Glib::ustring m_log_file_path; | ||
int m_log_level; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters