deskflow/src/test/shared/gui/mocks/AppConfigMock.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
741 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/IAppConfig.h"
#include <gmock/gmock.h>
class AppConfigMock : public deskflow::gui::IAppConfig
{
public:
AppConfigMock()
{
}
//
// Getters
//
MOCK_METHOD(deskflow::gui::IConfigScopes &, scopes, (), (const, override));
MOCK_METHOD(bool, isActiveScopeSystem, (), (const, override));
MOCK_METHOD(bool, isActiveScopeWritable, (), (const, override));
//
// Setters
//
MOCK_METHOD(void, setLoadFromSystemScope, (bool loadFromSystemScope), (override));
private:
const QString m_stub = "stub";
};