Diffstat (limited to 'noncore/net/mail/editaccounts.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/editaccounts.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/net/mail/editaccounts.cpp b/noncore/net/mail/editaccounts.cpp index 5c4bdf7..de064ca 100644 --- a/noncore/net/mail/editaccounts.cpp +++ b/noncore/net/mail/editaccounts.cpp | |||
@@ -39,9 +39,9 @@ AccountListItem::AccountListItem( QListView *parent, Account *a) | |||
39 | 39 | ||
40 | EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) | 40 | EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) |
41 | : EditAccountsUI( parent, name, modal, flags ) | 41 | : EditAccountsUI( parent, name, modal, flags ) |
42 | { | 42 | { |
43 | qDebug( "New Account Configuration Widget" ); | 43 | odebug << "New Account Configuration Widget" << oendl; |
44 | settings = s; | 44 | settings = s; |
45 | 45 | ||
46 | mailList->addColumn( tr( "Account" ) ); | 46 | mailList->addColumn( tr( "Account" ) ); |
47 | mailList->addColumn( tr( "Type" ) ); | 47 | mailList->addColumn( tr( "Type" ) ); |
@@ -79,9 +79,9 @@ void EditAccounts::slotFillLists() | |||
79 | } | 79 | } |
80 | 80 | ||
81 | void EditAccounts::slotNewMail() | 81 | void EditAccounts::slotNewMail() |
82 | { | 82 | { |
83 | qDebug( "New Mail Account" ); | 83 | odebug << "New Mail Account" << oendl; |
84 | QString *selection = new QString(); | 84 | QString *selection = new QString(); |
85 | SelectMailType selType( selection, this, 0, true ); | 85 | SelectMailType selType( selection, this, 0, true ); |
86 | selType.show(); | 86 | selType.show(); |
87 | if ( QDialog::Accepted == selType.exec() ) | 87 | if ( QDialog::Accepted == selType.exec() ) |
@@ -93,9 +93,9 @@ void EditAccounts::slotNewMail() | |||
93 | void EditAccounts::slotNewAccount( const QString &type ) | 93 | void EditAccounts::slotNewAccount( const QString &type ) |
94 | { | 94 | { |
95 | if ( type.compare( "IMAP" ) == 0 ) | 95 | if ( type.compare( "IMAP" ) == 0 ) |
96 | { | 96 | { |
97 | qDebug( "-> config IMAP" ); | 97 | odebug << "-> config IMAP" << oendl; |
98 | IMAPaccount *account = new IMAPaccount(); | 98 | IMAPaccount *account = new IMAPaccount(); |
99 | IMAPconfig imap( account, this, 0, true ); | 99 | IMAPconfig imap( account, this, 0, true ); |
100 | if ( QDialog::Accepted == QPEApplication::execDialog( &imap ) ) | 100 | if ( QDialog::Accepted == QPEApplication::execDialog( &imap ) ) |
101 | { | 101 | { |
@@ -109,9 +109,9 @@ void EditAccounts::slotNewAccount( const QString &type ) | |||
109 | } | 109 | } |
110 | } | 110 | } |
111 | else if ( type.compare( "POP3" ) == 0 ) | 111 | else if ( type.compare( "POP3" ) == 0 ) |
112 | { | 112 | { |
113 | qDebug( "-> config POP3" ); | 113 | odebug << "-> config POP3" << oendl; |
114 | POP3account *account = new POP3account(); | 114 | POP3account *account = new POP3account(); |
115 | POP3config pop3( account, this, 0, true, WStyle_ContextHelp ); | 115 | POP3config pop3( account, this, 0, true, WStyle_ContextHelp ); |
116 | if ( QDialog::Accepted == QPEApplication::execDialog( &pop3 ) ) | 116 | if ( QDialog::Accepted == QPEApplication::execDialog( &pop3 ) ) |
117 | { | 117 | { |
@@ -125,9 +125,9 @@ void EditAccounts::slotNewAccount( const QString &type ) | |||
125 | } | 125 | } |
126 | } | 126 | } |
127 | else if ( type.compare( "SMTP" ) == 0 ) | 127 | else if ( type.compare( "SMTP" ) == 0 ) |
128 | { | 128 | { |
129 | qDebug( "-> config SMTP" ); | 129 | odebug << "-> config SMTP" << oendl; |
130 | SMTPaccount *account = new SMTPaccount(); | 130 | SMTPaccount *account = new SMTPaccount(); |
131 | SMTPconfig smtp( account, this, 0, true, WStyle_ContextHelp ); | 131 | SMTPconfig smtp( account, this, 0, true, WStyle_ContextHelp ); |
132 | if ( QDialog::Accepted == QPEApplication::execDialog( &smtp ) ) | 132 | if ( QDialog::Accepted == QPEApplication::execDialog( &smtp ) ) |
133 | { | 133 | { |
@@ -142,9 +142,9 @@ void EditAccounts::slotNewAccount( const QString &type ) | |||
142 | } | 142 | } |
143 | } | 143 | } |
144 | else if ( type.compare( "NNTP" ) == 0 ) | 144 | else if ( type.compare( "NNTP" ) == 0 ) |
145 | { | 145 | { |
146 | qDebug( "-> config NNTP" ); | 146 | odebug << "-> config NNTP" << oendl; |
147 | NNTPaccount *account = new NNTPaccount(); | 147 | NNTPaccount *account = new NNTPaccount(); |
148 | NNTPconfig nntp( account, this, 0, true, WStyle_ContextHelp ); | 148 | NNTPconfig nntp( account, this, 0, true, WStyle_ContextHelp ); |
149 | if ( QDialog::Accepted == QPEApplication::execDialog( &nntp ) ) | 149 | if ( QDialog::Accepted == QPEApplication::execDialog( &nntp ) ) |
150 | { | 150 | { |
@@ -211,9 +211,9 @@ void EditAccounts::slotDeleteAccount( Account *account ) | |||
211 | } | 211 | } |
212 | 212 | ||
213 | void EditAccounts::slotEditMail() | 213 | void EditAccounts::slotEditMail() |
214 | { | 214 | { |
215 | qDebug( "Edit Mail Account" ); | 215 | odebug << "Edit Mail Account" << oendl; |
216 | if ( !mailList->currentItem() ) | 216 | if ( !mailList->currentItem() ) |
217 | { | 217 | { |
218 | QMessageBox::information( this, tr( "Error" ), | 218 | QMessageBox::information( this, tr( "Error" ), |
219 | tr( "<p>Please select an account.</p>" ), | 219 | tr( "<p>Please select an account.</p>" ), |
@@ -240,15 +240,15 @@ void EditAccounts::slotDeleteMail() | |||
240 | } | 240 | } |
241 | 241 | ||
242 | void EditAccounts::slotNewNews() | 242 | void EditAccounts::slotNewNews() |
243 | { | 243 | { |
244 | qDebug( "New News Account" ); | 244 | odebug << "New News Account" << oendl; |
245 | slotNewAccount( "NNTP" ); | 245 | slotNewAccount( "NNTP" ); |
246 | } | 246 | } |
247 | 247 | ||
248 | void EditAccounts::slotEditNews() | 248 | void EditAccounts::slotEditNews() |
249 | { | 249 | { |
250 | qDebug( "Edit News Account" ); | 250 | odebug << "Edit News Account" << oendl; |
251 | if ( !newsList->currentItem() ) | 251 | if ( !newsList->currentItem() ) |
252 | { | 252 | { |
253 | QMessageBox::information( this, tr( "Error" ), | 253 | QMessageBox::information( this, tr( "Error" ), |
254 | tr( "<p>Please select an account.</p>" ), | 254 | tr( "<p>Please select an account.</p>" ), |
@@ -261,9 +261,9 @@ void EditAccounts::slotEditNews() | |||
261 | } | 261 | } |
262 | 262 | ||
263 | void EditAccounts::slotDeleteNews() | 263 | void EditAccounts::slotDeleteNews() |
264 | { | 264 | { |
265 | qDebug( "Delete News Account" ); | 265 | odebug << "Delete News Account" << oendl; |
266 | if ( !newsList->currentItem() ) | 266 | if ( !newsList->currentItem() ) |
267 | { | 267 | { |
268 | QMessageBox::information( this, tr( "Error" ), | 268 | QMessageBox::information( this, tr( "Error" ), |
269 | tr( "<p>Please select an account.</p>" ), | 269 | tr( "<p>Please select an account.</p>" ), |
@@ -577,9 +577,9 @@ void NNTPconfig::save() | |||
577 | QStringList groupList; | 577 | QStringList groupList; |
578 | for ( ; list_it.current(); ++list_it ) { | 578 | for ( ; list_it.current(); ++list_it ) { |
579 | 579 | ||
580 | if ( ( (QCheckListItem*)list_it.current() )->isOn() ) { | 580 | if ( ( (QCheckListItem*)list_it.current() )->isOn() ) { |
581 | qDebug(list_it.current()->text(0) ); | 581 | odebug << list_it.current()->text(0) << oendl; |
582 | groupList.append( list_it.current()->text(0) ); | 582 | groupList.append( list_it.current()->text(0) ); |
583 | } | 583 | } |
584 | 584 | ||
585 | } | 585 | } |