summaryrefslogtreecommitdiffabout
path: root/kmicromail/editaccounts.h
authorzautrix <zautrix>2004-07-03 16:33:12 (UTC)
committer zautrix <zautrix>2004-07-03 16:33:12 (UTC)
commite3b89230f065c48c84b48c88edb6eb088374c487 (patch) (side-by-side diff)
tree162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/editaccounts.h
parent2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff)
downloadkdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip
kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz
kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2
Initial revision
Diffstat (limited to 'kmicromail/editaccounts.h') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/editaccounts.h153
1 files changed, 153 insertions, 0 deletions
diff --git a/kmicromail/editaccounts.h b/kmicromail/editaccounts.h
new file mode 100644
index 0000000..a9eb19f
--- a/dev/null
+++ b/kmicromail/editaccounts.h
@@ -0,0 +1,153 @@
+#ifndef EDITACCOUNTS_H
+#define EDITACCOUNTS_H
+
+#include <qstring.h>
+#include <qlistview.h>
+
+#include "editaccountsui.h"
+#include "selectmailtypeui.h"
+#include "imapconfigui.h"
+#include "pop3configui.h"
+#include "smtpconfigui.h"
+#include "nntpconfigui.h"
+
+#include <libetpan/clist.h>
+#include <libmailwrapper/settings.h>
+
+
+class AccountListItem : public QListViewItem
+{
+
+public:
+ AccountListItem( QListView *parent, Account *a);
+ Account *getAccount() { return account; }
+
+private:
+ Account *account;
+
+};
+
+class EditAccounts : public EditAccountsUI
+{
+ Q_OBJECT
+
+public:
+ EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+
+public slots:
+ void slotNewAccount( const QString &type );
+ void slotEditAccount( Account *account );
+ void slotDeleteAccount( Account * account );
+ void slotAdjustColumns();
+
+protected slots:
+ void slotFillLists();
+ void slotNewMail();
+ void slotEditMail();
+ void slotDeleteMail();
+ void slotNewNews();
+ void slotEditNews();
+ void slotDeleteNews();
+ void accept();
+
+private:
+ Settings *settings;
+
+};
+
+class SelectMailType : public SelectMailTypeUI
+{
+ Q_OBJECT
+
+public:
+ SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+
+private slots:
+ void slotSelection( const QString &sel );
+
+private:
+ QString *selected;
+
+};
+
+class IMAPconfig : public IMAPconfigUI
+{
+ Q_OBJECT
+
+public:
+ IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+
+public slots:
+ void fillValues();
+
+protected slots:
+ void slotConnectionToggle( int index );
+ void accept();
+
+private:
+ IMAPaccount *data;
+
+};
+
+class POP3config : public POP3configUI
+{
+ Q_OBJECT
+
+public:
+ POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+
+public slots:
+ void fillValues();
+
+protected slots:
+ void slotConnectionToggle( int index );
+ void accept();
+
+private:
+ POP3account *data;
+
+};
+
+class SMTPconfig : public SMTPconfigUI
+{
+ Q_OBJECT
+
+public:
+ SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+
+public slots:
+ void fillValues();
+
+protected slots:
+ void slotConnectionToggle( int index );
+ void accept();
+
+private:
+ SMTPaccount *data;
+
+};
+
+class NNTPconfig : public NNTPconfigUI
+{
+ Q_OBJECT
+
+public:
+ NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+
+public slots:
+ void fillValues();
+
+protected slots:
+ void slotSSL( bool enabled );
+ void accept();
+ void slotGetNG();
+
+private:
+ QStringList subscribedGroups;
+ void save();
+ NNTPaccount *data;
+ clist* list;
+
+};
+
+#endif