author | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
commit | e3b89230f065c48c84b48c88edb6eb088374c487 (patch) (unidiff) | |
tree | 162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/editaccounts.h | |
parent | 2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff) | |
download | kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2 |
Initial revision
-rw-r--r-- | kmicromail/editaccounts.h | 153 |
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 | |||
18 | class AccountListItem : public QListViewItem | ||
19 | { | ||
20 | |||
21 | public: | ||
22 | AccountListItem( QListView *parent, Account *a); | ||
23 | Account *getAccount() { return account; } | ||
24 | |||
25 | private: | ||
26 | Account *account; | ||
27 | |||
28 | }; | ||
29 | |||
30 | class EditAccounts : public EditAccountsUI | ||
31 | { | ||
32 | Q_OBJECT | ||
33 | |||
34 | public: | ||
35 | EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 ); | ||
36 | |||
37 | public slots: | ||
38 | void slotNewAccount( const QString &type ); | ||
39 | void slotEditAccount( Account *account ); | ||
40 | void slotDeleteAccount( Account * account ); | ||
41 | void slotAdjustColumns(); | ||
42 | |||
43 | protected 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 | |||
53 | private: | ||
54 | Settings *settings; | ||
55 | |||
56 | }; | ||
57 | |||
58 | class SelectMailType : public SelectMailTypeUI | ||
59 | { | ||
60 | Q_OBJECT | ||
61 | |||
62 | public: | ||
63 | SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 ); | ||
64 | |||
65 | private slots: | ||
66 | void slotSelection( const QString &sel ); | ||
67 | |||
68 | private: | ||
69 | QString *selected; | ||
70 | |||
71 | }; | ||
72 | |||
73 | class IMAPconfig : public IMAPconfigUI | ||
74 | { | ||
75 | Q_OBJECT | ||
76 | |||
77 | public: | ||
78 | IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 ); | ||
79 | |||
80 | public slots: | ||
81 | void fillValues(); | ||
82 | |||
83 | protected slots: | ||
84 | void slotConnectionToggle( int index ); | ||
85 | void accept(); | ||
86 | |||
87 | private: | ||
88 | IMAPaccount *data; | ||
89 | |||
90 | }; | ||
91 | |||
92 | class POP3config : public POP3configUI | ||
93 | { | ||
94 | Q_OBJECT | ||
95 | |||
96 | public: | ||
97 | POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 ); | ||
98 | |||
99 | public slots: | ||
100 | void fillValues(); | ||
101 | |||
102 | protected slots: | ||
103 | void slotConnectionToggle( int index ); | ||
104 | void accept(); | ||
105 | |||
106 | private: | ||
107 | POP3account *data; | ||
108 | |||
109 | }; | ||
110 | |||
111 | class SMTPconfig : public SMTPconfigUI | ||
112 | { | ||
113 | Q_OBJECT | ||
114 | |||
115 | public: | ||
116 | SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 ); | ||
117 | |||
118 | public slots: | ||
119 | void fillValues(); | ||
120 | |||
121 | protected slots: | ||
122 | void slotConnectionToggle( int index ); | ||
123 | void accept(); | ||
124 | |||
125 | private: | ||
126 | SMTPaccount *data; | ||
127 | |||
128 | }; | ||
129 | |||
130 | class NNTPconfig : public NNTPconfigUI | ||
131 | { | ||
132 | Q_OBJECT | ||
133 | |||
134 | public: | ||
135 | NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 ); | ||
136 | |||
137 | public slots: | ||
138 | void fillValues(); | ||
139 | |||
140 | protected slots: | ||
141 | void slotSSL( bool enabled ); | ||
142 | void accept(); | ||
143 | void slotGetNG(); | ||
144 | |||
145 | private: | ||
146 | QStringList subscribedGroups; | ||
147 | void save(); | ||
148 | NNTPaccount *data; | ||
149 | clist* list; | ||
150 | |||
151 | }; | ||
152 | |||
153 | #endif | ||