17#include <KConfigGroup>
18#include <KSharedConfig>
27class KeyboardLayoutDBusInterface;
29namespace KeyboardLayoutSwitching
58 void initDBusInterface();
59 void notifyLayoutChange();
64 KConfigGroup m_configGroup;
65 QList<QAction *> m_layoutShortcuts;
67 std::unique_ptr<KeyboardLayoutSwitching::Policy> m_policy;
68 std::optional<uint> m_lastUsedLayout;
74 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.KeyboardLayouts")
100 const KConfigGroup &m_configGroup;
void switchToPreviousLayout()
bool setLayout(uint index)
QList< LayoutNames > getLayoutsList() const
void switchToNextLayout()
KeyboardLayoutDBusInterface(Xkb *xkb, const KConfigGroup &configGroup, KeyboardLayout *parent)
~KeyboardLayoutDBusInterface() override
void layoutChanged(uint index)
void switchToPreviousLayout()
void switchToNextLayout()
void layoutChanged(uint index)
void switchToLastUsedLayout()
void checkLayoutChange(uint previousLayout)
KeyboardLayout(Xkb *xkb, const KSharedConfigPtr &config)
void layoutsReconfigured()
~KeyboardLayout() override
uint32_t xkb_layout_index_t
QDebug & operator<<(QDebug &s, const KWin::DrmConnector *obj)
const QDBusArgument & operator>>(const QDBusArgument &argument, KeyboardLayoutDBusInterface::LayoutNames &layoutNames)