summaryrefslogtreecommitdiffabout
path: root/kmicromail/libmailwrapper/logindialog.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/libmailwrapper/logindialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/logindialog.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/logindialog.cpp b/kmicromail/libmailwrapper/logindialog.cpp
new file mode 100644
index 0000000..31b75d0
--- a/dev/null
+++ b/kmicromail/libmailwrapper/logindialog.cpp
@@ -0,0 +1,33 @@
+#include <qlineedit.h>
+
+#include "logindialog.h"
+
+
+
+//using namespace Opie::Core;
+
+LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, WFlags flags )
+ : LoginDialogUI( parent, name, modal, flags )
+{
+ userLine->setText( (user.isEmpty()?QString(""):user) );
+ passLine->setText( (pass.isEmpty()?QString(""):pass) );
+ _user = user;
+ _pass = pass;
+
+ if ( user.isEmpty() ) {
+ userLine->setFocus();
+ } else {
+ passLine->setFocus();
+ }
+}
+
+void LoginDialog::accept()
+{
+ //_user.replace( 0, _user.length(), userLine->text() );
+ //_pass.replace( 0, _pass.length(), passLine->text() );
+ _user = userLine->text();
+ _pass = passLine->text();
+
+ //odebug << "User im accept: |" << _user.latin1() << "|" << oendl;
+ QDialog::accept();
+}