Polkit-Qt-1  0.95.0
polkitqt1-gui-actionbuttons.h
1 /*
2  * This file is part of the Polkit-qt project
3  * Copyright (C) 2009 Dario Freddi <drf@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef POLKITQT1_GUI_ACTIONBUTTONS_H
22 #define POLKITQT1_GUI_ACTIONBUTTONS_H
23 
24 #include "polkitqt1-gui-actionbutton.h"
25 
26 namespace PolkitQt1
27 {
28 
29 namespace Gui
30 {
31 
32 class ActionButtonsPrivate;
47 {
48  Q_OBJECT
49  Q_DECLARE_PRIVATE(ActionButtons)
50  Q_DISABLE_COPY(ActionButtons)
51 
52 public:
66  explicit ActionButtons(const QList<QAbstractButton *> &buttons, const QString &actionId = QString(), QObject *parent = 0);
67  virtual ~ActionButtons();
68 
83  void setButtons(const QList<QAbstractButton *> &buttons);
84 
90  QList<QAbstractButton *> buttons() const;
91 
98  void addButton(QAbstractButton *button);
99 
107  void removeButton(QAbstractButton *button);
108 };
109 
110 }
111 
112 }
113 
114 #endif
void removeButton(QAbstractButton *button)
Definition: polkitqt1-gui-actionbuttons.cpp:62
Class used to hold and update a QAbstractButton.
Definition: polkitqt1-gui-actionbutton.h:53
void setButtons(const QList< QAbstractButton *> &buttons)
Definition: polkitqt1-gui-actionbuttons.cpp:41
Namespace wrapping Polkit-Qt classes.
Definition: listeneradapter.cpp:26
QList< QAbstractButton * > buttons() const
Definition: polkitqt1-gui-actionbuttons.cpp:48
QString actionId() const
Definition: polkitqt1-gui-action.cpp:506
Class used to hold and update a list of QAbstractButtons.
Definition: polkitqt1-gui-actionbuttons.h:46
QAbstractButton * button() const
Definition: polkitqt1-gui-actionbutton.cpp:148
void addButton(QAbstractButton *button)
Definition: polkitqt1-gui-actionbuttons.cpp:55
ActionButtons(const QList< QAbstractButton *> &buttons, const QString &actionId=QString(), QObject *parent=0)
Definition: polkitqt1-gui-actionbuttons.cpp:31