swift
Loading...
Searching...
No Matches
corefacadeconfig.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 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_COREFACADECONFIG_H
7#define SWIFT_CORE_COREFACADECONFIG_H
8
9#include <QString>
10
12
13namespace swift::core
14{
17 {
18 public:
28
29 private:
30 ContextMode m_contextMode; // All contexts run in the same mode
31 QString m_dbusAddress;
32
33 public:
35 explicit CCoreFacadeConfig(ContextMode contextMode, const QString &dbusBootstrapAddress = "")
36 : m_contextMode(contextMode), m_dbusAddress(dbusBootstrapAddress)
37 {}
38
40 ContextMode getMode() const { return m_contextMode; }
41
43 bool requiresDBusSever() const;
44
46 bool requiresDBusConnection() const;
47
49 QString getDBusAddress() const { return m_dbusAddress; }
50
52 bool hasDBusAddress() const { return !m_dbusAddress.isEmpty(); }
53 };
54} // namespace swift::core
55#endif // SWIFT_CORE_COREFACADECONFIG_H
bool hasDBusAddress() const
DBus address?
ContextMode getMode() const
Mode.
CCoreFacadeConfig(ContextMode contextMode, const QString &dbusBootstrapAddress="")
Constructor.
ContextMode
How to handle a given context.
@ NotUsed
during shutdown or not used at all
@ Local
context runs in same process
@ Remote
context runs in a different process.
@ LocalInDBusServer
context runs in same process.
QString getDBusAddress() const
DBus address.
Backend services of the swift project, like dealing with the network or the simulators.
Definition actionbind.cpp:7
#define SWIFT_CORE_EXPORT
Export a class or function from the library.