6 #ifndef SWIFT_CORE_DATA_LAUNCHERSETUP
7 #define SWIFT_CORE_DATA_LAUNCHERSETUP
26 IndexDBusAddress = swift::misc::CPropertyIndexRef::GlobalIndexCLauncherSetup,
42 AudioNothingDisabled = 0,
43 AudioDisableStandaloneAudio = 1 << 0,
44 AudioDisableDistributedCoreAudio = 1 << 1,
45 AudioDisableDistributedGuiAudio = 1 << 2
47 Q_DECLARE_FLAGS(AudioMode, AudioModeFlag)
59 void setDBusAddress(
const QString &dBusAddress) { m_dBusAddress = dBusAddress.trimmed(); }
68 AudioMode
getAudioMode()
const {
return static_cast<AudioMode
>(m_audioMode); }
71 void setAudioMode(AudioMode mode) { m_audioMode =
static_cast<int>(mode); }
80 QString convertToQString(
bool i18n =
false)
const;
89 QString m_dBusAddress {
"tcp:host=127.0.0.1,port=45000" };
90 bool m_windowFrameless =
false;
91 int m_coreMode =
static_cast<int>(Standalone);
92 int m_audioMode =
static_cast<int>(AudioNothingDisabled);
106 static const char *
key() {
return "swiftlaunchersetup"; }
115 Q_DECLARE_METATYPE(swift::core::data::CLauncherSetup::AudioMode)
116 Q_DECLARE_OPERATORS_FOR_FLAGS(swift::core::data::CLauncherSetup::AudioMode)
const QString & getDBusAddress() const
Destructor.
ColumnIndex
Properties by index.
CoreMode getCoreMode() const
Core mode.
void setAudioMode(AudioMode mode)
Audio mode.
AudioMode getAudioMode() const
Audio mode.
void setCoreMode(CoreMode mode)
Core mode.
void setFramelessWindow(bool frameless)
Frameless window?
void setDBusAddress(const QString &dBusAddress)
DBus address.
AudioModeFlag
Audio setup.
bool useFramelessWindow() const
Frameless window?
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Core data traits (aka cached values) and classes.
Trait for global setup data.
static constexpr bool isPinned()
First load is synchronous.
static const char * key()
Key in data cache.
Base class for traits to be used as template argument to swift::misc::CData.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...