swift
Loading...
Searching...
No Matches
contextapplicationempty.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_CORE_CONTEXTAPPLICATION_EMPTY_H
7#define SWIFT_CORE_CONTEXTAPPLICATION_EMPTY_H
8
10#include "core/corefacade.h"
12#include "misc/identifierlist.h"
13
14// clazy:excludeall=const-signal-or-slot
15
16namespace swift::core
17{
18 class CCoreFacade;
19 namespace context
20 {
23 {
25
26 public:
29
30 public slots:
33 const swift::misc::CIdentifier &origin) override
34 {
35 Q_UNUSED(settings);
36 Q_UNUSED(origin);
37 logEmptyContextWarning(Q_FUNC_INFO);
38 }
39
42 {
43 logEmptyContextWarning(Q_FUNC_INFO);
44 return {};
45 }
46
49 {
50 logEmptyContextWarning(Q_FUNC_INFO);
51 return {};
52 }
53
60
62 void synchronizeLocalSettings() override { logEmptyContextWarning(Q_FUNC_INFO); }
63
65 swift::misc::CStatusMessage saveSettings(const QString &keyPrefix = {}) override
66 {
67 Q_UNUSED(keyPrefix);
68 logEmptyContextWarning(Q_FUNC_INFO);
69 return {};
70 }
71
74 {
75 Q_UNUSED(keys);
76 logEmptyContextWarning(Q_FUNC_INFO);
77 return {};
78 }
79
82 {
83 logEmptyContextWarning(Q_FUNC_INFO);
84 return {};
85 }
86
88 void registerHotkeyActions(const QStringList &actions, const swift::misc::CIdentifier &origin) override
89 {
90 Q_UNUSED(actions);
91 Q_UNUSED(origin);
92 logEmptyContextWarning(Q_FUNC_INFO);
93 }
94
96 void callHotkeyActionRemotely(const QString &action, bool argument,
97 const swift::misc::CIdentifier &origin) override
98 {
99 Q_UNUSED(action);
100 Q_UNUSED(argument);
101 Q_UNUSED(origin);
102 logEmptyContextWarning(Q_FUNC_INFO);
103 }
104
107 {
108 Q_UNUSED(application);
109 logEmptyContextWarning(Q_FUNC_INFO);
110 return {};
111 }
112
114 void unregisterApplication(const swift::misc::CIdentifier &application) override
115 {
116 Q_UNUSED(application);
117 logEmptyContextWarning(Q_FUNC_INFO);
118 }
119
122 {
123 logEmptyContextWarning(Q_FUNC_INFO);
124 return {};
125 }
126
129 {
130 logEmptyContextWarning(Q_FUNC_INFO);
131 return {};
132 }
133 };
134 } // namespace context
135} // namespace swift::core
136#endif // SWIFT_CORE_CONTEXTAPPLICATION_EMPTY_H
Configuration object for the contexts.
The class providing facades (the contexts) for all DBus relevant operations.
Definition corefacade.h:57
CContextApplicationEmpty(CCoreFacade *runtime)
Constructor.
swift::misc::CStatusMessage loadSettings()
Load core settings from disk.
void synchronizeLocalSettings()
Update local settings with settings from core.
swift::misc::CStatusMessage saveSettings(const QString &keyPrefix={})
Save core settings to disk.
void unregisterApplication(const swift::misc::CIdentifier &application)
Unregister application.
swift::misc::CIdentifierList getRegisteredApplications() const
All registered applications.
swift::core::context::CSettingsDictionary getUnsavedSettingsKeysDescribed() const
Get keys of all unsaved settings currently in core settings cache.
void changeSettings(const swift::misc::CValueCachePacket &settings, const swift::misc::CIdentifier &origin)
Ratify some settings changed by another process.
swift::misc::CStatusMessage saveSettingsByKey(const QStringList &keys)
Save core settings to disk.
QStringList getUnsavedSettingsKeys() const
Get keys of all unsaved settings currently in core settings cache.
void registerHotkeyActions(const QStringList &actions, const swift::misc::CIdentifier &origin)
Register hotkey action implemented by another process.
swift::misc::CValueCachePacket getAllSettings() const
Get all settings currently in core settings cache.
swift::misc::CIdentifier getApplicationIdentifier() const
Identifier of application, remote side if distributed.
swift::misc::CIdentifier registerApplication(const swift::misc::CIdentifier &application)
Register application, can also be used for ping.
void callHotkeyActionRemotely(const QString &action, bool argument, const swift::misc::CIdentifier &origin)
Call a hotkey action on a remote process.
IContextApplication(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
void logEmptyContextWarning(const QString &functionName) const
Empty context called.
Definition context.h:145
Value object encapsulating information identifying a component of a modular distributed swift process...
Definition identifier.h:29
Value object encapsulating a list of object identifiers.
Streamable status message, e.g.
Value class used for signalling changed values in the cache.
Definition valuecache.h:67
swift::misc::CDictionary< QString, QString, QMap > CSettingsDictionary
Value type for settings keys with descriptions.
Backend services of the swift project, like dealing with the network or the simulators.
Definition actionbind.cpp:7
Q_OBJECTQ_OBJECT
#define SWIFT_CORE_EXPORT
Export a class or function from the library.