deskflow/src/lib/gui/config/IAppConfig.h
sithlord48 8606dc8618 refactor: move Coremode control to Settings
newKey core/coreMode <= General/serverGroupEnabled , Genaral/clientGroupEnabled
remove core mode items from appconfig
2025-03-13 13:58:25 +00:00

37 lines
694 B
C++

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include "gui/config/IConfigScopes.h"
#include <QString>
namespace deskflow::gui {
class IAppConfig
{
using IConfigScopes = deskflow::gui::IConfigScopes;
public:
virtual ~IAppConfig() = default;
//
// Getters
//
virtual IConfigScopes &scopes() const = 0;
virtual bool isActiveScopeSystem() const = 0;
virtual bool isActiveScopeWritable() const = 0;
//
// Setters
//
virtual void setLoadFromSystemScope(bool loadFromSystemScope) = 0;
};
} // namespace deskflow::gui