/* Copyright (C) 2017 * swift project Community / Contributors * * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated, * or distributed except according to the terms contained in the LICENSE file. */ //! \file #ifndef BLACKGUI_COMPONENTS_SETTINGSXSWIFTBUSCOMPONENT_H #define BLACKGUI_COMPONENTS_SETTINGSXSWIFTBUSCOMPONENT_H #include "blackgui/blackguiexport.h" #include "blackmisc/simulation/settings/xswiftbussettings.h" #include "blackmisc/settingscache.h" #include "blackmisc/logcategorylist.h" #include #include namespace Ui { class CSettingsXSwiftBusComponent; } namespace BlackGui { namespace Components { /*! * XSwiftBus setup */ class BLACKGUI_EXPORT CSettingsXSwiftBusComponent : public QFrame { Q_OBJECT public: //! Log categories static const BlackMisc::CLogCategoryList &getLogCategories(); //! Constructor explicit CSettingsXSwiftBusComponent(QWidget *parent = nullptr); //! Dtor virtual ~CSettingsXSwiftBusComponent() override; private: QScopedPointer ui; BlackMisc::CSetting m_xSwiftBusSettings { this }; void resetServer(); void saveServer(); }; } // ns } // ns #endif // guard