Show invite menu in wlm chat window immediately
[kdenetwork.git] / filesharing / advanced / nfs / nfsdialog.h
bloba9a077709cfe7987435f3c2001246fd9e60e2912
1 /*
2 Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef NFSDIALOG_H
21 #define NFSDIALOG_H
23 #include <kdialog.h>
24 #include "ui_nfsdialoggui.h"
26 class NFSEntry;
27 class NFSHost;
28 class Q3ListViewItem;
30 class NFSDialogGUI : public QWidget, public Ui::NFSDialogGUI
32 Q_OBJECT
33 public:
34 NFSDialogGUI( QWidget *parent );
36 public slots:
37 void listView_selectionChanged();
41 class NFSDialog : public KDialog
43 Q_OBJECT
44 public:
45 NFSDialog(QWidget * parent, NFSEntry* entry);
46 ~NFSDialog();
47 bool modified();
48 protected:
49 NFSEntry * m_nfsEntry;
50 NFSEntry * m_workEntry;
51 NFSDialogGUI* m_gui;
53 bool m_modified;
54 Q3ListViewItem* createItemFromHost(NFSHost* host);
55 void updateItem(Q3ListViewItem* item, NFSHost* host);
56 void initGUI();
57 void initListView();
58 void initSlots();
59 void initWorkEntry();
60 protected slots:
61 void slotAddHost();
62 void slotRemoveHost();
63 void slotModifyHost();
64 virtual void slotOk();
65 void setModified();
68 #endif