File indexing completed on 2024-11-24 05:00:24
0001 /* 0002 SPDX-FileCopyrightText: 2014 Weng Xuetian <wengxt@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 #pragma once 0007 #include <QByteArray> 0008 #include <ibus.h> 0009 0010 class PropertyManager 0011 { 0012 public: 0013 PropertyManager(); 0014 virtual ~PropertyManager(); 0015 0016 void setProperties(IBusPropList *props); 0017 void updateProperty(IBusProperty *prop); 0018 IBusProperty *property(const QByteArray &key); 0019 IBusPropList *properties() 0020 { 0021 return m_props; 0022 } 0023 0024 private: 0025 IBusPropList *m_props; 0026 IBusProperty *searchList(const QByteArray &key, IBusPropList *props); 0027 };