Polkit-Qt-1  0.95.0
polkitqt1-gui-actionbutton_p.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_ACTIONBUTTON_P_H
22 #define POLKITQT1_GUI_ACTIONBUTTON_P_H
23 
24 #include <polkitqt1-gui-actionbutton.h>
25 
26 #include <QtCore/QList>
27 #include <QAbstractButton>
28 
32 class PolkitQt1::Gui::ActionButtonPrivate
33 {
34 public:
35  ActionButtonPrivate(const QList<QAbstractButton *> &b)
36  : buttons(b) {}
37  virtual ~ActionButtonPrivate() {}
38 
39  void addButton(QAbstractButton *button);
40  void removeButton(QAbstractButton *button);
41  void updateButton();
42  void streamClicked(bool);
43 
44  Q_DECLARE_PUBLIC(ActionButton)
45  ActionButton *q_ptr;
46 
47  QList<QAbstractButton *> buttons;
48 };
49 
50 #endif /* ACTIONBUTTON_P_H */