QtZeroConf
 All Classes Functions Variables Pages
zconfbrowserwidget.h
1 /*
2  * This file is part of qtzeroconf. (c) 2012 Johannes Hilden
3  * https://github.com/johanneshilden/qtzeroconf
4  *
5  * qtzeroconf is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as
7  * published by the Free Software Foundation; either version 2.1 of the
8  * License, or (at your option) any later version.
9  *
10  * qtzeroconf is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
13  * Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with qtzeroconf; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18  */
19 
20 #ifndef ZCONFBROWSERWIDGET_H
21 #define ZCONFBROWSERWIDGET_H
22 
23 #include <QTreeWidget>
24 
25 class ZConfBrowserWidgetPrivate;
26 class ZConfBrowserWidget : public QTreeWidget
27 {
28  Q_OBJECT
29 
30 public:
31  explicit ZConfBrowserWidget(QString serviceType, QWidget *parent = 0);
32  explicit ZConfBrowserWidget(QWidget *parent = 0);
34 
35  void setCondensed(bool enabled);
36 
37 protected slots:
38  void addService(QString service);
39  void removeService(QString service);
40 
41 protected:
42  ZConfBrowserWidgetPrivate *const d_ptr;
43 
44 private:
45  Q_DECLARE_PRIVATE(ZConfBrowserWidget);
46 };
47 
48 #endif // ZCONFBROWSERWIDGET_H