summaryrefslogtreecommitdiffabout
path: root/kmicromail/newmaildir.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/newmaildir.cpp') (more/less context) (show 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 @@
+#include "newmaildir.h"
+#include <qlineedit.h>
+#include <qcheckbox.h>
+
+Newmdirdlg::Newmdirdlg( QWidget* parent, const char* name,bool no_sub)
+ : Newmdirdlgui(parent,name,true),ndir(""),possible_subs(false)
+{
+ if (no_sub) {
+ subdirsPossibleBox->setChecked(false);
+ subdirsPossibleBox->hide();
+ }
+}
+
+Newmdirdlg::~Newmdirdlg()
+{
+}
+
+void Newmdirdlg::accept()
+{
+ ndir = dirnameEdit->text();
+ possible_subs = subdirsPossibleBox->isChecked();
+ if (ndir.isEmpty()) {
+ return;
+ }
+ Newmdirdlgui::accept();
+}
+
+const QString&Newmdirdlg::Newdir()const
+{
+ return ndir;
+}
+
+const bool Newmdirdlg::subpossible()const
+{
+ return possible_subs;
+}