4
* Copyright (c) 2000 Alexander Neundorf <neundorf@kde.org>
6
* Requires the Qt widget libraries, available at no cost at
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#ifndef kcmsambalog_h_included
24
#define kcmsambalog_h_included
28
#include <QPushButton>
29
#include <Qt3Support/Q3CheckListItem>
33
#include <kurlrequester.h>
35
#define LOGGROUPNAME "SambaLogFileSettings"
37
class LogView : public QWidget {
40
explicit LogView(QWidget *parent=0, KConfig *config=0);
47
int filesCount, connectionsCount;
48
KUrlRequester logFileName;
50
Q3ListView viewHistory;
51
QCheckBox showConnOpen, showConnClose, showFileOpen, showFileClose;
52
QPushButton updateButton;
56
void contentsChanged(Q3ListView* list, int nrOfFiles, int nrOfConnections);
59
class QListViewItemX : public Q3ListViewItem {
61
//a faster constructor saves a lot time
62
QListViewItemX(Q3ListView * parent, const char *c0, const char *c1 = 0, const char *c2 = 0, const char *c3 = 0, const char *c4 = 0, const char *c5 = 0, const char *c6 = 0, const char *c7 = 0) :
63
Q3ListViewItem(parent) {
83
#endif // main_included