KVIrc  4.9.2
DeveloperAPIs
DccDialog.h
Go to the documentation of this file.
1 #ifndef _DIALOGS_H_
2 #define _DIALOGS_H_
3 //=============================================================================
4 //
5 // File : DccDialog.h
6 // Creation date : Tue Sep 19 09 2000 15:17:22 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "DccBroker.h"
28 
29 #include <QWidget>
30 
31 class DccDialog
32 {
33 protected:
36 
37 public:
38  DccDialog(DccBroker * br, DccDescriptor * dcc);
39  virtual ~DccDialog();
40 
41 public:
42  virtual void forgetDescriptor();
43 };
44 
45 class DccAcceptDialog : public QWidget, public DccDialog
46 {
47  Q_OBJECT
48 public:
49  DccAcceptDialog(DccBroker * br, DccDescriptor * dcc, const QString & text, const QString & capt);
51 
52 protected:
53  virtual void closeEvent(QCloseEvent * e);
54  virtual void showEvent(QShowEvent * e);
55 private slots:
56  void acceptClicked();
57  void rejectClicked();
58 signals:
59  void accepted(DccDialog *, DccDescriptor *);
60  void rejected(DccDialog *, DccDescriptor *);
61 };
62 
63 class DccRenameDialog : public QWidget, public DccDialog
64 {
65  Q_OBJECT
66 public:
67  DccRenameDialog(DccBroker * br, DccDescriptor * dcc, const QString & text, bool bDisableResume);
69 
70 protected:
71  virtual void closeEvent(QCloseEvent * e);
72  virtual void showEvent(QShowEvent * e);
73 private slots:
74  void renameClicked();
75  void overwriteClicked();
76  void resumeClicked();
77  void cancelClicked();
78 signals:
82 };
83 
84 #endif
void resumeClicked()
Definition: DccDialog.cpp:206
virtual void closeEvent(QCloseEvent *e)
Definition: DccDialog.cpp:171
virtual void closeEvent(QCloseEvent *e)
Definition: DccDialog.cpp:111
virtual void forgetDescriptor()
Definition: DccDialog.cpp:55
DccBroker * m_pBroker
Definition: DccDialog.h:35
virtual void showEvent(QShowEvent *e)
Definition: DccDialog.cpp:120
#define e
Definition: detector.cpp:69
void renameClicked()
Definition: DccDialog.cpp:190
Definition: DccDialog.h:45
Definition: DccDialog.h:31
Definition: DccDescriptor.h:33
void accepted(DccDialog *, DccDescriptor *)
DccDescriptor * m_pDescriptor
Definition: DccDialog.h:34
void overwriteSelected(DccDialog *, DccDescriptor *)
DccRenameDialog(DccBroker *br, DccDescriptor *dcc, const QString &text, bool bDisableResume)
Definition: DccDialog.cpp:127
void rejected(DccDialog *, DccDescriptor *)
virtual ~DccDialog()
Definition: DccDialog.cpp:47
void renameSelected(DccDialog *, DccDescriptor *)
void cancelClicked()
Definition: DccDialog.cpp:215
void rejectClicked()
Definition: DccDialog.cpp:103
virtual void showEvent(QShowEvent *e)
Definition: DccDialog.cpp:183
Definition: DccDialog.h:63
DccAcceptDialog(DccBroker *br, DccDescriptor *dcc, const QString &text, const QString &capt)
Definition: DccDialog.cpp:60
void cancelSelected(DccDialog *, DccDescriptor *)
void overwriteClicked()
Definition: DccDialog.cpp:198
void acceptClicked()
Definition: DccDialog.cpp:95
DccDialog(DccBroker *br, DccDescriptor *dcc)
Definition: DccDialog.cpp:41
Definition: DccBroker.h:54