newKey core/coreMode <= General/serverGroupEnabled , Genaral/clientGroupEnabled remove core mode items from appconfig
37 lines
741 B
C++
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";
|
|
};
|