22namespace swift::core::context
122 sApp->getInputManager()->callFunctionsBy(action, argument,
false);
133 if (!m_registeredApplications.contains(application))
135 m_registeredApplications.push_back(application);
140 this->cleanupRegisteredApplications();
150 int r = m_registeredApplications.remove(application);
151 this->cleanupRegisteredApplications();
158 void CContextApplication::cleanupRegisteredApplications()
172 return m_registeredApplications;
ContextMode
How to handle a given context.
void callHotkeyActionRemotely(const QString &action, bool argument, const swift::misc::CIdentifier &origin)
Call a hotkey action on a remote process.
swift::misc::CStatusMessage loadSettings()
Load core settings from disk.
void unregisterApplication(const swift::misc::CIdentifier &application)
Unregister application.
swift::misc::CValueCachePacket getAllSettings() const
Get all settings currently in core settings cache.
swift::misc::CStatusMessage saveSettings(const QString &keyPrefix={})
Save core settings to disk.
swift::misc::CIdentifier getApplicationIdentifier() const
Identifier of application, remote side if distributed.
swift::misc::CStatusMessage saveSettingsByKey(const QStringList &keys)
Save core settings to disk.
void registerHotkeyActions(const QStringList &actions, const swift::misc::CIdentifier &origin)
Register hotkey action implemented by another process.
CContextApplication(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
void synchronizeLocalSettings()
Update local settings with settings from core.
void changeSettings(const swift::misc::CValueCachePacket &settings, const swift::misc::CIdentifier &origin)
Ratify some settings changed by another process.
QStringList getUnsavedSettingsKeys() const
Get keys of all unsaved settings currently in core settings cache.
swift::misc::CIdentifierList getRegisteredApplications() const
All registered applications.
swift::misc::CIdentifier registerApplication(const swift::misc::CIdentifier &application)
Register application, can also be used for ping.
swift::core::context::CSettingsDictionary getUnsavedSettingsKeysDescribed() const
Get keys and descriptions of all unsaved settings currently in core settings cache.
void remoteHotkeyAction(const QString &action, bool argument, const swift::misc::CIdentifier &origin)
Call a hotkey action on a remote process.
void registrationChanged()
A component changes.
void hotkeyActionsRegistered(const QStringList &actions, const swift::misc::CIdentifier &origin)
New action was registered.
void settingsChanged(const swift::misc::CValueCachePacket &settings, const swift::misc::CIdentifier &origin)
One or more settings were changed.
bool isDebugEnabled() const
Debug enabled?
iterator insert(const Key &key, const Value &value)
Insert new item with key and value.
CIdentifiable(const QString &objectName)
Use literal based object name.
const CIdentifier & identifier() const
Get identifier.
Value object encapsulating information identifying a component of a modular distributed swift process...
bool hasApplicationProcessId() const
Check if originating from the same process id.
bool isFromLocalMachine() const
Check if originating from the same local machine.
Value object encapsulating a list of object identifiers.
static const QString & contextSlot()
Context slots.
Class for emitting a log message.
Derived & debug()
Set the severity to debug.
CStatusMessage loadFromStore()
Load settings from disk.
static CSettingsCache * instance()
Return the singleton instance.
CStatusMessage saveToStore(const QString &keyPrefix={})
Save settings to disk.
Streamable status message, e.g.
swift::misc::CValueCachePacket getAllValuesWithTimestamps(const QString &keyPrefix={}) const
Return map containing all values in the cache, and timestamps when they were modified.
QStringList getAllUnsavedKeys(const QString &keyPrefix={}) const
Return keys of all values which have been changed but not saved.
Value class used for signalling changed values in the cache.
swift::misc::CDictionary< QString, QString, QMap > CSettingsDictionary
Value type for settings keys with descriptions.
Free functions in swift::misc.
QString join(QChar separator) const const