summaryrefslogtreecommitdiffabout
path: root/kmicromail/editaccounts.h
Unidiff
Diffstat (limited to 'kmicromail/editaccounts.h') (more/less context) (ignore 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 @@
1#ifndef EDITACCOUNTS_H
2#define EDITACCOUNTS_H
3
4#include <qstring.h>
5#include <qlistview.h>
6
7#include "editaccountsui.h"
8#include "selectmailtypeui.h"
9#include "imapconfigui.h"
10#include "pop3configui.h"
11#include "smtpconfigui.h"
12#include "nntpconfigui.h"
13
14#include <libetpan/clist.h>
15#include <libmailwrapper/settings.h>
16
17
18class AccountListItem : public QListViewItem
19{
20
21public:
22 AccountListItem( QListView *parent, Account *a);
23 Account *getAccount() { return account; }
24
25private:
26 Account *account;
27
28};
29
30class EditAccounts : public EditAccountsUI
31{
32 Q_OBJECT
33
34public:
35 EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
36
37public slots:
38 void slotNewAccount( const QString &type );
39 void slotEditAccount( Account *account );
40 void slotDeleteAccount( Account * account );
41 void slotAdjustColumns();
42
43protected slots:
44 void slotFillLists();
45 void slotNewMail();
46 void slotEditMail();
47 void slotDeleteMail();
48 void slotNewNews();
49 void slotEditNews();
50 void slotDeleteNews();
51 void accept();
52
53private:
54 Settings *settings;
55
56};
57
58class SelectMailType : public SelectMailTypeUI
59{
60 Q_OBJECT
61
62public:
63 SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
64
65private slots:
66 void slotSelection( const QString &sel );
67
68private:
69 QString *selected;
70
71};
72
73class IMAPconfig : public IMAPconfigUI
74{
75 Q_OBJECT
76
77public:
78 IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
79
80public slots:
81 void fillValues();
82
83protected slots:
84 void slotConnectionToggle( int index );
85 void accept();
86
87private:
88 IMAPaccount *data;
89
90};
91
92class POP3config : public POP3configUI
93{
94 Q_OBJECT
95
96public:
97 POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
98
99public slots:
100 void fillValues();
101
102protected slots:
103 void slotConnectionToggle( int index );
104 void accept();
105
106private:
107 POP3account *data;
108
109};
110
111class SMTPconfig : public SMTPconfigUI
112{
113 Q_OBJECT
114
115public:
116 SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
117
118public slots:
119 void fillValues();
120
121protected slots:
122 void slotConnectionToggle( int index );
123 void accept();
124
125private:
126 SMTPaccount *data;
127
128};
129
130class NNTPconfig : public NNTPconfigUI
131{
132 Q_OBJECT
133
134public:
135 NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
136
137public slots:
138 void fillValues();
139
140protected slots:
141 void slotSSL( bool enabled );
142 void accept();
143 void slotGetNG();
144
145private:
146 QStringList subscribedGroups;
147 void save();
148 NNTPaccount *data;
149 clist* list;
150
151};
152
153#endif