File indexing completed on 2024-04-28 16:44:47

0001 #ifndef DBUS_ACTION_WIDGET_H
0002 #define DBUS_ACTION_WIDGET_H
0003 /* SPDX-FileCopyrightText: 2008 Michael Jansen <kde@michael-jansen.biz>
0004 
0005    SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "action_widget_base.h"
0009 #include "ui_dbus_action_widget.h"
0010 
0011 #include "actions/actions.h"
0012 
0013 /**
0014  * @author Michael Jansen <kde@michael-jansen.biz>
0015  */
0016 class DbusActionWidget : public ActionWidgetBase
0017 {
0018     Q_OBJECT
0019 
0020     typedef ActionWidgetBase Base;
0021 
0022 public:
0023     /**
0024      * Default constructor
0025      */
0026     DbusActionWidget(KHotKeys::DBusAction *action, QWidget *parent = nullptr);
0027 
0028     /**
0029      * Destructor
0030      */
0031     ~DbusActionWidget() override;
0032 
0033     KHotKeys::DBusAction *action() override;
0034     const KHotKeys::DBusAction *action() const override;
0035 
0036     bool isChanged() const override;
0037 
0038 public Q_SLOTS:
0039 
0040     void launchDbusBrowser() const;
0041     void execCommand() const;
0042 
0043 protected:
0044     void doCopyFromObject() override;
0045     void doCopyToObject() override;
0046 
0047     Ui::DbusActionWidget ui;
0048 };
0049 
0050 #endif /* #ifndef DBUS_ACTION_WIDGET_H */