summaryrefslogtreecommitdiffabout
path: root/kmicromail/newmaildir.cpp
Unidiff
Diffstat (limited to 'kmicromail/newmaildir.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/newmaildir.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/kmicromail/newmaildir.cpp b/kmicromail/newmaildir.cpp
new file mode 100644
index 0000000..e6e9dc7
--- a/dev/null
+++ b/kmicromail/newmaildir.cpp
@@ -0,0 +1,36 @@
1#include "newmaildir.h"
2#include <qlineedit.h>
3#include <qcheckbox.h>
4
5Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name,bool no_sub)
6 : Newmdirdlgui(parent,name,true),ndir(""),possible_subs(false)
7{
8 if (no_sub) {
9 subdirsPossibleBox->setChecked(false);
10 subdirsPossibleBox->hide();
11 }
12}
13
14Newmdirdlg::~Newmdirdlg()
15{
16}
17
18void Newmdirdlg::accept()
19{
20 ndir = dirnameEdit->text();
21 possible_subs = subdirsPossibleBox->isChecked();
22 if (ndir.isEmpty()) {
23 return;
24 }
25 Newmdirdlgui::accept();
26}
27
28const QString&Newmdirdlg::Newdir()const
29{
30 return ndir;
31}
32
33const bool Newmdirdlg::subpossible()const
34{
35 return possible_subs;
36}