From b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:57:00 -0500 Subject: Initial import from kshowmail 3.3.1 sources --- doc/Makefile.am | 10 + doc/cs/Makefile.am | 10 + doc/cs/index.docbook | 516 ++++ doc/de/Makefile.am | 10 + doc/de/index.docbook | 522 ++++ doc/en/Makefile.am | 10 + doc/en/index.docbook | 516 ++++ doc/es/Makefile.am | 10 + doc/es/index.docbook | 428 +++ doc/fr/Makefile.am | 10 + doc/fr/index.docbook | 372 +++ doc/html/AlertDlg_8cpp-source.html | 296 ++ doc/html/AlertDlg_8h-source.html | 79 + doc/html/AlertDlg_8moc-source.html | 126 + doc/html/CommandDlg_8cpp-source.html | 186 ++ doc/html/CommandDlg_8h-source.html | 82 + doc/html/CommandDlg_8moc-source.html | 144 + doc/html/CommandEntryDlg_8cpp-source.html | 167 ++ doc/html/CommandEntryDlg_8h-source.html | 82 + doc/html/CommandEntryDlg_8moc-source.html | 132 + doc/html/EditDlg_8cpp-source.html | 119 + doc/html/EditDlg_8h-source.html | 72 + doc/html/EditDlg_8moc-source.html | 126 + doc/html/FilterDlg_8cpp-source.html | 223 ++ doc/html/FilterDlg_8h-source.html | 90 + doc/html/FilterDlg_8moc-source.html | 147 + doc/html/FilterEntryDlg_8cpp-source.html | 332 +++ doc/html/FilterEntryDlg_8h-source.html | 110 + doc/html/FilterEntryDlg_8moc-source.html | 195 ++ doc/html/OptionDlg_8cpp-source.html | 579 ++++ doc/html/OptionDlg_8h-source.html | 157 ++ doc/html/OptionDlg_8moc-source.html | 162 ++ doc/html/ServerDlg_8cpp-source.html | 204 ++ doc/html/ServerDlg_8h-source.html | 91 + doc/html/ServerDlg_8moc-source.html | 126 + doc/html/alertdialog_8cpp-source.html | 61 + doc/html/alertdialog_8h-source.html | 63 + doc/html/alertdialog_8moc_8cpp-source.html | 138 + doc/html/annotated.html | 70 + doc/html/classAlertDialog-members.html | 41 + doc/html/classAlertDialog.html | 144 + doc/html/classAlertDialog.png | Bin 0 -> 354 bytes doc/html/classAlertDlg-members.html | 39 + doc/html/classAlertDlg.html | 275 ++ doc/html/classAlertDlg.png | Bin 0 -> 360 bytes doc/html/classCommandDialog-members.html | 55 + doc/html/classCommandDialog.html | 81 + doc/html/classCommandDialog.png | Bin 0 -> 404 bytes doc/html/classCommandDlg-members.html | 49 + doc/html/classCommandDlg.html | 110 + doc/html/classCommandDlg.png | Bin 0 -> 413 bytes doc/html/classCommandEntry-members.html | 38 + doc/html/classCommandEntry.html | 69 + doc/html/classCommandEntryDialog-members.html | 52 + doc/html/classCommandEntryDialog.html | 69 + doc/html/classCommandEntryDialog.png | Bin 0 -> 497 bytes doc/html/classCommandEntryDlg-members.html | 48 + doc/html/classCommandEntryDlg.html | 107 + doc/html/classCommandEntryDlg.png | Bin 0 -> 504 bytes doc/html/classCommandList-members.html | 38 + doc/html/classCommandList.html | 69 + doc/html/classConfigElem-members.html | 149 + doc/html/classConfigElem.html | 2855 ++++++++++++++++++++ doc/html/classConfigList-members.html | 122 + doc/html/classConfigList.html | 2087 ++++++++++++++ doc/html/classEditDialog-members.html | 44 + doc/html/classEditDialog.html | 63 + doc/html/classEditDialog.png | Bin 0 -> 340 bytes doc/html/classEditDlg-members.html | 40 + doc/html/classEditDlg.html | 83 + doc/html/classEditDlg.png | Bin 0 -> 345 bytes doc/html/classFilter-members.html | 39 + doc/html/classFilter.html | 67 + doc/html/classFilterDialog-members.html | 58 + doc/html/classFilterDialog.html | 78 + doc/html/classFilterDialog.png | Bin 0 -> 352 bytes doc/html/classFilterDlg-members.html | 55 + doc/html/classFilterDlg.html | 128 + doc/html/classFilterDlg.png | Bin 0 -> 356 bytes doc/html/classFilterElem-members.html | 46 + doc/html/classFilterElem.html | 185 ++ doc/html/classFilterEntryDialog-members.html | 77 + doc/html/classFilterEntryDialog.html | 99 + doc/html/classFilterEntryDialog.png | Bin 0 -> 441 bytes doc/html/classFilterEntryDlg-members.html | 74 + doc/html/classFilterEntryDlg.html | 185 ++ doc/html/classFilterEntryDlg.png | Bin 0 -> 448 bytes doc/html/classFilterList-members.html | 36 + doc/html/classFilterList.html | 92 + doc/html/classFilterRecord-members.html | 50 + doc/html/classFilterRecord.html | 88 + doc/html/classKFeedbackAnswer-members.html | 40 + doc/html/classKFeedbackAnswer.html | 311 +++ doc/html/classKFeedbackDialog-members.html | 34 + doc/html/classKFeedbackDialog.html | 185 ++ doc/html/classKFeedbackForm-members.html | 40 + doc/html/classKFeedbackForm.html | 300 ++ doc/html/classKFeedbackQuestion-members.html | 44 + doc/html/classKFeedbackQuestion.html | 424 +++ doc/html/classKFeedbackQuestionList-members.html | 38 + doc/html/classKFeedbackQuestionList.html | 343 +++ doc/html/classKShowMailApp-members.html | 85 + doc/html/classKShowMailApp.html | 1211 +++++++++ doc/html/classKShowMailDock-members.html | 36 + doc/html/classKShowMailDock.html | 240 ++ doc/html/classKshowmailDoc-members.html | 38 + doc/html/classKshowmailDoc.html | 264 ++ doc/html/classKshowmailView-members.html | 45 + doc/html/classKshowmailView.html | 525 ++++ doc/html/classLogger-members.html | 33 + doc/html/classLogger.html | 58 + doc/html/classOptionDialog-members.html | 123 + doc/html/classOptionDialog.html | 99 + doc/html/classOptionDialog.png | Bin 0 -> 371 bytes doc/html/classOptionDlg-members.html | 118 + doc/html/classOptionDlg.html | 317 +++ doc/html/classOptionDlg.png | Bin 0 -> 377 bytes doc/html/classServerDialog-members.html | 44 + doc/html/classServerDialog.html | 375 +++ doc/html/classServerDialog.png | Bin 0 -> 406 bytes doc/html/classServerDlg-members.html | 54 + doc/html/classServerDlg.html | 125 + doc/html/classServerDlg.png | Bin 0 -> 413 bytes doc/html/classShowListViewItem-members.html | 53 + doc/html/classShowListViewItem.html | 487 ++++ doc/html/classShowRecord-members.html | 62 + doc/html/classShowRecord.html | 1060 ++++++++ doc/html/classShowRecordElem-members.html | 86 + doc/html/classShowRecordElem.html | 1459 ++++++++++ doc/html/classUniqueApp-members.html | 32 + doc/html/classUniqueApp.html | 128 + doc/html/classes.html | 39 + doc/html/commanddialog_8cpp-source.html | 150 + doc/html/commanddialog_8h-source.html | 73 + doc/html/commanddialog_8moc_8cpp-source.html | 141 + doc/html/commandentry_8cpp-source.html | 143 + doc/html/commandentry_8h-source.html | 69 + doc/html/commandentrydialog_8cpp-source.html | 91 + doc/html/commandentrydialog_8h-source.html | 63 + doc/html/commandentrydialog_8moc_8cpp-source.html | 129 + doc/html/commandlist_8cpp-source.html | 153 ++ doc/html/commandlist_8h-source.html | 66 + doc/html/config_8h-source.html | 265 ++ doc/html/configelem_8cpp-source.html | 1223 +++++++++ doc/html/configelem_8h-source.html | 363 +++ doc/html/configlist_8cpp-source.html | 1055 ++++++++ doc/html/configlist_8h-source.html | 283 ++ doc/html/constants_8h-source.html | 367 +++ doc/html/decodeRFC2047_8cpp-source.html | 204 ++ doc/html/decodeRFC2047_8h-source.html | 69 + doc/html/dir_656923b733374505e0e2f68ecb68d952.html | 145 + doc/html/dirs.html | 41 + doc/html/doxygen.css | 358 +++ doc/html/doxygen.png | Bin 0 -> 1281 bytes doc/html/editdialog_8cpp-source.html | 74 + doc/html/editdialog_8h-source.html | 58 + doc/html/editdialog_8moc_8cpp-source.html | 123 + doc/html/files.html | 120 + doc/html/filter_8cpp-source.html | 76 + doc/html/filter_8h-source.html | 66 + doc/html/filterdialog_8cpp-source.html | 165 ++ doc/html/filterdialog_8h-source.html | 66 + doc/html/filterdialog_8moc_8cpp-source.html | 144 + doc/html/filterelem_8cpp-source.html | 324 +++ doc/html/filterelem_8h-source.html | 97 + doc/html/filterentrydialog_8cpp-source.html | 272 ++ doc/html/filterentrydialog_8h-source.html | 72 + doc/html/filterentrydialog_8moc_8cpp-source.html | 192 ++ doc/html/filterlist_8cpp-source.html | 187 ++ doc/html/filterlist_8h-source.html | 74 + doc/html/functions.html | 107 + doc/html/functions_0x61.html | 136 + doc/html/functions_0x62.html | 130 + doc/html/functions_0x63.html | 285 ++ doc/html/functions_0x64.html | 115 + doc/html/functions_0x65.html | 79 + doc/html/functions_0x66.html | 116 + doc/html/functions_0x67.html | 225 ++ doc/html/functions_0x68.html | 91 + doc/html/functions_0x69.html | 110 + doc/html/functions_0x6b.html | 92 + doc/html/functions_0x6c.html | 126 + doc/html/functions_0x6d.html | 215 ++ doc/html/functions_0x6e.html | 108 + doc/html/functions_0x6f.html | 85 + doc/html/functions_0x70.html | 97 + doc/html/functions_0x71.html | 81 + doc/html/functions_0x72.html | 103 + doc/html/functions_0x73.html | 525 ++++ doc/html/functions_0x74.html | 126 + doc/html/functions_0x75.html | 82 + doc/html/functions_0x76.html | 73 + doc/html/functions_0x7e.html | 147 + doc/html/functions_enum.html | 55 + doc/html/functions_func.html | 109 + doc/html/functions_rela.html | 47 + doc/html/functions_vars.html | 86 + doc/html/functions_vars_0x61.html | 94 + doc/html/functions_vars_0x62.html | 123 + doc/html/functions_vars_0x63.html | 192 ++ doc/html/functions_vars_0x64.html | 83 + doc/html/functions_vars_0x65.html | 70 + doc/html/functions_vars_0x66.html | 82 + doc/html/functions_vars_0x67.html | 90 + doc/html/functions_vars_0x68.html | 70 + doc/html/functions_vars_0x69.html | 70 + doc/html/functions_vars_0x6b.html | 70 + doc/html/functions_vars_0x6c.html | 98 + doc/html/functions_vars_0x6d.html | 204 ++ doc/html/functions_vars_0x6f.html | 67 + doc/html/functions_vars_0x70.html | 80 + doc/html/functions_vars_0x71.html | 72 + doc/html/functions_vars_0x73.html | 108 + doc/html/functions_vars_0x74.html | 105 + doc/html/hierarchy.html | 72 + doc/html/index.html | 22 + doc/html/kfeedback_8cpp-source.html | 515 ++++ doc/html/kfeedback_8h-source.html | 257 ++ doc/html/kfeedback_8moc_8cpp-source.html | 335 +++ doc/html/kshowmail_8cpp-source.html | 822 ++++++ doc/html/kshowmail_8h-source.html | 221 ++ doc/html/kshowmail_8moc_8cpp-source.html | 204 ++ doc/html/kshowmaildoc_8cpp-source.html | 101 + doc/html/kshowmaildoc_8h-source.html | 86 + doc/html/kshowmaildoc_8moc_8cpp-source.html | 126 + doc/html/kshowmaildock_8cpp-source.html | 105 + doc/html/kshowmaildock_8h-source.html | 69 + doc/html/kshowmaildock_8moc_8cpp-source.html | 144 + doc/html/kshowmailfeedback_8cpp-source.html | 176 ++ doc/html/kshowmailview_8cpp-source.html | 450 +++ doc/html/kshowmailview_8h-source.html | 114 + doc/html/kshowmailview_8moc_8cpp-source.html | 171 ++ doc/html/logger_8cpp-source.html | 68 + doc/html/logger_8h-source.html | 59 + doc/html/main_8cpp-source.html | 136 + doc/html/namespaceConstants.html | 33 + doc/html/namespaceTypes.html | 230 ++ doc/html/namespacemembers.html | 135 + doc/html/namespacemembers_enum.html | 44 + doc/html/namespacemembers_eval.html | 72 + doc/html/namespaces.html | 34 + doc/html/optiondialog_8cpp-source.html | 290 ++ doc/html/optiondialog_8h-source.html | 77 + doc/html/optiondialog_8moc_8cpp-source.html | 159 ++ doc/html/serverdialog_8cpp-source.html | 279 ++ doc/html/serverdialog_8h-source.html | 131 + doc/html/serverdialog_8moc_8cpp-source.html | 114 + doc/html/showlistviewitem_8cpp-source.html | 123 + doc/html/showlistviewitem_8h-source.html | 79 + doc/html/showrecord_8cpp-source.html | 580 ++++ doc/html/showrecord_8h-source.html | 150 + doc/html/showrecordelem_8cpp-source.html | 622 +++++ doc/html/showrecordelem_8h-source.html | 202 ++ doc/html/tab_b.gif | Bin 0 -> 35 bytes doc/html/tab_l.gif | Bin 0 -> 706 bytes doc/html/tab_r.gif | Bin 0 -> 2585 bytes doc/html/tabs.css | 102 + doc/html/types_8h-source.html | 105 + doc/html/uniqueapp_8cpp-source.html | 99 + doc/html/uniqueapp_8h-source.html | 75 + doc/hu/Makefile.am | 10 + doc/hu/index.docbook | 481 ++++ doc/it/Makefile.am | 10 + doc/it/index.docbook | 523 ++++ doc/ru/Makefile.am | 10 + doc/ru/index.docbook | 517 ++++ doc/sv/Makefile.am | 9 + doc/sv/index.docbook | 370 +++ 268 files changed, 46520 insertions(+) create mode 100644 doc/Makefile.am create mode 100644 doc/cs/Makefile.am create mode 100644 doc/cs/index.docbook create mode 100644 doc/de/Makefile.am create mode 100644 doc/de/index.docbook create mode 100644 doc/en/Makefile.am create mode 100644 doc/en/index.docbook create mode 100644 doc/es/Makefile.am create mode 100644 doc/es/index.docbook create mode 100644 doc/fr/Makefile.am create mode 100644 doc/fr/index.docbook create mode 100644 doc/html/AlertDlg_8cpp-source.html create mode 100644 doc/html/AlertDlg_8h-source.html create mode 100644 doc/html/AlertDlg_8moc-source.html create mode 100644 doc/html/CommandDlg_8cpp-source.html create mode 100644 doc/html/CommandDlg_8h-source.html create mode 100644 doc/html/CommandDlg_8moc-source.html create mode 100644 doc/html/CommandEntryDlg_8cpp-source.html create mode 100644 doc/html/CommandEntryDlg_8h-source.html create mode 100644 doc/html/CommandEntryDlg_8moc-source.html create mode 100644 doc/html/EditDlg_8cpp-source.html create mode 100644 doc/html/EditDlg_8h-source.html create mode 100644 doc/html/EditDlg_8moc-source.html create mode 100644 doc/html/FilterDlg_8cpp-source.html create mode 100644 doc/html/FilterDlg_8h-source.html create mode 100644 doc/html/FilterDlg_8moc-source.html create mode 100644 doc/html/FilterEntryDlg_8cpp-source.html create mode 100644 doc/html/FilterEntryDlg_8h-source.html create mode 100644 doc/html/FilterEntryDlg_8moc-source.html create mode 100644 doc/html/OptionDlg_8cpp-source.html create mode 100644 doc/html/OptionDlg_8h-source.html create mode 100644 doc/html/OptionDlg_8moc-source.html create mode 100644 doc/html/ServerDlg_8cpp-source.html create mode 100644 doc/html/ServerDlg_8h-source.html create mode 100644 doc/html/ServerDlg_8moc-source.html create mode 100644 doc/html/alertdialog_8cpp-source.html create mode 100644 doc/html/alertdialog_8h-source.html create mode 100644 doc/html/alertdialog_8moc_8cpp-source.html create mode 100644 doc/html/annotated.html create mode 100644 doc/html/classAlertDialog-members.html create mode 100644 doc/html/classAlertDialog.html create mode 100644 doc/html/classAlertDialog.png create mode 100644 doc/html/classAlertDlg-members.html create mode 100644 doc/html/classAlertDlg.html create mode 100644 doc/html/classAlertDlg.png create mode 100644 doc/html/classCommandDialog-members.html create mode 100644 doc/html/classCommandDialog.html create mode 100644 doc/html/classCommandDialog.png create mode 100644 doc/html/classCommandDlg-members.html create mode 100644 doc/html/classCommandDlg.html create mode 100644 doc/html/classCommandDlg.png create mode 100644 doc/html/classCommandEntry-members.html create mode 100644 doc/html/classCommandEntry.html create mode 100644 doc/html/classCommandEntryDialog-members.html create mode 100644 doc/html/classCommandEntryDialog.html create mode 100644 doc/html/classCommandEntryDialog.png create mode 100644 doc/html/classCommandEntryDlg-members.html create mode 100644 doc/html/classCommandEntryDlg.html create mode 100644 doc/html/classCommandEntryDlg.png create mode 100644 doc/html/classCommandList-members.html create mode 100644 doc/html/classCommandList.html create mode 100644 doc/html/classConfigElem-members.html create mode 100644 doc/html/classConfigElem.html create mode 100644 doc/html/classConfigList-members.html create mode 100644 doc/html/classConfigList.html create mode 100644 doc/html/classEditDialog-members.html create mode 100644 doc/html/classEditDialog.html create mode 100644 doc/html/classEditDialog.png create mode 100644 doc/html/classEditDlg-members.html create mode 100644 doc/html/classEditDlg.html create mode 100644 doc/html/classEditDlg.png create mode 100644 doc/html/classFilter-members.html create mode 100644 doc/html/classFilter.html create mode 100644 doc/html/classFilterDialog-members.html create mode 100644 doc/html/classFilterDialog.html create mode 100644 doc/html/classFilterDialog.png create mode 100644 doc/html/classFilterDlg-members.html create mode 100644 doc/html/classFilterDlg.html create mode 100644 doc/html/classFilterDlg.png create mode 100644 doc/html/classFilterElem-members.html create mode 100644 doc/html/classFilterElem.html create mode 100644 doc/html/classFilterEntryDialog-members.html create mode 100644 doc/html/classFilterEntryDialog.html create mode 100644 doc/html/classFilterEntryDialog.png create mode 100644 doc/html/classFilterEntryDlg-members.html create mode 100644 doc/html/classFilterEntryDlg.html create mode 100644 doc/html/classFilterEntryDlg.png create mode 100644 doc/html/classFilterList-members.html create mode 100644 doc/html/classFilterList.html create mode 100644 doc/html/classFilterRecord-members.html create mode 100644 doc/html/classFilterRecord.html create mode 100644 doc/html/classKFeedbackAnswer-members.html create mode 100644 doc/html/classKFeedbackAnswer.html create mode 100644 doc/html/classKFeedbackDialog-members.html create mode 100644 doc/html/classKFeedbackDialog.html create mode 100644 doc/html/classKFeedbackForm-members.html create mode 100644 doc/html/classKFeedbackForm.html create mode 100644 doc/html/classKFeedbackQuestion-members.html create mode 100644 doc/html/classKFeedbackQuestion.html create mode 100644 doc/html/classKFeedbackQuestionList-members.html create mode 100644 doc/html/classKFeedbackQuestionList.html create mode 100644 doc/html/classKShowMailApp-members.html create mode 100644 doc/html/classKShowMailApp.html create mode 100644 doc/html/classKShowMailDock-members.html create mode 100644 doc/html/classKShowMailDock.html create mode 100644 doc/html/classKshowmailDoc-members.html create mode 100644 doc/html/classKshowmailDoc.html create mode 100644 doc/html/classKshowmailView-members.html create mode 100644 doc/html/classKshowmailView.html create mode 100644 doc/html/classLogger-members.html create mode 100644 doc/html/classLogger.html create mode 100644 doc/html/classOptionDialog-members.html create mode 100644 doc/html/classOptionDialog.html create mode 100644 doc/html/classOptionDialog.png create mode 100644 doc/html/classOptionDlg-members.html create mode 100644 doc/html/classOptionDlg.html create mode 100644 doc/html/classOptionDlg.png create mode 100644 doc/html/classServerDialog-members.html create mode 100644 doc/html/classServerDialog.html create mode 100644 doc/html/classServerDialog.png create mode 100644 doc/html/classServerDlg-members.html create mode 100644 doc/html/classServerDlg.html create mode 100644 doc/html/classServerDlg.png create mode 100644 doc/html/classShowListViewItem-members.html create mode 100644 doc/html/classShowListViewItem.html create mode 100644 doc/html/classShowRecord-members.html create mode 100644 doc/html/classShowRecord.html create mode 100644 doc/html/classShowRecordElem-members.html create mode 100644 doc/html/classShowRecordElem.html create mode 100644 doc/html/classUniqueApp-members.html create mode 100644 doc/html/classUniqueApp.html create mode 100644 doc/html/classes.html create mode 100644 doc/html/commanddialog_8cpp-source.html create mode 100644 doc/html/commanddialog_8h-source.html create mode 100644 doc/html/commanddialog_8moc_8cpp-source.html create mode 100644 doc/html/commandentry_8cpp-source.html create mode 100644 doc/html/commandentry_8h-source.html create mode 100644 doc/html/commandentrydialog_8cpp-source.html create mode 100644 doc/html/commandentrydialog_8h-source.html create mode 100644 doc/html/commandentrydialog_8moc_8cpp-source.html create mode 100644 doc/html/commandlist_8cpp-source.html create mode 100644 doc/html/commandlist_8h-source.html create mode 100644 doc/html/config_8h-source.html create mode 100644 doc/html/configelem_8cpp-source.html create mode 100644 doc/html/configelem_8h-source.html create mode 100644 doc/html/configlist_8cpp-source.html create mode 100644 doc/html/configlist_8h-source.html create mode 100644 doc/html/constants_8h-source.html create mode 100644 doc/html/decodeRFC2047_8cpp-source.html create mode 100644 doc/html/decodeRFC2047_8h-source.html create mode 100644 doc/html/dir_656923b733374505e0e2f68ecb68d952.html create mode 100644 doc/html/dirs.html create mode 100644 doc/html/doxygen.css create mode 100644 doc/html/doxygen.png create mode 100644 doc/html/editdialog_8cpp-source.html create mode 100644 doc/html/editdialog_8h-source.html create mode 100644 doc/html/editdialog_8moc_8cpp-source.html create mode 100644 doc/html/files.html create mode 100644 doc/html/filter_8cpp-source.html create mode 100644 doc/html/filter_8h-source.html create mode 100644 doc/html/filterdialog_8cpp-source.html create mode 100644 doc/html/filterdialog_8h-source.html create mode 100644 doc/html/filterdialog_8moc_8cpp-source.html create mode 100644 doc/html/filterelem_8cpp-source.html create mode 100644 doc/html/filterelem_8h-source.html create mode 100644 doc/html/filterentrydialog_8cpp-source.html create mode 100644 doc/html/filterentrydialog_8h-source.html create mode 100644 doc/html/filterentrydialog_8moc_8cpp-source.html create mode 100644 doc/html/filterlist_8cpp-source.html create mode 100644 doc/html/filterlist_8h-source.html create mode 100644 doc/html/functions.html create mode 100644 doc/html/functions_0x61.html create mode 100644 doc/html/functions_0x62.html create mode 100644 doc/html/functions_0x63.html create mode 100644 doc/html/functions_0x64.html create mode 100644 doc/html/functions_0x65.html create mode 100644 doc/html/functions_0x66.html create mode 100644 doc/html/functions_0x67.html create mode 100644 doc/html/functions_0x68.html create mode 100644 doc/html/functions_0x69.html create mode 100644 doc/html/functions_0x6b.html create mode 100644 doc/html/functions_0x6c.html create mode 100644 doc/html/functions_0x6d.html create mode 100644 doc/html/functions_0x6e.html create mode 100644 doc/html/functions_0x6f.html create mode 100644 doc/html/functions_0x70.html create mode 100644 doc/html/functions_0x71.html create mode 100644 doc/html/functions_0x72.html create mode 100644 doc/html/functions_0x73.html create mode 100644 doc/html/functions_0x74.html create mode 100644 doc/html/functions_0x75.html create mode 100644 doc/html/functions_0x76.html create mode 100644 doc/html/functions_0x7e.html create mode 100644 doc/html/functions_enum.html create mode 100644 doc/html/functions_func.html create mode 100644 doc/html/functions_rela.html create mode 100644 doc/html/functions_vars.html create mode 100644 doc/html/functions_vars_0x61.html create mode 100644 doc/html/functions_vars_0x62.html create mode 100644 doc/html/functions_vars_0x63.html create mode 100644 doc/html/functions_vars_0x64.html create mode 100644 doc/html/functions_vars_0x65.html create mode 100644 doc/html/functions_vars_0x66.html create mode 100644 doc/html/functions_vars_0x67.html create mode 100644 doc/html/functions_vars_0x68.html create mode 100644 doc/html/functions_vars_0x69.html create mode 100644 doc/html/functions_vars_0x6b.html create mode 100644 doc/html/functions_vars_0x6c.html create mode 100644 doc/html/functions_vars_0x6d.html create mode 100644 doc/html/functions_vars_0x6f.html create mode 100644 doc/html/functions_vars_0x70.html create mode 100644 doc/html/functions_vars_0x71.html create mode 100644 doc/html/functions_vars_0x73.html create mode 100644 doc/html/functions_vars_0x74.html create mode 100644 doc/html/hierarchy.html create mode 100644 doc/html/index.html create mode 100644 doc/html/kfeedback_8cpp-source.html create mode 100644 doc/html/kfeedback_8h-source.html create mode 100644 doc/html/kfeedback_8moc_8cpp-source.html create mode 100644 doc/html/kshowmail_8cpp-source.html create mode 100644 doc/html/kshowmail_8h-source.html create mode 100644 doc/html/kshowmail_8moc_8cpp-source.html create mode 100644 doc/html/kshowmaildoc_8cpp-source.html create mode 100644 doc/html/kshowmaildoc_8h-source.html create mode 100644 doc/html/kshowmaildoc_8moc_8cpp-source.html create mode 100644 doc/html/kshowmaildock_8cpp-source.html create mode 100644 doc/html/kshowmaildock_8h-source.html create mode 100644 doc/html/kshowmaildock_8moc_8cpp-source.html create mode 100644 doc/html/kshowmailfeedback_8cpp-source.html create mode 100644 doc/html/kshowmailview_8cpp-source.html create mode 100644 doc/html/kshowmailview_8h-source.html create mode 100644 doc/html/kshowmailview_8moc_8cpp-source.html create mode 100644 doc/html/logger_8cpp-source.html create mode 100644 doc/html/logger_8h-source.html create mode 100644 doc/html/main_8cpp-source.html create mode 100644 doc/html/namespaceConstants.html create mode 100644 doc/html/namespaceTypes.html create mode 100644 doc/html/namespacemembers.html create mode 100644 doc/html/namespacemembers_enum.html create mode 100644 doc/html/namespacemembers_eval.html create mode 100644 doc/html/namespaces.html create mode 100644 doc/html/optiondialog_8cpp-source.html create mode 100644 doc/html/optiondialog_8h-source.html create mode 100644 doc/html/optiondialog_8moc_8cpp-source.html create mode 100644 doc/html/serverdialog_8cpp-source.html create mode 100644 doc/html/serverdialog_8h-source.html create mode 100644 doc/html/serverdialog_8moc_8cpp-source.html create mode 100644 doc/html/showlistviewitem_8cpp-source.html create mode 100644 doc/html/showlistviewitem_8h-source.html create mode 100644 doc/html/showrecord_8cpp-source.html create mode 100644 doc/html/showrecord_8h-source.html create mode 100644 doc/html/showrecordelem_8cpp-source.html create mode 100644 doc/html/showrecordelem_8h-source.html create mode 100644 doc/html/tab_b.gif create mode 100644 doc/html/tab_l.gif create mode 100644 doc/html/tab_r.gif create mode 100644 doc/html/tabs.css create mode 100644 doc/html/types_8h-source.html create mode 100644 doc/html/uniqueapp_8cpp-source.html create mode 100644 doc/html/uniqueapp_8h-source.html create mode 100644 doc/hu/Makefile.am create mode 100644 doc/hu/index.docbook create mode 100644 doc/it/Makefile.am create mode 100644 doc/it/index.docbook create mode 100644 doc/ru/Makefile.am create mode 100644 doc/ru/index.docbook create mode 100644 doc/sv/Makefile.am create mode 100644 doc/sv/index.docbook (limited to 'doc') diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..3afcb22 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + +SUBDIRS = en de es sv fr hu it ru + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = ru +KDE_DOCS = kshowmail + + diff --git a/doc/cs/Makefile.am b/doc/cs/Makefile.am new file mode 100644 index 0000000..ff41fa8 --- /dev/null +++ b/doc/cs/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = en +KDE_DOCS = kshowmail + diff --git a/doc/cs/index.docbook b/doc/cs/index.docbook new file mode 100644 index 0000000..4832400 --- /dev/null +++ b/doc/cs/index.docbook @@ -0,0 +1,516 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +The Kshowmail Handbook + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +2004 +Eggert Ehmke + + + +&FDLNotice; + + + +01/02/2004 +3.1.1 + + + + + +This Handbook describes Kshowmail Version 3.1.1 + + + + + + +KDE +kshowmail +kmail +pop3 +mail checker + + +
+ + + + +Introduction + + + + +Kshowmail is a KDE tool to watch mails on a POP3 server. +Headers and complete mails can be viewed without loading them to the +local mail client. +Unpleasant mail can be deleted from the server. +The list of displayed mails can be refreshed via configurable timers. +Filters can be defined to mark known spam and unwanted mail. +Mails marked by filters can be deleted automatically. +A sound can be played if new mail arrives. +A command menu allows user configurable commands like dcop commands to launch kmail. +A special command can be defined to send complain mail against spam. +Multiple accounts are supported. + + + + +Using Kshowmail + + + + +General Usage + +Add some accounts in the "Options" config dialog. Connect to the internet. Now you may list the +mails on the pop3 servers by pressing the "Refresh" button. All other buttons and menu entries +should explain themself. +Have fun ! + + + + Keyboard-Shortcuts + + These keyboard shortcuts are defined: + + F2 + + Show headers of selected mails + + + + F3 + + Show complete selected mails + + + + F5 + + Refresh new mails + + + + Shift-F5 + + Force refresh of all mails + + + + F10 + + Configure accounts + + + + Del + + Delete selected mails from server + + + + Ctrl-C + + Clear the mail list. + (No mails will be deleted from the server) + + + + + + + Filters + + Filters can be used to select known spam and other unwanted mail. + You can define as much filters as you want. + They will be applied on all mails each time the message list is refreshed. + + + In the Dialogue "Filter" you can select a state. + In the state "Deactivated" all filters are switched off. + In the state "Activated" all filters are switched on. + Filtered mails are selected in the message list and can be deleted manually. + In the state "Automatic delete" all filtered mails are deleted immediatly. + Please be careful when you select this state ! + It may be useful to test new filters some time in the "Activated" state. + In the file ~/.kde/share/apps/kshowmail/kshowmail.log you can monitor mails that have been deleted automatically. + + + + Each filter contains one or two conditions, that can be linked together. + Especially powerful conditions can be created using regular expressions. + Here the regular expressions of the Qt-Library are utilized, + for a detailed documentation see the documentation of the class KRegExpEditor, + or one of the numerous texts about regular expressions in the internet. + + What is a regular expression? + + + + + Regular Expressions examples + + MS Corporation|Microsoft: either "MS Corporation" or "Microsoft" will be recognized + + + (mail|message) delivery: either "mail delivery" or "message delivery" will be recognized + + + ms (program )?security: either "ms security" or "ms program security" will be recognized + + + [\x0100-\xffff]: all characters outside the ASCII character set are recognized (chinese and korean characters) + + + These templates can be combined arbitrarily. + + + + + +Command Line Parameters + +You can provide the selected account on the command line. +If the option -config is set on the command line, the configuration dialog is started immediatly. +This can be helpful, if the function "Terminate kshowmail if no new mail" is activated. +The option -refresh can be used to start the refresh processing immediatly. + + + +External programs + +To start external programs like kmail, add a entry in the commands menu. +Command names show up in the Actions menu. If they contain the character '&', the following letter will +be used as keyboard shortcut. + + The following parameters are placeholders and will be substituted by the actual values: + <user> User name + <passwd> Password + <server> Server + <header> The mail header will be copied to a temporary file, the name of this file will be substituted here. + <body> The mail body will be copied to a temporary file, the name of this file will be substituted here. + + A very effective method is the dcop command that allows to call selected methods of + other KDE programs. + You can create a command that calls KMail to get the mail from the server: + + + dcop kmail KMailIface checkMail + + + The KDE program kdcop is useful to evaluate the functions of other KDE programs. + + + + Sending complain mails + + The command to send complain mails is a special one. + To keep flexibility, it has been implemented as an external command too. + I suggest to use the perl program "spam.pl" version 0.20 or better of Daniel Stenberg. + It can be received at http://spam.sourceforge.net. + To make it run with kshowmail, follow these steps: + + + 1. Install spam.pl in a suitable directory, say /usr/local/bin. + + + 2. Create the files ~/.spam/friends and ~/.spam/from. + More details are available in the spam.pl documentation. + + + 3. Create an entry in the kshowmail command menu. + The name of the entry has to be "complain" ! + Otherwise the command will not be recognized correctly. + Enter this text as command line: + + + spam.pl -d < <body> + + + This causes the mail body to be piped into spam.pl. + + + The debug option -d may be removed later, if you are satisfied with the results. + Only then the complain mails will be actually sent. + Add other options as you like. + + + Be careful to choose the right entries in the ~/.spam/friends file. + At least the local domain should be inserted. + Use this feature at your own risk ! + + + As you press the button "Send complain mail", for each highlighted mail + there will be one or more complain mails generated and sent immediatly. + The receiver of these mails are determined by spam.pl. + As long as the option -d is activated, only a message will be displayed to show what would happen. + To activate the feature, remove the debug flag. + + + If you prefer other anti spam programs, try to set them up in a similar way. + Contact me if there are any problems. + + + + + +Questions and Answers + + + +&reporting.bugs; +&updating.documentation; + + + + +To be provided + + +To be provided. + + + + + + + + + +Credits and License + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Contributors: + + + +Nicolas Vignal nicolas.vignal@fnac.net who provided RPMs for RedHat, +and the french translation. + + + + +Edgardo Garcia edyx@mindless.com who provided the spanish translation + + + + +Mattias Newzella newzella@swipnet.se who provided the swedish translation + + + + +Sandor Laza slaza@xs4all.nl who provided the hungarian translation + + + + +Gabriele Postorino g.posto@tin.it who provided the italian translation + + + + +Many users did a lot of testing and created a lot of +ideas that are now part of kshowmail. +I want to say "thank you" to all of you ! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installation + + +How to obtain Kshowmail + + +The actual version is to be found on + +http://sourceforge.net/projects/kshowmail +or on +http://freshmeat.net + + + + + +Requirements + + + + + Developed and tested under SuSE 8.2. + In order to successfully use Kshowmail, you need KDE 3.1.x and Qt 3.1.x. + + + + +You can find a list of changes at + +http://sourceforge.net/projects/kshowmail + + + + +Compilation and Installation + + + In order to compile and install Kshowmail on your system, type the following in the base + directory of Kshowmail: + + % ./configure + or even: + % ./configure --prefix=$KDEDIR + + % make + + as root: + % make install + + It may be useful to set the environment variable KDEDIR before these steps. + + + + Since Kshowmail uses autoconf and automake you should have not trouble compiling it. + Should you run into problems please report them to me. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/de/Makefile.am b/doc/de/Makefile.am new file mode 100644 index 0000000..8108eb8 --- /dev/null +++ b/doc/de/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = de +KDE_DOCS = kshowmail + diff --git a/doc/de/index.docbook b/doc/de/index.docbook new file mode 100644 index 0000000..47ae09b --- /dev/null +++ b/doc/de/index.docbook @@ -0,0 +1,522 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +Das KShowmail Handbuch + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +2004 +Eggert Ehmke + + + +&FDLNotice; + + + +01/02/2004 +3.1.1 + + + + + +Dieses Handbuch beschreibt KShowmail Version 3.1.1 + + + + + + +KDE +kshowmail +kmail +pop3 +mail checker + + +
+ + + + +Einführung + + + + +KShowmail ist ein KDE-Tool, mit dem Nachrichten (Emails) auf einem POP3-Server +überwacht werden können. +Headers und vollständige Nachrichten können betrachtet werden, ohne sie dem lokalen Mail-Client zuzustellen. +Ungewünschte Nachrichten können auf dem Server gelöscht werden. +Die Liste der angezeigten Nachrichten kann periodisch erneuert werden. +Filter können definiert werden, um bekannte Spam zu kennzeichnen. +Die durch Filter gekennzeichneten Nchrichten können automatisch gelöscht werden. +Beim Eintreffen neuer Nachrichten kann ein Klang abgespielt werden. +Ein Menü "Kommandos" erlaubt die Einrichtung von benutzerdefinierten +Kommandos wie dcop zum Aufrufen von Funktionen anderer KDE-Programme. +Zum Versenden von Beschwerden wegen Spam kann ein besonderes Kommando eingerichtet werden. +Mehrere Pop3-Konten können überwacht werden. + + + + +Benutzung + + + + +Allgemein + +Im Dialog "Einstellungen/Konten einrichten" können Benutzerkonten eingerichtet werden. +Wenn eine Verbindung zum Internet besteht, +können die Nachrichten auf dem POP3-Server durch Drücken des Buttons "Nachrichten erneuern" angezeigt werden. +Im Dialog "Einstellungen/Filter einrichten" können Filter eingerichtet werden, +um Nachrichten von bekannten Spammern auszufiltern. +Alle anderen Buttons und Menü-Funktionen sollten selbsterklärend sein. +Viel Spaß ! + + + + Tastatur-Kürzel + + Diese Tastatur-Kürzel sind definiert: + + F2 + + Vorspann der markierten Nachrichten anzeigen + + + + F3 + + Vollständige markierte Nachrichten anzeigen + + + + F5 + + Nachrichten erneuern + + + + Umschalt-F5 + + Erzwungenes Erneuern aller Nachrichten + + + + F10 + + Konten einrichten + + + + Entf + + Markierte Nachrichten löschen + + + + Strg-C + + Liste der geladenen Nachrichten löschen + (Nachrichten werden nicht vom Server gelöscht) + + + + + + + + Filter + + Mit Hilfe von Filtern ist es möglich, bekannte Spammer und andere unerwünschte Nachrichten auszufiltern. + Es können beliebig viele Filter eingerichtet werden. + Sie werden jeweils beim Erneuern der Nachrichtenliste auf alle vorhandenen Nachrichten angewandt. + + + Im Dialog "Filter" kann der Status eingestellt werden. + Im Status "Deaktiviert" sind alle Filter ausgeschaltet. + Im Status "Aktiviert" sind alle Filter eingeschaltet. + Gefilterte Nachrichten werden in der Nachrichtenliste markiert und können manuell gelöscht werden. + Im Status "Automatisches Löschen" werden alle gefilterten Nachrichten sofort gelöscht. + Bitte Vorsicht beim Aktivieren dieses Status ! + Es ist sinnvoll, neue Filter zunächst einige Zeit im Status "Aktiviert" zu testen. + In der Datei ~/.kde/share/apps/kshowmail/kshowmail.log können automatisch gelöschte Nachrichten + überprüft werden. + + + + Jeder Filter besteht aus ein oder zwei Bedingungen, die miteinander verknüpft werden können. + Besonders aussagekräftige Bedingungen können mit Hilfe der "Regulären Ausdrücke" formuliert werden. + Es werden die Regulären Ausdrücke der Qt-Bibliothek verwendet, für eine genauere Dokumentation der Syntax + siehe die Dokumentation der Klasse KRegExpEditor oder eine der vielen Texte zu "Regular Expressions" im Internet. + + Was ist ein regulärer Ausdruck? + + + + + Beispiele zu Regulären Ausdrücken + + MS Corporation|Microsoft: entweder "MS Corporation" oder "Microsoft" wird erkannt + + + (mail|message) delivery: entweder "mail delivery" oder "message delivery" wird erkannt + + + ms (program )?security: entweder "ms security" oder "ms program security" wird erkannt + + + [\x0100-\xffff]: alle Zeichen ausserhalb des ASCII-Alphabets werden erkannt (chinesische und koreanische Schriftzeichen) + + + Diese Muster lassen sich beliebig kombinieren. + + + + + + Kommandozeilen-Parameter + + Das gewünschte Benutzerkonto kann beim Aufruf des Programms auf der Kommandozeile übergeben werden. + Wird das Programm mit der Option -config gestartet, so wird unmittelbar der Konfigurationsdialog gestartet. + Dies kann nützlich sein, wenn die Funktion "Beenden von KShowmail, wenn keine neuen Nachrichten" aktiviert ist. + Die Option -refresh kann benutzt werden, um die Erneuerung der Nachrichten sofort zu starten. + + + + +Externe Kommandos + +Im Menü "Kommandos" können externe Kommandos wie dcop eingetragen werden. Die Kommandonamen +erscheinen danach im gleichen Menü. Wenn der Kommandoname das Zeichen '&' enthält, kann das folgende Zeichen +als Tastaturkürzel benutzt werden. + + +Die folgenden Parameter sind Platzhalter und werden beim Aufruf durch aktuelle +Werte ersetzt: + + <user> Benutzername + <passwd> Passwort + <server> Server + +<header> Der Vorspann der Nachricht wird in eine temporäre Datei kopiert, der Name dieser Datei wird hier eingetragen. + + +<body> Die vollständige Nachricht wird in eine temporäre Datei kopiert, der Name dieser Datei wird hier eingetragen. + + + + Eine hilfreiche Methode ist das Kommando dcop, mit dem man ausgewählte Funktionen + anderer KDE-Programme aufrufen kann. + Mit dem folgenden Kommando wird die Mail durch KMail abgerufen: + + + dcop kmail KMailIface checkMail + + + Das KDE-Programm kdcop ist hilfreich, um die Funktionen von anderen KDE-Programmen zu erkunden. + + + + + Verschicken von Beschwerden + +Eine besondere Rolle spielt das Kommando zum Verschicken von Beschwerden wegen Spam. +Um möglichst flexibel zu bleiben, wird es ebenfalls als externes Kommando realisiert. +Ich empfehle die Benutzung von "spam.pl" Version 0.21 von Daniel Stenberg. +Es ist zu beziehen unter http://spam.sourceforge.net. +Um es in KShowmail einzubinden, sind folgende Schritte notwendig: + +1. Installiere spam.pl in ein geeignetes Verzeichnis, z.B. /usr/local/bin. +2. Richte die Dateien ~/.spam/friends und ~/.spam/from ein. +Weitere Details sind der Dokumentation von spam.pl zu entnehmen. +3. Einrichten eines Eintrages im Kommandomenü von KShowmail. +Der Name des Menüeintrages muß "complain" lauten ! +Sonst wird das Kommando nicht richtig erkannt. +Als Kommandozeile wird folgender Text eingetragen: + + spam.pl -d < <body> + Hier wird der Text der Nachricht nach stdin von spam.pl umgeleitet. + + +Die Option -d (Debug) kann später entfernt werden, wenn man mit der Einrichtung zufrieden ist. +Erst dann werden die Beschwerden tatsächlich abgeschickt. +Andere Optionen können nach Bedarf hinzugefügt werden. + + +Der Inhalt der Datei ~/.spam/friends sollte sorgfältig gewählt werden. +Mindestens die eigene Domain sollte darin stehen. +Die Benutzung dieses Features geschieht auf eigene Gefahr ! + + +Bei Betätigen des Buttons "Beschwerde schicken" wird für jede markierte Nachricht +eine oder mehrere Beschwerden erzeugt, die sofort verschickt werden. +Die Empfänger dieser Nachrichten werden von spam.pl festgelegt. +Solange die Debugoption -d in der Kommandozeile steht, wird lediglich ein Fenster angezeigt, +aus dem zu entnehmen ist, an welche Empfänger die Nachricht gehen würde. +Die Funktion wird also aktiviert, indem das Debugflag entfernt wird ! + + +Wer ein anderes Anti-Spam-Programm bevorzugt, kann versuchen, es auf ähnliche Weise einzubinden. +Wenn es dabei Probleme geben sollte, werde ich versuchen zu helfen. + + + + + +Fragen und Antworten + + + +&reporting.bugs; +&updating.documentation; + + + + +keine Fragen ... + + +... keine Antworten ! + + + + + + + + + +Beiträge + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Mitwirkende: + + + +Nicolas Vignal nicolas.vignal@fnac.net erstellte RPM's für RedHat, +und die französische Übersetzung. + + + + +Edgardo Garcia edyx@mindless.com erstellte die spanische Übersetzung. + + + + +Mattias Newzella newzella@swipnet.se erstellte die schwedische Übersetzung. + + + + +Sandor Laza slaza@xs4all.nl erstellte die ungarische Übersetzung. + + + + +Gabriele Postorino g.posto@tin.it erstellte die italienische Übersetzung. + + + + +Viele Benutzer haben mir bei den Tests geholfen und viele Ideen gehabt, die in das Programm +eingeflossen sind. Bei allen möchte ich mich bedanken ! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installation + + +Wo bekomme ich KShowmail ? + + +Die aktuelle Version gibt es immer unter + +http://sourceforge.net/projects/kshowmail +oder bei +http://freshmeat.net + + + + +Voraussetzungen + + + + +Entwickelt und getestet unter SuSE Linux 8.2. +Das Programm sollte sich unter allen Linux-Distributionen übersetzen lassen. +Qt 3.1.x und KDE 3.1.x werden benötigt, und die X include Dateien. + + + + +Die aktuellen Änderungen befinden sich in der Datei Changelog oder bei + +http://sourceforge.net/projects/kshowmail/ + + + + + Kompilation und Installation + + Um KShowmail zu übersetzen und zu installieren, benutze diese Kommandos + im Installationsverzeichnis: + + % ./configure + oder auch + % ./configure --prefix=$KDEDIR + + % make + + Als root: + % make install + + Es ist sinnvoll, die Umgebungsvariable KDEDIR vorher richtig zu setzen. + + + + Da KShowmail autoconf benutzt, sollte es keine Probleme geben. + Falls doch irgendwelche Schwierigkeiten auftreten sollten, wende dich an mich. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am new file mode 100644 index 0000000..ff41fa8 --- /dev/null +++ b/doc/en/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = en +KDE_DOCS = kshowmail + diff --git a/doc/en/index.docbook b/doc/en/index.docbook new file mode 100644 index 0000000..4832400 --- /dev/null +++ b/doc/en/index.docbook @@ -0,0 +1,516 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +The Kshowmail Handbook + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +2004 +Eggert Ehmke + + + +&FDLNotice; + + + +01/02/2004 +3.1.1 + + + + + +This Handbook describes Kshowmail Version 3.1.1 + + + + + + +KDE +kshowmail +kmail +pop3 +mail checker + + +
+ + + + +Introduction + + + + +Kshowmail is a KDE tool to watch mails on a POP3 server. +Headers and complete mails can be viewed without loading them to the +local mail client. +Unpleasant mail can be deleted from the server. +The list of displayed mails can be refreshed via configurable timers. +Filters can be defined to mark known spam and unwanted mail. +Mails marked by filters can be deleted automatically. +A sound can be played if new mail arrives. +A command menu allows user configurable commands like dcop commands to launch kmail. +A special command can be defined to send complain mail against spam. +Multiple accounts are supported. + + + + +Using Kshowmail + + + + +General Usage + +Add some accounts in the "Options" config dialog. Connect to the internet. Now you may list the +mails on the pop3 servers by pressing the "Refresh" button. All other buttons and menu entries +should explain themself. +Have fun ! + + + + Keyboard-Shortcuts + + These keyboard shortcuts are defined: + + F2 + + Show headers of selected mails + + + + F3 + + Show complete selected mails + + + + F5 + + Refresh new mails + + + + Shift-F5 + + Force refresh of all mails + + + + F10 + + Configure accounts + + + + Del + + Delete selected mails from server + + + + Ctrl-C + + Clear the mail list. + (No mails will be deleted from the server) + + + + + + + Filters + + Filters can be used to select known spam and other unwanted mail. + You can define as much filters as you want. + They will be applied on all mails each time the message list is refreshed. + + + In the Dialogue "Filter" you can select a state. + In the state "Deactivated" all filters are switched off. + In the state "Activated" all filters are switched on. + Filtered mails are selected in the message list and can be deleted manually. + In the state "Automatic delete" all filtered mails are deleted immediatly. + Please be careful when you select this state ! + It may be useful to test new filters some time in the "Activated" state. + In the file ~/.kde/share/apps/kshowmail/kshowmail.log you can monitor mails that have been deleted automatically. + + + + Each filter contains one or two conditions, that can be linked together. + Especially powerful conditions can be created using regular expressions. + Here the regular expressions of the Qt-Library are utilized, + for a detailed documentation see the documentation of the class KRegExpEditor, + or one of the numerous texts about regular expressions in the internet. + + What is a regular expression? + + + + + Regular Expressions examples + + MS Corporation|Microsoft: either "MS Corporation" or "Microsoft" will be recognized + + + (mail|message) delivery: either "mail delivery" or "message delivery" will be recognized + + + ms (program )?security: either "ms security" or "ms program security" will be recognized + + + [\x0100-\xffff]: all characters outside the ASCII character set are recognized (chinese and korean characters) + + + These templates can be combined arbitrarily. + + + + + +Command Line Parameters + +You can provide the selected account on the command line. +If the option -config is set on the command line, the configuration dialog is started immediatly. +This can be helpful, if the function "Terminate kshowmail if no new mail" is activated. +The option -refresh can be used to start the refresh processing immediatly. + + + +External programs + +To start external programs like kmail, add a entry in the commands menu. +Command names show up in the Actions menu. If they contain the character '&', the following letter will +be used as keyboard shortcut. + + The following parameters are placeholders and will be substituted by the actual values: + <user> User name + <passwd> Password + <server> Server + <header> The mail header will be copied to a temporary file, the name of this file will be substituted here. + <body> The mail body will be copied to a temporary file, the name of this file will be substituted here. + + A very effective method is the dcop command that allows to call selected methods of + other KDE programs. + You can create a command that calls KMail to get the mail from the server: + + + dcop kmail KMailIface checkMail + + + The KDE program kdcop is useful to evaluate the functions of other KDE programs. + + + + Sending complain mails + + The command to send complain mails is a special one. + To keep flexibility, it has been implemented as an external command too. + I suggest to use the perl program "spam.pl" version 0.20 or better of Daniel Stenberg. + It can be received at http://spam.sourceforge.net. + To make it run with kshowmail, follow these steps: + + + 1. Install spam.pl in a suitable directory, say /usr/local/bin. + + + 2. Create the files ~/.spam/friends and ~/.spam/from. + More details are available in the spam.pl documentation. + + + 3. Create an entry in the kshowmail command menu. + The name of the entry has to be "complain" ! + Otherwise the command will not be recognized correctly. + Enter this text as command line: + + + spam.pl -d < <body> + + + This causes the mail body to be piped into spam.pl. + + + The debug option -d may be removed later, if you are satisfied with the results. + Only then the complain mails will be actually sent. + Add other options as you like. + + + Be careful to choose the right entries in the ~/.spam/friends file. + At least the local domain should be inserted. + Use this feature at your own risk ! + + + As you press the button "Send complain mail", for each highlighted mail + there will be one or more complain mails generated and sent immediatly. + The receiver of these mails are determined by spam.pl. + As long as the option -d is activated, only a message will be displayed to show what would happen. + To activate the feature, remove the debug flag. + + + If you prefer other anti spam programs, try to set them up in a similar way. + Contact me if there are any problems. + + + + + +Questions and Answers + + + +&reporting.bugs; +&updating.documentation; + + + + +To be provided + + +To be provided. + + + + + + + + + +Credits and License + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Contributors: + + + +Nicolas Vignal nicolas.vignal@fnac.net who provided RPMs for RedHat, +and the french translation. + + + + +Edgardo Garcia edyx@mindless.com who provided the spanish translation + + + + +Mattias Newzella newzella@swipnet.se who provided the swedish translation + + + + +Sandor Laza slaza@xs4all.nl who provided the hungarian translation + + + + +Gabriele Postorino g.posto@tin.it who provided the italian translation + + + + +Many users did a lot of testing and created a lot of +ideas that are now part of kshowmail. +I want to say "thank you" to all of you ! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installation + + +How to obtain Kshowmail + + +The actual version is to be found on + +http://sourceforge.net/projects/kshowmail +or on +http://freshmeat.net + + + + + +Requirements + + + + + Developed and tested under SuSE 8.2. + In order to successfully use Kshowmail, you need KDE 3.1.x and Qt 3.1.x. + + + + +You can find a list of changes at + +http://sourceforge.net/projects/kshowmail + + + + +Compilation and Installation + + + In order to compile and install Kshowmail on your system, type the following in the base + directory of Kshowmail: + + % ./configure + or even: + % ./configure --prefix=$KDEDIR + + % make + + as root: + % make install + + It may be useful to set the environment variable KDEDIR before these steps. + + + + Since Kshowmail uses autoconf and automake you should have not trouble compiling it. + Should you run into problems please report them to me. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/es/Makefile.am b/doc/es/Makefile.am new file mode 100644 index 0000000..c4df70b --- /dev/null +++ b/doc/es/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = es +KDE_DOCS = kshowmail + diff --git a/doc/es/index.docbook b/doc/es/index.docbook new file mode 100644 index 0000000..69c25c5 --- /dev/null +++ b/doc/es/index.docbook @@ -0,0 +1,428 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +El manual del Kshowmail + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +Eggert Ehmke + + + +&FDLNotice; + + + +20.02.2003 +3.0.4 + + + + + +Este manual describe al Kshowmail versión 3.0.4 + + + + + + +KDE +kshowmail +kmail +pop3 +chequear correo + + +
+ + + + +Introducción + + + + +Kshowmail es una herramienta KDE para ver mensajes en un servidor pop3. +Es posible ver encabezados y correos completos sin necesidad de bajarlos al +cliente de correo local. Los correos no deseados pueden ser borrados del servidor. +La lista de correos mostrados puede ser actualizada periódicamente. +Un sonido puede ser tocado cuando llega nuevo correo. +El menú de "comandos" permite agregar comandos elegidos por el usuario como fetchmail o sendmail. +Se puede definir un comando especial para enviar un mensaje de protesta contra los correos spam. +Se pueden monitorear varias cuentas POP3. + + + + +Uso + + + + +Uso General + +Agregue una o varias cuentas en el cuadro "Opciones". Conéctese a Internet. +Ahora puede listar los correos en el servidor POP3 presionando el botón "Renovar lista de mensajes". +Los demás botones y entradas del menú deberían ser autoexplicativos. +Disfrútelo! + + + + Accesos directos + + Estos accesos directos están configurados: + + F2 + + Mostrar encabezales de mensajes seleccionados + + + + F3 + + Mostrar mensajes seleccionadas + + + + F5 + + Renovar mensajes nuevos + + + + Shift-F5 + + Forzar renovación de toda la lista + + + + F10 + + Configurar cuentas + + + + Supr + + Borrar mensajes seleccionados del servidor + + + + Ctrl-C + + Borrar lista de mensajes. + (No se borrarán mensajes del servidor) + + + + + +Parametros de la línea de comando + +Iniciando el programa a travéz de la línea de comando se puede especificar la cuenta deseada. +Si se usa la opción -config iniciando el programa desde la línea de comandos, se mostrará directamente el cuadro de +configuración de Kshowmail. Esto puede resultar útil si está activa la opción "Finalizar Kshowmail si no hay correo nuevo". +La Opción -refresh puede ser aplicada para refrescar la lista de mensajes directamente al iniciar el programa. + + + +Programas externos + +Para iniciar programas externos tal como el sendmail o fetchmail, agregue una entrada en el menú "Comandos". +Los nombres de los comandos aparecerán en el mismo menú. Si el nombre del comando tiene el caractér '&' la siguiente +letra será usada como atajo de teclado. + + +Los siguientes parámetros son variables y al llamarles estarán remplazados por los valores actuáles: + + <user> Nombre de usuario + <passwd> Contraseña + <server> Servidor + +<header> El encabezado del correo será copiado a un archivo temporal, el nombre de dicho archivo será sustituido acá. + + +<body> El cuerpo del correo será copiado a un archivo temporal, el nombre de dicho archivo será sustituido acá. + + + +Enviar correos de quejas + +El comando para enviar correos de protesta es especial. +Para mantener la flexibilidad, se lo ha implementado como un comando externo también. +Sugiero usar el programa perl "spam.pl" versión 0.20 o superior de Daniel Stenberg. +Se puede encontren en +http://spam.sourceforge.net. +Para incorporarlo al kshowmail siga las siguientes instrucciones: + + +1. Instale spam.pl en un directorio adecuado, supongamos /usr/local/bin. +2. Cree los archivos ˜/.spam/friends y ˜/.spam/from. +Para mas detalle remítase a la documentación de spam.pl. +3. Cree una entrada en el menú "comando" del kshowmail. +El nombre del menú debe ser "complain" ! +De lo contrario el comando no será reconocido correctamente. +Ingrese este texto como línea de comando: + + + spam.pl -d < <body> + Esto hará que el cuerpo del mensaje será desviado a stdin de spam.pl. + +La opción de depuración -d puede ser removida más tarde si está satisfecho con los resultados. +Recién en este momento las quejas serán enviadas. +Agrege otras opciones si gusta. + + +Se recomienda seleccionar bien el contenido del archivo ~/.spam/friends. +Al menos el propio dominio debería aparecer aquí. +El uso de esta opción queda bajo su propia responsibilidad! + + +Presionando el botón "Mandar queja" generan para cada correo mensajes de queja y se envían instantáneamente. +Los receptores de estos mensajes están definidos por spam.pl. +Mientras en la linea de comando aparece la opción de depuración (-d), sólo se mostrará una ventana que le +muestra a cual receptores se enviarían mensajes. +Entonces la funcionalidad está activada cuando se remueve la opción de depuración! + + +Otros programas Anti-Spam se pueden intentar de incluir de forma parecida. Si ocurren problemas, intentaré de ayudar. + + + + + +Preguntas y Respuestas + + + +&reporting.bugs; +&updating.documentation; + + + + +no hay preguntas... + + +...no hay respuestas! + + + + + + + + + +Créditos y licensia + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Contribuciones: + + + +Nicolas Vignal nicolas.vignal@fnac.net generó los RPM's para RedHat, y realizó la traducción al francés. + + + + +Stephan Giesler giesler@gmx.net hizo la traducción español a base de la de Edgardo Garcia edyx@mindless.com. + + + + +Mattias Newzella newzella@swipnet.se realizó la traducción al sueco. + + + + +Muchos usuarios me ayudaron con pruebas y ideas que fueron incluidas en el programa. Se les agradezco a todos! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installation + + +Donde puedo conseguir Kshowmail? + + +La versión más reciente siempre se encuentra en + +http://sourceforge.net/projects/kshowmail +o en +http://freshmeat.net + + + + +Requerimientos + + + + +Desarollado y probado bajo SuSE Linux 8.1. +No tendría que haber problemas con compilarlo en cualquier distribución Linux. +Qt 3.1.x y KDE 3.1.x son necesarios, como también los archivos include de X. + + + + +Los cambios más recientes se encuentran en el archivo Changelog o en + +http://sourceforge.net/projects/kshowmail + + + + +Compilación e Instalación + +Para compilar e instarlar Kshowmail ejecutá estos comandos en el directorio de instalación: + +% ./configure +% make +% make install + + + + +Como Kshowmail utiliza autoconf, no deberían ocurrir problemas. Si igualmente ocurren, contactame. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/fr/Makefile.am b/doc/fr/Makefile.am new file mode 100644 index 0000000..fdd5123 --- /dev/null +++ b/doc/fr/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = fr +KDE_DOCS = kshowmail + diff --git a/doc/fr/index.docbook b/doc/fr/index.docbook new file mode 100644 index 0000000..af4e833 --- /dev/null +++ b/doc/fr/index.docbook @@ -0,0 +1,372 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +Le manuel de Kshowmail + + + + +Eggert + +Ehmke + +
eggert.ehmke@berlin.de
+
+
+
+ + + + +2000 +2001 +2002 +2003 +Eggert Ehmke + + + +&FDLNotice; + + + +03/05/2003 +3.0.4 + + + + + +Ce manuel décrit la version 3.0.4 de Kshowmail + + + + + + +KDE +kshowmail +kmail +pop3 +mail checker +notificateur + + + +
+ + + + +Introduction + + + + +Kshowmail est un outil KDE destiné à vérifier les mails sur un serveur POP3. +Les en-têtes et les messages complets peuvent être visualisés sans avoir à les +télécharger dans son programme de courrier électronique. Les messages non désirés +peuvent être effacés directement sur le serveur. La liste des messages affichés +peut être rafraîchie par le biais de chronomètres configurables. +Un son peut être joué à l'arrivée de nouveaux messages. +Un menu de commandes permet à l'utilisateur de lancer des commandes +configurables telles que fetchmail ou sendmail. +Une commande spéciale peut être définie afin d'envoyer un message de plainte +relatif au spam. Le programme peut gérer plusieurs comptes. + + + + +Utiliser Kshowmail + + + + +Utilisation générale + +Ajoutez un ou plusieurs comptes via la boîte de dialogue "Options". Connectez-vous à Internet. +Vous êtes maintenant en mesure d'afficher la liste des messages présents sur les différents serveurs POP3 +en cliquant sur le bouton "Rafraîchir". Tous les autres boutons et entrées de menus parlent d'eux-mêmes. +La touche "Delete" peut être utilisée pour effacer des messages. +Bon amusement avec Kshowmail ! + + + +Paramètres de la ligne de commande + +Vous pouvez stipuler un compte déterminer dans la ligne de commande. +Si l'option -config est indiquée dans la ligne de commande, la boîte de configuration sera immédiatement affichée. +Ceci peut être utile si la fonction "Fermer Kshowmail en l'absence de nouveau message" est activée. +L'option -refresh peut être utilisée pour lancer le rafraîchissement de la liste des messages immédiatement. + + + +Programmes externes + +Pour lancer des programmes externes tels que Fetchmail, ajoutez une entrée dans le menu des commandes. +Les noms des commandes apparaissent dans le menu des actions. Si ils contiennent le caractère '&'la lettre suivante sera +utilisée comme raccourci clavier. + + Les paramètres suivants sont des variables et seront remplacés par leurs valeurs actuelles: + <user> Utilisateur + <passwd> Mot de passe + <server> Serveur + <header> L'en-tête du message sera copié dans un fichier temporaire. Le nom de ce fichier sera indiqué ici. + <body> Le corps du message sera copié dans un fichier temporaire. Le nom de ce fichier sera indiqué ici. + + + Envoi de messages de plainte + +La commande pour envoyer des messages de plainte est une commande particulière. +Afin d'assurer la flexibilité du programme, elle a été implémentée comme commande externe également. +Je vous suggère d'utiliser le programme perl "spam.pl" version 0.20 ou ultérieure de Daniel Stenberg. +Il peut être obtenu à l'adresse http://spam.sourceforge.net. +Afin qu'il puisse fonctionner avec Kshowmail, suivez les étapes suivantes: + +1. Installez spam.pl dans un répertoire qui vous convient, par exemple /usr/local/bin. +2. Créez les fichiers ~/.spam/friends et ~/.spam/from. +Vous trouverez plus de détails dans la documentation de spam.pl. +3. Créez une entrée dans le menu des commandes de kshowmail. +Le nom de cette entrée doit être "complain" ! +Autrement, la commande ne sera pas reconnue correctement. +Entrez le texte suivant en tant que ligne de commande: + spam.pl -d < <body> + Ceci enverra le corps du message dans spam.pl. + + L'option debug -d pourra être enlevée plus tard, si vous êtes satisfait du résultat. +Les messages de plainte seront seulement envoyés à ce moment-là. +Ajoutez d'autres options comme vous le souhaitez. + Faites attention de choisir les bonnes entrées dans le fichier ~/.spam/friends. +Au moins le domaine local devra être renseigné. +Utilisez cette fonction à vos risques et périls ! + Lorsque vous presserez le bouton "Envoyer un message de plainte", un ou plusieurs messages de plainte seront générés et envoyés +immédiatement pour chacun des messages sélectionnés. +Le destinataire de ces messages sera déterminé par spam.pl. +Aussi longtemps que l'option -d sera activée, seul un message sera affiché pour indiquer ce qui se passera. +Pour activer la fonction, enlevez l'indicateur de debug. + Si vous préférez d'autres programmes antispam, essayez de les installer d'une manière identique. +Contactez-moi si vous deviez rencontrer un quelconque problème. + + + + +Questions et réponses + + + +&reporting.bugs; +&updating.documentation; + + + + +A venir. + + +A venir. + + + + + + + + + +Credits et Licence + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Contributeurs: + + +Manfred Haertel Manfred.Haertel@rz-online.de +qui a écrit la version originale en ligne de commande. + + + + +Nicolas Vignal nicolas.vignal@fnac.net qui a fourni les RPM's pour RedHat, +et la traduction française. + + + + +Edgardo Garcia edyx@mindless.com qui a fourni la traduction espagnole. + + + + +Mattias Newzella newzella@swipnet.se qui a fourni la traduction suédoise. + + + + +Beaucoup d'autres utilisateurs ont longuement testé le programme et ont apporté nombre d'idées +qui font maintenant partie de kshowmail. +A vous tous, je vous dis "merci" ! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installation + + +Comment obtenir Kshowmail ? + + +La version actuelle peut être récupérée à + +http://sourceforge.net/projects/kshowmail/ +ou à +http://freshmeat.net + + + + + +Eléments requis + + + + +Afin de pouvoir utiliser avec succès Kshowmail, vous avez besoin de Qt 3.x.x et KDE 3.x.x. + + + + +Vous trouverez la liste des modifications à + +http://sourceforge.net/projects/kshowmail + + + + +Compilation et installation + + +Afin de pouvoir compiler et installer Kshowmail sur votre système, tapez les commandes suivantes +dans le répertoire racine de Kshowmail: + +% ./configure +% make +% make install + + + +Kshowmail utilisant autoconf et automake, vous ne devriez rencontrer aucun problème lors de la compilation. +Si vous deviez malgré tout en rencontrer, merci de bien vouloir me les rapporter. + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/html/AlertDlg_8cpp-source.html b/doc/html/AlertDlg_8cpp-source.html new file mode 100644 index 0000000..30a0afa --- /dev/null +++ b/doc/html/AlertDlg_8cpp-source.html @@ -0,0 +1,296 @@ + + +kshowmail: kshowmail/AlertDlg.cpp Source File + + + + +
+
+ +

AlertDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file './AlertDlg.ui'
+00005 **
+00006 ** Created: Fr Jun 29 22:08:57 2007
+00007 **      by: The User Interface Compiler ($Id: AlertDlg_8cpp-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "AlertDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qlabel.h>
+00017 #include <qlayout.h>
+00018 #include <qtooltip.h>
+00019 #include <qwhatsthis.h>
+00020 #include <qimage.h>
+00021 #include <qpixmap.h>
+00022 
+00023 static const char* const img0_AlertDlg[] = { 
+00024 "48 48 114 2",
+00025 "Qt c None",
+00026 ".D c #000000",
+00027 ".2 c #101c18",
+00028 "#e c #101c20",
+00029 ".U c #102020",
+00030 ".Z c #103820",
+00031 "#c c #181c20",
+00032 "#d c #201810",
+00033 "#b c #201c20",
+00034 ".6 c #202020",
+00035 "#S c #202810",
+00036 "#C c #204841",
+00037 ".M c #313000",
+00038 "#K c #313029",
+00039 ".J c #313031",
+00040 "#T c #313839",
+00041 "#M c #313841",
+00042 "#p c #413041",
+00043 "#J c #414000",
+00044 ".O c #414841",
+00045 ".1 c #4a3808",
+00046 ".N c #524c52",
+00047 ".r c #525052",
+00048 ".R c #525952",
+00049 "#y c #527973",
+00050 "#q c #52814a",
+00051 "#B c #528152",
+00052 "#L c #5a6152",
+00053 "#z c #622429",
+00054 ".7 c #624852",
+00055 "#I c #626152",
+00056 "#V c #626162",
+00057 ".E c #626973",
+00058 "#x c #6a3000",
+00059 ".t c #733062",
+00060 ".v c #734052",
+00061 "#o c #736973",
+00062 "#n c #737562",
+00063 ".s c #737583",
+00064 "#U c #737983",
+00065 "#A c #835d6a",
+00066 ".S c #836131",
+00067 ".T c #946931",
+00068 "#D c #9491a4",
+00069 "#l c #94aab4",
+00070 "#v c #9caea4",
+00071 ".K c #a44052",
+00072 "#w c #a49994",
+00073 "#j c #a4aac5",
+00074 "#k c #a4b2a4",
+00075 "#i c #a4c2a4",
+00076 "#E c #a4e2b4",
+00077 ".L c #b44831",
+00078 ".5 c #b47952",
+00079 "#G c #bd8983",
+00080 ".o c #bde2c5",
+00081 ".0 c #c57973",
+00082 ".u c #c5c2d5",
+00083 ".p c #c5cac5",
+00084 ".q c #c5d2f6",
+00085 ".C c #c5e2c5",
+00086 ".8 c #d58173",
+00087 "#H c #d5ae9c",
+00088 "#t c #d5c6bd",
+00089 ".l c #d5d2d5",
+00090 ".i c #d5ded5",
+00091 ".k c #d5e2d5",
+00092 ".h c #d5eede",
+00093 ".F c #d5eee6",
+00094 ".w c #d5f2e6",
+00095 "#r c #de6d6a",
+00096 "#F c #de958b",
+00097 "#O c #dea5a4",
+00098 ".3 c #deaea4",
+00099 "#. c #deb2a4",
+00100 ".Y c #deba62",
+00101 "#u c #debab4",
+00102 "#g c #decabd",
+00103 ".m c #dedabd",
+00104 ".e c #dee2e6",
+00105 "#s c #e61818",
+00106 ".P c #e67d73",
+00107 "#Q c #e6898b",
+00108 "#a c #e68d8b",
+00109 ".Q c #e69141",
+00110 ".W c #e6958b",
+00111 "#f c #e69594",
+00112 ".n c #e6dac5",
+00113 ".j c #e6e2d5",
+00114 ".c c #e6e2e6",
+00115 ".f c #e6f2cd",
+00116 ".g c #e6f2d5",
+00117 ".d c #e6fae6",
+00118 ".# c #e6fff6",
+00119 "#N c #ee655a",
+00120 ".B c #ee6962",
+00121 ".x c #ee7d7b",
+00122 "#P c #eeba9c",
+00123 "#R c #f61810",
+00124 ".y c #f63431",
+00125 ".4 c #f64441",
+00126 ".V c #f64841",
+00127 ".X c #f64c4a",
+00128 "#m c #f6504a",
+00129 ".9 c #f66562",
+00130 ".H c #f67d73",
+00131 ".b c #f6f2f6",
+00132 ".a c #f6fff6",
+00133 ".z c #ff0000",
+00134 ".I c #ff1810",
+00135 "#h c #ff1818",
+00136 ".A c #ff1c18",
+00137 "## c #ff3031",
+00138 ".G c #ff4c4a",
+00139 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00140 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00141 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00142 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00143 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00144 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00145 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00146 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00147 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00148 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00149 "Qt.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.a.#.aQtQtQtQtQt",
+00150 "Qt.b.c.d.e.d.c.c.e.c.c.c.f.c.g.c.h.c.i.c.i.j.i.k.i.j.i.k.i.l.i.l.m.l.n.l.o.l.p.l.p.q.#.r.sQtQtQt",
+00151 "Qt.#.b.t.t.u.t.u.t.v.c.c.c.c.c.w.c.w.c.w.x.y.z.z.A.B.k.k.k.k.k.l.k.l.k.l.C.l.p.l.q.C.#.D.r.EQtQt",
+00152 "Qt.a.e.d.c.c.e.c.c.c.f.c.g.c.h.c.F.c.h.G.z.z.i.H.z.z.I.k.i.k.m.l.n.l.o.C.J.K.L.K.M.q.#.D.N.OQtQt",
+00153 "Qt.#.b.t.t.t.c.t.c.t.t.c.c.w.c.w.c.w.x.z.z.z.k.w.z.z.z.P.k.l.k.l.k.C.l.l.Q.n.R.S.T.p.#.D.U.OQtQt",
+00154 "Qt.b.c.c.e.c.c.c.f.c.g.c.h.c.F.c.h.j.V.z.z.z.W.k.z.z.z.X.m.l.n.l.o.l.C.C.Y.Z.v.0.1.q.#.D.2.OQtQt",
+00155 "Qt.#.c.t.t.v.c.t.c.v.t.t.t.w.c.w.k.w.x.z.z.z.k.3.z.z.z.4.k.l.k.C.l.C.l.l.5.6.Z.7.8.C.#.D.U.OQtQt",
+00156 "Qt.a.e.d.c.c.f.c.g.c.f.c.g.c.h.j.i.j.i.9.V#..i##.z.z.z#a.n.l.m.l.n.l.o.C#b.Z#c.Z#d.p.#.D#e.OQtQt",
+00157 "Qt.#.b.c.c.c.c.c.c.c.c.c.c.w.c.w.c.w.k.w.k.k#f.z.z.z.A.k.k.l.l.l.l.C.p.C.l.C.p.C.p.p.#.D.U.OQtQt",
+00158 "Qt.b.c.c.e.c.c.c.f.c.g.c.h.c.i.c.i.j.i.k.i#g#h.z.z.z.3.l.m.l.n.l.o.l.p.l.p.q.p.p.p.l.#.D.2.OQtQt",
+00159 "Qt.#.c.c.c.c.c.c.c.c.c#i#j.w.c#k.k#k.k#l.k#m.z.z.A.W.k.l.k.l.k.C.l.C.p.C.p.C.p.p.p.k.#.D.U.OQtQt",
+00160 "Qt.a.e.c.c.c.f.c.g.c.h.D#n#o.o.q#n#p#q.D#r.z.z#s#t.k.m.l.n.l.o.l.C.l.o.q.p.q.p.q.p.k.#.D#e.OQtQt",
+00161 "Qt.#.c.c.c.c.c.c.c.w.k.w.k.w.k.w.k.w.k#u.z.z.x.k.k.l.k.l.k.C.l.C.l.C.p.C.p.p.p.p.p.k.#.D.U.OQtQt",
+00162 "Qt.b.c.c.f.c.g.c.h.c.F#o#q.j.i#p#v#w.J##.I#x.i#w.m.l.n#p.o.l.C.l.o.q.p.p.p.q.p.p.p.l.#.D.2.OQtQt",
+00163 "Qt.#.c.c.c.c.c.w.c.w.c#y.p#y#p#l.D.C#z.z#A.D.k#B#w.D.k#C#D.C.l.C.p.C.p.C.p.C.p#E.p.k.#.D.U.OQtQt",
+00164 "Qt.a.f.c.g.c.h.c.F.c.i.j.i.j.i.j.i.j#F.G.i.j.i.j.i.j.i.j.C.l.o.q.p.q.p.q.p.p.p.p.C.k.#.D#e.OQtQt",
+00165 "Qt.#.c.c.c.w.c.w.c.w.k#y.l.D#k.C#p.C#G#H#o#l.k.l#o.w.E.l#o.J.p#B.l.J.p.C.p.p.p.p.l.k.#.D.U.OQtQt",
+00166 "Qt.b.g.c.h.c.F.c.h.j.i#o#q.q#B#k#q#o.J#o.o.D#I.l#q#J#I.l#K#J#I#I#L#J.p.p.p.u.p.p.o.l.#.D.2#MQtQt",
+00167 "Qt.#.c.w.c.w.c.w.k.w.k.w.k.w.k.k.k#N.z.z.9.l.k.C.l.C.l.C.p.C.p.C.p.C.p.p.p.p.p#E.p.k.#.D.U#MQtQt",
+00168 "Qt.a.f.c.g.c.h.j.i.j.i.j.i.k.i.k.3.z.z.z.z#O.m.l.n.l.o.q.p.q.p.q.p.p.p.p.p.p#P.u.C.k.#.D#e#MQtQt",
+00169 "Qt.#.c.c.c.w.c.w.c.w.k.w.k.k.k.k#f.z.z.z.z#Q.l.l.l.C.l.C.l.C.p.C.p.p.p.p.p#E.p#E.l.k.#.D.U#MQtQt",
+00170 "Qt.b.g.c.h.c.i.c.i.j.i.k.i.k.i.k.i#h.z.z#R.l.n.l.o.l.p.l.p.q.p.p.p.p.p.l.o.l.p.l.o.l.#.D.2#MQtQt",
+00171 "Qt.#.c.w.c.w.c.w.k.w.k.k.k.w.k.l.k.k#f#Q.k.k.k.l.k.k.k.l.k.k.k.l.k.k.k.l.k.k.k.l.k.k.#.D.U#MQtQt",
+00172 "Qt.a.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.D#e#MQtQt",
+00173 "QtQt.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.U#MQtQt",
+00174 "QtQt.s.r#S#S#S#S#S#S#S#S#S#S#S.U.2.U#e.U.2.U#e.U.2.U#e.U.2.U#e.U.2.U#e.U.2.U#e.U.2.U#e.U#T#MQtQt",
+00175 "QtQtQt#U#U.r.r.r.r.r.r.r.r.r.r.r.r.r.r.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O#M#M#M#M#M#M#M#M#M#M#M#VQtQt",
+00176 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00177 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00178 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00179 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00180 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00181 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00182 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00183 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00184 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00185 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
+00186 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"};
+00187 
+00188 
+00189 /*
+00190  *  Constructs a AlertDlg as a child of 'parent', with the
+00191  *  name 'name' and widget flags set to 'f'.
+00192  *
+00193  *  The dialog will by default be modeless, unless you set 'modal' to
+00194  *  TRUE to construct a modal dialog.
+00195  */
+00196 AlertDlg::AlertDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00197     : QDialog( parent, name, modal, fl ),
+00198       image0( (const char **) img0_AlertDlg )
+00199 {
+00200     if ( !name )
+00201        setName( "AlertDlg" );
+00202     AlertDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "AlertDlgLayout"); 
+00203 
+00204     m_ButtonIgnore = new QPushButton( this, "m_ButtonIgnore" );
+00205 
+00206     AlertDlgLayout->addWidget( m_ButtonIgnore, 2, 2 );
+00207 
+00208     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00209 
+00210     AlertDlgLayout->addMultiCellWidget( m_ButtonOk, 2, 2, 0, 1 );
+00211 
+00212     PixmapLabel2 = new QLabel( this, "PixmapLabel2" );
+00213     PixmapLabel2->setPixmap( image0 );
+00214     PixmapLabel2->setScaledContents( TRUE );
+00215 
+00216     AlertDlgLayout->addMultiCellWidget( PixmapLabel2, 0, 1, 0, 0 );
+00217 
+00218     QLabel_1 = new QLabel( this, "QLabel_1" );
+00219     QFont QLabel_1_font(  QLabel_1->font() );
+00220     QLabel_1_font.setPointSize( 14 );
+00221     QLabel_1_font.setBold( TRUE );
+00222     QLabel_1_font.setItalic( TRUE );
+00223     QLabel_1->setFont( QLabel_1_font ); 
+00224 
+00225     AlertDlgLayout->addMultiCellWidget( QLabel_1, 0, 0, 1, 2 );
+00226 
+00227     QLabel_2 = new QLabel( this, "QLabel_2" );
+00228     QFont QLabel_2_font(  QLabel_2->font() );
+00229     QLabel_2_font.setPointSize( 14 );
+00230     QLabel_2_font.setBold( TRUE );
+00231     QLabel_2_font.setItalic( TRUE );
+00232     QLabel_2->setFont( QLabel_2_font ); 
+00233 
+00234     AlertDlgLayout->addMultiCellWidget( QLabel_2, 1, 1, 1, 2 );
+00235     languageChange();
+00236     resize( QSize(271, 127).expandedTo(minimumSizeHint()) );
+00237     clearWState( WState_Polished );
+00238 
+00239     // signals and slots connections
+00240     connect( m_ButtonIgnore, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00241     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
+00242     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) );
+00243 
+00244     // tab order
+00245     setTabOrder( m_ButtonOk, m_ButtonIgnore );
+00246 }
+00247 
+00248 /*
+00249  *  Destroys the object and frees any allocated resources
+00250  */
+00251 AlertDlg::~AlertDlg()
+00252 {
+00253     // no need to delete child widgets, Qt does it all for us
+00254 }
+00255 
+00256 /*
+00257  *  Sets the strings of the subwidgets using the current
+00258  *  language.
+00259  */
+00260 void AlertDlg::languageChange()
+00261 {
+00262     setCaption( tr2i18n( "KShowmail" ) );
+00263     m_ButtonIgnore->setText( tr2i18n( "Ignore" ) );
+00264     m_ButtonOk->setText( tr2i18n( "Show main window" ) );
+00265     QLabel_1->setText( tr2i18n( "New mail" ) );
+00266     QLabel_2->setText( tr2i18n( "has arrived !" ) );
+00267 }
+00268 
+00269 void AlertDlg::slotOk()
+00270 {
+00271     qWarning( "AlertDlg::slotOk(): Not implemented yet" );
+00272 }
+00273 
+00274 #include "AlertDlg.moc"
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/AlertDlg_8h-source.html b/doc/html/AlertDlg_8h-source.html new file mode 100644 index 0000000..37b166d --- /dev/null +++ b/doc/html/AlertDlg_8h-source.html @@ -0,0 +1,79 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/AlertDlg.h Source File + + + + +
+
+
+
+ +

AlertDlg.h

Go to the documentation of this file.
00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file './AlertDlg.ui'
+00003 **
+00004 ** Created: Di Apr 1 21:55:26 2008
+00005 **      by: The User Interface Compiler ($Id: AlertDlg_8h-source.html,v 1.13 2009/02/24 20:22:47 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef ALERTDLG_H
+00011 #define ALERTDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qpixmap.h>
+00015 #include <qdialog.h>
+00016 
+00017 class QVBoxLayout;
+00018 class QHBoxLayout;
+00019 class QGridLayout;
+00020 class QSpacerItem;
+00021 class QPushButton;
+00022 class QLabel;
+00023 
+00024 class AlertDlg : public QDialog
+00025 {
+00026     Q_OBJECT
+00027 
+00028 public:
+00029     AlertDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00030     ~AlertDlg();
+00031 
+00032     QPushButton* m_ButtonIgnore;
+00033     QPushButton* m_ButtonOk;
+00034     QLabel* PixmapLabel2;
+00035     QLabel* QLabel_1;
+00036     QLabel* QLabel_2;
+00037 
+00038 public slots:
+00039     virtual void slotOk();
+00040 
+00041 protected:
+00042     QGridLayout* AlertDlgLayout;
+00043 
+00044 protected slots:
+00045     virtual void languageChange();
+00046 
+00047 private:
+00048     QPixmap image0;
+00049 
+00050 };
+00051 
+00052 #endif // ALERTDLG_H
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/AlertDlg_8moc-source.html b/doc/html/AlertDlg_8moc-source.html new file mode 100644 index 0000000..9f63528 --- /dev/null +++ b/doc/html/AlertDlg_8moc-source.html @@ -0,0 +1,126 @@ + + +kshowmail: kshowmail/AlertDlg.moc Source File + + + + +
+
+ +

AlertDlg.moc

00001 /****************************************************************************
+00002 ** AlertDlg meta object code from reading C++ file 'AlertDlg.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:08:57 2007
+00005 **      by: The Qt MOC ($Id: AlertDlg_8moc-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "AlertDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *AlertDlg::className() const
+00023 {
+00024     return "AlertDlg";
+00025 }
+00026 
+00027 QMetaObject *AlertDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_AlertDlg( "AlertDlg", &AlertDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString AlertDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "AlertDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString AlertDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "AlertDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* AlertDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotOk", 0, 0 };
+00056     static const QUMethod slot_1 = {"languageChange", 0, 0 };
+00057     static const QMetaData slot_tbl[] = {
+00058        { "slotOk()", &slot_0, QMetaData::Public },
+00059        { "languageChange()", &slot_1, QMetaData::Protected }
+00060     };
+00061     metaObj = QMetaObject::new_metaobject(
+00062        "AlertDlg", parentObject,
+00063        slot_tbl, 2,
+00064        0, 0,
+00065 #ifndef QT_NO_PROPERTIES
+00066        0, 0,
+00067        0, 0,
+00068 #endif // QT_NO_PROPERTIES
+00069        0, 0 );
+00070     cleanUp_AlertDlg.setMetaObject( metaObj );
+00071     return metaObj;
+00072 }
+00073 
+00074 void* AlertDlg::qt_cast( const char* clname )
+00075 {
+00076     if ( !qstrcmp( clname, "AlertDlg" ) )
+00077        return this;
+00078     return QDialog::qt_cast( clname );
+00079 }
+00080 
+00081 bool AlertDlg::qt_invoke( int _id, QUObject* _o )
+00082 {
+00083     switch ( _id - staticMetaObject()->slotOffset() ) {
+00084     case 0: slotOk(); break;
+00085     case 1: languageChange(); break;
+00086     default:
+00087        return QDialog::qt_invoke( _id, _o );
+00088     }
+00089     return TRUE;
+00090 }
+00091 
+00092 bool AlertDlg::qt_emit( int _id, QUObject* _o )
+00093 {
+00094     return QDialog::qt_emit(_id,_o);
+00095 }
+00096 #ifndef QT_NO_PROPERTIES
+00097 
+00098 bool AlertDlg::qt_property( int id, int f, QVariant* v)
+00099 {
+00100     return QDialog::qt_property( id, f, v);
+00101 }
+00102 
+00103 bool AlertDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00104 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/CommandDlg_8cpp-source.html b/doc/html/CommandDlg_8cpp-source.html new file mode 100644 index 0000000..d1c77e0 --- /dev/null +++ b/doc/html/CommandDlg_8cpp-source.html @@ -0,0 +1,186 @@ + + +kshowmail: kshowmail/CommandDlg.cpp Source File + + + + +
+
+ +

CommandDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/CommandDlg.ui'
+00005 **
+00006 ** Created: Di Mai 15 19:57:53 2007
+00007 **      by: The User Interface Compiler ($Id: CommandDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "CommandDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qgroupbox.h>
+00017 #include <qcombobox.h>
+00018 #include <qlayout.h>
+00019 #include <qtooltip.h>
+00020 #include <qwhatsthis.h>
+00021 
+00022 /*
+00023  *  Constructs a CommandDlg as a child of 'parent', with the
+00024  *  name 'name' and widget flags set to 'f'.
+00025  *
+00026  *  The dialog will by default be modeless, unless you set 'modal' to
+00027  *  TRUE to construct a modal dialog.
+00028  */
+00029 CommandDlg::CommandDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00030     : QDialog( parent, name, modal, fl )
+00031 {
+00032     if ( !name )
+00033        setName( "CommandDlg" );
+00034     setSizeGripEnabled( FALSE );
+00035     CommandDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "CommandDlgLayout"); 
+00036 
+00037     Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); 
+00038     Spacer11 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00039     Layout6->addItem( Spacer11 );
+00040 
+00041     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00042     Layout6->addWidget( m_ButtonOk );
+00043 
+00044     m_ButtonCancel = new QPushButton( this, "m_ButtonCancel" );
+00045     Layout6->addWidget( m_ButtonCancel );
+00046 
+00047     CommandDlgLayout->addLayout( Layout6, 1, 0 );
+00048 
+00049     QGroupBox_1 = new QGroupBox( this, "QGroupBox_1" );
+00050     QGroupBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, QGroupBox_1->sizePolicy().hasHeightForWidth() ) );
+00051     QGroupBox_1->setColumnLayout(0, Qt::Vertical );
+00052     QGroupBox_1->layout()->setSpacing( 6 );
+00053     QGroupBox_1->layout()->setMargin( 11 );
+00054     QGroupBox_1Layout = new QGridLayout( QGroupBox_1->layout() );
+00055     QGroupBox_1Layout->setAlignment( Qt::AlignTop );
+00056 
+00057     m_ButtonAdd = new QPushButton( QGroupBox_1, "m_ButtonAdd" );
+00058     m_ButtonAdd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, m_ButtonAdd->sizePolicy().hasHeightForWidth() ) );
+00059 
+00060     QGroupBox_1Layout->addWidget( m_ButtonAdd, 1, 0 );
+00061 
+00062     m_ButtonEdit = new QPushButton( QGroupBox_1, "m_ButtonEdit" );
+00063     m_ButtonEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, m_ButtonEdit->sizePolicy().hasHeightForWidth() ) );
+00064 
+00065     QGroupBox_1Layout->addWidget( m_ButtonEdit, 1, 1 );
+00066 
+00067     m_ButtonCopy = new QPushButton( QGroupBox_1, "m_ButtonCopy" );
+00068     m_ButtonCopy->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, m_ButtonCopy->sizePolicy().hasHeightForWidth() ) );
+00069 
+00070     QGroupBox_1Layout->addWidget( m_ButtonCopy, 1, 2 );
+00071 
+00072     m_ButtonDelete = new QPushButton( QGroupBox_1, "m_ButtonDelete" );
+00073     m_ButtonDelete->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, m_ButtonDelete->sizePolicy().hasHeightForWidth() ) );
+00074 
+00075     QGroupBox_1Layout->addWidget( m_ButtonDelete, 1, 3 );
+00076 
+00077     m_ComboCommand = new QComboBox( FALSE, QGroupBox_1, "m_ComboCommand" );
+00078     m_ComboCommand->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, m_ComboCommand->sizePolicy().hasHeightForWidth() ) );
+00079     m_ComboCommand->setInsertionPolicy( QComboBox::AtTop );
+00080 
+00081     QGroupBox_1Layout->addMultiCellWidget( m_ComboCommand, 0, 0, 0, 3 );
+00082 
+00083     CommandDlgLayout->addWidget( QGroupBox_1, 0, 0 );
+00084     languageChange();
+00085     resize( QSize(378, 146).expandedTo(minimumSizeHint()) );
+00086     clearWState( WState_Polished );
+00087 
+00088     // signals and slots connections
+00089     connect( m_ButtonAdd, SIGNAL( clicked() ), this, SLOT( slotAdd() ) );
+00090     connect( m_ButtonEdit, SIGNAL( clicked() ), this, SLOT( slotEdit() ) );
+00091     connect( m_ButtonCopy, SIGNAL( clicked() ), this, SLOT( slotCopy() ) );
+00092     connect( m_ButtonDelete, SIGNAL( clicked() ), this, SLOT( slotDelete() ) );
+00093     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) );
+00094     connect( m_ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00095     connect( m_ComboCommand, SIGNAL( activated(int) ), this, SLOT( slotCommandActivated(int) ) );
+00096 
+00097     // tab order
+00098     setTabOrder( m_ComboCommand, m_ButtonAdd );
+00099     setTabOrder( m_ButtonAdd, m_ButtonEdit );
+00100     setTabOrder( m_ButtonEdit, m_ButtonCopy );
+00101     setTabOrder( m_ButtonCopy, m_ButtonDelete );
+00102     setTabOrder( m_ButtonDelete, m_ButtonOk );
+00103     setTabOrder( m_ButtonOk, m_ButtonCancel );
+00104 }
+00105 
+00106 /*
+00107  *  Destroys the object and frees any allocated resources
+00108  */
+00109 CommandDlg::~CommandDlg()
+00110 {
+00111     // no need to delete child widgets, Qt does it all for us
+00112 }
+00113 
+00114 /*
+00115  *  Sets the strings of the subwidgets using the current
+00116  *  language.
+00117  */
+00118 void CommandDlg::languageChange()
+00119 {
+00120     setCaption( tr2i18n( "Command" ) );
+00121     m_ButtonOk->setText( tr2i18n( "OK" ) );
+00122     m_ButtonCancel->setText( tr2i18n( "Cancel" ) );
+00123     QGroupBox_1->setTitle( tr2i18n( "User commands" ) );
+00124     m_ButtonAdd->setText( tr2i18n( "Add" ) );
+00125     QToolTip::add( m_ButtonAdd, tr2i18n( "Add user command" ) );
+00126     m_ButtonEdit->setText( tr2i18n( "Edit" ) );
+00127     QToolTip::add( m_ButtonEdit, tr2i18n( "Edit user command" ) );
+00128     m_ButtonCopy->setText( tr2i18n( "Copy" ) );
+00129     QToolTip::add( m_ButtonCopy, tr2i18n( "Copy user command" ) );
+00130     m_ButtonDelete->setText( tr2i18n( "Delete" ) );
+00131     QToolTip::add( m_ButtonDelete, tr2i18n( "Delete user command" ) );
+00132 }
+00133 
+00134 void CommandDlg::slotCommandActivated(int)
+00135 {
+00136     qWarning( "CommandDlg::slotCommandActivated(int): Not implemented yet" );
+00137 }
+00138 
+00139 void CommandDlg::slotAdd()
+00140 {
+00141     qWarning( "CommandDlg::slotAdd(): Not implemented yet" );
+00142 }
+00143 
+00144 void CommandDlg::slotCopy()
+00145 {
+00146     qWarning( "CommandDlg::slotCopy(): Not implemented yet" );
+00147 }
+00148 
+00149 void CommandDlg::slotDelete()
+00150 {
+00151     qWarning( "CommandDlg::slotDelete(): Not implemented yet" );
+00152 }
+00153 
+00154 void CommandDlg::slotEdit()
+00155 {
+00156     qWarning( "CommandDlg::slotEdit(): Not implemented yet" );
+00157 }
+00158 
+00159 void CommandDlg::slotOk()
+00160 {
+00161     qWarning( "CommandDlg::slotOk(): Not implemented yet" );
+00162 }
+00163 
+00164 #include "CommandDlg.moc"
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/CommandDlg_8h-source.html b/doc/html/CommandDlg_8h-source.html new file mode 100644 index 0000000..5360a53 --- /dev/null +++ b/doc/html/CommandDlg_8h-source.html @@ -0,0 +1,82 @@ + + +kshowmail: kshowmail/CommandDlg.h Source File + + + + +
+
+ +

CommandDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/CommandDlg.ui'
+00003 **
+00004 ** Created: Di Mai 15 19:57:52 2007
+00005 **      by: The User Interface Compiler ($Id: CommandDlg_8h-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef COMMANDDLG_H
+00011 #define COMMANDDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 
+00016 class QVBoxLayout;
+00017 class QHBoxLayout;
+00018 class QGridLayout;
+00019 class QSpacerItem;
+00020 class QPushButton;
+00021 class QGroupBox;
+00022 class QComboBox;
+00023 
+00024 class CommandDlg : public QDialog
+00025 {
+00026     Q_OBJECT
+00027 
+00028 public:
+00029     CommandDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00030     ~CommandDlg();
+00031 
+00032     QPushButton* m_ButtonOk;
+00033     QPushButton* m_ButtonCancel;
+00034     QGroupBox* QGroupBox_1;
+00035     QPushButton* m_ButtonAdd;
+00036     QPushButton* m_ButtonEdit;
+00037     QPushButton* m_ButtonCopy;
+00038     QPushButton* m_ButtonDelete;
+00039     QComboBox* m_ComboCommand;
+00040 
+00041 public slots:
+00042     virtual void slotCommandActivated(int);
+00043     virtual void slotAdd();
+00044     virtual void slotCopy();
+00045     virtual void slotDelete();
+00046     virtual void slotEdit();
+00047     virtual void slotOk();
+00048 
+00049 protected:
+00050     QGridLayout* CommandDlgLayout;
+00051     QHBoxLayout* Layout6;
+00052     QSpacerItem* Spacer11;
+00053     QGridLayout* QGroupBox_1Layout;
+00054 
+00055 protected slots:
+00056     virtual void languageChange();
+00057 
+00058 };
+00059 
+00060 #endif // COMMANDDLG_H
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/CommandDlg_8moc-source.html b/doc/html/CommandDlg_8moc-source.html new file mode 100644 index 0000000..caed33d --- /dev/null +++ b/doc/html/CommandDlg_8moc-source.html @@ -0,0 +1,144 @@ + + +kshowmail: kshowmail/CommandDlg.moc Source File + + + + +
+
+ +

CommandDlg.moc

00001 /****************************************************************************
+00002 ** CommandDlg meta object code from reading C++ file 'CommandDlg.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: CommandDlg_8moc-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "CommandDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *CommandDlg::className() const
+00023 {
+00024     return "CommandDlg";
+00025 }
+00026 
+00027 QMetaObject *CommandDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_CommandDlg( "CommandDlg", &CommandDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString CommandDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "CommandDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString CommandDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "CommandDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* CommandDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUParameter param_slot_0[] = {
+00056        { 0, &static_QUType_int, 0, QUParameter::In }
+00057     };
+00058     static const QUMethod slot_0 = {"slotCommandActivated", 1, param_slot_0 };
+00059     static const QUMethod slot_1 = {"slotAdd", 0, 0 };
+00060     static const QUMethod slot_2 = {"slotCopy", 0, 0 };
+00061     static const QUMethod slot_3 = {"slotDelete", 0, 0 };
+00062     static const QUMethod slot_4 = {"slotEdit", 0, 0 };
+00063     static const QUMethod slot_5 = {"slotOk", 0, 0 };
+00064     static const QUMethod slot_6 = {"languageChange", 0, 0 };
+00065     static const QMetaData slot_tbl[] = {
+00066        { "slotCommandActivated(int)", &slot_0, QMetaData::Public },
+00067        { "slotAdd()", &slot_1, QMetaData::Public },
+00068        { "slotCopy()", &slot_2, QMetaData::Public },
+00069        { "slotDelete()", &slot_3, QMetaData::Public },
+00070        { "slotEdit()", &slot_4, QMetaData::Public },
+00071        { "slotOk()", &slot_5, QMetaData::Public },
+00072        { "languageChange()", &slot_6, QMetaData::Protected }
+00073     };
+00074     metaObj = QMetaObject::new_metaobject(
+00075        "CommandDlg", parentObject,
+00076        slot_tbl, 7,
+00077        0, 0,
+00078 #ifndef QT_NO_PROPERTIES
+00079        0, 0,
+00080        0, 0,
+00081 #endif // QT_NO_PROPERTIES
+00082        0, 0 );
+00083     cleanUp_CommandDlg.setMetaObject( metaObj );
+00084     return metaObj;
+00085 }
+00086 
+00087 void* CommandDlg::qt_cast( const char* clname )
+00088 {
+00089     if ( !qstrcmp( clname, "CommandDlg" ) )
+00090        return this;
+00091     return QDialog::qt_cast( clname );
+00092 }
+00093 
+00094 bool CommandDlg::qt_invoke( int _id, QUObject* _o )
+00095 {
+00096     switch ( _id - staticMetaObject()->slotOffset() ) {
+00097     case 0: slotCommandActivated((int)static_QUType_int.get(_o+1)); break;
+00098     case 1: slotAdd(); break;
+00099     case 2: slotCopy(); break;
+00100     case 3: slotDelete(); break;
+00101     case 4: slotEdit(); break;
+00102     case 5: slotOk(); break;
+00103     case 6: languageChange(); break;
+00104     default:
+00105        return QDialog::qt_invoke( _id, _o );
+00106     }
+00107     return TRUE;
+00108 }
+00109 
+00110 bool CommandDlg::qt_emit( int _id, QUObject* _o )
+00111 {
+00112     return QDialog::qt_emit(_id,_o);
+00113 }
+00114 #ifndef QT_NO_PROPERTIES
+00115 
+00116 bool CommandDlg::qt_property( int id, int f, QVariant* v)
+00117 {
+00118     return QDialog::qt_property( id, f, v);
+00119 }
+00120 
+00121 bool CommandDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00122 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/CommandEntryDlg_8cpp-source.html b/doc/html/CommandEntryDlg_8cpp-source.html new file mode 100644 index 0000000..cb77c01 --- /dev/null +++ b/doc/html/CommandEntryDlg_8cpp-source.html @@ -0,0 +1,167 @@ + + +kshowmail: kshowmail/CommandEntryDlg.cpp Source File + + + + +
+
+ +

CommandEntryDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/CommandEntryDlg.ui'
+00005 **
+00006 ** Created: Di Mai 15 19:57:54 2007
+00007 **      by: The User Interface Compiler ($Id: CommandEntryDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "CommandEntryDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qgroupbox.h>
+00016 #include <qpushbutton.h>
+00017 #include <qcheckbox.h>
+00018 #include <qlineedit.h>
+00019 #include <qlayout.h>
+00020 #include <qtooltip.h>
+00021 #include <qwhatsthis.h>
+00022 
+00023 /*
+00024  *  Constructs a CommandEntryDlg as a child of 'parent', with the
+00025  *  name 'name' and widget flags set to 'f'.
+00026  *
+00027  *  The dialog will by default be modeless, unless you set 'modal' to
+00028  *  TRUE to construct a modal dialog.
+00029  */
+00030 CommandEntryDlg::CommandEntryDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00031     : QDialog( parent, name, modal, fl )
+00032 {
+00033     if ( !name )
+00034        setName( "CommandEntryDlg" );
+00035     setSizeGripEnabled( FALSE );
+00036     CommandEntryDlgLayout = new QVBoxLayout( this, 11, 6, "CommandEntryDlgLayout"); 
+00037 
+00038     QGroupBox_1 = new QGroupBox( this, "QGroupBox_1" );
+00039     QGroupBox_1->setFrameShape( QGroupBox::Box );
+00040     QGroupBox_1->setFrameShadow( QGroupBox::Sunken );
+00041     QGroupBox_1->setColumnLayout(0, Qt::Vertical );
+00042     QGroupBox_1->layout()->setSpacing( 6 );
+00043     QGroupBox_1->layout()->setMargin( 11 );
+00044     QGroupBox_1Layout = new QGridLayout( QGroupBox_1->layout() );
+00045     QGroupBox_1Layout->setAlignment( Qt::AlignTop );
+00046 
+00047     m_ButtonPath = new QPushButton( QGroupBox_1, "m_ButtonPath" );
+00048 
+00049     QGroupBox_1Layout->addWidget( m_ButtonPath, 1, 0 );
+00050 
+00051     m_ButtonTest = new QPushButton( QGroupBox_1, "m_ButtonTest" );
+00052 
+00053     QGroupBox_1Layout->addWidget( m_ButtonTest, 0, 2 );
+00054 
+00055     m_checkModal = new QCheckBox( QGroupBox_1, "m_checkModal" );
+00056 
+00057     QGroupBox_1Layout->addMultiCellWidget( m_checkModal, 2, 2, 1, 2 );
+00058 
+00059     m_EditName = new QLineEdit( QGroupBox_1, "m_EditName" );
+00060     m_EditName->setFocusPolicy( QLineEdit::StrongFocus );
+00061 
+00062     QGroupBox_1Layout->addWidget( m_EditName, 0, 1 );
+00063 
+00064     m_EditPath = new QLineEdit( QGroupBox_1, "m_EditPath" );
+00065     m_EditPath->setFocusPolicy( QLineEdit::StrongFocus );
+00066 
+00067     QGroupBox_1Layout->addMultiCellWidget( m_EditPath, 1, 1, 1, 2 );
+00068     spacer3 = new QSpacerItem( 90, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00069     QGroupBox_1Layout->addItem( spacer3, 2, 0 );
+00070     Spacer16 = new QSpacerItem( 150, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00071     QGroupBox_1Layout->addItem( Spacer16, 0, 0 );
+00072     CommandEntryDlgLayout->addWidget( QGroupBox_1 );
+00073 
+00074     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
+00075     Spacer17 = new QSpacerItem( 207, 16, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00076     layout2->addItem( Spacer17 );
+00077 
+00078     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00079     layout2->addWidget( m_ButtonOk );
+00080 
+00081     m_ButtonCancel = new QPushButton( this, "m_ButtonCancel" );
+00082     layout2->addWidget( m_ButtonCancel );
+00083     CommandEntryDlgLayout->addLayout( layout2 );
+00084     languageChange();
+00085     resize( QSize(387, 207).expandedTo(minimumSizeHint()) );
+00086     clearWState( WState_Polished );
+00087 
+00088     // signals and slots connections
+00089     connect( m_ButtonTest, SIGNAL( clicked() ), this, SLOT( slotTest() ) );
+00090     connect( m_ButtonPath, SIGNAL( clicked() ), this, SLOT( slotPath() ) );
+00091     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) );
+00092     connect( m_ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00093 
+00094     // tab order
+00095     setTabOrder( m_EditName, m_ButtonTest );
+00096     setTabOrder( m_ButtonTest, m_ButtonPath );
+00097     setTabOrder( m_ButtonPath, m_EditPath );
+00098     setTabOrder( m_EditPath, m_checkModal );
+00099     setTabOrder( m_checkModal, m_ButtonOk );
+00100     setTabOrder( m_ButtonOk, m_ButtonCancel );
+00101 }
+00102 
+00103 /*
+00104  *  Destroys the object and frees any allocated resources
+00105  */
+00106 CommandEntryDlg::~CommandEntryDlg()
+00107 {
+00108     // no need to delete child widgets, Qt does it all for us
+00109 }
+00110 
+00111 /*
+00112  *  Sets the strings of the subwidgets using the current
+00113  *  language.
+00114  */
+00115 void CommandEntryDlg::languageChange()
+00116 {
+00117     setCaption( tr2i18n( "User command" ) );
+00118     QGroupBox_1->setTitle( tr2i18n( "Menu Entry" ) );
+00119     m_ButtonPath->setText( tr2i18n( "Command:" ) );
+00120     QToolTip::add( m_ButtonPath, tr2i18n( "Press button to select command path" ) );
+00121     m_ButtonTest->setText( tr2i18n( "Test" ) );
+00122     QToolTip::add( m_ButtonTest, tr2i18n( "Execute the command immediatly" ) );
+00123     m_checkModal->setText( tr2i18n( "Wait for command to complete" ) );
+00124     QToolTip::add( m_EditName, tr2i18n( "Enter menu entry name" ) );
+00125     QToolTip::add( m_EditPath, tr2i18n( "<qt>Enter path to selected command and arguments<br>&lt;user&gt;, &lt;server&gt;, &lt;passwd&gt;, &lt;header&gt; and &lt;body&gt; may be used as arguments</qt>" ) );
+00126     m_ButtonOk->setText( tr2i18n( "OK" ) );
+00127     m_ButtonCancel->setText( tr2i18n( "Cancel" ) );
+00128 }
+00129 
+00130 void CommandEntryDlg::slotOk()
+00131 {
+00132     qWarning( "CommandEntryDlg::slotOk(): Not implemented yet" );
+00133 }
+00134 
+00135 void CommandEntryDlg::slotPath()
+00136 {
+00137     qWarning( "CommandEntryDlg::slotPath(): Not implemented yet" );
+00138 }
+00139 
+00140 void CommandEntryDlg::slotTest()
+00141 {
+00142     qWarning( "CommandEntryDlg::slotTest(): Not implemented yet" );
+00143 }
+00144 
+00145 #include "CommandEntryDlg.moc"
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/CommandEntryDlg_8h-source.html b/doc/html/CommandEntryDlg_8h-source.html new file mode 100644 index 0000000..8c24852 --- /dev/null +++ b/doc/html/CommandEntryDlg_8h-source.html @@ -0,0 +1,82 @@ + + +kshowmail: kshowmail/CommandEntryDlg.h Source File + + + + +
+
+ +

CommandEntryDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/CommandEntryDlg.ui'
+00003 **
+00004 ** Created: Di Mai 15 19:57:53 2007
+00005 **      by: The User Interface Compiler ($Id: CommandEntryDlg_8h-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef COMMANDENTRYDLG_H
+00011 #define COMMANDENTRYDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 
+00016 class QVBoxLayout;
+00017 class QHBoxLayout;
+00018 class QGridLayout;
+00019 class QSpacerItem;
+00020 class QGroupBox;
+00021 class QPushButton;
+00022 class QCheckBox;
+00023 class QLineEdit;
+00024 
+00025 class CommandEntryDlg : public QDialog
+00026 {
+00027     Q_OBJECT
+00028 
+00029 public:
+00030     CommandEntryDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00031     ~CommandEntryDlg();
+00032 
+00033     QGroupBox* QGroupBox_1;
+00034     QPushButton* m_ButtonPath;
+00035     QPushButton* m_ButtonTest;
+00036     QCheckBox* m_checkModal;
+00037     QLineEdit* m_EditName;
+00038     QLineEdit* m_EditPath;
+00039     QPushButton* m_ButtonOk;
+00040     QPushButton* m_ButtonCancel;
+00041 
+00042 public slots:
+00043     virtual void slotOk();
+00044     virtual void slotPath();
+00045     virtual void slotTest();
+00046 
+00047 protected:
+00048     QVBoxLayout* CommandEntryDlgLayout;
+00049     QGridLayout* QGroupBox_1Layout;
+00050     QSpacerItem* spacer3;
+00051     QSpacerItem* Spacer16;
+00052     QHBoxLayout* layout2;
+00053     QSpacerItem* Spacer17;
+00054 
+00055 protected slots:
+00056     virtual void languageChange();
+00057 
+00058 };
+00059 
+00060 #endif // COMMANDENTRYDLG_H
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/CommandEntryDlg_8moc-source.html b/doc/html/CommandEntryDlg_8moc-source.html new file mode 100644 index 0000000..848ed78 --- /dev/null +++ b/doc/html/CommandEntryDlg_8moc-source.html @@ -0,0 +1,132 @@ + + +kshowmail: kshowmail/CommandEntryDlg.moc Source File + + + + +
+
+ +

CommandEntryDlg.moc

00001 /****************************************************************************
+00002 ** CommandEntryDlg meta object code from reading C++ file 'CommandEntryDlg.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:54 2007
+00005 **      by: The Qt MOC ($Id: CommandEntryDlg_8moc-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "CommandEntryDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *CommandEntryDlg::className() const
+00023 {
+00024     return "CommandEntryDlg";
+00025 }
+00026 
+00027 QMetaObject *CommandEntryDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_CommandEntryDlg( "CommandEntryDlg", &CommandEntryDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString CommandEntryDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "CommandEntryDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString CommandEntryDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "CommandEntryDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* CommandEntryDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotOk", 0, 0 };
+00056     static const QUMethod slot_1 = {"slotPath", 0, 0 };
+00057     static const QUMethod slot_2 = {"slotTest", 0, 0 };
+00058     static const QUMethod slot_3 = {"languageChange", 0, 0 };
+00059     static const QMetaData slot_tbl[] = {
+00060        { "slotOk()", &slot_0, QMetaData::Public },
+00061        { "slotPath()", &slot_1, QMetaData::Public },
+00062        { "slotTest()", &slot_2, QMetaData::Public },
+00063        { "languageChange()", &slot_3, QMetaData::Protected }
+00064     };
+00065     metaObj = QMetaObject::new_metaobject(
+00066        "CommandEntryDlg", parentObject,
+00067        slot_tbl, 4,
+00068        0, 0,
+00069 #ifndef QT_NO_PROPERTIES
+00070        0, 0,
+00071        0, 0,
+00072 #endif // QT_NO_PROPERTIES
+00073        0, 0 );
+00074     cleanUp_CommandEntryDlg.setMetaObject( metaObj );
+00075     return metaObj;
+00076 }
+00077 
+00078 void* CommandEntryDlg::qt_cast( const char* clname )
+00079 {
+00080     if ( !qstrcmp( clname, "CommandEntryDlg" ) )
+00081        return this;
+00082     return QDialog::qt_cast( clname );
+00083 }
+00084 
+00085 bool CommandEntryDlg::qt_invoke( int _id, QUObject* _o )
+00086 {
+00087     switch ( _id - staticMetaObject()->slotOffset() ) {
+00088     case 0: slotOk(); break;
+00089     case 1: slotPath(); break;
+00090     case 2: slotTest(); break;
+00091     case 3: languageChange(); break;
+00092     default:
+00093        return QDialog::qt_invoke( _id, _o );
+00094     }
+00095     return TRUE;
+00096 }
+00097 
+00098 bool CommandEntryDlg::qt_emit( int _id, QUObject* _o )
+00099 {
+00100     return QDialog::qt_emit(_id,_o);
+00101 }
+00102 #ifndef QT_NO_PROPERTIES
+00103 
+00104 bool CommandEntryDlg::qt_property( int id, int f, QVariant* v)
+00105 {
+00106     return QDialog::qt_property( id, f, v);
+00107 }
+00108 
+00109 bool CommandEntryDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00110 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/EditDlg_8cpp-source.html b/doc/html/EditDlg_8cpp-source.html new file mode 100644 index 0000000..4a36681 --- /dev/null +++ b/doc/html/EditDlg_8cpp-source.html @@ -0,0 +1,119 @@ + + +kshowmail: kshowmail/EditDlg.cpp Source File + + + + +
+
+ +

EditDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/EditDlg.ui'
+00005 **
+00006 ** Created: Di Mai 15 19:57:53 2007
+00007 **      by: The User Interface Compiler ($Id: EditDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "EditDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <ktextbrowser.h>
+00016 #include <qpushbutton.h>
+00017 #include <qlayout.h>
+00018 #include <qtooltip.h>
+00019 #include <qwhatsthis.h>
+00020 
+00021 /*
+00022  *  Constructs a EditDlg as a child of 'parent', with the
+00023  *  name 'name' and widget flags set to 'f'.
+00024  *
+00025  *  The dialog will by default be modeless, unless you set 'modal' to
+00026  *  TRUE to construct a modal dialog.
+00027  */
+00028 EditDlg::EditDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00029     : QDialog( parent, name, modal, fl )
+00030 {
+00031     if ( !name )
+00032        setName( "EditDlg" );
+00033     EditDlgLayout = new QVBoxLayout( this, 11, 6, "EditDlgLayout"); 
+00034 
+00035     headerlayout = new QGridLayout( 0, 1, 1, 0, 6, "headerlayout"); 
+00036     EditDlgLayout->addLayout( headerlayout );
+00037 
+00038     m_Edit = new KTextBrowser( this, "m_Edit" );
+00039     m_Edit->setFocusPolicy( KTextBrowser::TabFocus );
+00040     m_Edit->setTextFormat( KTextBrowser::AutoText );
+00041     m_Edit->setReadOnly( TRUE );
+00042     m_Edit->setUndoRedoEnabled( FALSE );
+00043     EditDlgLayout->addWidget( m_Edit );
+00044 
+00045     layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 
+00046 
+00047     _buttonReply = new QPushButton( this, "_buttonReply" );
+00048     layout3->addWidget( _buttonReply );
+00049     Spacer15 = new QSpacerItem( 120, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00050     layout3->addItem( Spacer15 );
+00051 
+00052     _buttonOk = new QPushButton( this, "_buttonOk" );
+00053     layout3->addWidget( _buttonOk );
+00054 
+00055     _buttonCancel = new QPushButton( this, "_buttonCancel" );
+00056     layout3->addWidget( _buttonCancel );
+00057     EditDlgLayout->addLayout( layout3 );
+00058     languageChange();
+00059     resize( QSize(444, 447).expandedTo(minimumSizeHint()) );
+00060     clearWState( WState_Polished );
+00061 
+00062     // signals and slots connections
+00063     connect( _buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
+00064     connect( _buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00065     connect( _buttonReply, SIGNAL( clicked() ), this, SLOT( slotReplyClicked() ) );
+00066 
+00067     // tab order
+00068     setTabOrder( _buttonOk, m_Edit );
+00069 }
+00070 
+00071 /*
+00072  *  Destroys the object and frees any allocated resources
+00073  */
+00074 EditDlg::~EditDlg()
+00075 {
+00076     // no need to delete child widgets, Qt does it all for us
+00077 }
+00078 
+00079 /*
+00080  *  Sets the strings of the subwidgets using the current
+00081  *  language.
+00082  */
+00083 void EditDlg::languageChange()
+00084 {
+00085     setCaption( tr2i18n( "Message" ) );
+00086     _buttonReply->setText( tr2i18n( "Reply" ) );
+00087     QToolTip::add( _buttonReply, tr2i18n( "Send reply mail" ) );
+00088     _buttonOk->setText( tr2i18n( "OK" ) );
+00089     _buttonCancel->setText( tr2i18n( "Cancel" ) );
+00090 }
+00091 
+00092 void EditDlg::slotReplyClicked()
+00093 {
+00094     qWarning( "EditDlg::slotReplyClicked(): Not implemented yet" );
+00095 }
+00096 
+00097 #include "EditDlg.moc"
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/EditDlg_8h-source.html b/doc/html/EditDlg_8h-source.html new file mode 100644 index 0000000..d45462b --- /dev/null +++ b/doc/html/EditDlg_8h-source.html @@ -0,0 +1,72 @@ + + +kshowmail: kshowmail/EditDlg.h Source File + + + + +
+
+ +

EditDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/EditDlg.ui'
+00003 **
+00004 ** Created: Di Mai 15 19:57:52 2007
+00005 **      by: The User Interface Compiler ($Id: EditDlg_8h-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef EDITDLG_H
+00011 #define EDITDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 
+00016 class QVBoxLayout;
+00017 class QHBoxLayout;
+00018 class QGridLayout;
+00019 class QSpacerItem;
+00020 class KTextBrowser;
+00021 class QPushButton;
+00022 
+00023 class EditDlg : public QDialog
+00024 {
+00025     Q_OBJECT
+00026 
+00027 public:
+00028     EditDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00029     ~EditDlg();
+00030 
+00031     KTextBrowser* m_Edit;
+00032     QPushButton* _buttonReply;
+00033     QPushButton* _buttonOk;
+00034     QPushButton* _buttonCancel;
+00035 
+00036 public slots:
+00037     virtual void slotReplyClicked();
+00038 
+00039 protected:
+00040     QVBoxLayout* EditDlgLayout;
+00041     QGridLayout* headerlayout;
+00042     QHBoxLayout* layout3;
+00043     QSpacerItem* Spacer15;
+00044 
+00045 protected slots:
+00046     virtual void languageChange();
+00047 
+00048 };
+00049 
+00050 #endif // EDITDLG_H
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/EditDlg_8moc-source.html b/doc/html/EditDlg_8moc-source.html new file mode 100644 index 0000000..9a51142 --- /dev/null +++ b/doc/html/EditDlg_8moc-source.html @@ -0,0 +1,126 @@ + + +kshowmail: kshowmail/EditDlg.moc Source File + + + + +
+
+ +

EditDlg.moc

00001 /****************************************************************************
+00002 ** EditDlg meta object code from reading C++ file 'EditDlg.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: EditDlg_8moc-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "EditDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *EditDlg::className() const
+00023 {
+00024     return "EditDlg";
+00025 }
+00026 
+00027 QMetaObject *EditDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_EditDlg( "EditDlg", &EditDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString EditDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "EditDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString EditDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "EditDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* EditDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotReplyClicked", 0, 0 };
+00056     static const QUMethod slot_1 = {"languageChange", 0, 0 };
+00057     static const QMetaData slot_tbl[] = {
+00058        { "slotReplyClicked()", &slot_0, QMetaData::Public },
+00059        { "languageChange()", &slot_1, QMetaData::Protected }
+00060     };
+00061     metaObj = QMetaObject::new_metaobject(
+00062        "EditDlg", parentObject,
+00063        slot_tbl, 2,
+00064        0, 0,
+00065 #ifndef QT_NO_PROPERTIES
+00066        0, 0,
+00067        0, 0,
+00068 #endif // QT_NO_PROPERTIES
+00069        0, 0 );
+00070     cleanUp_EditDlg.setMetaObject( metaObj );
+00071     return metaObj;
+00072 }
+00073 
+00074 void* EditDlg::qt_cast( const char* clname )
+00075 {
+00076     if ( !qstrcmp( clname, "EditDlg" ) )
+00077        return this;
+00078     return QDialog::qt_cast( clname );
+00079 }
+00080 
+00081 bool EditDlg::qt_invoke( int _id, QUObject* _o )
+00082 {
+00083     switch ( _id - staticMetaObject()->slotOffset() ) {
+00084     case 0: slotReplyClicked(); break;
+00085     case 1: languageChange(); break;
+00086     default:
+00087        return QDialog::qt_invoke( _id, _o );
+00088     }
+00089     return TRUE;
+00090 }
+00091 
+00092 bool EditDlg::qt_emit( int _id, QUObject* _o )
+00093 {
+00094     return QDialog::qt_emit(_id,_o);
+00095 }
+00096 #ifndef QT_NO_PROPERTIES
+00097 
+00098 bool EditDlg::qt_property( int id, int f, QVariant* v)
+00099 {
+00100     return QDialog::qt_property( id, f, v);
+00101 }
+00102 
+00103 bool EditDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00104 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/FilterDlg_8cpp-source.html b/doc/html/FilterDlg_8cpp-source.html new file mode 100644 index 0000000..6ce5017 --- /dev/null +++ b/doc/html/FilterDlg_8cpp-source.html @@ -0,0 +1,223 @@ + + +kshowmail: kshowmail/FilterDlg.cpp Source File + + + + +
+
+ +

FilterDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file './FilterDlg.ui'
+00005 **
+00006 ** Created: Fr Jun 29 22:08:56 2007
+00007 **      by: The User Interface Compiler ($Id: FilterDlg_8cpp-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "FilterDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qbuttongroup.h>
+00017 #include <qradiobutton.h>
+00018 #include <qgroupbox.h>
+00019 #include <qcombobox.h>
+00020 #include <qlayout.h>
+00021 #include <qtooltip.h>
+00022 #include <qwhatsthis.h>
+00023 
+00024 /*
+00025  *  Constructs a FilterDlg as a child of 'parent', with the
+00026  *  name 'name' and widget flags set to 'f'.
+00027  *
+00028  *  The dialog will by default be modeless, unless you set 'modal' to
+00029  *  TRUE to construct a modal dialog.
+00030  */
+00031 FilterDlg::FilterDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00032     : QDialog( parent, name, modal, fl )
+00033 {
+00034     if ( !name )
+00035        setName( "FilterDlg" );
+00036     setSizeGripEnabled( FALSE );
+00037     FilterDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "FilterDlgLayout"); 
+00038 
+00039     Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); 
+00040     Spacer11 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00041     Layout6->addItem( Spacer11 );
+00042 
+00043     _buttonOk = new QPushButton( this, "_buttonOk" );
+00044     Layout6->addWidget( _buttonOk );
+00045 
+00046     _buttonCancel = new QPushButton( this, "_buttonCancel" );
+00047     Layout6->addWidget( _buttonCancel );
+00048 
+00049     FilterDlgLayout->addLayout( Layout6, 2, 0 );
+00050 
+00051     buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
+00052     buttonGroup1->setColumnLayout(0, Qt::Vertical );
+00053     buttonGroup1->layout()->setSpacing( 6 );
+00054     buttonGroup1->layout()->setMargin( 11 );
+00055     buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() );
+00056     buttonGroup1Layout->setAlignment( Qt::AlignTop );
+00057 
+00058     _radioOff = new QRadioButton( buttonGroup1, "_radioOff" );
+00059 
+00060     buttonGroup1Layout->addWidget( _radioOff, 0, 0 );
+00061 
+00062     _radioOn = new QRadioButton( buttonGroup1, "_radioOn" );
+00063 
+00064     buttonGroup1Layout->addWidget( _radioOn, 1, 0 );
+00065 
+00066     _radioAuto = new QRadioButton( buttonGroup1, "_radioAuto" );
+00067 
+00068     buttonGroup1Layout->addWidget( _radioAuto, 2, 0 );
+00069 
+00070     FilterDlgLayout->addWidget( buttonGroup1, 0, 0 );
+00071 
+00072     QGroupBox_1 = new QGroupBox( this, "QGroupBox_1" );
+00073     QGroupBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, QGroupBox_1->sizePolicy().hasHeightForWidth() ) );
+00074     QGroupBox_1->setColumnLayout(0, Qt::Vertical );
+00075     QGroupBox_1->layout()->setSpacing( 6 );
+00076     QGroupBox_1->layout()->setMargin( 11 );
+00077     QGroupBox_1Layout = new QGridLayout( QGroupBox_1->layout() );
+00078     QGroupBox_1Layout->setAlignment( Qt::AlignTop );
+00079 
+00080     _comboFilter = new QComboBox( FALSE, QGroupBox_1, "_comboFilter" );
+00081     _comboFilter->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, _comboFilter->sizePolicy().hasHeightForWidth() ) );
+00082     _comboFilter->setInsertionPolicy( QComboBox::AtTop );
+00083 
+00084     QGroupBox_1Layout->addMultiCellWidget( _comboFilter, 0, 0, 0, 3 );
+00085 
+00086     _buttonAdd = new QPushButton( QGroupBox_1, "_buttonAdd" );
+00087     _buttonAdd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, _buttonAdd->sizePolicy().hasHeightForWidth() ) );
+00088 
+00089     QGroupBox_1Layout->addWidget( _buttonAdd, 1, 0 );
+00090 
+00091     _buttonEdit = new QPushButton( QGroupBox_1, "_buttonEdit" );
+00092     _buttonEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, _buttonEdit->sizePolicy().hasHeightForWidth() ) );
+00093 
+00094     QGroupBox_1Layout->addWidget( _buttonEdit, 1, 1 );
+00095 
+00096     _buttonCopy = new QPushButton( QGroupBox_1, "_buttonCopy" );
+00097     _buttonCopy->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, _buttonCopy->sizePolicy().hasHeightForWidth() ) );
+00098 
+00099     QGroupBox_1Layout->addWidget( _buttonCopy, 1, 2 );
+00100 
+00101     _buttonDelete = new QPushButton( QGroupBox_1, "_buttonDelete" );
+00102     _buttonDelete->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, _buttonDelete->sizePolicy().hasHeightForWidth() ) );
+00103 
+00104     QGroupBox_1Layout->addWidget( _buttonDelete, 1, 3 );
+00105 
+00106     FilterDlgLayout->addWidget( QGroupBox_1, 1, 0 );
+00107     languageChange();
+00108     resize( QSize(407, 255).expandedTo(minimumSizeHint()) );
+00109     clearWState( WState_Polished );
+00110 
+00111     // signals and slots connections
+00112     connect( _buttonAdd, SIGNAL( clicked() ), this, SLOT( slotAdd() ) );
+00113     connect( _buttonEdit, SIGNAL( clicked() ), this, SLOT( slotEdit() ) );
+00114     connect( _buttonCopy, SIGNAL( clicked() ), this, SLOT( slotCopy() ) );
+00115     connect( _buttonDelete, SIGNAL( clicked() ), this, SLOT( slotDelete() ) );
+00116     connect( _buttonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) );
+00117     connect( _buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00118     connect( _comboFilter, SIGNAL( activated(int) ), this, SLOT( slotFilterActivated(int) ) );
+00119     connect( _radioAuto, SIGNAL( clicked() ), this, SLOT( slotAutomaticActivated() ) );
+00120 
+00121     // tab order
+00122     setTabOrder( _comboFilter, _buttonAdd );
+00123     setTabOrder( _buttonAdd, _buttonEdit );
+00124     setTabOrder( _buttonEdit, _buttonCopy );
+00125     setTabOrder( _buttonCopy, _buttonDelete );
+00126     setTabOrder( _buttonDelete, _buttonOk );
+00127     setTabOrder( _buttonOk, _buttonCancel );
+00128 }
+00129 
+00130 /*
+00131  *  Destroys the object and frees any allocated resources
+00132  */
+00133 FilterDlg::~FilterDlg()
+00134 {
+00135     // no need to delete child widgets, Qt does it all for us
+00136 }
+00137 
+00138 /*
+00139  *  Sets the strings of the subwidgets using the current
+00140  *  language.
+00141  */
+00142 void FilterDlg::languageChange()
+00143 {
+00144     setCaption( tr2i18n( "Filters" ) );
+00145     _buttonOk->setText( tr2i18n( "OK" ) );
+00146     _buttonCancel->setText( tr2i18n( "Cancel" ) );
+00147     buttonGroup1->setTitle( tr2i18n( "Filter Status" ) );
+00148     _radioOff->setText( tr2i18n( "Off" ) );
+00149     QToolTip::add( _radioOff, tr2i18n( "Filters are switched off" ) );
+00150     _radioOn->setText( tr2i18n( "On" ) );
+00151     QToolTip::add( _radioOn, tr2i18n( "Filters are switched on" ) );
+00152     _radioAuto->setText( tr2i18n( "Automatic Delete" ) );
+00153     QToolTip::add( _radioAuto, tr2i18n( "Filters are switched on and are applied automatically" ) );
+00154     QGroupBox_1->setTitle( tr2i18n( "Filters" ) );
+00155     QToolTip::add( _comboFilter, tr2i18n( "<qt>Filters are counted for each automatic deletion;<br>Filters with high counters are listed first</qt>" ) );
+00156     _buttonAdd->setText( tr2i18n( "Add" ) );
+00157     QToolTip::add( _buttonAdd, tr2i18n( "Add filter" ) );
+00158     _buttonEdit->setText( tr2i18n( "Edit" ) );
+00159     QToolTip::add( _buttonEdit, tr2i18n( "Edit filter" ) );
+00160     _buttonCopy->setText( tr2i18n( "Copy" ) );
+00161     QToolTip::add( _buttonCopy, tr2i18n( "Copy filter" ) );
+00162     _buttonDelete->setText( tr2i18n( "Delete" ) );
+00163     QToolTip::add( _buttonDelete, tr2i18n( "Delete filter" ) );
+00164 }
+00165 
+00166 void FilterDlg::slotAdd()
+00167 {
+00168     qWarning( "FilterDlg::slotAdd(): Not implemented yet" );
+00169 }
+00170 
+00171 void FilterDlg::slotCopy()
+00172 {
+00173     qWarning( "FilterDlg::slotCopy(): Not implemented yet" );
+00174 }
+00175 
+00176 void FilterDlg::slotDelete()
+00177 {
+00178     qWarning( "FilterDlg::slotDelete(): Not implemented yet" );
+00179 }
+00180 
+00181 void FilterDlg::slotEdit()
+00182 {
+00183     qWarning( "FilterDlg::slotEdit(): Not implemented yet" );
+00184 }
+00185 
+00186 void FilterDlg::slotOk()
+00187 {
+00188     qWarning( "FilterDlg::slotOk(): Not implemented yet" );
+00189 }
+00190 
+00191 void FilterDlg::slotFilterActivated(int)
+00192 {
+00193     qWarning( "FilterDlg::slotFilterActivated(int): Not implemented yet" );
+00194 }
+00195 
+00196 void FilterDlg::slotAutomaticActivated()
+00197 {
+00198     qWarning( "FilterDlg::slotAutomaticActivated(): Not implemented yet" );
+00199 }
+00200 
+00201 #include "FilterDlg.moc"
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/FilterDlg_8h-source.html b/doc/html/FilterDlg_8h-source.html new file mode 100644 index 0000000..b4dfc31 --- /dev/null +++ b/doc/html/FilterDlg_8h-source.html @@ -0,0 +1,90 @@ + + +kshowmail: kshowmail/FilterDlg.h Source File + + + + +
+
+ +

FilterDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file './FilterDlg.ui'
+00003 **
+00004 ** Created: Fr Jun 29 22:08:23 2007
+00005 **      by: The User Interface Compiler ($Id: FilterDlg_8h-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef FILTERDLG_H
+00011 #define FILTERDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 
+00016 class QVBoxLayout;
+00017 class QHBoxLayout;
+00018 class QGridLayout;
+00019 class QSpacerItem;
+00020 class QPushButton;
+00021 class QButtonGroup;
+00022 class QRadioButton;
+00023 class QGroupBox;
+00024 class QComboBox;
+00025 
+00026 class FilterDlg : public QDialog
+00027 {
+00028     Q_OBJECT
+00029 
+00030 public:
+00031     FilterDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00032     ~FilterDlg();
+00033 
+00034     QPushButton* _buttonOk;
+00035     QPushButton* _buttonCancel;
+00036     QButtonGroup* buttonGroup1;
+00037     QRadioButton* _radioOff;
+00038     QRadioButton* _radioOn;
+00039     QRadioButton* _radioAuto;
+00040     QGroupBox* QGroupBox_1;
+00041     QComboBox* _comboFilter;
+00042     QPushButton* _buttonAdd;
+00043     QPushButton* _buttonEdit;
+00044     QPushButton* _buttonCopy;
+00045     QPushButton* _buttonDelete;
+00046 
+00047 public slots:
+00048     virtual void slotAdd();
+00049     virtual void slotCopy();
+00050     virtual void slotDelete();
+00051     virtual void slotEdit();
+00052     virtual void slotOk();
+00053     virtual void slotFilterActivated(int);
+00054     virtual void slotAutomaticActivated();
+00055 
+00056 protected:
+00057     QGridLayout* FilterDlgLayout;
+00058     QHBoxLayout* Layout6;
+00059     QSpacerItem* Spacer11;
+00060     QGridLayout* buttonGroup1Layout;
+00061     QGridLayout* QGroupBox_1Layout;
+00062 
+00063 protected slots:
+00064     virtual void languageChange();
+00065 
+00066 };
+00067 
+00068 #endif // FILTERDLG_H
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/FilterDlg_8moc-source.html b/doc/html/FilterDlg_8moc-source.html new file mode 100644 index 0000000..7fd3c59 --- /dev/null +++ b/doc/html/FilterDlg_8moc-source.html @@ -0,0 +1,147 @@ + + +kshowmail: kshowmail/FilterDlg.moc Source File + + + + +
+
+ +

FilterDlg.moc

00001 /****************************************************************************
+00002 ** FilterDlg meta object code from reading C++ file 'FilterDlg.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:08:56 2007
+00005 **      by: The Qt MOC ($Id: FilterDlg_8moc-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "FilterDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *FilterDlg::className() const
+00023 {
+00024     return "FilterDlg";
+00025 }
+00026 
+00027 QMetaObject *FilterDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_FilterDlg( "FilterDlg", &FilterDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString FilterDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "FilterDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString FilterDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "FilterDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* FilterDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotAdd", 0, 0 };
+00056     static const QUMethod slot_1 = {"slotCopy", 0, 0 };
+00057     static const QUMethod slot_2 = {"slotDelete", 0, 0 };
+00058     static const QUMethod slot_3 = {"slotEdit", 0, 0 };
+00059     static const QUMethod slot_4 = {"slotOk", 0, 0 };
+00060     static const QUParameter param_slot_5[] = {
+00061        { 0, &static_QUType_int, 0, QUParameter::In }
+00062     };
+00063     static const QUMethod slot_5 = {"slotFilterActivated", 1, param_slot_5 };
+00064     static const QUMethod slot_6 = {"slotAutomaticActivated", 0, 0 };
+00065     static const QUMethod slot_7 = {"languageChange", 0, 0 };
+00066     static const QMetaData slot_tbl[] = {
+00067        { "slotAdd()", &slot_0, QMetaData::Public },
+00068        { "slotCopy()", &slot_1, QMetaData::Public },
+00069        { "slotDelete()", &slot_2, QMetaData::Public },
+00070        { "slotEdit()", &slot_3, QMetaData::Public },
+00071        { "slotOk()", &slot_4, QMetaData::Public },
+00072        { "slotFilterActivated(int)", &slot_5, QMetaData::Public },
+00073        { "slotAutomaticActivated()", &slot_6, QMetaData::Public },
+00074        { "languageChange()", &slot_7, QMetaData::Protected }
+00075     };
+00076     metaObj = QMetaObject::new_metaobject(
+00077        "FilterDlg", parentObject,
+00078        slot_tbl, 8,
+00079        0, 0,
+00080 #ifndef QT_NO_PROPERTIES
+00081        0, 0,
+00082        0, 0,
+00083 #endif // QT_NO_PROPERTIES
+00084        0, 0 );
+00085     cleanUp_FilterDlg.setMetaObject( metaObj );
+00086     return metaObj;
+00087 }
+00088 
+00089 void* FilterDlg::qt_cast( const char* clname )
+00090 {
+00091     if ( !qstrcmp( clname, "FilterDlg" ) )
+00092        return this;
+00093     return QDialog::qt_cast( clname );
+00094 }
+00095 
+00096 bool FilterDlg::qt_invoke( int _id, QUObject* _o )
+00097 {
+00098     switch ( _id - staticMetaObject()->slotOffset() ) {
+00099     case 0: slotAdd(); break;
+00100     case 1: slotCopy(); break;
+00101     case 2: slotDelete(); break;
+00102     case 3: slotEdit(); break;
+00103     case 4: slotOk(); break;
+00104     case 5: slotFilterActivated((int)static_QUType_int.get(_o+1)); break;
+00105     case 6: slotAutomaticActivated(); break;
+00106     case 7: languageChange(); break;
+00107     default:
+00108        return QDialog::qt_invoke( _id, _o );
+00109     }
+00110     return TRUE;
+00111 }
+00112 
+00113 bool FilterDlg::qt_emit( int _id, QUObject* _o )
+00114 {
+00115     return QDialog::qt_emit(_id,_o);
+00116 }
+00117 #ifndef QT_NO_PROPERTIES
+00118 
+00119 bool FilterDlg::qt_property( int id, int f, QVariant* v)
+00120 {
+00121     return QDialog::qt_property( id, f, v);
+00122 }
+00123 
+00124 bool FilterDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00125 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/FilterEntryDlg_8cpp-source.html b/doc/html/FilterEntryDlg_8cpp-source.html new file mode 100644 index 0000000..36bc851 --- /dev/null +++ b/doc/html/FilterEntryDlg_8cpp-source.html @@ -0,0 +1,332 @@ + + +kshowmail: kshowmail/FilterEntryDlg.cpp Source File + + + + +
+
+ +

FilterEntryDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file './FilterEntryDlg.ui'
+00005 **
+00006 ** Created: Fr Jun 29 22:08:54 2007
+00007 **      by: The User Interface Compiler ($Id: FilterEntryDlg_8cpp-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "FilterEntryDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qlineedit.h>
+00017 #include <qgroupbox.h>
+00018 #include <qcombobox.h>
+00019 #include <qcheckbox.h>
+00020 #include <qspinbox.h>
+00021 #include <qlayout.h>
+00022 #include <qtooltip.h>
+00023 #include <qwhatsthis.h>
+00024 
+00025 /*
+00026  *  Constructs a FilterEntryDlg as a child of 'parent', with the
+00027  *  name 'name' and widget flags set to 'f'.
+00028  *
+00029  *  The dialog will by default be modeless, unless you set 'modal' to
+00030  *  TRUE to construct a modal dialog.
+00031  */
+00032 FilterEntryDlg::FilterEntryDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00033     : QDialog( parent, name, modal, fl )
+00034 {
+00035     if ( !name )
+00036        setName( "FilterEntryDlg" );
+00037     setSizeGripEnabled( FALSE );
+00038     FilterEntryDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "FilterEntryDlgLayout"); 
+00039 
+00040     _editName = new QLineEdit( this, "_editName" );
+00041     _editName->setEnabled( TRUE );
+00042     _editName->setReadOnly( TRUE );
+00043 
+00044     FilterEntryDlgLayout->addWidget( _editName, 0, 0 );
+00045 
+00046     QGroupBox_1 = new QGroupBox( this, "QGroupBox_1" );
+00047     QGroupBox_1->setFrameShape( QGroupBox::Box );
+00048     QGroupBox_1->setFrameShadow( QGroupBox::Sunken );
+00049     QGroupBox_1->setColumnLayout(0, Qt::Vertical );
+00050     QGroupBox_1->layout()->setSpacing( 6 );
+00051     QGroupBox_1->layout()->setMargin( 11 );
+00052     QGroupBox_1Layout = new QGridLayout( QGroupBox_1->layout() );
+00053     QGroupBox_1Layout->setAlignment( Qt::AlignTop );
+00054 
+00055     _comboItem1 = new QComboBox( FALSE, QGroupBox_1, "_comboItem1" );
+00056 
+00057     QGroupBox_1Layout->addMultiCellWidget( _comboItem1, 0, 0, 0, 1 );
+00058 
+00059     _comboExpression1 = new QComboBox( FALSE, QGroupBox_1, "_comboExpression1" );
+00060 
+00061     QGroupBox_1Layout->addMultiCellWidget( _comboExpression1, 0, 0, 2, 3 );
+00062 
+00063     _editMatch1 = new QLineEdit( QGroupBox_1, "_editMatch1" );
+00064 
+00065     QGroupBox_1Layout->addMultiCellWidget( _editMatch1, 1, 1, 0, 3 );
+00066 
+00067     _comboSecondCondition = new QComboBox( FALSE, QGroupBox_1, "_comboSecondCondition" );
+00068 
+00069     QGroupBox_1Layout->addMultiCellWidget( _comboSecondCondition, 3, 3, 0, 3 );
+00070 
+00071     _checkCaseSensitive1 = new QCheckBox( QGroupBox_1, "_checkCaseSensitive1" );
+00072 
+00073     QGroupBox_1Layout->addWidget( _checkCaseSensitive1, 2, 0 );
+00074     spacer2 = new QSpacerItem( 50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00075     QGroupBox_1Layout->addItem( spacer2, 2, 1 );
+00076 
+00077     _buttonEditRegExp1 = new QPushButton( QGroupBox_1, "_buttonEditRegExp1" );
+00078 
+00079     QGroupBox_1Layout->addWidget( _buttonEditRegExp1, 2, 3 );
+00080 
+00081     _checkRegExp1 = new QCheckBox( QGroupBox_1, "_checkRegExp1" );
+00082 
+00083     QGroupBox_1Layout->addWidget( _checkRegExp1, 2, 2 );
+00084 
+00085     FilterEntryDlgLayout->addWidget( QGroupBox_1, 1, 0 );
+00086 
+00087     _groupBox2 = new QGroupBox( this, "_groupBox2" );
+00088     _groupBox2->setEnabled( FALSE );
+00089     _groupBox2->setColumnLayout(0, Qt::Vertical );
+00090     _groupBox2->layout()->setSpacing( 6 );
+00091     _groupBox2->layout()->setMargin( 11 );
+00092     _groupBox2Layout = new QGridLayout( _groupBox2->layout() );
+00093     _groupBox2Layout->setAlignment( Qt::AlignTop );
+00094 
+00095     _comboItem2 = new QComboBox( FALSE, _groupBox2, "_comboItem2" );
+00096 
+00097     _groupBox2Layout->addMultiCellWidget( _comboItem2, 0, 0, 0, 1 );
+00098 
+00099     _comboExpression2 = new QComboBox( FALSE, _groupBox2, "_comboExpression2" );
+00100 
+00101     _groupBox2Layout->addMultiCellWidget( _comboExpression2, 0, 0, 2, 3 );
+00102 
+00103     _editMatch2 = new QLineEdit( _groupBox2, "_editMatch2" );
+00104 
+00105     _groupBox2Layout->addMultiCellWidget( _editMatch2, 1, 1, 0, 3 );
+00106 
+00107     _checkCaseSensitive2 = new QCheckBox( _groupBox2, "_checkCaseSensitive2" );
+00108 
+00109     _groupBox2Layout->addWidget( _checkCaseSensitive2, 2, 0 );
+00110     spacer3 = new QSpacerItem( 140, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00111     _groupBox2Layout->addItem( spacer3, 2, 1 );
+00112 
+00113     _checkRegExp2 = new QCheckBox( _groupBox2, "_checkRegExp2" );
+00114 
+00115     _groupBox2Layout->addWidget( _checkRegExp2, 2, 2 );
+00116 
+00117     _buttonEditRegExp2 = new QPushButton( _groupBox2, "_buttonEditRegExp2" );
+00118 
+00119     _groupBox2Layout->addWidget( _buttonEditRegExp2, 2, 3 );
+00120 
+00121     FilterEntryDlgLayout->addWidget( _groupBox2, 2, 0 );
+00122 
+00123     Layout11 = new QHBoxLayout( 0, 0, 6, "Layout11"); 
+00124     Spacer17 = new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00125     Layout11->addItem( Spacer17 );
+00126 
+00127     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00128     Layout11->addWidget( m_ButtonOk );
+00129 
+00130     m_ButtonCancel = new QPushButton( this, "m_ButtonCancel" );
+00131     Layout11->addWidget( m_ButtonCancel );
+00132 
+00133     FilterEntryDlgLayout->addLayout( Layout11, 4, 0 );
+00134 
+00135     groupBox3 = new QGroupBox( this, "groupBox3" );
+00136     groupBox3->setColumnLayout(0, Qt::Vertical );
+00137     groupBox3->layout()->setSpacing( 6 );
+00138     groupBox3->layout()->setMargin( 11 );
+00139     groupBox3Layout = new QHBoxLayout( groupBox3->layout() );
+00140     groupBox3Layout->setAlignment( Qt::AlignTop );
+00141 
+00142     _spinCounter = new QSpinBox( groupBox3, "_spinCounter" );
+00143     _spinCounter->setMaxValue( 99999 );
+00144     groupBox3Layout->addWidget( _spinCounter );
+00145 
+00146     _buttonResetCounter = new QPushButton( groupBox3, "_buttonResetCounter" );
+00147     groupBox3Layout->addWidget( _buttonResetCounter );
+00148 
+00149     FilterEntryDlgLayout->addWidget( groupBox3, 3, 0 );
+00150     languageChange();
+00151     resize( QSize(540, 484).expandedTo(minimumSizeHint()) );
+00152     clearWState( WState_Polished );
+00153 
+00154     // signals and slots connections
+00155     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) );
+00156     connect( m_ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00157     connect( _editMatch1, SIGNAL( textChanged(const QString&) ), this, SLOT( slotMatch1Changed(const QString&) ) );
+00158     connect( _comboItem1, SIGNAL( activated(int) ), this, SLOT( slotItem1Selected(int) ) );
+00159     connect( _comboExpression1, SIGNAL( activated(int) ), this, SLOT( slotCondition1Selected(int) ) );
+00160     connect( _comboItem2, SIGNAL( activated(int) ), this, SLOT( slotItem2Selected(int) ) );
+00161     connect( _comboExpression2, SIGNAL( activated(int) ), this, SLOT( slotCondition2Selected(int) ) );
+00162     connect( _comboSecondCondition, SIGNAL( activated(int) ), this, SLOT( slotSecondCondition(int) ) );
+00163     connect( _editMatch2, SIGNAL( textChanged(const QString&) ), this, SLOT( slotMatch2Changed(const QString&) ) );
+00164     connect( _buttonResetCounter, SIGNAL( clicked() ), this, SLOT( slotResetCounter() ) );
+00165     connect( _spinCounter, SIGNAL( valueChanged(int) ), this, SLOT( slotCounterChanged(int) ) );
+00166     connect( _buttonEditRegExp1, SIGNAL( clicked() ), this, SLOT( slotEditRegExp1() ) );
+00167     connect( _buttonEditRegExp2, SIGNAL( clicked() ), this, SLOT( slotEditRegExp2() ) );
+00168     connect( _checkRegExp1, SIGNAL( toggled(bool) ), this, SLOT( slotToggleRegExp1(bool) ) );
+00169     connect( _checkRegExp2, SIGNAL( toggled(bool) ), this, SLOT( slotToggleRegExp2(bool) ) );
+00170 
+00171     // tab order
+00172     setTabOrder( m_ButtonOk, m_ButtonCancel );
+00173 }
+00174 
+00175 /*
+00176  *  Destroys the object and frees any allocated resources
+00177  */
+00178 FilterEntryDlg::~FilterEntryDlg()
+00179 {
+00180     // no need to delete child widgets, Qt does it all for us
+00181 }
+00182 
+00183 /*
+00184  *  Sets the strings of the subwidgets using the current
+00185  *  language.
+00186  */
+00187 void FilterEntryDlg::languageChange()
+00188 {
+00189     setCaption( tr2i18n( "Filter" ) );
+00190     QGroupBox_1->setTitle( tr2i18n( "Condition" ) );
+00191     _comboItem1->clear();
+00192     _comboItem1->insertItem( tr2i18n( "From" ) );
+00193     _comboItem1->insertItem( tr2i18n( "Subject" ) );
+00194     _comboItem1->insertItem( tr2i18n( "Header" ) );
+00195     _comboItem1->insertItem( tr2i18n( "Size" ) );
+00196     _comboItem1->insertItem( tr2i18n( "To" ) );
+00197     _comboExpression1->clear();
+00198     _comboExpression1->insertItem( tr2i18n( "Contains" ) );
+00199     _comboExpression1->insertItem( tr2i18n( "Doesn't contain" ) );
+00200     _comboExpression1->insertItem( tr2i18n( "Equals" ) );
+00201     _comboExpression1->insertItem( tr2i18n( "Doesn't equal" ) );
+00202     _comboExpression1->insertItem( tr2i18n( "Greater" ) );
+00203     _comboExpression1->insertItem( tr2i18n( "Less" ) );
+00204     _comboSecondCondition->clear();
+00205     _comboSecondCondition->insertItem( tr2i18n( "No more Conditions" ) );
+00206     _comboSecondCondition->insertItem( tr2i18n( "And" ) );
+00207     _comboSecondCondition->insertItem( tr2i18n( "Or" ) );
+00208     _checkCaseSensitive1->setText( tr2i18n( "Case sensitive" ) );
+00209     _buttonEditRegExp1->setText( tr2i18n( "Edit" ) );
+00210     QToolTip::add( _buttonEditRegExp1, tr2i18n( "Edit regular expression" ) );
+00211     _checkRegExp1->setText( tr2i18n( "Regular Expression" ) );
+00212     QToolTip::add( _checkRegExp1, tr2i18n( "For help about regular expressions lookup the Qt documentation" ) );
+00213     _groupBox2->setTitle( tr2i18n( "second Condition" ) );
+00214     _comboItem2->clear();
+00215     _comboItem2->insertItem( tr2i18n( "From" ) );
+00216     _comboItem2->insertItem( tr2i18n( "Subject" ) );
+00217     _comboItem2->insertItem( tr2i18n( "Header" ) );
+00218     _comboItem2->insertItem( tr2i18n( "Size" ) );
+00219     _comboItem2->insertItem( tr2i18n( "To" ) );
+00220     _comboExpression2->clear();
+00221     _comboExpression2->insertItem( tr2i18n( "Contains" ) );
+00222     _comboExpression2->insertItem( tr2i18n( "Doesn't contain" ) );
+00223     _comboExpression2->insertItem( tr2i18n( "Equals" ) );
+00224     _comboExpression2->insertItem( tr2i18n( "Doesn't equal" ) );
+00225     _comboExpression2->insertItem( tr2i18n( "Greater" ) );
+00226     _comboExpression2->insertItem( tr2i18n( "Less" ) );
+00227     _checkCaseSensitive2->setText( tr2i18n( "Case sensitive" ) );
+00228     _checkRegExp2->setText( tr2i18n( "Regular Expression" ) );
+00229     QToolTip::add( _checkRegExp2, tr2i18n( "For help about regular expressions lookup the Qt documentation" ) );
+00230     _buttonEditRegExp2->setText( tr2i18n( "Edit" ) );
+00231     QToolTip::add( _buttonEditRegExp2, tr2i18n( "Edit regular expression" ) );
+00232     m_ButtonOk->setText( tr2i18n( "OK" ) );
+00233     m_ButtonCancel->setText( tr2i18n( "Cancel" ) );
+00234     groupBox3->setTitle( tr2i18n( "Counter" ) );
+00235     QToolTip::add( _spinCounter, tr2i18n( "<qt>Filters are counted for each automatic deletion;<br>Filters with high counters are listed first</qt>" ) );
+00236     _buttonResetCounter->setText( tr2i18n( "Reset Counter" ) );
+00237     QToolTip::add( _buttonResetCounter, tr2i18n( "<qt>Filters are counted for each automatic deletion;<br>Filters with high counters are listed first</qt>" ) );
+00238 }
+00239 
+00240 void FilterEntryDlg::slotOk()
+00241 {
+00242     qWarning( "FilterEntryDlg::slotOk(): Not implemented yet" );
+00243 }
+00244 
+00245 void FilterEntryDlg::slotItem1Selected(int)
+00246 {
+00247     qWarning( "FilterEntryDlg::slotItem1Selected(int): Not implemented yet" );
+00248 }
+00249 
+00250 void FilterEntryDlg::slotItem2Selected(int)
+00251 {
+00252     qWarning( "FilterEntryDlg::slotItem2Selected(int): Not implemented yet" );
+00253 }
+00254 
+00255 void FilterEntryDlg::slotSecondCondition(int)
+00256 {
+00257     qWarning( "FilterEntryDlg::slotSecondCondition(int): Not implemented yet" );
+00258 }
+00259 
+00260 void FilterEntryDlg::slotCondition1Selected(int)
+00261 {
+00262     qWarning( "FilterEntryDlg::slotCondition1Selected(int): Not implemented yet" );
+00263 }
+00264 
+00265 void FilterEntryDlg::slotCondition2Selected(int)
+00266 {
+00267     qWarning( "FilterEntryDlg::slotCondition2Selected(int): Not implemented yet" );
+00268 }
+00269 
+00270 void FilterEntryDlg::slotMatch1Changed(const QString&)
+00271 {
+00272     qWarning( "FilterEntryDlg::slotMatch1Changed(const QString&): Not implemented yet" );
+00273 }
+00274 
+00275 void FilterEntryDlg::slotMatch2Changed(const QString&)
+00276 {
+00277     qWarning( "FilterEntryDlg::slotMatch2Changed(const QString&): Not implemented yet" );
+00278 }
+00279 
+00280 void FilterEntryDlg::slotResetCounter()
+00281 {
+00282     qWarning( "FilterEntryDlg::slotResetCounter(): Not implemented yet" );
+00283 }
+00284 
+00285 void FilterEntryDlg::slotCounterChanged(int)
+00286 {
+00287     qWarning( "FilterEntryDlg::slotCounterChanged(int): Not implemented yet" );
+00288 }
+00289 
+00290 void FilterEntryDlg::slotEditRegExp1()
+00291 {
+00292     qWarning( "FilterEntryDlg::slotEditRegExp1(): Not implemented yet" );
+00293 }
+00294 
+00295 void FilterEntryDlg::slotEditRegExp2()
+00296 {
+00297     qWarning( "FilterEntryDlg::slotEditRegExp2(): Not implemented yet" );
+00298 }
+00299 
+00300 void FilterEntryDlg::slotToggleRegExp1(bool)
+00301 {
+00302     qWarning( "FilterEntryDlg::slotToggleRegExp1(bool): Not implemented yet" );
+00303 }
+00304 
+00305 void FilterEntryDlg::slotToggleRegExp2(bool)
+00306 {
+00307     qWarning( "FilterEntryDlg::slotToggleRegExp2(bool): Not implemented yet" );
+00308 }
+00309 
+00310 #include "FilterEntryDlg.moc"
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/FilterEntryDlg_8h-source.html b/doc/html/FilterEntryDlg_8h-source.html new file mode 100644 index 0000000..567cd10 --- /dev/null +++ b/doc/html/FilterEntryDlg_8h-source.html @@ -0,0 +1,110 @@ + + +kshowmail: kshowmail/FilterEntryDlg.h Source File + + + + +
+
+ +

FilterEntryDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file './FilterEntryDlg.ui'
+00003 **
+00004 ** Created: Fr Jun 29 22:08:23 2007
+00005 **      by: The User Interface Compiler ($Id: FilterEntryDlg_8h-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef FILTERENTRYDLG_H
+00011 #define FILTERENTRYDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 
+00016 class QVBoxLayout;
+00017 class QHBoxLayout;
+00018 class QGridLayout;
+00019 class QSpacerItem;
+00020 class QLineEdit;
+00021 class QGroupBox;
+00022 class QComboBox;
+00023 class QCheckBox;
+00024 class QPushButton;
+00025 class QSpinBox;
+00026 
+00027 class FilterEntryDlg : public QDialog
+00028 {
+00029     Q_OBJECT
+00030 
+00031 public:
+00032     FilterEntryDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00033     ~FilterEntryDlg();
+00034 
+00035     QLineEdit* _editName;
+00036     QGroupBox* QGroupBox_1;
+00037     QComboBox* _comboItem1;
+00038     QComboBox* _comboExpression1;
+00039     QLineEdit* _editMatch1;
+00040     QComboBox* _comboSecondCondition;
+00041     QCheckBox* _checkCaseSensitive1;
+00042     QPushButton* _buttonEditRegExp1;
+00043     QCheckBox* _checkRegExp1;
+00044     QGroupBox* _groupBox2;
+00045     QComboBox* _comboItem2;
+00046     QComboBox* _comboExpression2;
+00047     QLineEdit* _editMatch2;
+00048     QCheckBox* _checkCaseSensitive2;
+00049     QCheckBox* _checkRegExp2;
+00050     QPushButton* _buttonEditRegExp2;
+00051     QPushButton* m_ButtonOk;
+00052     QPushButton* m_ButtonCancel;
+00053     QGroupBox* groupBox3;
+00054     QSpinBox* _spinCounter;
+00055     QPushButton* _buttonResetCounter;
+00056 
+00057 public slots:
+00058     virtual void slotOk();
+00059     virtual void slotItem1Selected(int);
+00060     virtual void slotItem2Selected(int);
+00061     virtual void slotSecondCondition(int);
+00062     virtual void slotCondition1Selected(int);
+00063     virtual void slotCondition2Selected(int);
+00064     virtual void slotMatch1Changed(const QString&);
+00065     virtual void slotMatch2Changed(const QString&);
+00066     virtual void slotResetCounter();
+00067     virtual void slotCounterChanged(int);
+00068     virtual void slotEditRegExp1();
+00069     virtual void slotEditRegExp2();
+00070     virtual void slotToggleRegExp1(bool);
+00071     virtual void slotToggleRegExp2(bool);
+00072 
+00073 protected:
+00074     QGridLayout* FilterEntryDlgLayout;
+00075     QGridLayout* QGroupBox_1Layout;
+00076     QSpacerItem* spacer2;
+00077     QGridLayout* _groupBox2Layout;
+00078     QSpacerItem* spacer3;
+00079     QHBoxLayout* Layout11;
+00080     QSpacerItem* Spacer17;
+00081     QHBoxLayout* groupBox3Layout;
+00082 
+00083 protected slots:
+00084     virtual void languageChange();
+00085 
+00086 };
+00087 
+00088 #endif // FILTERENTRYDLG_H
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/FilterEntryDlg_8moc-source.html b/doc/html/FilterEntryDlg_8moc-source.html new file mode 100644 index 0000000..20b0617 --- /dev/null +++ b/doc/html/FilterEntryDlg_8moc-source.html @@ -0,0 +1,195 @@ + + +kshowmail: kshowmail/FilterEntryDlg.moc Source File + + + + +
+
+ +

FilterEntryDlg.moc

00001 /****************************************************************************
+00002 ** FilterEntryDlg meta object code from reading C++ file 'FilterEntryDlg.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:08:54 2007
+00005 **      by: The Qt MOC ($Id: FilterEntryDlg_8moc-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "FilterEntryDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *FilterEntryDlg::className() const
+00023 {
+00024     return "FilterEntryDlg";
+00025 }
+00026 
+00027 QMetaObject *FilterEntryDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_FilterEntryDlg( "FilterEntryDlg", &FilterEntryDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString FilterEntryDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "FilterEntryDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString FilterEntryDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "FilterEntryDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* FilterEntryDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotOk", 0, 0 };
+00056     static const QUParameter param_slot_1[] = {
+00057        { 0, &static_QUType_int, 0, QUParameter::In }
+00058     };
+00059     static const QUMethod slot_1 = {"slotItem1Selected", 1, param_slot_1 };
+00060     static const QUParameter param_slot_2[] = {
+00061        { 0, &static_QUType_int, 0, QUParameter::In }
+00062     };
+00063     static const QUMethod slot_2 = {"slotItem2Selected", 1, param_slot_2 };
+00064     static const QUParameter param_slot_3[] = {
+00065        { 0, &static_QUType_int, 0, QUParameter::In }
+00066     };
+00067     static const QUMethod slot_3 = {"slotSecondCondition", 1, param_slot_3 };
+00068     static const QUParameter param_slot_4[] = {
+00069        { 0, &static_QUType_int, 0, QUParameter::In }
+00070     };
+00071     static const QUMethod slot_4 = {"slotCondition1Selected", 1, param_slot_4 };
+00072     static const QUParameter param_slot_5[] = {
+00073        { 0, &static_QUType_int, 0, QUParameter::In }
+00074     };
+00075     static const QUMethod slot_5 = {"slotCondition2Selected", 1, param_slot_5 };
+00076     static const QUParameter param_slot_6[] = {
+00077        { 0, &static_QUType_QString, 0, QUParameter::In }
+00078     };
+00079     static const QUMethod slot_6 = {"slotMatch1Changed", 1, param_slot_6 };
+00080     static const QUParameter param_slot_7[] = {
+00081        { 0, &static_QUType_QString, 0, QUParameter::In }
+00082     };
+00083     static const QUMethod slot_7 = {"slotMatch2Changed", 1, param_slot_7 };
+00084     static const QUMethod slot_8 = {"slotResetCounter", 0, 0 };
+00085     static const QUParameter param_slot_9[] = {
+00086        { 0, &static_QUType_int, 0, QUParameter::In }
+00087     };
+00088     static const QUMethod slot_9 = {"slotCounterChanged", 1, param_slot_9 };
+00089     static const QUMethod slot_10 = {"slotEditRegExp1", 0, 0 };
+00090     static const QUMethod slot_11 = {"slotEditRegExp2", 0, 0 };
+00091     static const QUParameter param_slot_12[] = {
+00092        { 0, &static_QUType_bool, 0, QUParameter::In }
+00093     };
+00094     static const QUMethod slot_12 = {"slotToggleRegExp1", 1, param_slot_12 };
+00095     static const QUParameter param_slot_13[] = {
+00096        { 0, &static_QUType_bool, 0, QUParameter::In }
+00097     };
+00098     static const QUMethod slot_13 = {"slotToggleRegExp2", 1, param_slot_13 };
+00099     static const QUMethod slot_14 = {"languageChange", 0, 0 };
+00100     static const QMetaData slot_tbl[] = {
+00101        { "slotOk()", &slot_0, QMetaData::Public },
+00102        { "slotItem1Selected(int)", &slot_1, QMetaData::Public },
+00103        { "slotItem2Selected(int)", &slot_2, QMetaData::Public },
+00104        { "slotSecondCondition(int)", &slot_3, QMetaData::Public },
+00105        { "slotCondition1Selected(int)", &slot_4, QMetaData::Public },
+00106        { "slotCondition2Selected(int)", &slot_5, QMetaData::Public },
+00107        { "slotMatch1Changed(const QString&)", &slot_6, QMetaData::Public },
+00108        { "slotMatch2Changed(const QString&)", &slot_7, QMetaData::Public },
+00109        { "slotResetCounter()", &slot_8, QMetaData::Public },
+00110        { "slotCounterChanged(int)", &slot_9, QMetaData::Public },
+00111        { "slotEditRegExp1()", &slot_10, QMetaData::Public },
+00112        { "slotEditRegExp2()", &slot_11, QMetaData::Public },
+00113        { "slotToggleRegExp1(bool)", &slot_12, QMetaData::Public },
+00114        { "slotToggleRegExp2(bool)", &slot_13, QMetaData::Public },
+00115        { "languageChange()", &slot_14, QMetaData::Protected }
+00116     };
+00117     metaObj = QMetaObject::new_metaobject(
+00118        "FilterEntryDlg", parentObject,
+00119        slot_tbl, 15,
+00120        0, 0,
+00121 #ifndef QT_NO_PROPERTIES
+00122        0, 0,
+00123        0, 0,
+00124 #endif // QT_NO_PROPERTIES
+00125        0, 0 );
+00126     cleanUp_FilterEntryDlg.setMetaObject( metaObj );
+00127     return metaObj;
+00128 }
+00129 
+00130 void* FilterEntryDlg::qt_cast( const char* clname )
+00131 {
+00132     if ( !qstrcmp( clname, "FilterEntryDlg" ) )
+00133        return this;
+00134     return QDialog::qt_cast( clname );
+00135 }
+00136 
+00137 bool FilterEntryDlg::qt_invoke( int _id, QUObject* _o )
+00138 {
+00139     switch ( _id - staticMetaObject()->slotOffset() ) {
+00140     case 0: slotOk(); break;
+00141     case 1: slotItem1Selected((int)static_QUType_int.get(_o+1)); break;
+00142     case 2: slotItem2Selected((int)static_QUType_int.get(_o+1)); break;
+00143     case 3: slotSecondCondition((int)static_QUType_int.get(_o+1)); break;
+00144     case 4: slotCondition1Selected((int)static_QUType_int.get(_o+1)); break;
+00145     case 5: slotCondition2Selected((int)static_QUType_int.get(_o+1)); break;
+00146     case 6: slotMatch1Changed((const QString&)static_QUType_QString.get(_o+1)); break;
+00147     case 7: slotMatch2Changed((const QString&)static_QUType_QString.get(_o+1)); break;
+00148     case 8: slotResetCounter(); break;
+00149     case 9: slotCounterChanged((int)static_QUType_int.get(_o+1)); break;
+00150     case 10: slotEditRegExp1(); break;
+00151     case 11: slotEditRegExp2(); break;
+00152     case 12: slotToggleRegExp1((bool)static_QUType_bool.get(_o+1)); break;
+00153     case 13: slotToggleRegExp2((bool)static_QUType_bool.get(_o+1)); break;
+00154     case 14: languageChange(); break;
+00155     default:
+00156        return QDialog::qt_invoke( _id, _o );
+00157     }
+00158     return TRUE;
+00159 }
+00160 
+00161 bool FilterEntryDlg::qt_emit( int _id, QUObject* _o )
+00162 {
+00163     return QDialog::qt_emit(_id,_o);
+00164 }
+00165 #ifndef QT_NO_PROPERTIES
+00166 
+00167 bool FilterEntryDlg::qt_property( int id, int f, QVariant* v)
+00168 {
+00169     return QDialog::qt_property( id, f, v);
+00170 }
+00171 
+00172 bool FilterEntryDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00173 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/OptionDlg_8cpp-source.html b/doc/html/OptionDlg_8cpp-source.html new file mode 100644 index 0000000..116e509 --- /dev/null +++ b/doc/html/OptionDlg_8cpp-source.html @@ -0,0 +1,579 @@ + + +kshowmail: kshowmail/OptionDlg.cpp Source File + + + + +
+
+ +

OptionDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/OptionDlg.ui'
+00005 **
+00006 ** Created: Di Mai 15 19:57:54 2007
+00007 **      by: The User Interface Compiler ($Id: OptionDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "OptionDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qgroupbox.h>
+00017 #include <qlabel.h>
+00018 #include <qcombobox.h>
+00019 #include <qtabwidget.h>
+00020 #include <qwidget.h>
+00021 #include <qcheckbox.h>
+00022 #include <qspinbox.h>
+00023 #include <qlineedit.h>
+00024 #include <qlayout.h>
+00025 #include <qtooltip.h>
+00026 #include <qwhatsthis.h>
+00027 
+00028 /*
+00029  *  Constructs a OptionDlg as a child of 'parent', with the
+00030  *  name 'name' and widget flags set to 'f'.
+00031  *
+00032  *  The dialog will by default be modeless, unless you set 'modal' to
+00033  *  TRUE to construct a modal dialog.
+00034  */
+00035 OptionDlg::OptionDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00036     : QDialog( parent, name, modal, fl )
+00037 {
+00038     if ( !name )
+00039        setName( "OptionDlg" );
+00040     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
+00041     setSizeGripEnabled( FALSE );
+00042     OptionDlgLayout = new QVBoxLayout( this, 11, 6, "OptionDlgLayout"); 
+00043 
+00044     QGroupBox_1 = new QGroupBox( this, "QGroupBox_1" );
+00045     QGroupBox_1->setMinimumSize( QSize( 380, 130 ) );
+00046     QGroupBox_1->setColumnLayout(0, Qt::Vertical );
+00047     QGroupBox_1->layout()->setSpacing( 6 );
+00048     QGroupBox_1->layout()->setMargin( 11 );
+00049     QGroupBox_1Layout = new QGridLayout( QGroupBox_1->layout() );
+00050     QGroupBox_1Layout->setAlignment( Qt::AlignTop );
+00051 
+00052     QLabel_1 = new QLabel( QGroupBox_1, "QLabel_1" );
+00053 
+00054     QGroupBox_1Layout->addWidget( QLabel_1, 0, 0 );
+00055     spacer4 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00056     QGroupBox_1Layout->addItem( spacer4, 1, 4 );
+00057 
+00058     m_ButtonDelete = new QPushButton( QGroupBox_1, "m_ButtonDelete" );
+00059 
+00060     QGroupBox_1Layout->addWidget( m_ButtonDelete, 1, 3 );
+00061 
+00062     m_ButtonCopy = new QPushButton( QGroupBox_1, "m_ButtonCopy" );
+00063 
+00064     QGroupBox_1Layout->addWidget( m_ButtonCopy, 1, 2 );
+00065 
+00066     m_ButtonEdit = new QPushButton( QGroupBox_1, "m_ButtonEdit" );
+00067 
+00068     QGroupBox_1Layout->addWidget( m_ButtonEdit, 1, 1 );
+00069 
+00070     m_ButtonAdd = new QPushButton( QGroupBox_1, "m_ButtonAdd" );
+00071 
+00072     QGroupBox_1Layout->addWidget( m_ButtonAdd, 1, 0 );
+00073 
+00074     m_ComboAccount = new QComboBox( FALSE, QGroupBox_1, "m_ComboAccount" );
+00075     m_ComboAccount->setFocusPolicy( QComboBox::TabFocus );
+00076     m_ComboAccount->setInsertionPolicy( QComboBox::AtTop );
+00077 
+00078     QGroupBox_1Layout->addMultiCellWidget( m_ComboAccount, 0, 0, 1, 3 );
+00079     spacer2 = new QSpacerItem( 360, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00080     QGroupBox_1Layout->addItem( spacer2, 0, 4 );
+00081     OptionDlgLayout->addWidget( QGroupBox_1 );
+00082 
+00083     layout3 = new QVBoxLayout( 0, 0, 6, "layout3"); 
+00084 
+00085     TabWidget2 = new QTabWidget( this, "TabWidget2" );
+00086     TabWidget2->setMinimumSize( QSize( 380, 209 ) );
+00087 
+00088     tab = new QWidget( TabWidget2, "tab" );
+00089     tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 
+00090 
+00091     m_CheckSavePassword = new QCheckBox( tab, "m_CheckSavePassword" );
+00092 
+00093     tabLayout->addMultiCellWidget( m_CheckSavePassword, 0, 0, 0, 1 );
+00094 
+00095     m_CheckStartMinimized = new QCheckBox( tab, "m_CheckStartMinimized" );
+00096 
+00097     tabLayout->addMultiCellWidget( m_CheckStartMinimized, 0, 0, 2, 3 );
+00098 
+00099     m_CheckConfirmDelete = new QCheckBox( tab, "m_CheckConfirmDelete" );
+00100 
+00101     tabLayout->addMultiCellWidget( m_CheckConfirmDelete, 1, 1, 0, 1 );
+00102 
+00103     QLabel_2 = new QLabel( tab, "QLabel_2" );
+00104 
+00105     tabLayout->addWidget( QLabel_2, 3, 0 );
+00106 
+00107     QLabel_3 = new QLabel( tab, "QLabel_3" );
+00108 
+00109     tabLayout->addWidget( QLabel_3, 3, 2 );
+00110 
+00111     QLabel_6 = new QLabel( tab, "QLabel_6" );
+00112 
+00113     tabLayout->addWidget( QLabel_6, 4, 0 );
+00114 
+00115     QLabel_4 = new QLabel( tab, "QLabel_4" );
+00116 
+00117     tabLayout->addWidget( QLabel_4, 4, 2 );
+00118 
+00119     m_SpinPop3Timer = new QSpinBox( tab, "m_SpinPop3Timer" );
+00120     m_SpinPop3Timer->setMouseTracking( FALSE );
+00121     m_SpinPop3Timer->setFocusPolicy( QSpinBox::StrongFocus );
+00122     m_SpinPop3Timer->setAcceptDrops( FALSE );
+00123     m_SpinPop3Timer->setMaxValue( 300 );
+00124 
+00125     tabLayout->addWidget( m_SpinPop3Timer, 4, 1 );
+00126 
+00127     m_SpinInitTimer = new QSpinBox( tab, "m_SpinInitTimer" );
+00128     m_SpinInitTimer->setFocusPolicy( QSpinBox::StrongFocus );
+00129     m_SpinInitTimer->setMaxValue( 120 );
+00130 
+00131     tabLayout->addWidget( m_SpinInitTimer, 3, 1 );
+00132 
+00133     m_SpinIntervalTimer = new QSpinBox( tab, "m_SpinIntervalTimer" );
+00134     m_SpinIntervalTimer->setFocusPolicy( QSpinBox::StrongFocus );
+00135     m_SpinIntervalTimer->setMaxValue( 1440 );
+00136 
+00137     tabLayout->addWidget( m_SpinIntervalTimer, 3, 3 );
+00138 
+00139     m_SpinMaxSize = new QSpinBox( tab, "m_SpinMaxSize" );
+00140     m_SpinMaxSize->setFocusPolicy( QSpinBox::StrongFocus );
+00141     m_SpinMaxSize->setMaxValue( 9999 );
+00142 
+00143     tabLayout->addWidget( m_SpinMaxSize, 4, 3 );
+00144 
+00145     _checkConfirmClose = new QCheckBox( tab, "_checkConfirmClose" );
+00146 
+00147     tabLayout->addWidget( _checkConfirmClose, 0, 4 );
+00148 
+00149     m_CheckKeepNewMail = new QCheckBox( tab, "m_CheckKeepNewMail" );
+00150 
+00151     tabLayout->addMultiCellWidget( m_CheckKeepNewMail, 1, 1, 2, 3 );
+00152 
+00153     m_CheckCloseMinimizes = new QCheckBox( tab, "m_CheckCloseMinimizes" );
+00154 
+00155     tabLayout->addWidget( m_CheckCloseMinimizes, 1, 4 );
+00156 
+00157     m_CheckMinimizeToTray = new QCheckBox( tab, "m_CheckMinimizeToTray" );
+00158 
+00159     tabLayout->addMultiCellWidget( m_CheckMinimizeToTray, 2, 2, 0, 1 );
+00160     TabWidget2->insertTab( tab, QString::fromLatin1("") );
+00161 
+00162     tab_2 = new QWidget( TabWidget2, "tab_2" );
+00163     tabLayout_2 = new QHBoxLayout( tab_2, 11, 6, "tabLayout_2"); 
+00164 
+00165     GroupBox3 = new QGroupBox( tab_2, "GroupBox3" );
+00166     GroupBox3->setColumnLayout(0, Qt::Vertical );
+00167     GroupBox3->layout()->setSpacing( 6 );
+00168     GroupBox3->layout()->setMargin( 11 );
+00169     GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() );
+00170     GroupBox3Layout->setAlignment( Qt::AlignTop );
+00171 
+00172     m_CheckActive = new QCheckBox( GroupBox3, "m_CheckActive" );
+00173     m_CheckActive->setChecked( TRUE );
+00174     GroupBox3Layout->addWidget( m_CheckActive );
+00175 
+00176     m_CheckAccount1 = new QCheckBox( GroupBox3, "m_CheckAccount1" );
+00177     m_CheckAccount1->setChecked( TRUE );
+00178     GroupBox3Layout->addWidget( m_CheckAccount1 );
+00179 
+00180     m_CheckServer = new QCheckBox( GroupBox3, "m_CheckServer" );
+00181     m_CheckServer->setChecked( TRUE );
+00182     GroupBox3Layout->addWidget( m_CheckServer );
+00183 
+00184     m_CheckUser = new QCheckBox( GroupBox3, "m_CheckUser" );
+00185     m_CheckUser->setChecked( TRUE );
+00186     GroupBox3Layout->addWidget( m_CheckUser );
+00187 
+00188     m_CheckMessages = new QCheckBox( GroupBox3, "m_CheckMessages" );
+00189     m_CheckMessages->setChecked( TRUE );
+00190     GroupBox3Layout->addWidget( m_CheckMessages );
+00191 
+00192     m_CheckSize1 = new QCheckBox( GroupBox3, "m_CheckSize1" );
+00193     m_CheckSize1->setChecked( TRUE );
+00194     GroupBox3Layout->addWidget( m_CheckSize1 );
+00195     tabLayout_2->addWidget( GroupBox3 );
+00196 
+00197     GroupBox2 = new QGroupBox( tab_2, "GroupBox2" );
+00198     GroupBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, GroupBox2->sizePolicy().hasHeightForWidth() ) );
+00199     GroupBox2->setColumnLayout(0, Qt::Vertical );
+00200     GroupBox2->layout()->setSpacing( 6 );
+00201     GroupBox2->layout()->setMargin( 11 );
+00202     GroupBox2Layout = new QVBoxLayout( GroupBox2->layout() );
+00203     GroupBox2Layout->setAlignment( Qt::AlignTop );
+00204 
+00205     m_CheckNumber = new QCheckBox( GroupBox2, "m_CheckNumber" );
+00206     m_CheckNumber->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckNumber->sizePolicy().hasHeightForWidth() ) );
+00207     m_CheckNumber->setChecked( TRUE );
+00208     GroupBox2Layout->addWidget( m_CheckNumber );
+00209 
+00210     m_CheckAccount2 = new QCheckBox( GroupBox2, "m_CheckAccount2" );
+00211     m_CheckAccount2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckAccount2->sizePolicy().hasHeightForWidth() ) );
+00212     m_CheckAccount2->setChecked( TRUE );
+00213     GroupBox2Layout->addWidget( m_CheckAccount2 );
+00214 
+00215     m_CheckFrom = new QCheckBox( GroupBox2, "m_CheckFrom" );
+00216     m_CheckFrom->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckFrom->sizePolicy().hasHeightForWidth() ) );
+00217     m_CheckFrom->setChecked( TRUE );
+00218     GroupBox2Layout->addWidget( m_CheckFrom );
+00219 
+00220     m_CheckTo = new QCheckBox( GroupBox2, "m_CheckTo" );
+00221     m_CheckTo->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckTo->sizePolicy().hasHeightForWidth() ) );
+00222     m_CheckTo->setChecked( TRUE );
+00223     GroupBox2Layout->addWidget( m_CheckTo );
+00224 
+00225     m_CheckSubject = new QCheckBox( GroupBox2, "m_CheckSubject" );
+00226     m_CheckSubject->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckSubject->sizePolicy().hasHeightForWidth() ) );
+00227     m_CheckSubject->setChecked( TRUE );
+00228     GroupBox2Layout->addWidget( m_CheckSubject );
+00229 
+00230     m_CheckDate = new QCheckBox( GroupBox2, "m_CheckDate" );
+00231     m_CheckDate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckDate->sizePolicy().hasHeightForWidth() ) );
+00232     m_CheckDate->setChecked( TRUE );
+00233     GroupBox2Layout->addWidget( m_CheckDate );
+00234 
+00235     m_CheckSize2 = new QCheckBox( GroupBox2, "m_CheckSize2" );
+00236     m_CheckSize2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckSize2->sizePolicy().hasHeightForWidth() ) );
+00237     m_CheckSize2->setChecked( TRUE );
+00238     GroupBox2Layout->addWidget( m_CheckSize2 );
+00239 
+00240     m_CheckContent = new QCheckBox( GroupBox2, "m_CheckContent" );
+00241     m_CheckContent->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckContent->sizePolicy().hasHeightForWidth() ) );
+00242     m_CheckContent->setChecked( TRUE );
+00243     GroupBox2Layout->addWidget( m_CheckContent );
+00244 
+00245     m_CheckState = new QCheckBox( GroupBox2, "m_CheckState" );
+00246     m_CheckState->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckState->sizePolicy().hasHeightForWidth() ) );
+00247     m_CheckState->setChecked( TRUE );
+00248     GroupBox2Layout->addWidget( m_CheckState );
+00249     tabLayout_2->addWidget( GroupBox2 );
+00250 
+00251     groupBox4 = new QGroupBox( tab_2, "groupBox4" );
+00252     groupBox4->setColumnLayout(0, Qt::Vertical );
+00253     groupBox4->layout()->setSpacing( 6 );
+00254     groupBox4->layout()->setMargin( 11 );
+00255     groupBox4Layout = new QVBoxLayout( groupBox4->layout() );
+00256     groupBox4Layout->setAlignment( Qt::AlignTop );
+00257 
+00258     m_checkHTML = new QCheckBox( groupBox4, "m_checkHTML" );
+00259     groupBox4Layout->addWidget( m_checkHTML );
+00260     tabLayout_2->addWidget( groupBox4 );
+00261     TabWidget2->insertTab( tab_2, QString::fromLatin1("") );
+00262 
+00263     tab_3 = new QWidget( TabWidget2, "tab_3" );
+00264     tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); 
+00265 
+00266     m_CheckMinimizeNoMail = new QCheckBox( tab_3, "m_CheckMinimizeNoMail" );
+00267     tabLayout_3->addWidget( m_CheckMinimizeNoMail );
+00268 
+00269     m_CheckTerminateNoMail = new QCheckBox( tab_3, "m_CheckTerminateNoMail" );
+00270     tabLayout_3->addWidget( m_CheckTerminateNoMail );
+00271     TabWidget2->insertTab( tab_3, QString::fromLatin1("") );
+00272 
+00273     tab_4 = new QWidget( TabWidget2, "tab_4" );
+00274     tabLayout_4 = new QGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); 
+00275 
+00276     m_CheckBeep = new QCheckBox( tab_4, "m_CheckBeep" );
+00277 
+00278     tabLayout_4->addMultiCellWidget( m_CheckBeep, 0, 0, 2, 3 );
+00279 
+00280     m_CheckShowMainWindow = new QCheckBox( tab_4, "m_CheckShowMainWindow" );
+00281 
+00282     tabLayout_4->addMultiCellWidget( m_CheckShowMainWindow, 1, 1, 0, 1 );
+00283 
+00284     m_CheckSound = new QCheckBox( tab_4, "m_CheckSound" );
+00285 
+00286     tabLayout_4->addMultiCellWidget( m_CheckSound, 1, 1, 2, 3 );
+00287 
+00288     m_CheckExternalProg = new QCheckBox( tab_4, "m_CheckExternalProg" );
+00289 
+00290     tabLayout_4->addMultiCellWidget( m_CheckExternalProg, 2, 2, 0, 1 );
+00291 
+00292     m_ButtonSelectSoundFile = new QPushButton( tab_4, "m_ButtonSelectSoundFile" );
+00293 
+00294     tabLayout_4->addWidget( m_ButtonSelectSoundFile, 3, 0 );
+00295 
+00296     m_ButtonSoundTest = new QPushButton( tab_4, "m_ButtonSoundTest" );
+00297 
+00298     tabLayout_4->addWidget( m_ButtonSoundTest, 3, 3 );
+00299 
+00300     QLabel_5 = new QLabel( tab_4, "QLabel_5" );
+00301 
+00302     tabLayout_4->addWidget( QLabel_5, 4, 0 );
+00303 
+00304     m_ComboExternalProg = new QComboBox( FALSE, tab_4, "m_ComboExternalProg" );
+00305     m_ComboExternalProg->setInsertionPolicy( QComboBox::AtTop );
+00306 
+00307     tabLayout_4->addMultiCellWidget( m_ComboExternalProg, 4, 4, 1, 2 );
+00308 
+00309     m_ButtonExternalProgTest = new QPushButton( tab_4, "m_ButtonExternalProgTest" );
+00310 
+00311     tabLayout_4->addWidget( m_ButtonExternalProgTest, 4, 3 );
+00312 
+00313     m_EditSoundFile = new QLineEdit( tab_4, "m_EditSoundFile" );
+00314 
+00315     tabLayout_4->addMultiCellWidget( m_EditSoundFile, 3, 3, 1, 2 );
+00316 
+00317     m_CheckShowMessagebox = new QCheckBox( tab_4, "m_CheckShowMessagebox" );
+00318 
+00319     tabLayout_4->addMultiCellWidget( m_CheckShowMessagebox, 0, 0, 0, 1 );
+00320     TabWidget2->insertTab( tab_4, QString::fromLatin1("") );
+00321     layout3->addWidget( TabWidget2 );
+00322 
+00323     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
+00324     Spacer70 = new QSpacerItem( 477, 16, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00325     layout2->addItem( Spacer70 );
+00326 
+00327     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00328     layout2->addWidget( m_ButtonOk );
+00329 
+00330     m_ButtonCancel = new QPushButton( this, "m_ButtonCancel" );
+00331     layout2->addWidget( m_ButtonCancel );
+00332     layout3->addLayout( layout2 );
+00333     OptionDlgLayout->addLayout( layout3 );
+00334     languageChange();
+00335     resize( QSize(554, 566).expandedTo(minimumSizeHint()) );
+00336     clearWState( WState_Polished );
+00337 
+00338     // signals and slots connections
+00339     connect( m_ButtonEdit, SIGNAL( clicked() ), this, SLOT( slotButtonEditClicked() ) );
+00340     connect( m_ButtonCopy, SIGNAL( clicked() ), this, SLOT( slotButtonCopyClicked() ) );
+00341     connect( m_ButtonAdd, SIGNAL( clicked() ), this, SLOT( slotButtonAddClicked() ) );
+00342     connect( m_ButtonDelete, SIGNAL( clicked() ), this, SLOT( slotButtonDeleteClicked() ) );
+00343     connect( m_ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00344     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
+00345     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotButtonOkClicked() ) );
+00346     connect( m_CheckSound, SIGNAL( toggled(bool) ), m_ButtonSelectSoundFile, SLOT( setEnabled(bool) ) );
+00347     connect( m_CheckSound, SIGNAL( toggled(bool) ), m_EditSoundFile, SLOT( setEnabled(bool) ) );
+00348     connect( m_CheckSound, SIGNAL( toggled(bool) ), m_ButtonSoundTest, SLOT( setEnabled(bool) ) );
+00349     connect( m_CheckExternalProg, SIGNAL( toggled(bool) ), QLabel_5, SLOT( setEnabled(bool) ) );
+00350     connect( m_CheckExternalProg, SIGNAL( toggled(bool) ), m_ComboExternalProg, SLOT( setEnabled(bool) ) );
+00351     connect( m_CheckExternalProg, SIGNAL( toggled(bool) ), m_ButtonExternalProgTest, SLOT( setEnabled(bool) ) );
+00352     connect( m_ComboAccount, SIGNAL( activated(int) ), this, SLOT( slotAccountActivated(int) ) );
+00353     connect( m_CheckSavePassword, SIGNAL( clicked() ), this, SLOT( slotSavePasswordToggled() ) );
+00354     connect( m_ButtonSelectSoundFile, SIGNAL( clicked() ), this, SLOT( slotButtonSelectSoundFile() ) );
+00355     connect( m_CheckTerminateNoMail, SIGNAL( clicked() ), this, SLOT( slotTerminateNoMailClicked() ) );
+00356     connect( m_CheckMinimizeNoMail, SIGNAL( clicked() ), this, SLOT( slotMinimizeNoMailClicked() ) );
+00357     connect( m_ButtonSoundTest, SIGNAL( clicked() ), this, SLOT( slotSoundTest() ) );
+00358     connect( m_ButtonExternalProgTest, SIGNAL( clicked() ), this, SLOT( slotExternalProgTest() ) );
+00359 
+00360     // tab order
+00361     setTabOrder( m_ComboAccount, m_ButtonAdd );
+00362     setTabOrder( m_ButtonAdd, m_ButtonEdit );
+00363     setTabOrder( m_ButtonEdit, m_ButtonCopy );
+00364     setTabOrder( m_ButtonCopy, m_ButtonDelete );
+00365     setTabOrder( m_ButtonDelete, TabWidget2 );
+00366     setTabOrder( TabWidget2, m_CheckSavePassword );
+00367     setTabOrder( m_CheckSavePassword, m_CheckStartMinimized );
+00368     setTabOrder( m_CheckStartMinimized, m_CheckConfirmDelete );
+00369     setTabOrder( m_CheckConfirmDelete, m_CheckKeepNewMail );
+00370     setTabOrder( m_CheckKeepNewMail, m_SpinInitTimer );
+00371     setTabOrder( m_SpinInitTimer, m_SpinIntervalTimer );
+00372     setTabOrder( m_SpinIntervalTimer, m_SpinIntervalTimer );
+00373     setTabOrder( m_SpinIntervalTimer, m_SpinPop3Timer );
+00374     setTabOrder( m_SpinPop3Timer, m_SpinMaxSize );
+00375     setTabOrder( m_SpinMaxSize, m_CheckMinimizeNoMail );
+00376     setTabOrder( m_CheckMinimizeNoMail, m_CheckTerminateNoMail );
+00377     setTabOrder( m_CheckTerminateNoMail, m_CheckShowMessagebox );
+00378     setTabOrder( m_CheckShowMessagebox, m_CheckShowMainWindow );
+00379     setTabOrder( m_CheckShowMainWindow, m_CheckExternalProg );
+00380     setTabOrder( m_CheckExternalProg, m_CheckBeep );
+00381     setTabOrder( m_CheckBeep, m_CheckSound );
+00382     setTabOrder( m_CheckSound, m_ButtonSelectSoundFile );
+00383     setTabOrder( m_ButtonSelectSoundFile, m_EditSoundFile );
+00384     setTabOrder( m_EditSoundFile, m_ButtonSoundTest );
+00385     setTabOrder( m_ButtonSoundTest, m_ComboExternalProg );
+00386     setTabOrder( m_ComboExternalProg, m_ButtonExternalProgTest );
+00387     setTabOrder( m_ButtonExternalProgTest, m_ButtonOk );
+00388     setTabOrder( m_ButtonOk, m_ButtonCancel );
+00389 }
+00390 
+00391 /*
+00392  *  Destroys the object and frees any allocated resources
+00393  */
+00394 OptionDlg::~OptionDlg()
+00395 {
+00396     // no need to delete child widgets, Qt does it all for us
+00397 }
+00398 
+00399 /*
+00400  *  Sets the strings of the subwidgets using the current
+00401  *  language.
+00402  */
+00403 void OptionDlg::languageChange()
+00404 {
+00405     setCaption( tr2i18n( "Options" ) );
+00406     QGroupBox_1->setTitle( tr2i18n( "Accounts" ) );
+00407     QLabel_1->setText( tr2i18n( "Name:" ) );
+00408     QToolTip::add( QLabel_1, tr2i18n( "Select a pop3 account" ) );
+00409     m_ButtonDelete->setText( tr2i18n( "Delete" ) );
+00410     QToolTip::add( m_ButtonDelete, tr2i18n( "Delete account" ) );
+00411     m_ButtonCopy->setText( tr2i18n( "Cop&y" ) );
+00412     QToolTip::add( m_ButtonCopy, tr2i18n( "copy account" ) );
+00413     m_ButtonEdit->setText( tr2i18n( "Edit" ) );
+00414     QToolTip::add( m_ButtonEdit, tr2i18n( "Edit account" ) );
+00415     m_ButtonAdd->setText( tr2i18n( "&Add" ) );
+00416     QToolTip::add( m_ButtonAdd, tr2i18n( "Add new account" ) );
+00417     QToolTip::add( m_ComboAccount, tr2i18n( "Select a pop3 account" ) );
+00418     m_CheckSavePassword->setText( tr2i18n( "Save Password" ) );
+00419     QToolTip::add( m_CheckSavePassword, tr2i18n( "Save password (not recommended !)" ) );
+00420     m_CheckStartMinimized->setText( tr2i18n( "Start Minimi&zed" ) );
+00421     QToolTip::add( m_CheckStartMinimized, tr2i18n( "Application is started as icon" ) );
+00422     m_CheckConfirmDelete->setText( tr2i18n( "Confirm delete" ) );
+00423     QToolTip::add( m_CheckConfirmDelete, tr2i18n( "If checked, message delete must be confirmed" ) );
+00424     QLabel_2->setText( tr2i18n( "Initial Timer:" ) );
+00425     QToolTip::add( QLabel_2, tr2i18n( "Seconds until first automatic logon (0 = no automatic)" ) );
+00426     QLabel_3->setText( tr2i18n( "Interval Timer:" ) );
+00427     QToolTip::add( QLabel_3, tr2i18n( "Minutes between automatic logon (0 = no automatic)" ) );
+00428     QLabel_6->setText( tr2i18n( "Pop3 Timer" ) );
+00429     QToolTip::add( QLabel_6, tr2i18n( "Pop3 timeout" ) );
+00430     QLabel_4->setText( tr2i18n( "Max Size:" ) );
+00431     QToolTip::add( QLabel_4, tr2i18n( "Maximal size of downloaded mail body in kilobytes" ) );
+00432     QToolTip::add( m_SpinPop3Timer, tr2i18n( "Pop3 timeout" ) );
+00433     QToolTip::add( m_SpinInitTimer, tr2i18n( "Seconds until first automatic logon (0 = no automatic)" ) );
+00434     QToolTip::add( m_SpinIntervalTimer, tr2i18n( "Minutes between automatic logon (0 = no automatic)" ) );
+00435     QToolTip::add( m_SpinMaxSize, tr2i18n( "Maximal size of downloaded mail body in kilobytes" ) );
+00436     _checkConfirmClose->setText( tr2i18n( "Confirm Close" ) );
+00437     m_CheckKeepNewMail->setText( tr2i18n( "&Keep mail as new" ) );
+00438     m_CheckKeepNewMail->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) );
+00439     QToolTip::add( m_CheckKeepNewMail, tr2i18n( "Keep mail as new until termination" ) );
+00440     m_CheckCloseMinimizes->setText( tr2i18n( "Close to tray" ) );
+00441     m_CheckCloseMinimizes->setAccel( QKeySequence( QString::null ) );
+00442     QToolTip::add( m_CheckCloseMinimizes, tr2i18n( "Close button leaves the application running in tray" ) );
+00443     m_CheckMinimizeToTray->setText( tr2i18n( "Minimize to tray" ) );
+00444     m_CheckMinimizeToTray->setAccel( QKeySequence( QString::null ) );
+00445     QToolTip::add( m_CheckMinimizeToTray, tr2i18n( "Minimizes to the tray rather than to the taskbar" ) );
+00446     TabWidget2->changeTab( tab, tr2i18n( "&General Options" ) );
+00447     GroupBox3->setTitle( tr2i18n( "Account list" ) );
+00448     m_CheckActive->setText( tr2i18n( "Active" ) );
+00449     m_CheckAccount1->setText( tr2i18n( "Account" ) );
+00450     m_CheckServer->setText( tr2i18n( "Server" ) );
+00451     m_CheckUser->setText( tr2i18n( "User" ) );
+00452     m_CheckMessages->setText( tr2i18n( "Messages" ) );
+00453     m_CheckSize1->setText( tr2i18n( "Si&ze" ) );
+00454     GroupBox2->setTitle( tr2i18n( "Mail list" ) );
+00455     m_CheckNumber->setText( tr2i18n( "Number" ) );
+00456     m_CheckAccount2->setText( tr2i18n( "Account" ) );
+00457     m_CheckFrom->setText( tr2i18n( "From" ) );
+00458     m_CheckTo->setText( tr2i18n( "To" ) );
+00459     m_CheckSubject->setText( tr2i18n( "Su&bject" ) );
+00460     m_CheckDate->setText( tr2i18n( "Date" ) );
+00461     m_CheckSize2->setText( tr2i18n( "Size" ) );
+00462     m_CheckContent->setText( tr2i18n( "Content" ) );
+00463     m_CheckState->setText( tr2i18n( "State" ) );
+00464     groupBox4->setTitle( tr2i18n( "Mail content" ) );
+00465     m_checkHTML->setText( tr2i18n( "Allow HTML" ) );
+00466     TabWidget2->changeTab( tab_2, tr2i18n( "Display Options" ) );
+00467     m_CheckMinimizeNoMail->setText( tr2i18n( "Minimi&ze" ) );
+00468     QToolTip::add( m_CheckMinimizeNoMail, tr2i18n( "Minimize window if no new mail" ) );
+00469     m_CheckTerminateNoMail->setText( tr2i18n( "Terminate" ) );
+00470     QToolTip::add( m_CheckTerminateNoMail, tr2i18n( "Terminate kshowmail if no new mail" ) );
+00471     TabWidget2->changeTab( tab_3, tr2i18n( "Action if &no mail" ) );
+00472     m_CheckBeep->setText( tr2i18n( "&Beep" ) );
+00473     QToolTip::add( m_CheckBeep, tr2i18n( "Beeps the internal speaker if new mail" ) );
+00474     m_CheckShowMainWindow->setText( tr2i18n( "Show main window" ) );
+00475     QToolTip::add( m_CheckShowMainWindow, tr2i18n( "Show main window if new mail arrives" ) );
+00476     m_CheckSound->setText( tr2i18n( "Sound" ) );
+00477     QToolTip::add( m_CheckSound, tr2i18n( "Plays sound if new mail" ) );
+00478     m_CheckExternalProg->setText( tr2i18n( "E&xternal Program" ) );
+00479     QToolTip::add( m_CheckExternalProg, tr2i18n( "Starts external program if new mail" ) );
+00480     m_ButtonSelectSoundFile->setText( tr2i18n( "Sound File:" ) );
+00481     QToolTip::add( m_ButtonSelectSoundFile, tr2i18n( "Press to select sound file" ) );
+00482     m_ButtonSoundTest->setText( tr2i18n( "Test" ) );
+00483     QToolTip::add( m_ButtonSoundTest, tr2i18n( "Play the selected sound file" ) );
+00484     QLabel_5->setText( tr2i18n( "Command:" ) );
+00485     QToolTip::add( QLabel_5, tr2i18n( "Select external command" ) );
+00486     QToolTip::add( m_ComboExternalProg, tr2i18n( "Select external command" ) );
+00487     m_ButtonExternalProgTest->setText( tr2i18n( "Test" ) );
+00488     QToolTip::add( m_ButtonExternalProgTest, tr2i18n( "Start the selected program" ) );
+00489     QToolTip::add( m_EditSoundFile, tr2i18n( "Enter sound file" ) );
+00490     m_CheckShowMessagebox->setText( tr2i18n( "Show message box" ) );
+00491     QToolTip::add( m_CheckShowMessagebox, tr2i18n( "Show message if new mail arrives" ) );
+00492     TabWidget2->changeTab( tab_4, tr2i18n( "Action if new &mail" ) );
+00493     m_ButtonOk->setText( tr2i18n( "&OK" ) );
+00494     m_ButtonCancel->setText( tr2i18n( "Cancel" ) );
+00495 }
+00496 
+00497 void OptionDlg::slotExternalProgTest()
+00498 {
+00499     qWarning( "OptionDlg::slotExternalProgTest(): Not implemented yet" );
+00500 }
+00501 
+00502 void OptionDlg::slotAccountActivated(int)
+00503 {
+00504     qWarning( "OptionDlg::slotAccountActivated(int): Not implemented yet" );
+00505 }
+00506 
+00507 void OptionDlg::slotButtonAddClicked()
+00508 {
+00509     qWarning( "OptionDlg::slotButtonAddClicked(): Not implemented yet" );
+00510 }
+00511 
+00512 void OptionDlg::slotButtonCopyClicked()
+00513 {
+00514     qWarning( "OptionDlg::slotButtonCopyClicked(): Not implemented yet" );
+00515 }
+00516 
+00517 void OptionDlg::slotButtonDeleteClicked()
+00518 {
+00519     qWarning( "OptionDlg::slotButtonDeleteClicked(): Not implemented yet" );
+00520 }
+00521 
+00522 void OptionDlg::slotButtonEditClicked()
+00523 {
+00524     qWarning( "OptionDlg::slotButtonEditClicked(): Not implemented yet" );
+00525 }
+00526 
+00527 void OptionDlg::slotButtonOkClicked()
+00528 {
+00529     qWarning( "OptionDlg::slotButtonOkClicked(): Not implemented yet" );
+00530 }
+00531 
+00532 void OptionDlg::slotButtonSelectSoundFile()
+00533 {
+00534     qWarning( "OptionDlg::slotButtonSelectSoundFile(): Not implemented yet" );
+00535 }
+00536 
+00537 void OptionDlg::slotMinimizeNoMailClicked()
+00538 {
+00539     qWarning( "OptionDlg::slotMinimizeNoMailClicked(): Not implemented yet" );
+00540 }
+00541 
+00542 void OptionDlg::slotSavePasswordToggled()
+00543 {
+00544     qWarning( "OptionDlg::slotSavePasswordToggled(): Not implemented yet" );
+00545 }
+00546 
+00547 void OptionDlg::slotSoundTest()
+00548 {
+00549     qWarning( "OptionDlg::slotSoundTest(): Not implemented yet" );
+00550 }
+00551 
+00552 void OptionDlg::slotTerminateNoMailClicked()
+00553 {
+00554     qWarning( "OptionDlg::slotTerminateNoMailClicked(): Not implemented yet" );
+00555 }
+00556 
+00557 #include "OptionDlg.moc"
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/OptionDlg_8h-source.html b/doc/html/OptionDlg_8h-source.html new file mode 100644 index 0000000..45d75fb --- /dev/null +++ b/doc/html/OptionDlg_8h-source.html @@ -0,0 +1,157 @@ + + +kshowmail: kshowmail/OptionDlg.h Source File + + + + +
+
+ +

OptionDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/OptionDlg.ui'
+00003 **
+00004 ** Created: Di Mai 15 19:57:53 2007
+00005 **      by: The User Interface Compiler ($Id: OptionDlg_8h-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef OPTIONDLG_H
+00011 #define OPTIONDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 
+00016 class QVBoxLayout;
+00017 class QHBoxLayout;
+00018 class QGridLayout;
+00019 class QSpacerItem;
+00020 class QGroupBox;
+00021 class QLabel;
+00022 class QPushButton;
+00023 class QComboBox;
+00024 class QTabWidget;
+00025 class QWidget;
+00026 class QCheckBox;
+00027 class QSpinBox;
+00028 class QLineEdit;
+00029 
+00030 class OptionDlg : public QDialog
+00031 {
+00032     Q_OBJECT
+00033 
+00034 public:
+00035     OptionDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00036     ~OptionDlg();
+00037 
+00038     QGroupBox* QGroupBox_1;
+00039     QLabel* QLabel_1;
+00040     QPushButton* m_ButtonDelete;
+00041     QPushButton* m_ButtonCopy;
+00042     QPushButton* m_ButtonEdit;
+00043     QPushButton* m_ButtonAdd;
+00044     QComboBox* m_ComboAccount;
+00045     QTabWidget* TabWidget2;
+00046     QWidget* tab;
+00047     QCheckBox* m_CheckSavePassword;
+00048     QCheckBox* m_CheckStartMinimized;
+00049     QCheckBox* m_CheckConfirmDelete;
+00050     QLabel* QLabel_2;
+00051     QLabel* QLabel_3;
+00052     QLabel* QLabel_6;
+00053     QLabel* QLabel_4;
+00054     QSpinBox* m_SpinPop3Timer;
+00055     QSpinBox* m_SpinInitTimer;
+00056     QSpinBox* m_SpinIntervalTimer;
+00057     QSpinBox* m_SpinMaxSize;
+00058     QCheckBox* _checkConfirmClose;
+00059     QCheckBox* m_CheckKeepNewMail;
+00060     QCheckBox* m_CheckCloseMinimizes;
+00061     QCheckBox* m_CheckMinimizeToTray;
+00062     QWidget* tab_2;
+00063     QGroupBox* GroupBox3;
+00064     QCheckBox* m_CheckActive;
+00065     QCheckBox* m_CheckAccount1;
+00066     QCheckBox* m_CheckServer;
+00067     QCheckBox* m_CheckUser;
+00068     QCheckBox* m_CheckMessages;
+00069     QCheckBox* m_CheckSize1;
+00070     QGroupBox* GroupBox2;
+00071     QCheckBox* m_CheckNumber;
+00072     QCheckBox* m_CheckAccount2;
+00073     QCheckBox* m_CheckFrom;
+00074     QCheckBox* m_CheckTo;
+00075     QCheckBox* m_CheckSubject;
+00076     QCheckBox* m_CheckDate;
+00077     QCheckBox* m_CheckSize2;
+00078     QCheckBox* m_CheckContent;
+00079     QCheckBox* m_CheckState;
+00080     QGroupBox* groupBox4;
+00081     QCheckBox* m_checkHTML;
+00082     QWidget* tab_3;
+00083     QCheckBox* m_CheckMinimizeNoMail;
+00084     QCheckBox* m_CheckTerminateNoMail;
+00085     QWidget* tab_4;
+00086     QCheckBox* m_CheckBeep;
+00087     QCheckBox* m_CheckShowMainWindow;
+00088     QCheckBox* m_CheckSound;
+00089     QCheckBox* m_CheckExternalProg;
+00090     QPushButton* m_ButtonSelectSoundFile;
+00091     QPushButton* m_ButtonSoundTest;
+00092     QLabel* QLabel_5;
+00093     QComboBox* m_ComboExternalProg;
+00094     QPushButton* m_ButtonExternalProgTest;
+00095     QLineEdit* m_EditSoundFile;
+00096     QCheckBox* m_CheckShowMessagebox;
+00097     QPushButton* m_ButtonOk;
+00098     QPushButton* m_ButtonCancel;
+00099 
+00100 public slots:
+00101     virtual void slotExternalProgTest();
+00102     virtual void slotAccountActivated(int);
+00103     virtual void slotButtonAddClicked();
+00104     virtual void slotButtonCopyClicked();
+00105     virtual void slotButtonDeleteClicked();
+00106     virtual void slotButtonEditClicked();
+00107     virtual void slotButtonOkClicked();
+00108     virtual void slotButtonSelectSoundFile();
+00109     virtual void slotMinimizeNoMailClicked();
+00110     virtual void slotSavePasswordToggled();
+00111     virtual void slotSoundTest();
+00112     virtual void slotTerminateNoMailClicked();
+00113 
+00114 protected:
+00115     QVBoxLayout* OptionDlgLayout;
+00116     QGridLayout* QGroupBox_1Layout;
+00117     QSpacerItem* spacer4;
+00118     QSpacerItem* spacer2;
+00119     QVBoxLayout* layout3;
+00120     QGridLayout* tabLayout;
+00121     QHBoxLayout* tabLayout_2;
+00122     QVBoxLayout* GroupBox3Layout;
+00123     QVBoxLayout* GroupBox2Layout;
+00124     QVBoxLayout* groupBox4Layout;
+00125     QVBoxLayout* tabLayout_3;
+00126     QGridLayout* tabLayout_4;
+00127     QHBoxLayout* layout2;
+00128     QSpacerItem* Spacer70;
+00129 
+00130 protected slots:
+00131     virtual void languageChange();
+00132 
+00133 };
+00134 
+00135 #endif // OPTIONDLG_H
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/OptionDlg_8moc-source.html b/doc/html/OptionDlg_8moc-source.html new file mode 100644 index 0000000..4dca8cb --- /dev/null +++ b/doc/html/OptionDlg_8moc-source.html @@ -0,0 +1,162 @@ + + +kshowmail: kshowmail/OptionDlg.moc Source File + + + + +
+
+ +

OptionDlg.moc

00001 /****************************************************************************
+00002 ** OptionDlg meta object code from reading C++ file 'OptionDlg.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:54 2007
+00005 **      by: The Qt MOC ($Id: OptionDlg_8moc-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "OptionDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *OptionDlg::className() const
+00023 {
+00024     return "OptionDlg";
+00025 }
+00026 
+00027 QMetaObject *OptionDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_OptionDlg( "OptionDlg", &OptionDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString OptionDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "OptionDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString OptionDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "OptionDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* OptionDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotExternalProgTest", 0, 0 };
+00056     static const QUParameter param_slot_1[] = {
+00057        { 0, &static_QUType_int, 0, QUParameter::In }
+00058     };
+00059     static const QUMethod slot_1 = {"slotAccountActivated", 1, param_slot_1 };
+00060     static const QUMethod slot_2 = {"slotButtonAddClicked", 0, 0 };
+00061     static const QUMethod slot_3 = {"slotButtonCopyClicked", 0, 0 };
+00062     static const QUMethod slot_4 = {"slotButtonDeleteClicked", 0, 0 };
+00063     static const QUMethod slot_5 = {"slotButtonEditClicked", 0, 0 };
+00064     static const QUMethod slot_6 = {"slotButtonOkClicked", 0, 0 };
+00065     static const QUMethod slot_7 = {"slotButtonSelectSoundFile", 0, 0 };
+00066     static const QUMethod slot_8 = {"slotMinimizeNoMailClicked", 0, 0 };
+00067     static const QUMethod slot_9 = {"slotSavePasswordToggled", 0, 0 };
+00068     static const QUMethod slot_10 = {"slotSoundTest", 0, 0 };
+00069     static const QUMethod slot_11 = {"slotTerminateNoMailClicked", 0, 0 };
+00070     static const QUMethod slot_12 = {"languageChange", 0, 0 };
+00071     static const QMetaData slot_tbl[] = {
+00072        { "slotExternalProgTest()", &slot_0, QMetaData::Public },
+00073        { "slotAccountActivated(int)", &slot_1, QMetaData::Public },
+00074        { "slotButtonAddClicked()", &slot_2, QMetaData::Public },
+00075        { "slotButtonCopyClicked()", &slot_3, QMetaData::Public },
+00076        { "slotButtonDeleteClicked()", &slot_4, QMetaData::Public },
+00077        { "slotButtonEditClicked()", &slot_5, QMetaData::Public },
+00078        { "slotButtonOkClicked()", &slot_6, QMetaData::Public },
+00079        { "slotButtonSelectSoundFile()", &slot_7, QMetaData::Public },
+00080        { "slotMinimizeNoMailClicked()", &slot_8, QMetaData::Public },
+00081        { "slotSavePasswordToggled()", &slot_9, QMetaData::Public },
+00082        { "slotSoundTest()", &slot_10, QMetaData::Public },
+00083        { "slotTerminateNoMailClicked()", &slot_11, QMetaData::Public },
+00084        { "languageChange()", &slot_12, QMetaData::Protected }
+00085     };
+00086     metaObj = QMetaObject::new_metaobject(
+00087        "OptionDlg", parentObject,
+00088        slot_tbl, 13,
+00089        0, 0,
+00090 #ifndef QT_NO_PROPERTIES
+00091        0, 0,
+00092        0, 0,
+00093 #endif // QT_NO_PROPERTIES
+00094        0, 0 );
+00095     cleanUp_OptionDlg.setMetaObject( metaObj );
+00096     return metaObj;
+00097 }
+00098 
+00099 void* OptionDlg::qt_cast( const char* clname )
+00100 {
+00101     if ( !qstrcmp( clname, "OptionDlg" ) )
+00102        return this;
+00103     return QDialog::qt_cast( clname );
+00104 }
+00105 
+00106 bool OptionDlg::qt_invoke( int _id, QUObject* _o )
+00107 {
+00108     switch ( _id - staticMetaObject()->slotOffset() ) {
+00109     case 0: slotExternalProgTest(); break;
+00110     case 1: slotAccountActivated((int)static_QUType_int.get(_o+1)); break;
+00111     case 2: slotButtonAddClicked(); break;
+00112     case 3: slotButtonCopyClicked(); break;
+00113     case 4: slotButtonDeleteClicked(); break;
+00114     case 5: slotButtonEditClicked(); break;
+00115     case 6: slotButtonOkClicked(); break;
+00116     case 7: slotButtonSelectSoundFile(); break;
+00117     case 8: slotMinimizeNoMailClicked(); break;
+00118     case 9: slotSavePasswordToggled(); break;
+00119     case 10: slotSoundTest(); break;
+00120     case 11: slotTerminateNoMailClicked(); break;
+00121     case 12: languageChange(); break;
+00122     default:
+00123        return QDialog::qt_invoke( _id, _o );
+00124     }
+00125     return TRUE;
+00126 }
+00127 
+00128 bool OptionDlg::qt_emit( int _id, QUObject* _o )
+00129 {
+00130     return QDialog::qt_emit(_id,_o);
+00131 }
+00132 #ifndef QT_NO_PROPERTIES
+00133 
+00134 bool OptionDlg::qt_property( int id, int f, QVariant* v)
+00135 {
+00136     return QDialog::qt_property( id, f, v);
+00137 }
+00138 
+00139 bool OptionDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00140 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/ServerDlg_8cpp-source.html b/doc/html/ServerDlg_8cpp-source.html new file mode 100644 index 0000000..5fbabab --- /dev/null +++ b/doc/html/ServerDlg_8cpp-source.html @@ -0,0 +1,204 @@ + + +kshowmail: kshowmail/ServerDlg.cpp Source File + + + + +
+
+ +

ServerDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.h>
+00003 /****************************************************************************
+00004 ** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/ServerDlg.ui'
+00005 **
+00006 ** Created: Di Mai 15 19:57:54 2007
+00007 **      by: The User Interface Compiler ($Id: ServerDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00008 **
+00009 ** WARNING! All changes made in this file will be lost!
+00010 ****************************************************************************/
+00011 
+00012 #include "ServerDlg.h"
+00013 
+00014 #include <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qlabel.h>
+00017 #include <qlineedit.h>
+00018 #include <qcheckbox.h>
+00019 #include <qcombobox.h>
+00020 #include <qspinbox.h>
+00021 #include <qlayout.h>
+00022 #include <qtooltip.h>
+00023 #include <qwhatsthis.h>
+00024 
+00025 /*
+00026  *  Constructs a ServerDlg as a child of 'parent', with the
+00027  *  name 'name' and widget flags set to 'f'.
+00028  *
+00029  *  The dialog will by default be modeless, unless you set 'modal' to
+00030  *  TRUE to construct a modal dialog.
+00031  */
+00032 ServerDlg::ServerDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+00033     : QDialog( parent, name, modal, fl )
+00034 {
+00035     if ( !name )
+00036        setName( "ServerDlg" );
+00037     setSizeGripEnabled( FALSE );
+00038     ServerDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "ServerDlgLayout"); 
+00039 
+00040     QLabel_4 = new QLabel( this, "QLabel_4" );
+00041     QLabel_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QLabel_4->sizePolicy().hasHeightForWidth() ) );
+00042 
+00043     ServerDlgLayout->addWidget( QLabel_4, 5, 0 );
+00044 
+00045     m_EditAccount = new QLineEdit( this, "m_EditAccount" );
+00046     m_EditAccount->setFocusPolicy( QLineEdit::StrongFocus );
+00047 
+00048     ServerDlgLayout->addWidget( m_EditAccount, 0, 1 );
+00049 
+00050     m_EditServer = new QLineEdit( this, "m_EditServer" );
+00051     m_EditServer->setFocusPolicy( QLineEdit::StrongFocus );
+00052 
+00053     ServerDlgLayout->addWidget( m_EditServer, 1, 1 );
+00054 
+00055     QLabel_3 = new QLabel( this, "QLabel_3" );
+00056     QLabel_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QLabel_3->sizePolicy().hasHeightForWidth() ) );
+00057 
+00058     ServerDlgLayout->addWidget( QLabel_3, 4, 0 );
+00059 
+00060     CheckActive = new QCheckBox( this, "CheckActive" );
+00061 
+00062     ServerDlgLayout->addWidget( CheckActive, 6, 1 );
+00063 
+00064     Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); 
+00065 
+00066     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00067     m_ButtonOk->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, m_ButtonOk->sizePolicy().hasHeightForWidth() ) );
+00068     Layout13->addWidget( m_ButtonOk );
+00069     Spacer1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00070     Layout13->addItem( Spacer1 );
+00071 
+00072     m_ButtonCancel = new QPushButton( this, "m_ButtonCancel" );
+00073     m_ButtonCancel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, m_ButtonCancel->sizePolicy().hasHeightForWidth() ) );
+00074     Layout13->addWidget( m_ButtonCancel );
+00075 
+00076     ServerDlgLayout->addMultiCellLayout( Layout13, 7, 7, 0, 1 );
+00077 
+00078     QLabel_1 = new QLabel( this, "QLabel_1" );
+00079     QLabel_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QLabel_1->sizePolicy().hasHeightForWidth() ) );
+00080 
+00081     ServerDlgLayout->addWidget( QLabel_1, 0, 0 );
+00082 
+00083     QLabel_2 = new QLabel( this, "QLabel_2" );
+00084     QLabel_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QLabel_2->sizePolicy().hasHeightForWidth() ) );
+00085 
+00086     ServerDlgLayout->addWidget( QLabel_2, 1, 0 );
+00087 
+00088     QLabel_5 = new QLabel( this, "QLabel_5" );
+00089     QLabel_5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QLabel_5->sizePolicy().hasHeightForWidth() ) );
+00090 
+00091     ServerDlgLayout->addWidget( QLabel_5, 2, 0 );
+00092 
+00093     QLabel_6 = new QLabel( this, "QLabel_6" );
+00094     QLabel_6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QLabel_6->sizePolicy().hasHeightForWidth() ) );
+00095 
+00096     ServerDlgLayout->addWidget( QLabel_6, 3, 0 );
+00097 
+00098     Layout15 = new QHBoxLayout( 0, 0, 6, "Layout15"); 
+00099 
+00100     m_ComboProtocol = new QComboBox( FALSE, this, "m_ComboProtocol" );
+00101     m_ComboProtocol->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, m_ComboProtocol->sizePolicy().hasHeightForWidth() ) );
+00102     m_ComboProtocol->setFocusPolicy( QComboBox::ClickFocus );
+00103     m_ComboProtocol->setInsertionPolicy( QComboBox::AtTop );
+00104     Layout15->addWidget( m_ComboProtocol );
+00105     Spacer11 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00106     Layout15->addItem( Spacer11 );
+00107 
+00108     ServerDlgLayout->addLayout( Layout15, 2, 1 );
+00109 
+00110     Layout14 = new QHBoxLayout( 0, 0, 6, "Layout14"); 
+00111 
+00112     m_SpinPort = new QSpinBox( this, "m_SpinPort" );
+00113     m_SpinPort->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, m_SpinPort->sizePolicy().hasHeightForWidth() ) );
+00114     m_SpinPort->setFocusPolicy( QSpinBox::ClickFocus );
+00115     m_SpinPort->setMaxValue( 9999 );
+00116     Layout14->addWidget( m_SpinPort );
+00117     Spacer10 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00118     Layout14->addItem( Spacer10 );
+00119 
+00120     ServerDlgLayout->addLayout( Layout14, 3, 1 );
+00121 
+00122     m_EditUser = new QLineEdit( this, "m_EditUser" );
+00123     m_EditUser->setFocusPolicy( QLineEdit::StrongFocus );
+00124 
+00125     ServerDlgLayout->addWidget( m_EditUser, 4, 1 );
+00126 
+00127     m_EditPassword = new QLineEdit( this, "m_EditPassword" );
+00128     m_EditPassword->setFocusPolicy( QLineEdit::StrongFocus );
+00129     m_EditPassword->setEchoMode( QLineEdit::Password );
+00130 
+00131     ServerDlgLayout->addWidget( m_EditPassword, 5, 1 );
+00132     languageChange();
+00133     resize( QSize(246, 256).expandedTo(minimumSizeHint()) );
+00134     clearWState( WState_Polished );
+00135 
+00136     // signals and slots connections
+00137     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotButtonOkClicked() ) );
+00138     connect( m_ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+00139 
+00140     // tab order
+00141     setTabOrder( m_EditAccount, m_EditServer );
+00142     setTabOrder( m_EditServer, m_EditUser );
+00143     setTabOrder( m_EditUser, m_EditPassword );
+00144     setTabOrder( m_EditPassword, m_ButtonOk );
+00145     setTabOrder( m_ButtonOk, m_ButtonCancel );
+00146     setTabOrder( m_ButtonCancel, CheckActive );
+00147     setTabOrder( CheckActive, m_ComboProtocol );
+00148     setTabOrder( m_ComboProtocol, m_SpinPort );
+00149 }
+00150 
+00151 /*
+00152  *  Destroys the object and frees any allocated resources
+00153  */
+00154 ServerDlg::~ServerDlg()
+00155 {
+00156     // no need to delete child widgets, Qt does it all for us
+00157 }
+00158 
+00159 /*
+00160  *  Sets the strings of the subwidgets using the current
+00161  *  language.
+00162  */
+00163 void ServerDlg::languageChange()
+00164 {
+00165     setCaption( tr2i18n( "Server Options" ) );
+00166     QLabel_4->setText( tr2i18n( "Password:" ) );
+00167     QLabel_3->setText( tr2i18n( "User:" ) );
+00168     CheckActive->setText( tr2i18n( "Active" ) );
+00169     m_ButtonOk->setText( tr2i18n( "OK" ) );
+00170     m_ButtonCancel->setText( tr2i18n( "Cancel" ) );
+00171     QLabel_1->setText( tr2i18n( "Account:" ) );
+00172     QLabel_2->setText( tr2i18n( "Server:" ) );
+00173     QLabel_5->setText( tr2i18n( "Protocol:" ) );
+00174     QLabel_6->setText( tr2i18n( "Port:" ) );
+00175 }
+00176 
+00177 void ServerDlg::slotButtonOkClicked()
+00178 {
+00179     qWarning( "ServerDlg::slotButtonOkClicked(): Not implemented yet" );
+00180 }
+00181 
+00182 #include "ServerDlg.moc"
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/ServerDlg_8h-source.html b/doc/html/ServerDlg_8h-source.html new file mode 100644 index 0000000..a5ca380 --- /dev/null +++ b/doc/html/ServerDlg_8h-source.html @@ -0,0 +1,91 @@ + + +kshowmail: kshowmail/ServerDlg.h Source File + + + + +
+
+ +

ServerDlg.h

00001 /****************************************************************************
+00002 ** Form interface generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/ServerDlg.ui'
+00003 **
+00004 ** Created: Di Mai 15 19:57:52 2007
+00005 **      by: The User Interface Compiler ($Id: ServerDlg_8h-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 ****************************************************************************/
+00009 
+00010 #ifndef SERVERDLG_H
+00011 #define SERVERDLG_H
+00012 
+00013 #include <qvariant.h>
+00014 #include <qdialog.h>
+00015 #include <kpassdlg.h>
+00016 
+00017 class QVBoxLayout;
+00018 class QHBoxLayout;
+00019 class QGridLayout;
+00020 class QSpacerItem;
+00021 class QLabel;
+00022 class QLineEdit;
+00023 class QCheckBox;
+00024 class QPushButton;
+00025 class QComboBox;
+00026 class QSpinBox;
+00027 
+00028 class ServerDlg : public QDialog
+00029 {
+00030     Q_OBJECT
+00031 
+00032 public:
+00033     ServerDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+00034     ~ServerDlg();
+00035 
+00036     QLabel* QLabel_4;
+00037     QLineEdit* m_EditAccount;
+00038     QLineEdit* m_EditServer;
+00039     QLabel* QLabel_3;
+00040     QCheckBox* CheckActive;
+00041     QPushButton* m_ButtonOk;
+00042     QPushButton* m_ButtonCancel;
+00043     QLabel* QLabel_1;
+00044     QLabel* QLabel_2;
+00045     QLabel* QLabel_5;
+00046     QLabel* QLabel_6;
+00047     QComboBox* m_ComboProtocol;
+00048     QSpinBox* m_SpinPort;
+00049     QLineEdit* m_EditUser;
+00050     QLineEdit* m_EditPassword;
+00051 
+00052 public slots:
+00053     virtual void slotButtonOkClicked();
+00054 
+00055 protected:
+00056     QGridLayout* ServerDlgLayout;
+00057     QHBoxLayout* Layout13;
+00058     QSpacerItem* Spacer1;
+00059     QHBoxLayout* Layout15;
+00060     QSpacerItem* Spacer11;
+00061     QHBoxLayout* Layout14;
+00062     QSpacerItem* Spacer10;
+00063 
+00064 protected slots:
+00065     virtual void languageChange();
+00066 
+00067 };
+00068 
+00069 #endif // SERVERDLG_H
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/ServerDlg_8moc-source.html b/doc/html/ServerDlg_8moc-source.html new file mode 100644 index 0000000..446d746 --- /dev/null +++ b/doc/html/ServerDlg_8moc-source.html @@ -0,0 +1,126 @@ + + +kshowmail: kshowmail/ServerDlg.moc Source File + + + + +
+
+ +

ServerDlg.moc

00001 /****************************************************************************
+00002 ** ServerDlg meta object code from reading C++ file 'ServerDlg.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:54 2007
+00005 **      by: The Qt MOC ($Id: ServerDlg_8moc-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "ServerDlg.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *ServerDlg::className() const
+00023 {
+00024     return "ServerDlg";
+00025 }
+00026 
+00027 QMetaObject *ServerDlg::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_ServerDlg( "ServerDlg", &ServerDlg::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString ServerDlg::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "ServerDlg", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString ServerDlg::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "ServerDlg", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* ServerDlg::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QDialog::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotButtonOkClicked", 0, 0 };
+00056     static const QUMethod slot_1 = {"languageChange", 0, 0 };
+00057     static const QMetaData slot_tbl[] = {
+00058        { "slotButtonOkClicked()", &slot_0, QMetaData::Public },
+00059        { "languageChange()", &slot_1, QMetaData::Protected }
+00060     };
+00061     metaObj = QMetaObject::new_metaobject(
+00062        "ServerDlg", parentObject,
+00063        slot_tbl, 2,
+00064        0, 0,
+00065 #ifndef QT_NO_PROPERTIES
+00066        0, 0,
+00067        0, 0,
+00068 #endif // QT_NO_PROPERTIES
+00069        0, 0 );
+00070     cleanUp_ServerDlg.setMetaObject( metaObj );
+00071     return metaObj;
+00072 }
+00073 
+00074 void* ServerDlg::qt_cast( const char* clname )
+00075 {
+00076     if ( !qstrcmp( clname, "ServerDlg" ) )
+00077        return this;
+00078     return QDialog::qt_cast( clname );
+00079 }
+00080 
+00081 bool ServerDlg::qt_invoke( int _id, QUObject* _o )
+00082 {
+00083     switch ( _id - staticMetaObject()->slotOffset() ) {
+00084     case 0: slotButtonOkClicked(); break;
+00085     case 1: languageChange(); break;
+00086     default:
+00087        return QDialog::qt_invoke( _id, _o );
+00088     }
+00089     return TRUE;
+00090 }
+00091 
+00092 bool ServerDlg::qt_emit( int _id, QUObject* _o )
+00093 {
+00094     return QDialog::qt_emit(_id,_o);
+00095 }
+00096 #ifndef QT_NO_PROPERTIES
+00097 
+00098 bool ServerDlg::qt_property( int id, int f, QVariant* v)
+00099 {
+00100     return QDialog::qt_property( id, f, v);
+00101 }
+00102 
+00103 bool ServerDlg::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00104 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/alertdialog_8cpp-source.html b/doc/html/alertdialog_8cpp-source.html new file mode 100644 index 0000000..629bd9c --- /dev/null +++ b/doc/html/alertdialog_8cpp-source.html @@ -0,0 +1,61 @@ + + +kshowmail: kshowmail/alertdialog.cpp Source File + + + + +
+
+ +

alertdialog.cpp

00001 /***************************************************************************
+00002                           alertdialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Sun Nov 4 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "alertdialog.h"
+00019 
+00020 AlertDialog::AlertDialog(QWidget *parent, const char *name ):
+00021        AlertDlg(parent,name,true)
+00022 {
+00023        // position the dialog at the upper left corner of the main window.
+00024        // if the main window is iconized, the last position on screen is used.
+00025        setGeometry (parent->x (), parent->y (), width (), height ());
+00026 
+00027        // now show the dialog
+00028        show ();
+00029 }
+00030 
+00031 AlertDialog::~AlertDialog()
+00032 {
+00033 }
+00034 
+00035 void AlertDialog::slotOk ()
+00036 {
+00037        emit signalOk ();
+00038 }
+00039 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/alertdialog_8h-source.html b/doc/html/alertdialog_8h-source.html new file mode 100644 index 0000000..e5aa419 --- /dev/null +++ b/doc/html/alertdialog_8h-source.html @@ -0,0 +1,63 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/alertdialog.h Source File + + + + +
+
+
+
+ +

alertdialog.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           alertdialog.h  -  description
+00003                              -------------------
+00004     begin                : Sun Nov 4 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef ALERTDIALOG_H
+00019 #define ALERTDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "AlertDlg.h"
+00023 
+00028 class AlertDialog : public AlertDlg
+00029 {
+00030    Q_OBJECT
+00031 public:
+00032         AlertDialog(QWidget *parent=0, const char *name=0);
+00033         ~AlertDialog();
+00034 public slots:
+00035         void slotOk ();
+00036 signals:
+00037         void signalOk ();
+00038 };
+00039 
+00040 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/alertdialog_8moc_8cpp-source.html b/doc/html/alertdialog_8moc_8cpp-source.html new file mode 100644 index 0000000..56b4c7e --- /dev/null +++ b/doc/html/alertdialog_8moc_8cpp-source.html @@ -0,0 +1,138 @@ + + +kshowmail: kshowmail/alertdialog.moc.cpp Source File + + + + +
+
+ +

alertdialog.moc.cpp

00001 /****************************************************************************
+00002 ** AlertDialog meta object code from reading C++ file 'alertdialog.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:09:03 2007
+00005 **      by: The Qt MOC ($Id: alertdialog_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:49 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "alertdialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *AlertDialog::className() const
+00023 {
+00024     return "AlertDialog";
+00025 }
+00026 
+00027 QMetaObject *AlertDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_AlertDialog( "AlertDialog", &AlertDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString AlertDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "AlertDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString AlertDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "AlertDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* AlertDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = AlertDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotOk", 0, 0 };
+00056     static const QMetaData slot_tbl[] = {
+00057        { "slotOk()", &slot_0, QMetaData::Public }
+00058     };
+00059     static const QUMethod signal_0 = {"signalOk", 0, 0 };
+00060     static const QMetaData signal_tbl[] = {
+00061        { "signalOk()", &signal_0, QMetaData::Public }
+00062     };
+00063     metaObj = QMetaObject::new_metaobject(
+00064        "AlertDialog", parentObject,
+00065        slot_tbl, 1,
+00066        signal_tbl, 1,
+00067 #ifndef QT_NO_PROPERTIES
+00068        0, 0,
+00069        0, 0,
+00070 #endif // QT_NO_PROPERTIES
+00071        0, 0 );
+00072     cleanUp_AlertDialog.setMetaObject( metaObj );
+00073     return metaObj;
+00074 }
+00075 
+00076 void* AlertDialog::qt_cast( const char* clname )
+00077 {
+00078     if ( !qstrcmp( clname, "AlertDialog" ) )
+00079        return this;
+00080     return AlertDlg::qt_cast( clname );
+00081 }
+00082 
+00083 // SIGNAL signalOk
+00084 void AlertDialog::signalOk()
+00085 {
+00086     activate_signal( staticMetaObject()->signalOffset() + 0 );
+00087 }
+00088 
+00089 bool AlertDialog::qt_invoke( int _id, QUObject* _o )
+00090 {
+00091     switch ( _id - staticMetaObject()->slotOffset() ) {
+00092     case 0: slotOk(); break;
+00093     default:
+00094        return AlertDlg::qt_invoke( _id, _o );
+00095     }
+00096     return TRUE;
+00097 }
+00098 
+00099 bool AlertDialog::qt_emit( int _id, QUObject* _o )
+00100 {
+00101     switch ( _id - staticMetaObject()->signalOffset() ) {
+00102     case 0: signalOk(); break;
+00103     default:
+00104        return AlertDlg::qt_emit(_id,_o);
+00105     }
+00106     return TRUE;
+00107 }
+00108 #ifndef QT_NO_PROPERTIES
+00109 
+00110 bool AlertDialog::qt_property( int id, int f, QVariant* v)
+00111 {
+00112     return AlertDlg::qt_property( id, f, v);
+00113 }
+00114 
+00115 bool AlertDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00116 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/annotated.html b/doc/html/annotated.html new file mode 100644 index 0000000..c8b7486 --- /dev/null +++ b/doc/html/annotated.html @@ -0,0 +1,70 @@ + + +kshowmail.kdevelop: Class List + + + + +
+
+
+
+

kshowmail.kdevelop Class List

Here are the classes, structs, unions and interfaces with brief descriptions: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AccountSetupDialogDialog to setup an account
AccountSetupItemThis class is used in ConfigAccounts to show the available accounts in the list view and to store an account setup
AlertDialog
AlertDlg
ConfigAccountsPart of the setup dialog (KShowMailApp::SetupDialog) to configure the accounts
ConfigActionsPart of the setup dialog (KShowMailApp::SetupDialog) to configure the actions
ConfigDisplayPart of the setup dialog (KShowMailApp::SetupDialog) to configure the display
ConfigElemRepresents a mail account
ConfigFilterPart of the setup dialog (KShowMailApp::SetupDialog) to configure the filter
ConfigGeneralPart of the setup dialog (KShowMailApp::SetupDialog) to configure general things
ConfigList
ConfigLogPart of the setup dialog (KShowMailApp::SetupDialog) to configure the log
ConfigSpamcheckPart of the setup dialog (KShowMailApp::SetupDialog) to configure the spam check
FilterCriteriaWidgetPart of the filter setup dialog (class FilterSetupDialog) to show a criteria of the selected filter
FilterItem
FilterItemCriteriaThis is a criteria of a filter item. For using create an object and call check(). It gets its configuration itself from the config file at creation time. You can't reload the setup
FilterLog
FilterLogEntryAn Object of this class contains the datas about a deleted or moved mail. These objects are stored in the lists of the filter log
FilterLogViewThis dialog box shows the filter log
FilterLogViewDeletedItemItem of the filter log view of deleted mails
FilterLogViewMovedItemItem of the filter log view of moved mails
FilterSetupDialogDialog to setup a filter
FilterSetupItemThis class is used in ConfigFilter to show the available filters in the list view and to store a filter setup
HeaderFilterThis is the mail header filter. Call check() with some header datas of the mail to get the configured action for this mail. If the settings was changed by the config GUI you have to call load()
KShowMailApp
KshowmailDoc
KShowMailDock
KshowmailView
MailBoxWizard
MailBoxWizardListItem
SenderListDialogThis is a dialog to edit the blacklist and whitelist. It is used by the class ConfigFilter
SenderListFilterThis class represents both the blacklist and the whitelist. For using create an object of it and call check() to test a sender address. You have to call load() after the settings in the config file was changed
ServerDialogDialog to edit account options. You can not create a new account or edit the account name
ShowHeaderDialog
ShowListViewItem
ShowMailDialog
ShowRecordList which contains all mails of an account
ShowRecordElemRepresents a mail
Types::DownloadActionParams_Type
Types::FilterCriteria_Type
UniqueAppCreates a unique instance of kshowmail
+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classAlertDialog-members.html b/doc/html/classAlertDialog-members.html new file mode 100644 index 0000000..e5379e4 --- /dev/null +++ b/doc/html/classAlertDialog-members.html @@ -0,0 +1,41 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

AlertDialog Member List

This is the complete list of members for AlertDialog, including all inherited members.

+ + + + + + + + + + + + + +
AlertDialog(QWidget *parent=0, const char *name=0)AlertDialog
AlertDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)AlertDlg
AlertDlgLayoutAlertDlg [protected]
languageChange()AlertDlg [protected, virtual, slot]
m_ButtonIgnoreAlertDlg
m_ButtonOkAlertDlg
PixmapLabel2AlertDlg
QLabel_1AlertDlg
QLabel_2AlertDlg
signalOk()AlertDialog [signal]
slotOk()AlertDialog [virtual, slot]
~AlertDialog()AlertDialog
~AlertDlg()AlertDlg


Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classAlertDialog.html b/doc/html/classAlertDialog.html new file mode 100644 index 0000000..203ffbb --- /dev/null +++ b/doc/html/classAlertDialog.html @@ -0,0 +1,144 @@ + + +kshowmail.kdevelop: AlertDialog Class Reference + + + + +
+
+
+
+

AlertDialog Class Reference

#include <alertdialog.h> +

+

Inheritance diagram for AlertDialog: +

+ +AlertDlg + +List of all members. + + + + + + + + + + + + +

Public Slots

void slotOk ()

Signals

void signalOk ()

Public Member Functions

 AlertDialog (QWidget *parent=0, const char *name=0)
 ~AlertDialog ()
+

Detailed Description

+
Author:
Eggert Ehmke
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
AlertDialog::AlertDialog (QWidget *  parent = 0,
const char *  name = 0 
)
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
AlertDialog::~AlertDialog (  ) 
+
+
+ +

+ +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
void AlertDialog::slotOk (  )  [virtual, slot]
+
+
+ +

+ +

+Reimplemented from AlertDlg. +

+

+ +

+
+ + + + + + + + +
void AlertDialog::signalOk (  )  [signal]
+
+
+ +

+ +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classAlertDialog.png b/doc/html/classAlertDialog.png new file mode 100644 index 0000000..377ba37 Binary files /dev/null and b/doc/html/classAlertDialog.png differ diff --git a/doc/html/classAlertDlg-members.html b/doc/html/classAlertDlg-members.html new file mode 100644 index 0000000..4956952 --- /dev/null +++ b/doc/html/classAlertDlg-members.html @@ -0,0 +1,39 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

AlertDlg Member List

This is the complete list of members for AlertDlg, including all inherited members.

+ + + + + + + + + + + +
AlertDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)AlertDlg
AlertDlgLayoutAlertDlg [protected]
image0AlertDlg [private]
languageChange()AlertDlg [protected, virtual, slot]
m_ButtonIgnoreAlertDlg
m_ButtonOkAlertDlg
PixmapLabel2AlertDlg
QLabel_1AlertDlg
QLabel_2AlertDlg
slotOk()AlertDlg [virtual, slot]
~AlertDlg()AlertDlg


Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classAlertDlg.html b/doc/html/classAlertDlg.html new file mode 100644 index 0000000..1ac11cf --- /dev/null +++ b/doc/html/classAlertDlg.html @@ -0,0 +1,275 @@ + + +kshowmail.kdevelop: AlertDlg Class Reference + + + + +
+
+
+
+

AlertDlg Class Reference

#include <AlertDlg.h> +

+

Inheritance diagram for AlertDlg: +

+ +AlertDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

virtual void slotOk ()

Public Member Functions

 AlertDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
 ~AlertDlg ()

Public Attributes

QPushButton * m_ButtonIgnore
QPushButton * m_ButtonOk
QLabel * PixmapLabel2
QLabel * QLabel_1
QLabel * QLabel_2

Protected Slots

virtual void languageChange ()

Protected Attributes

QGridLayout * AlertDlgLayout

Private Attributes

QPixmap image0
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AlertDlg::AlertDlg (QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE,
WFlags  fl = 0 
)
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
AlertDlg::~AlertDlg (  ) 
+
+
+ +

+ +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
void AlertDlg::slotOk (  )  [virtual, slot]
+
+
+ +

+ +

+Reimplemented in AlertDialog. +

+

+ +

+
+ + + + + + + + +
void AlertDlg::languageChange (  )  [protected, virtual, slot]
+
+
+ +

+ +

+

+


Member Data Documentation

+ +
+
+ + + + +
QPushButton* AlertDlg::m_ButtonIgnore
+
+
+ +

+ +

+

+ +

+
+ + + + +
QPushButton* AlertDlg::m_ButtonOk
+
+
+ +

+ +

+

+ +

+
+ + + + +
QLabel* AlertDlg::PixmapLabel2
+
+
+ +

+ +

+

+ +

+
+ + + + +
QLabel* AlertDlg::QLabel_1
+
+
+ +

+ +

+

+ +

+
+ + + + +
QLabel* AlertDlg::QLabel_2
+
+
+ +

+ +

+

+ +

+
+ + + + +
QGridLayout* AlertDlg::AlertDlgLayout [protected]
+
+
+ +

+ +

+

+ +

+
+ + + + +
QPixmap AlertDlg::image0 [private]
+
+
+ +

+ +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classAlertDlg.png b/doc/html/classAlertDlg.png new file mode 100644 index 0000000..41b0f9b Binary files /dev/null and b/doc/html/classAlertDlg.png differ diff --git a/doc/html/classCommandDialog-members.html b/doc/html/classCommandDialog-members.html new file mode 100644 index 0000000..40a9e63 --- /dev/null +++ b/doc/html/classCommandDialog-members.html @@ -0,0 +1,55 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

CommandDialog Member List

This is the complete list of members for CommandDialog, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
CommandDialog(QWidget *parent, const char *name, CommandList *list, ConfigElem *pConfig, ConfigList *pConfigList)CommandDialog
CommandDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)CommandDlg
CommandDlgLayoutCommandDlg [protected]
languageChange()CommandDlg [protected, virtual, slot]
Layout6CommandDlg [protected]
m_ButtonAddCommandDlg
m_ButtonCancelCommandDlg
m_ButtonCopyCommandDlg
m_ButtonDeleteCommandDlg
m_ButtonEditCommandDlg
m_ButtonOkCommandDlg
m_ComboCommandCommandDlg
m_locallistCommandDialog [private]
m_pConfigCommandDialog [private]
m_pConfigListCommandDialog [private]
m_plistCommandDialog [private]
QGroupBox_1CommandDlg
QGroupBox_1LayoutCommandDlg [protected]
slotAdd()CommandDialog [private, virtual, slot]
slotCommandActivated(int)CommandDialog [private, virtual, slot]
slotCopy()CommandDialog [private, virtual, slot]
slotDelete()CommandDialog [private, virtual, slot]
slotEdit()CommandDialog [private, virtual, slot]
slotOk()CommandDialog [private, virtual, slot]
Spacer11CommandDlg [protected]
~CommandDialog()CommandDialog
~CommandDlg()CommandDlg


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandDialog.html b/doc/html/classCommandDialog.html new file mode 100644 index 0000000..ea6f4ca --- /dev/null +++ b/doc/html/classCommandDialog.html @@ -0,0 +1,81 @@ + + +kshowmail: CommandDialog Class Reference + + + + +
+
+
+
+

CommandDialog Class Reference

Inheritance diagram for CommandDialog: +

+ +CommandDlg + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

CommandDialog (QWidget *parent, const char *name, CommandList *list, ConfigElem *pConfig, ConfigList *pConfigList)
~CommandDialog ()

Private Slots

+virtual void slotAdd ()
+virtual void slotEdit ()
+virtual void slotCopy ()
+virtual void slotDelete ()
+virtual void slotOk ()
+virtual void slotCommandActivated (int)

Private Attributes

+CommandListm_plist
+CommandList m_locallist
+ConfigListm_pConfigList
+ConfigElemm_pConfig
+

Detailed Description

+ +

+ +

+Definition at line 35 of file commanddialog.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandDialog.png b/doc/html/classCommandDialog.png new file mode 100644 index 0000000..c78390e Binary files /dev/null and b/doc/html/classCommandDialog.png differ diff --git a/doc/html/classCommandDlg-members.html b/doc/html/classCommandDlg-members.html new file mode 100644 index 0000000..867d0b5 --- /dev/null +++ b/doc/html/classCommandDlg-members.html @@ -0,0 +1,49 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

CommandDlg Member List

This is the complete list of members for CommandDlg, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + +
CommandDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)CommandDlg
CommandDlgLayoutCommandDlg [protected]
languageChange()CommandDlg [protected, virtual, slot]
Layout6CommandDlg [protected]
m_ButtonAddCommandDlg
m_ButtonCancelCommandDlg
m_ButtonCopyCommandDlg
m_ButtonDeleteCommandDlg
m_ButtonEditCommandDlg
m_ButtonOkCommandDlg
m_ComboCommandCommandDlg
QGroupBox_1CommandDlg
QGroupBox_1LayoutCommandDlg [protected]
slotAdd()CommandDlg [virtual, slot]
slotCommandActivated(int)CommandDlg [virtual, slot]
slotCopy()CommandDlg [virtual, slot]
slotDelete()CommandDlg [virtual, slot]
slotEdit()CommandDlg [virtual, slot]
slotOk()CommandDlg [virtual, slot]
Spacer11CommandDlg [protected]
~CommandDlg()CommandDlg


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandDlg.html b/doc/html/classCommandDlg.html new file mode 100644 index 0000000..fa64ebd --- /dev/null +++ b/doc/html/classCommandDlg.html @@ -0,0 +1,110 @@ + + +kshowmail: CommandDlg Class Reference + + + + +
+
+
+
+

CommandDlg Class Reference

Inheritance diagram for CommandDlg: +

+ +CommandDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotCommandActivated (int)
+virtual void slotAdd ()
+virtual void slotCopy ()
+virtual void slotDelete ()
+virtual void slotEdit ()
+virtual void slotOk ()

Public Member Functions

CommandDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~CommandDlg ()

Public Attributes

+QPushButton * m_ButtonOk
+QPushButton * m_ButtonCancel
+QGroupBox * QGroupBox_1
+QPushButton * m_ButtonAdd
+QPushButton * m_ButtonEdit
+QPushButton * m_ButtonCopy
+QPushButton * m_ButtonDelete
+QComboBox * m_ComboCommand

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QGridLayout * CommandDlgLayout
+QHBoxLayout * Layout6
+QSpacerItem * Spacer11
+QGridLayout * QGroupBox_1Layout
+

Detailed Description

+ +

+ +

+Definition at line 24 of file CommandDlg.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandDlg.png b/doc/html/classCommandDlg.png new file mode 100644 index 0000000..1ebb372 Binary files /dev/null and b/doc/html/classCommandDlg.png differ diff --git a/doc/html/classCommandEntry-members.html b/doc/html/classCommandEntry-members.html new file mode 100644 index 0000000..dfa124a --- /dev/null +++ b/doc/html/classCommandEntry-members.html @@ -0,0 +1,38 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

CommandEntry Member List

This is the complete list of members for CommandEntry, including all inherited members.

+ + + + + + + + + + +
CommandEntry()CommandEntry [inline]
CommandEntry(const char *name, const char *path, const int id, const bool modal)CommandEntry [inline]
CommandEntry(const CommandEntry *copy)CommandEntry [inline]
exec(ConfigElem *pelem=NULL, const char *header=NULL, const char *body=NULL)CommandEntry
exec(const QString &path, ConfigElem *pelem, const char *header=NULL, const char *body=NULL)CommandEntry
m_idCommandEntry
m_nameCommandEntry
m_pathCommandEntry
m_waitForCommandCommandEntry
operator=(const CommandEntry &entry)CommandEntry


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandEntry.html b/doc/html/classCommandEntry.html new file mode 100644 index 0000000..1458681 --- /dev/null +++ b/doc/html/classCommandEntry.html @@ -0,0 +1,69 @@ + + +kshowmail: CommandEntry Class Reference + + + + +
+
+
+
+

CommandEntry Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

CommandEntry ()
CommandEntry (const char *name, const char *path, const int id, const bool modal)
CommandEntry (const CommandEntry *copy)
+CommandEntryoperator= (const CommandEntry &entry)
+bool exec (ConfigElem *pelem=NULL, const char *header=NULL, const char *body=NULL)
+bool exec (const QString &path, ConfigElem *pelem, const char *header=NULL, const char *body=NULL)

Public Attributes

+QString m_name
+QString m_path
+int m_id
+bool m_waitForCommand
+

Detailed Description

+ +

+ +

+Definition at line 33 of file commandentry.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandEntryDialog-members.html b/doc/html/classCommandEntryDialog-members.html new file mode 100644 index 0000000..9e61f4d --- /dev/null +++ b/doc/html/classCommandEntryDialog-members.html @@ -0,0 +1,52 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

CommandEntryDialog Member List

This is the complete list of members for CommandEntryDialog, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + +
CommandEntryDialog(QWidget *parent, const char *name, CommandEntry *entry, ConfigElem *pConfigElem)CommandEntryDialog
CommandEntryDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)CommandEntryDlg
CommandEntryDlgLayoutCommandEntryDlg [protected]
languageChange()CommandEntryDlg [protected, virtual, slot]
layout2CommandEntryDlg [protected]
m_ButtonCancelCommandEntryDlg
m_ButtonOkCommandEntryDlg
m_ButtonPathCommandEntryDlg
m_ButtonTestCommandEntryDlg
m_checkModalCommandEntryDlg
m_EditNameCommandEntryDlg
m_EditPathCommandEntryDlg
m_pConfigElemCommandEntryDialog [private]
m_pentryCommandEntryDialog [private]
QGroupBox_1CommandEntryDlg
QGroupBox_1LayoutCommandEntryDlg [protected]
slotOk()CommandEntryDialog [private, virtual, slot]
slotPath()CommandEntryDialog [private, virtual, slot]
slotTest()CommandEntryDialog [private, virtual, slot]
Spacer16CommandEntryDlg [protected]
Spacer17CommandEntryDlg [protected]
spacer3CommandEntryDlg [protected]
~CommandEntryDialog()CommandEntryDialog
~CommandEntryDlg()CommandEntryDlg


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandEntryDialog.html b/doc/html/classCommandEntryDialog.html new file mode 100644 index 0000000..9622a86 --- /dev/null +++ b/doc/html/classCommandEntryDialog.html @@ -0,0 +1,69 @@ + + +kshowmail: CommandEntryDialog Class Reference + + + + +
+
+
+
+

CommandEntryDialog Class Reference

#include <commandentrydialog.h> +

+

Inheritance diagram for CommandEntryDialog: +

+ +CommandEntryDlg + +List of all members. + + + + + + + + + + + + + + + + + + +

Public Member Functions

CommandEntryDialog (QWidget *parent, const char *name, CommandEntry *entry, ConfigElem *pConfigElem)
~CommandEntryDialog ()

Private Slots

+void slotPath ()
+void slotTest ()
+void slotOk ()

Private Attributes

+CommandEntrym_pentry
+ConfigElemm_pConfigElem
+

Detailed Description

+
Author:
Eggert Ehmke
+ +

+ +

+Definition at line 30 of file commandentrydialog.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandEntryDialog.png b/doc/html/classCommandEntryDialog.png new file mode 100644 index 0000000..1d28993 Binary files /dev/null and b/doc/html/classCommandEntryDialog.png differ diff --git a/doc/html/classCommandEntryDlg-members.html b/doc/html/classCommandEntryDlg-members.html new file mode 100644 index 0000000..cc7f395 --- /dev/null +++ b/doc/html/classCommandEntryDlg-members.html @@ -0,0 +1,48 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

CommandEntryDlg Member List

This is the complete list of members for CommandEntryDlg, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + +
CommandEntryDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)CommandEntryDlg
CommandEntryDlgLayoutCommandEntryDlg [protected]
languageChange()CommandEntryDlg [protected, virtual, slot]
layout2CommandEntryDlg [protected]
m_ButtonCancelCommandEntryDlg
m_ButtonOkCommandEntryDlg
m_ButtonPathCommandEntryDlg
m_ButtonTestCommandEntryDlg
m_checkModalCommandEntryDlg
m_EditNameCommandEntryDlg
m_EditPathCommandEntryDlg
QGroupBox_1CommandEntryDlg
QGroupBox_1LayoutCommandEntryDlg [protected]
slotOk()CommandEntryDlg [virtual, slot]
slotPath()CommandEntryDlg [virtual, slot]
slotTest()CommandEntryDlg [virtual, slot]
Spacer16CommandEntryDlg [protected]
Spacer17CommandEntryDlg [protected]
spacer3CommandEntryDlg [protected]
~CommandEntryDlg()CommandEntryDlg


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandEntryDlg.html b/doc/html/classCommandEntryDlg.html new file mode 100644 index 0000000..39356ad --- /dev/null +++ b/doc/html/classCommandEntryDlg.html @@ -0,0 +1,107 @@ + + +kshowmail: CommandEntryDlg Class Reference + + + + +
+
+
+
+

CommandEntryDlg Class Reference

Inheritance diagram for CommandEntryDlg: +

+ +CommandEntryDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotOk ()
+virtual void slotPath ()
+virtual void slotTest ()

Public Member Functions

CommandEntryDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~CommandEntryDlg ()

Public Attributes

+QGroupBox * QGroupBox_1
+QPushButton * m_ButtonPath
+QPushButton * m_ButtonTest
+QCheckBox * m_checkModal
+QLineEdit * m_EditName
+QLineEdit * m_EditPath
+QPushButton * m_ButtonOk
+QPushButton * m_ButtonCancel

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QVBoxLayout * CommandEntryDlgLayout
+QGridLayout * QGroupBox_1Layout
+QSpacerItem * spacer3
+QSpacerItem * Spacer16
+QHBoxLayout * layout2
+QSpacerItem * Spacer17
+

Detailed Description

+ +

+ +

+Definition at line 25 of file CommandEntryDlg.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandEntryDlg.png b/doc/html/classCommandEntryDlg.png new file mode 100644 index 0000000..7f3fba5 Binary files /dev/null and b/doc/html/classCommandEntryDlg.png differ diff --git a/doc/html/classCommandList-members.html b/doc/html/classCommandList-members.html new file mode 100644 index 0000000..4588010 --- /dev/null +++ b/doc/html/classCommandList-members.html @@ -0,0 +1,38 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

CommandList Member List

This is the complete list of members for CommandList, including all inherited members.

+ + + + + + + + + + +
CommandList()CommandList
compareItems(QCollection::Item item1, QCollection::Item item2)CommandList [protected, virtual]
exec(unsigned int id, ConfigElem *pelem, const char *header, const char *body)CommandList
exec(unsigned int pos, ConfigElem *pelem)CommandList
newItem(QCollection::Item d)CommandList [protected, virtual]
operator=(CommandList &right)CommandList
readOptions(KConfig *config)CommandList
saveOptions(KConfig *config)CommandList
setCombo(QComboBox *combo, int nIndex)CommandList
~CommandList()CommandList [virtual]


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classCommandList.html b/doc/html/classCommandList.html new file mode 100644 index 0000000..8cab68c --- /dev/null +++ b/doc/html/classCommandList.html @@ -0,0 +1,69 @@ + + +kshowmail: CommandList Class Reference + + + + +
+
+
+
+

CommandList Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

CommandList ()
+virtual ~CommandList ()
+void setCombo (QComboBox *combo, int nIndex)
+CommandListoperator= (CommandList &right)
+bool exec (unsigned int id, ConfigElem *pelem, const char *header, const char *body)
+bool exec (unsigned int pos, ConfigElem *pelem)
+void readOptions (KConfig *config)
+void saveOptions (KConfig *config)

Protected Member Functions

+virtual int compareItems (QCollection::Item item1, QCollection::Item item2)
+virtual QCollection::Item newItem (QCollection::Item d)
+

Detailed Description

+ +

+ +

+Definition at line 31 of file commandlist.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classConfigElem-members.html b/doc/html/classConfigElem-members.html new file mode 100644 index 0000000..a274a0d --- /dev/null +++ b/doc/html/classConfigElem-members.html @@ -0,0 +1,149 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

ConfigElem Member List

This is the complete list of members for ConfigElem, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
appConfigConfigElem [private]
applyFilters()ConfigElem [private]
applyFiltersDeleted()ConfigElem [private]
assertPassword(bool force=false)ConfigElem
cancelRefresh()ConfigElem [private]
cancelShowHeadersConfigElem [static]
clearMailList()ConfigElem
commitDeletion()ConfigElem [private]
commitDownloading()ConfigElem [private]
commitRefresh()ConfigElem [private]
ConfigElem()ConfigElem
ConfigElem(ConfigList *config)ConfigElem
ConfigElem(ConfigElem *pElem)ConfigElem
ConfigElem(ConfigList *config, const QString &account)ConfigElem
continueShowHeadersConfigElem [static]
copyHeaders()ConfigElem [private]
count()ConfigElem
deleteNextMail()ConfigElem [private]
deleteSelectedMails()ConfigElem
deletionPerformedByFiltersConfigElem [private]
doDownloadActions()ConfigElem [private]
downloadActionsInvokedConfigElem [private]
fillMailListView(KshowmailView *view)ConfigElem
filterAppliedConfigElem [private]
FLogConfigElem [private]
getAccountName() constConfigElem
getHeaders()ConfigElem [private]
getHost() constConfigElem
getListViewItem()ConfigElem
getNextHeader()ConfigElem [private]
getNextMailForDownloadActions()ConfigElem [private]
getNumberMails()ConfigElem
getNumberNewMails()ConfigElem
getPassword() constConfigElem
getPasswordStorage() constConfigElem
getPort() constConfigElem
getProtocol(bool upperCase=false) constConfigElem
getSelectedSubjects() constConfigElem
getSizes()ConfigElem [private]
getState()ConfigElem
getTimeoutTime()ConfigElem [private]
getTLS() constConfigElem
getTotalSize()ConfigElem
getUIDs()ConfigElem [private]
getURL() constConfigElem
getUser() constConfigElem
hasPassword() constConfigElem
hasSelectedMails()ConfigElem
headerFilterConfigElem [private]
init()ConfigElem [private]
isActive() constConfigElem
isMailDir(const QDir &path)ConfigElem [private]
isSelected() constConfigElem
isSpam(QByteArray mail) constConfigElem [protected]
isSpamAssassinRunning() constConfigElem [protected]
killPOP3Job()ConfigElem
m_bActiveConfigElem [private]
m_pshowrecordConfigElem [private]
m_pViewItemConfigElem [private]
m_strAccountConfigElem [private]
m_urlConfigElem [private]
mailbodyConfigElem [private]
MailsToDeleteConfigElem [private]
MailsToDownloadConfigElem [private]
MailsToShowConfigElem [private]
moveCounterConfigElem [private]
newMailsConfigElem [private]
PasswordStorageConfigElem [private]
pop3JobConfigElem [private]
pop3TimerConfigElem [private]
printSetup() constConfigElem
readStoredMails(QDomElement &parent)ConfigElem
receivedHeaderConfigElem [private]
receivedSizesConfigElem [private]
receivedUIDsConfigElem [private]
refreshAccountListItem()ConfigElem
refreshMailList(FilterLog *log=NULL)ConfigElem
refreshPerformedByFiltersConfigElem [private]
reloadFilterSettings()ConfigElem
saveOptions(QDomDocument &doc, QDomElement &parent)ConfigElem
secureLoginTypeConfigElem [private]
setAccountName(QString name)ConfigElem
setActive(bool active)ConfigElem
setHost(const QString &host)ConfigElem
setListViewItem(QListViewItem *item)ConfigElem
setPassword(const QString &password)ConfigElem
setPasswordStorage(int storage)ConfigElem
setPort(unsigned short int port)ConfigElem
setProtocol(const QString &protocol)ConfigElem
setTLS(bool tls)ConfigElem
setUser(const QString &user)ConfigElem
showNextMail()ConfigElem [private]
showSelectedHeaders()ConfigElem
showSelectedMails()ConfigElem
sigConfigChanged()ConfigElem [signal]
sigDeleteReady(QString account)ConfigElem [signal]
sigMessageWindowClosed()ConfigElem [signal]
sigMessageWindowOpened()ConfigElem [signal]
sigRefreshReady(QString account)ConfigElem [signal]
sigShowBodiesReady(QString account)ConfigElem [signal]
slotBodyDownloaded(KIO::Job *job)ConfigElem [private, slot]
slotDataMailBody(KIO::Job *, const QByteArray &datas)ConfigElem [private, slot]
slotFinalizeDeletion(KIO::Job *)ConfigElem [private, slot]
slotFinalizeRefresh(KIO::Job *)ConfigElem [private, slot]
slotFinalizeShowMail(KIO::Job *)ConfigElem [private, slot]
slotHeaderDownloaded(KIO::Job *job)ConfigElem [private, slot]
slotMailDeleted(KIO::Job *job)ConfigElem [private, slot]
slotMailDownloadedForAction(KIO::Job *job)ConfigElem [private, slot]
slotReceiveHeader(KIO::Job *, const QByteArray &data)ConfigElem [private, slot]
slotReceiveSize(KIO::Job *, const QByteArray &data)ConfigElem [private, slot]
slotReceiveUID(KIO::Job *, const QByteArray &data)ConfigElem [private, slot]
slotSizesReceived(KIO::Job *job)ConfigElem [private, slot]
slotTimeout()ConfigElem [private, slot]
slotUIDsReceived(KIO::Job *job)ConfigElem [private, slot]
startKIOJob(const QString &path)ConfigElem [private]
stateConfigElem [private]
swapMailLists()ConfigElem [private]
tempMailListConfigElem [private]
useTLSConfigElem [private]
writeToMailBox(const QString &mail, const QString &box)ConfigElem [private]
~ConfigElem()ConfigElem


Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classConfigElem.html b/doc/html/classConfigElem.html new file mode 100644 index 0000000..3870b11 --- /dev/null +++ b/doc/html/classConfigElem.html @@ -0,0 +1,2855 @@ + + +kshowmail.kdevelop: ConfigElem Class Reference + + + + +
+
+
+
+

ConfigElem Class Reference

Represents a mail account. +More... +

+#include <configelem.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Signals

void sigDeleteReady (QString account)
void sigShowBodiesReady (QString account)
void sigConfigChanged ()
void sigMessageWindowOpened ()
void sigMessageWindowClosed ()
void sigRefreshReady (QString account)

Public Member Functions

 ConfigElem ()
 ConfigElem (ConfigList *config)
 ConfigElem (ConfigElem *pElem)
 ConfigElem (ConfigList *config, const QString &account)
 ~ConfigElem ()
bool isActive () const
void setActive (bool active)
QString getAccountName () const
void setAccountName (QString name)
QString getPassword () const
void setPassword (const QString &password)
bool hasPassword () const
KURL getURL () const
void setListViewItem (QListViewItem *item)
QListViewItem * getListViewItem ()
bool isSelected () const
void clearMailList ()
void setHost (const QString &host)
QString getHost () const
void setProtocol (const QString &protocol)
QString getProtocol (bool upperCase=false) const
void setTLS (bool tls)
bool getTLS () const
void setPort (unsigned short int port)
unsigned short int getPort () const
void setUser (const QString &user)
QString getUser () const
void setPasswordStorage (int storage)
int getPasswordStorage () const
void saveOptions (QDomDocument &doc, QDomElement &parent)
void readStoredMails (QDomElement &parent)
int count ()
void deleteSelectedMails ()
void showSelectedMails ()
bool assertPassword (bool force=false)
Types::AccountState_Type getState ()
QStringList getSelectedSubjects () const
bool hasSelectedMails ()
void refreshMailList (FilterLog *log=NULL)
int getNumberNewMails ()
int getNumberMails ()
long getTotalSize ()
void fillMailListView (KshowmailView *view)
void refreshAccountListItem ()
void killPOP3Job ()
int showSelectedHeaders ()
void printSetup () const
void reloadFilterSettings ()

Static Public Attributes

static const int continueShowHeaders
static const int cancelShowHeaders

Protected Member Functions

bool isSpam (QByteArray mail) const
bool isSpamAssassinRunning () const

Private Slots

void slotMailDeleted (KIO::Job *job)
void slotFinalizeDeletion (KIO::Job *)
void slotBodyDownloaded (KIO::Job *job)
void slotMailDownloadedForAction (KIO::Job *job)
void slotDataMailBody (KIO::Job *, const QByteArray &datas)
void slotFinalizeShowMail (KIO::Job *)
void slotTimeout ()
void slotReceiveUID (KIO::Job *, const QByteArray &data)
void slotUIDsReceived (KIO::Job *job)
void slotReceiveSize (KIO::Job *, const QByteArray &data)
void slotSizesReceived (KIO::Job *job)
void slotFinalizeRefresh (KIO::Job *)
void slotHeaderDownloaded (KIO::Job *job)
void slotReceiveHeader (KIO::Job *, const QByteArray &data)

Private Member Functions

void init ()
void deleteNextMail ()
void commitDeletion ()
void showNextMail ()
void commitDownloading ()
void startKIOJob (const QString &path)
unsigned int getTimeoutTime ()
void getUIDs ()
void getSizes ()
void getHeaders ()
void getNextHeader ()
void copyHeaders ()
void applyFilters ()
void applyFiltersDeleted ()
void cancelRefresh ()
void commitRefresh ()
void swapMailLists ()
void doDownloadActions ()
void getNextMailForDownloadActions ()
bool isMailDir (const QDir &path)
bool writeToMailBox (const QString &mail, const QString &box)

Private Attributes

ConfigListappConfig
FilterLogFLog
Types::AccountState_Type state
int PasswordStorage
bool m_bActive
QString m_strAccount
QListViewItem * m_pViewItem
ShowRecordm_pshowrecord
KURL m_url
int secureLoginType
bool useTLS
QByteArray mailbody
MailNumberList_Type MailsToDelete
MailToDownloadMap_Type MailsToDownload
MailNumberList_Type MailsToShow
MailNumberList_Type newMails
KIO::TransferJob * pop3Job
QTimer * pop3Timer
ShowRecordtempMailList
QStringList receivedUIDs
QStringList receivedSizes
QByteArray receivedHeader
HeaderFilter headerFilter
bool filterApplied
bool deletionPerformedByFilters
bool refreshPerformedByFilters
bool downloadActionsInvoked
int moveCounter
+


Detailed Description

+Represents a mail account. +

+Contains all datas of the account like server, user password and so on. It also contains the mails read from the server. Used in class ConfigList and ConfigAccounts.

+

See also:
ShowRecord

+ConfigList

+ConfigAccounts::Accounts

+
Author:
Eggert Ehmke <eggert.ehmke@berlin.de>

+Ulrich Weigelt <ulrich.weigelt@gmx.de>

+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
ConfigElem::ConfigElem (  ) 
+
+
+ +

+General Constructor Warning: The pointer to the application configuration (ConfigList) will not be set. +

+

+ +

+
+ + + + + + + + + +
ConfigElem::ConfigElem (ConfigList config  ) 
+
+
+ +

+Default Constructor

Parameters:
+ + +
config pointer to the general app configuration
+
+ +
+

+ +

+
+ + + + + + + + + +
ConfigElem::ConfigElem (ConfigElem pElem  ) 
+
+
+ +

+Copy Constructor. It doesn't copy the mail list but creates a new empty one. The pointer to the appropriate account list view item is set to NULL.The new account is active by default.

Parameters:
+ + +
pElem the account which will be copied
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
ConfigElem::ConfigElem (ConfigList config,
const QString &  account 
)
+
+
+ +

+Constructs a account which is called like the given name. Creates a empty mail list. Sets the pointer to the appropriate account list view item to NULL. The account is deactivated by default. The url doesn't contain any server informations.

Parameters:
+ + + +
config pointer to the general app configuration
account name of the new account
+
+ +
+

+ +

+
+ + + + + + + + +
ConfigElem::~ConfigElem (  ) 
+
+
+ +

+Destructor Does nothing. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
bool ConfigElem::isActive (  )  const
+
+
+ +

+Returns whether the account is active.

Returns:
TRUE - account is active; FALSE - account is not active
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setActive (bool  active  ) 
+
+
+ +

+Sets the account active.

Parameters:
+ + +
active TRUE - active account; FALSE - deactivate account
+
+ +
+

+ +

+
+ + + + + + + + +
QString ConfigElem::getAccountName (  )  const
+
+
+ +

+Gets the account name.

Returns:
account name
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setAccountName (QString  name  ) 
+
+
+ +

+Sets the account name.

Parameters:
+ + +
name the account name
+
+ +
+

+ +

+
+ + + + + + + + +
QString ConfigElem::getPassword (  )  const
+
+
+ +

+Gets the account password.

Returns:
password
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setPassword (const QString &  password  ) 
+
+
+ +

+Sets the account password. To save it in the configuration file call saveOptions().

Parameters:
+ + +
password new password
+
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigElem::hasPassword (  )  const
+
+
+ +

+Returns whether a password is stored.

Returns:
TRUE - there is password stored; FALSE - no password stored
+ +
+

+ +

+
+ + + + + + + + +
KURL ConfigElem::getURL (  )  const
+
+
+ +

+Returns the url of this account.

Returns:
url
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setListViewItem (QListViewItem *  item  ) 
+
+
+ +

+Sets the pointer to the item in the account list view item.

See also:
m_pViewItem
+
Parameters:
+ + +
item account list view item
+
+ +
+

+ +

+
+ + + + + + + + +
QListViewItem * ConfigElem::getListViewItem (  ) 
+
+
+ +

+Returns the pointer to the account list view item.

See also:
m_pViewItem
+
Returns:
pointer to the appropriate list view item
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigElem::isSelected (  )  const
+
+
+ +

+Returns TRUE, if the appropriate list view item is selected.

Returns:
TRUE - list view item is selected

+FALSE - list view item is not selected

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::clearMailList (  ) 
+
+
+ +

+Clears the mail list or creates a new one. +

+

+ +

+
+ + + + + + + + + +
void ConfigElem::setHost (const QString &  host  ) 
+
+
+ +

+Sets the host name.

Parameters:
+ + +
host host name
+
+ +
+

+ +

+
+ + + + + + + + +
QString ConfigElem::getHost (  )  const
+
+
+ +

+Returns the hostname.

Returns:
the name of the host or QString::null if no host is set
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setProtocol (const QString &  protocol  ) 
+
+
+ +

+Sets the protocol.

Parameters:
+ + +
protocol the protocol
+
+ +
+

+ +

+
+ + + + + + + + + +
QString ConfigElem::getProtocol (bool  upperCase = false  )  const
+
+
+ +

+Returns the protocol.

Parameters:
+ + +
upperCase TRUE - transforms the protocol string to upper case
+
+
Returns:
protocol
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setTLS (bool  tls  ) 
+
+
+ +

+Enable or disable TLS.

Parameters:
+ + +
tls TRUE: use TLS; FALSE: don't use TLS
+
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigElem::getTLS (  )  const
+
+
+ +

+Returns whether TLS is enabled.

Returns:
TRUE: TLS is enabled

+FALSE: TLS is disabled

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setPort (unsigned short int  port  ) 
+
+
+ +

+Sets the port.

Parameters:
+ + +
port the port
+
+ +
+

+ +

+
+ + + + + + + + +
unsigned short int ConfigElem::getPort (  )  const
+
+
+ +

+Returns the port number.

Returns:
port number
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setUser (const QString &  user  ) 
+
+
+ +

+Sets the user.

Parameters:
+ + +
user username
+
+ +
+

+ +

+
+ + + + + + + + +
QString ConfigElem::getUser (  )  const
+
+
+ +

+Returns the user name.

Returns:
the user name or QString::null if there is no user name
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::setPasswordStorage (int  storage  ) 
+
+
+ +

+Sets the password storage type. The Constants are defined in constants.h

Parameters:
+ + +
storage type of password storage; valid values are: CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET
+
+ +
+

+ +

+
+ + + + + + + + +
int ConfigElem::getPasswordStorage (  )  const
+
+
+ +

+Returns the password storage type. The Constants are defined in constants.h.

Returns:
type of password storage; valid values are: CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ConfigElem::saveOptions (QDomDocument &  doc,
QDomElement &  parent 
)
+
+
+ +

+Saves the stored mails into the given DOM document. It doesn't create a new DOM element but used the given one. Saves the setup into the application config.

Parameters:
+ + + +
doc DOM document which contains all application settings, mails and account settings
parent DOM element in which all settings and mails of this account will be saved
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::readStoredMails (QDomElement &  parent  ) 
+
+
+ +

+Gets the stored mails.

Parameters:
+ + +
parent DOM element which contains the mails of this account
+
+ +
+

+ +

+
+ + + + + + + + +
int ConfigElem::count (  ) 
+
+
+ +

+Returns the number of stored mails.

Returns:
number of mails
+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::deleteSelectedMails (  ) 
+
+
+ +

+Deletes all selected mails. This just starts the deletion and returns after then. When the deletion is ready the signal sigDeleteReady will be emitted. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::showSelectedMails (  ) 
+
+
+ +

+Downloads and shows the bodies of all selected mails. This just starts the download and returns after then. When the download is ready and the body is shown the sigShowBodiesReady will be emitted. +

+

+ +

+
+ + + + + + + + + +
bool ConfigElem::assertPassword (bool  force = false  ) 
+
+
+ +

+Opens a dialog to ask for a password, stores it temporarily in the account settings and emits the signal sigConfigChanged. Does not open a dialog if a password is already stored in the account settings.

Parameters:
+ + +
force ask for a new password even if a password is stored
+
+
Returns:
TRUE - a password is available

+FALSE - no password is available

+ +
+

+ +

+
+ + + + + + + + +
Types::AccountState_Type ConfigElem::getState (  ) 
+
+
+ +

+Returns the state of the account.

Returns:
account state
+ +
+

+ +

+
+ + + + + + + + +
QStringList ConfigElem::getSelectedSubjects (  )  const
+
+
+ +

+Returns the subjects of the selected mails.

Returns:
subjects of selected mails
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigElem::hasSelectedMails (  ) 
+
+
+ +

+Returns whether there are mails in the list that are selected in the list view.

Returns:
TRUE - there are selected mails

+FALSE - there aren't selected mails

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::refreshMailList (FilterLog log = NULL  ) 
+
+
+ +

+Refreshes the mail list. This just starts the refresh and returns after then. When the refresh is ready, the signal sigRefreshReady will be emitted.

Parameters:
+ + +
log Pointer to the filter log
+
+
See also:
sigRefreshReady
+ +
+

+ +

+
+ + + + + + + + +
int ConfigElem::getNumberNewMails (  ) 
+
+
+ +

+Returns the number of new mails.

Returns:
number of new mails
+ +
+

+ +

+
+ + + + + + + + +
int ConfigElem::getNumberMails (  ) 
+
+
+ +

+Returns the number of mails.

Returns:
number of mails
+ +
+

+ +

+
+ + + + + + + + +
long ConfigElem::getTotalSize (  ) 
+
+
+ +

+Returns the total size of all mails.

Returns:
total size
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::fillMailListView (KshowmailView view  ) 
+
+
+ +

+Creates for every mail a list view item and insert it into the mail list view.

Parameters:
+ + +
view pointer to the application view
+
+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::refreshAccountListItem (  ) 
+
+
+ +

+Refreshes the appropriate entry of the account list (number of mails and total size) Uses the pointer to the list view item stored in m_pViewItem. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::killPOP3Job (  ) 
+
+
+ +

+Kills a running pop3 job. +

+

+ +

+
+ + + + + + + + +
int ConfigElem::showSelectedHeaders (  ) 
+
+
+ +

+Shows the headers of all selected mails.

Returns:
continueShowHeaders - the user has clicked OK. The invoking function will show the next header

+cancelShowHeaders - the user has clicked Cancel. The invoking function will not show the next header.

+continueShowHeaders - no mails of this account are selected

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::printSetup (  )  const
+
+
+ +

+Prints the setup to stdout. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::reloadFilterSettings (  ) 
+
+
+ +

+Reloads the settings of the filters. It just calls the load() methode of the header filter. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::init (  )  [private]
+
+
+ +

+Initializes the account. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::deleteNextMail (  )  [private]
+
+
+ +

+Deletes the first mail of MailsToDelete. After a succesful deletion this mail will be removed from the list by slotMailDeleted() and this method will be invoked again. If the list is empty, it will call commitDelete.

See also:
slotMailDeleted()

+MailsToDelete

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::commitDeletion (  )  [private]
+
+
+ +

+Commits the deletion. Starts a pop3 job that will do the commit. Its signal result is connected with slotFinalizeDeletion().

See also:
slotFinalizeDeletion()
+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::showNextMail (  )  [private]
+
+
+ +

+Shows the body of the first mail in MailsToShow. After a succesful download and opening of the window this mail will be removed from the list by slotBodyDownloaded() and this method will be invoked again. If the list is empty, it will call commitDownloading().

See also:
commitDownloading()

+slotBodyDownloaded()

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::commitDownloading (  )  [private]
+
+
+ +

+Commits the downloading of mail bodies. Starts a pop3 job that will do the commit. Its signal result is connected with slotFinalizeShowMail().

See also:
slotFinalizeShowMail()
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::startKIOJob (const QString &  path  )  [private]
+
+
+ +

+Creates a POP3 transfer job (KIO Job), which will be stored in pop3Job.

Parameters:
+ + +
path command and parameters of the job as URL path
+
+ +
+

+ +

+
+ + + + + + + + +
unsigned int ConfigElem::getTimeoutTime (  )  [private]
+
+
+ +

+Returns the timeout time in seconds which is stored in the general configuration of the application. Returns POP3_DEFAULT_TIMEOUT_TIME (defined in constants.h), if no time is available. Returns POP3_MINIMUM_TIMEOUT_TIME (defined in constants.h), if the get time is less than POP3_MINIMUM_TIMEOUT_TIME.

Returns:
seconds to timeout
+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::getUIDs (  )  [private]
+
+
+ +

+First step of the refresh cycle. Gets the UIDs of the available mails from the server. It starts a KIO job to get the UIDs. The UIDs will be stored in receivedUIDs by slotReceiveUID(). When the job is ready, it will invoke slotUIDsReceived(). +

+

+ +

+
+ + + + + + + + +
void ConfigElem::getSizes (  )  [private]
+
+
+ +

+Second step of the refresh cycle. Gets the sizes of the available mails from the server. It starts a KIO job to get these. The Sizes will be temporarily stored in receivedSizes by slotReceiveSize(). When the job is ready, it will invoke slotSizesReceived(). +

+

+ +

+
+ + + + + + + + +
void ConfigElem::getHeaders (  )  [private]
+
+
+ +

+Third step of the refresh cycle. Gets the header of the new mails from the server. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::getNextHeader (  )  [private]
+
+
+ +

+Get the header of the first mail in newMails. After a succesful download this mail will be removed from the list by slotHeaderDownloaded() and this method will be invoked again. If the list is empty, it will call copyHeaders() to get the known headers from the old mail list (m_pshowrecord).

See also:
copyHeaders()

+slotHeaderDownloaded()

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::copyHeaders (  )  [private]
+
+
+ +

+Fourth step of the refresh cycle. Copies the known headers of the old mails from the old mail list to the new one. At the end it invokes swapMailLists(). +

+

+ +

+
+ + + + + + + + +
void ConfigElem::applyFilters (  )  [private]
+
+
+ +

+Sixth step of the refresh cycle. Applies the filters to the mails in the mail list. Invoked by swapMailLists(). This methode maybe starts a new refresh cycle because after a deletion or moving we need a actual list of mails on the server. To avoid a never-ending loop you must not call this methode during the second refresh cycle. Therefore it sets filterApplied to TRUE.

See also:
filterApplied

+applyFiltersDeleted()

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::applyFiltersDeleted (  )  [private]
+
+
+ +

+If there are mails to delete by filters applyFilters will call the regular deletion cycle of this class with set byFilter-flag. Therefore the deletion will not branch to commitDeletion() but to this methode. This performs a second refresh cycle to get an effective mail list from the server. This new cycle will not apply the filters again, because the flag filterApplied is set to TRUE.

See also:
applyFilters()

+filterApplied

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::cancelRefresh (  )  [private]
+
+
+ +

+Cancels the refresh. Will be invoked, when a pop3 job has reported an error. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::commitRefresh (  )  [private]
+
+
+ +

+Commits the refresh. Starts a pop3 job that will do the commit. Its signal result is connected with slotFinalizeRefresh(). Invoked by copyHeaders() if the filters was applied or applyFilters() if not second refresh was necessary.

See also:
slotFinalizeRefresh()

+applyFilters()

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::swapMailLists (  )  [private]
+
+
+ +

+Fifth step of the refresh cycle. Copies the pointer to the temporary list to m_pshowrecord. Invoked by copyHeaders() and slotUIDsReceived(). The temporary list will be the current mail list. At the end it invokes commitRefresh() if the filters were applied (filterApplied == TRUE) or deactive or it invokes applyFilters() if the filters were not applied (filterApplied == FALSE).

See also:
m_pshowrecord

+copyHeaders()

+slotUIDsReceived()

+commitRefresh()

+filterApplied

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::doDownloadActions (  )  [private]
+
+
+ +

+Does all filter actions for which we have to download the mails These are: Moving, spam check It doesn't removes they from the server. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::getNextMailForDownloadActions (  )  [private]
+
+
+ +

+Gets the body of the first mail in MailsToDownload. After a succesful download and writing into the mailbox this mail will be removed from the list by slotMailDownloadedforDownloadActions() and this method will be invoked again. If the list is empty, it will call applyFilters() to continue the filtering.

See also:
applyFilters()

+slotMailDownloadedforDownloadActions()

+ +
+

+ +

+
+ + + + + + + + + +
bool ConfigElem::isMailDir (const QDir &  path  )  [private]
+
+
+ +

+Returns whether the given directory is a maildir directory

Parameters:
+ + +
path the directory for test
+
+
Returns:
TRUE - directory is a maildir directory
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
bool ConfigElem::writeToMailBox (const QString &  mail,
const QString &  box 
) [private]
+
+
+ +

+Writes the given mail into the mailbox.

Parameters:
+ + + +
mail the Mail
box path to the mailbox
+
+
Returns:
TRUE - Writing was succesful
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotMailDeleted (KIO::Job *  job  )  [private, slot]
+
+
+ +

+Connected with signal result of the launched pop3 job. Removes the deleted mail from the internal mail list (m_pshowrecord). Removes the first mail from MailsToDelete and invokes deleteNextMail() again to delete the next mail. If the list is empty after it has removed the first item, it will call commitDelete(). If an error is occured, it will call slotFinalizeDeletion().

Parameters:
+ + +
job job which has emit the result signal
+
+
See also:
deleteNextMail()

+MailsToDelete

+pop3Job

+slotFinalizeDeletion()

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotFinalizeDeletion (KIO::Job *   )  [private, slot]
+
+
+ +

+Connected with the signal result of the job which commits the deletion. Finalizes the deletion of mails. Emits signal sigDeleteReady.

See also:
deleteNextMail()

+slotMailDeleted()

+sigDeleteReady

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotBodyDownloaded (KIO::Job *  job  )  [private, slot]
+
+
+ +

+Connected with signal result of the launched pop3 job to download a mail body. Opens a window (class ShowMailDialog) with the downloaded mail body. Removes the first mail from MailsToShow and invokes showNextMail() again to show the next mail. If the list is empty after it has removed the first item, it will call commitDownloading(). If an error is occured, it will call slotFinalizeShowMail().

Parameters:
+ + +
job job which has emit the result signal
+
+
See also:
showNextMail()

+commitDownloading()

+MailsToShow

+pop3Job

+slotFinalizeShowMail()

+ShowMailDialog

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotMailDownloadedForAction (KIO::Job *  job  )  [private, slot]
+
+
+ +

+Connected with signal result of the launched pop3 job to download a mail to write it into a mailbox or do a spam check. Maybe it puts the number of the downloaded mail into the list of mails to delete (MailsToDelete). Removes the first mail from MailsToMove and invokes getNextMailForMove() again to get and write the next mail. If the list is empty after it has removed the first item, it will call applyFilters() to continue the filtering. If an error is occured the current mail will not put into MailsToDelete. And it returns to applyFilters() immediately.

Parameters:
+ + +
job job which has emit the result signal
+
+
See also:
MailsToDownload

+getNextMailForDownloadActions()

+applyFilters()

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ConfigElem::slotDataMailBody (KIO::Job * ,
const QByteArray &  datas 
) [private, slot]
+
+
+ +

+Connected with signal data of the launched pop3 job to download a mail body. Receives the downloaded data from the job. This lot will be called several times during the donwload. At the last one the array is empty. It extracts the body from the downloaded data and stores it in DownloadedMailBody.

Parameters:
+ + +
datas the downloaded mail
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotFinalizeShowMail (KIO::Job *   )  [private, slot]
+
+
+ +

+Connected with the signal result of the job which commits the download of the mail bodies. Finalizes the downloading and showing of the selected mails. Emits signal sigShowBodiesReady and sets account state to idle.

See also:
showNextMail()

+slotBodyDownloaded()

+sigShowBodiesReady

+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::slotTimeout (  )  [private, slot]
+
+
+ +

+Connected with signal timeout() of the timeout timer pop3Timer. Will be called when the timer is run down, if the pop3 job has not ended on time. It kills a running pop3 job and invokes the appropriate finalize slot of the running operation. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ConfigElem::slotReceiveUID (KIO::Job * ,
const QByteArray &  data 
) [private, slot]
+
+
+ +

+Connected with the signal "data" of the pop3 transfer job which gets mail UIDs (Unique ID). Therefore it will be called when the job has received an UIDL from the server. Every received UID causes a call of this slot. When the job ends, it causes a last call but with an empty data array. The UIDs will be stored in receivedUIDs.

Parameters:
+ + +
data received data, which contain an uid
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotUIDsReceived (KIO::Job *  job  )  [private, slot]
+
+
+ +

+Connected with signal result of the launched pop3 job to get the UIDs. Will be invoked, when all UIDs are received and stored in receivedUIDs. Analyzes the received UID datas and creates new ShowRecordElem instances in the new mail list accordingly.

Parameters:
+ + +
job job which has emitted the result signal
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ConfigElem::slotReceiveSize (KIO::Job * ,
const QByteArray &  data 
) [private, slot]
+
+
+ +

+Connected with the signal "data" of the pop3 transfer job which gets mail Sizes. Therefore it will be called when the job has received a size from the server. Every received size causes a call of this slot. When the job ends, it causes a last call but with an empty data array. The UIDs will be stored in receivedSizes.

Parameters:
+ + +
data received data, which contain a size
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotSizesReceived (KIO::Job *  job  )  [private, slot]
+
+
+ +

+Connected with signal result of the launched pop3 job to get the Sizes. Will be invoked, when all Sizes are received and stored in receivedSizes. Analyzes the received datas and writes these in the appropriate mail instances.

Parameters:
+ + +
job job which has emitted the result signal
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotFinalizeRefresh (KIO::Job *   )  [private, slot]
+
+
+ +

+Connected with signal result of the job which commits the refresh. Finalizes a succesful refresh. Emits sigRefreshReady and sets account state to idle +

+

+ +

+
+ + + + + + + + + +
void ConfigElem::slotHeaderDownloaded (KIO::Job *  job  )  [private, slot]
+
+
+ +

+Connected with signal result of the launched pop3 job. Stores the received headers into the appropriate instance of the mail list. Removes the first mail from newMails and invokes getNextHeader() again to get the next header. If the list is empty after it has removed the first item, it will call copyHeaders(). If an error has occured, it will call cancelRefresh().

Parameters:
+ + +
job job which has emit the result signal
+
+
See also:
getNextHeader()

+newMails

+pop3Job

+cancelRefresh()

+copyHeaders()

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ConfigElem::slotReceiveHeader (KIO::Job * ,
const QByteArray &  data 
) [private, slot]
+
+
+ +

+Connected with the signal "data" of the pop3 transfer job which gets a mail header. Therefore it will be called when the job has received a part of the header from the server. When the job ends, it causes a last call but with an empty data array. The complete header will be stored in receivedHeader.

Parameters:
+ + +
data received data, which contains a header part
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::sigDeleteReady (QString  account  )  [signal]
+
+
+ +

+Will be emitted when all selected mails are deleted.

Parameters:
+ + +
account name of the account, which has emitted this signal
+
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigElem::sigShowBodiesReady (QString  account  )  [signal]
+
+
+ +

+Will be emitted when the bodies of all selected mails are downloaded and shown.

Parameters:
+ + +
account name of the account, which has emitted this signal
+
+ +
+

+ +

+
+ + + + + + + + +
void ConfigElem::sigConfigChanged (  )  [signal]
+
+
+ +

+Will be emitted when the settings have been changed. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::sigMessageWindowOpened (  )  [signal]
+
+
+ +

+Will be emitted, when a window to show a message was opened. +

+

+ +

+
+ + + + + + + + +
void ConfigElem::sigMessageWindowClosed (  )  [signal]
+
+
+ +

+Will be emitted, when a window to show a message was closed. +

+

+ +

+
+ + + + + + + + + +
void ConfigElem::sigRefreshReady (QString  account  )  [signal]
+
+
+ +

+Will be emitted, when the mail list was refreshed.

Parameters:
+ + +
account name of the account, which has emitted this signal
+
+ +
+

+ +

+
+ + + + + + + + + +
bool ConfigElem::isSpam (QByteArray  mail  )  const [protected]
+
+
+ +

+Forwards the given mail to SpamAssassin and returns the test result

Parameters:
+ + +
mail the mail to test
+
+
Returns:
TRUE - mail is spam
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigElem::isSpamAssassinRunning (  )  const [protected]
+
+
+ +

+Looks for a running spamd daemon of SpamAssassin.

Returns:
TRUE - SpamAssassin is running
+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
int const ConfigElem::continueShowHeaders [static]
+
+
+ +

+Returned by showSelectedHeaders(), if the user has clicked OK. +

+

+ +

+
+ + + + +
int const ConfigElem::cancelShowHeaders [static]
+
+
+ +

+Returned by showSelectedHeaders(), if the user has clicked Cancel. +

+

+ +

+
+ + + + +
ConfigList* ConfigElem::appConfig [private]
+
+
+ +

+Pointer to the configuration of the application. Set by the constructors. +

+

+ +

+
+ + + + +
FilterLog* ConfigElem::FLog [private]
+
+
+ +

+Pointer to the filter log. Will be set by refreshMailList() at every refresh. +

+

+ +

+ +
+ +

+State of the account. +

+

+ +

+
+ + + + +
int ConfigElem::PasswordStorage [private]
+
+
+ +

+Type of password storage. valid values are: CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET The Constants are defined in constants.h

See also:
saveOptions()

+setPasswordStorage()

+ +
+

+ +

+
+ + + + +
bool ConfigElem::m_bActive [private]
+
+
+ +

+TRUE - account is active; FALSE - account is not active +

+

+ +

+
+ + + + +
QString ConfigElem::m_strAccount [private]
+
+
+ +

+Account Name +

+

+ +

+
+ + + + +
QListViewItem* ConfigElem::m_pViewItem [private]
+
+
+ +

+Pointer to the appropriate item in the account list view. +

+

+ +

+
+ + + + +
ShowRecord* ConfigElem::m_pshowrecord [private]
+
+
+ +

+List which contains all read mails from the server. +

+

+ +

+
+ + + + +
KURL ConfigElem::m_url [private]
+
+
+ +

+Uniform Resource Locator of the account on the pop3 server. +

+

+ +

+
+ + + + +
int ConfigElem::secureLoginType [private]
+
+
+ +

+Type of secure login. See constants.h for valid values (CONFIG_VALUE_ACCOUNT_SECLOGIN_...) +

+

+ +

+
+ + + + +
bool ConfigElem::useTLS [private]
+
+
+ +

+False: TLS is enabled +

+

+ +

+
+ + + + +
QByteArray ConfigElem::mailbody [private]
+
+
+ +

+Contains a downloaded mail body. Will be set by slotDataMailBody() and read by slotBodyDownloaded(). +

+

+ +

+
+ + + + +
MailNumberList_Type ConfigElem::MailsToDelete [private]
+
+
+ +

+Contains the numbers of mails which will be deleted. Set by deleteSelectedMails() and applyFilters() and used by deleteNextMail() to get the number of the next mail to delete.

See also:
deleteSelectedMails()

+deleteNextMail()

+applyFilters()

+ +
+

+ +

+
+ + + + +
MailToDownloadMap_Type ConfigElem::MailsToDownload [private]
+
+
+ +

+Contains the numbers of the mails shall be moved for actions like moving to mailbox or spam check. Contains also some parameters (like mailbox) about the action which have to be performed. Set and used by applyFilters().

See also:
applyFilters()
+ +
+

+ +

+
+ + + + +
MailNumberList_Type ConfigElem::MailsToShow [private]
+
+
+ +

+Contains the numbers of mails for which the bodies will be shown. Set by showSelectedMails() and used by showNextMail() to get the number of the next mail to show.

See also:
showSelectedMails()

+showNextMail()

+ +
+

+ +

+
+ + + + +
MailNumberList_Type ConfigElem::newMails [private]
+
+
+ +

+Contains the numbers of new mails. Set by getHeaders() and used by getNextHeader() to download the headers of the new mails.

See also:
getHeaders()

+getNextHeader()

+ +
+

+ +

+
+ + + + +
KIO::TransferJob* ConfigElem::pop3Job [private]
+
+
+ +

+Pointer to a launched pop3 job. +

+

+ +

+
+ + + + +
QTimer* ConfigElem::pop3Timer [private]
+
+
+ +

+timeout timer. Will be started together with every pop3 job. If it runs down, slotTimeout() will be invoked. +

+

+ +

+
+ + + + +
ShowRecord* ConfigElem::tempMailList [private]
+
+
+ +

+While refreshing, this ShowRecord instance will be used to build a new mail list. After that this pointer will be assigned to m_pshowrecord. +

+

+ +

+
+ + + + +
QStringList ConfigElem::receivedUIDs [private]
+
+
+ +

+List of received mail UIDs (unique ID). Used by slotReceiveUID() and slotUIDsReceived(). +

+

+ +

+
+ + + + +
QStringList ConfigElem::receivedSizes [private]
+
+
+ +

+List of received mail sizes. Used by slotReceiveSize() and slotSizesReceived(). +

+

+ +

+
+ + + + +
QByteArray ConfigElem::receivedHeader [private]
+
+
+ +

+A received mail header. Set by slotReceiveHeader() and used by slotHeaderDownloaded(). +

+

+ +

+
+ + + + +
HeaderFilter ConfigElem::headerFilter [private]
+
+
+ +

+Every account has is own header filter instance. +

+

+ +

+
+ + + + +
bool ConfigElem::filterApplied [private]
+
+
+ +

+This is a flag whether the filters was applied during a refresh cycle. If the some mails was deleted (recommend by the filter), we need a actual list of mails from the server. Therefore a second refresh cycle will be started. To avoid a never-ending loop this flag will be set to TRUE by applyFilters(). If the second refresh is running this one will not invoke the filters. +

+

+ +

+
+ + + + +
bool ConfigElem::deletionPerformedByFilters [private]
+
+
+ +

+This flag is set by applyFilters() to indicate the deletion cycle is performed by filters and not by user. The deletion methodes need it to decide on branch targets +

+

+ +

+
+ + + + +
bool ConfigElem::refreshPerformedByFilters [private]
+
+
+ +

+This flag is set by applyFiltersDeleted() to indicate the refresh cycle is the second one after a deletion which was performed by filters. The refresh cycle need it to hold the remaining mails as new. +

+

+ +

+
+ + + + +
bool ConfigElem::downloadActionsInvoked [private]
+
+
+ +

+This flag is set to TRUE by applyFilters() to indicate the mailbodies are downloading and writing to the mailboxes or spam checking. When this is ended, applyFilters() will be called again and it reset this flag +

+

+ +

+
+ + + + +
int ConfigElem::moveCounter [private]
+
+
+ +

+Counter for moving to create an unique file name +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classConfigList-members.html b/doc/html/classConfigList-members.html new file mode 100644 index 0000000..3882094 --- /dev/null +++ b/doc/html/classConfigList-members.html @@ -0,0 +1,122 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

ConfigList Member List

This is the complete list of members for ConfigList, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AccountDeletionMapConfigList [private]
AccountRefreshMapConfigList [private]
AccountShowBodiesMapConfigList [private]
allowHTML() constConfigList
AutoRefreshOn() constConfigList
beep()ConfigList
closeToTray() constConfigList
compareItems(QCollection::Item item1, QCollection::Item item2)ConfigList [protected, virtual]
configConfigList [private]
ConfigList()ConfigList
confirmClose() constConfigList
confirmDeletion()ConfigList
connectAccounts()ConfigList
ctrOpenMessageWindowsConfigList [private]
deleteSelectedMails()ConfigList
executeNewMailCommand()ConfigList
fillMailListView(KshowmailView *view)ConfigList
getAccount(const QString &name) constConfigList [protected]
getInitTime()ConfigList
getNumberMails()ConfigList
getNumberNewMails()ConfigList
getRefreshTimeInterval() constConfigList
getSelectedAccount()ConfigList
getSelectedSubjects() constConfigList
getSpamAction()ConfigList
getSpamMailbox()ConfigList
getTimeoutTime() constConfigList
getTotalSize()ConfigList
hasAccount(const QString &name) constConfigList [protected]
hasActiveAccounts()ConfigList
hasInitTime()ConfigList
hasSelectedMails()ConfigList
keepNew()ConfigList
killPOP3Jobs()ConfigList
m_bAllowHTMLConfigList [private]
m_bBeepConfigList [private]
m_bCloseMinimizesConfigList [private]
m_bCommandConfigList [private]
m_bConfirmCloseConfigList [private]
m_bConfirmDeleteConfigList [private]
m_bKeepNewConfigList [private]
m_bMinimizeConfigList [private]
m_bMinimizeToTrayConfigList [private]
m_bShowConnectionErrorsConfigList [private]
m_bShowMainWindowConfigList [private]
m_bShowMessageConfigList [private]
m_bSoundConfigList [private]
m_bStartMinimizedConfigList [private]
m_bTerminateConfigList [private]
m_nInitTimerConfigList [private]
m_nIntervalTimerConfigList [private]
m_nPop3TimerConfigList [private]
m_strCommandPathConfigList [private]
m_strSoundFileConfigList [private]
minimizeMainWindowNoNewMails()ConfigList
minimizesToTray() constConfigList
newItem(QCollection::Item item)ConfigList [protected, virtual]
playSound()ConfigList
playSound(const char *file)ConfigList
printSetup()ConfigList
quitNoNewMails()ConfigList
readStoredMails()ConfigList
refreshAccountList()ConfigList
refreshMailLists(FilterLog *log=NULL)ConfigList
refreshSetup(KListView *view)ConfigList
saveOptions()ConfigList
setAllowHTML(bool allowHTML)ConfigList
setConfirmDeletion(bool confirm)ConfigList
setInitTime(int time)ConfigList
setItem(const char *item)ConfigList
setList(QListView *list)ConfigList
setRefreshTimeInterval(unsigned int interval)ConfigList
setTimeoutTime(uint time)ConfigList
showAlertMessageForNewMails()ConfigList
showConnectionErrors() constConfigList
showMainWindowForNewMails()ConfigList
showSelectedHeaders()ConfigList
showSelectedMails()ConfigList
sigAllMessageWindowsClosed()ConfigList [signal]
sigConfigChanged()ConfigList [signal]
sigDeleteReady()ConfigList [signal]
sigMessageWindowOpened()ConfigList [signal]
sigRefreshReady()ConfigList [signal]
sigShowBodiesReady()ConfigList [signal]
slotAccountConfigChanged()ConfigList [protected, slot]
slotCheckDeletionState(QString account)ConfigList [protected, slot]
slotCheckRefreshState(QString account)ConfigList [protected, slot]
slotCheckShowBodiesState(QString account)ConfigList [protected, slot]
slotMessageWindowClosed()ConfigList [protected, slot]
slotMessageWindowOpened()ConfigList [protected, slot]
spamActionConfigList [private]
spamMailboxConfigList [private]
startMinimized() constConfigList
~ConfigList()ConfigList [inline, virtual]


Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classConfigList.html b/doc/html/classConfigList.html new file mode 100644 index 0000000..948573b --- /dev/null +++ b/doc/html/classConfigList.html @@ -0,0 +1,2087 @@ + + +kshowmail.kdevelop: ConfigList Class Reference + + + + +
+
+
+
+

ConfigList Class Reference

#include <configlist.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Signals

void sigConfigChanged ()
void sigDeleteReady ()
void sigShowBodiesReady ()
void sigMessageWindowOpened ()
void sigAllMessageWindowsClosed ()
void sigRefreshReady ()

Public Member Functions

 ConfigList ()
virtual ~ConfigList ()
void refreshSetup (KListView *view)
int getRefreshTimeInterval () const
void setRefreshTimeInterval (unsigned int interval)
bool AutoRefreshOn () const
void setConfirmDeletion (bool confirm)
bool confirmDeletion ()
bool confirmClose () const
bool startMinimized () const
bool closeToTray () const
bool minimizesToTray () const
bool showConnectionErrors () const
void setAllowHTML (bool allowHTML)
bool allowHTML () const
bool hasActiveAccounts ()
uint getTimeoutTime () const
void setTimeoutTime (uint time)
ConfigElemgetSelectedAccount ()
void deleteSelectedMails ()
void connectAccounts ()
QStringList getSelectedSubjects () const
bool hasSelectedMails ()
void showSelectedMails ()
void refreshMailLists (FilterLog *log=NULL)
int getNumberNewMails ()
int getNumberMails ()
long getTotalSize ()
void fillMailListView (KshowmailView *view)
bool showMainWindowForNewMails ()
bool showAlertMessageForNewMails ()
bool quitNoNewMails ()
bool minimizeMainWindowNoNewMails ()
int getInitTime ()
void setInitTime (int time)
bool hasInitTime ()
void refreshAccountList ()
void killPOP3Jobs ()
void showSelectedHeaders ()
void executeNewMailCommand ()
bool keepNew ()
void printSetup ()
void saveOptions ()
void readStoredMails ()
FilterAction_Type getSpamAction ()
QString getSpamMailbox ()
bool setItem (const char *item)
void setList (QListView *list)
void beep ()
void playSound ()
void playSound (const char *file)

Protected Slots

void slotAccountConfigChanged ()
void slotCheckDeletionState (QString account)
void slotCheckShowBodiesState (QString account)
void slotMessageWindowOpened ()
void slotMessageWindowClosed ()
void slotCheckRefreshState (QString account)

Protected Member Functions

virtual QCollection::Item newItem (QCollection::Item item)
virtual int compareItems (QCollection::Item item1, QCollection::Item item2)
bool hasAccount (const QString &name) const
ConfigElemgetAccount (const QString &name) const

Private Attributes

KConfig * config
int m_nIntervalTimer
uint m_nPop3Timer
AccountTaskMap_Type AccountDeletionMap
AccountTaskMap_Type AccountShowBodiesMap
AccountTaskMap_Type AccountRefreshMap
bool m_bConfirmDelete
bool m_bAllowHTML
int ctrOpenMessageWindows
int m_nInitTimer
bool m_bShowMessage
bool m_bShowMainWindow
bool m_bBeep
bool m_bSound
QString m_strSoundFile
bool m_bCommand
QString m_strCommandPath
bool m_bTerminate
bool m_bMinimize
bool m_bShowConnectionErrors
bool m_bConfirmClose
bool m_bStartMinimized
bool m_bCloseMinimizes
bool m_bMinimizeToTray
bool m_bKeepNew
QString spamMailbox
FilterAction_Type spamAction
+


Detailed Description

+Contains the application and account settings. The account settings are stored in ConfigElem objects.
Author:
Eggert Ehmke

+Ulrich Weigelt

+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
ConfigList::ConfigList (  ) 
+
+
+ +

+Constructor. +

+

+ +

+
+ + + + + + + + +
virtual ConfigList::~ConfigList (  )  [inline, virtual]
+
+
+ +

+Destructor +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
void ConfigList::refreshSetup (KListView *  view  ) 
+
+
+ +

+Reads the setup from the configuration file (kshowmailrc) and sets the properties.

Parameters:
+ + +
view pointer to the account list view
+
+ +
+

+ +

+
+ + + + + + + + +
int ConfigList::getRefreshTimeInterval (  )  const
+
+
+ +

+Returns the auto refresh time interval.

Returns:
refresh time interval [minutes]
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::setRefreshTimeInterval (unsigned int  interval  ) 
+
+
+ +

+Sets the auto refresh time interval.

Parameters:
+ + +
interval the new time interval [minutes]
+
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::AutoRefreshOn (  )  const
+
+
+ +

+Returns whether auto refresh is on.

Returns:
TRUE - auto refresh is on; FALSE - auto refresh is off
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::setConfirmDeletion (bool  confirm  ) 
+
+
+ +

+Sets whether the user has to confirm a deletion.

Parameters:
+ + +
confirm TRUE - user has to confirm; FALSE - the user does not have to confirm
+
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::confirmDeletion (  ) 
+
+
+ +

+Returns whether the user has to confirm a deletion.

Returns:
TRUE - the user has to confirm

+FALSE - the user does not have to confirm

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::confirmClose (  )  const
+
+
+ +

+Returns whether the user has to confirm window close.

Returns:
TRUE - user has to confirm

+FALSE - user does not have to confirm

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::startMinimized (  )  const
+
+
+ +

+Returns whether the app shall start minimized.

Returns:
TRUE - start minimized

+FALSE - don't start minimized

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::closeToTray (  )  const
+
+
+ +

+Returns whether the close button leaves the application running in tray.

Returns:
TRUE - leaves running

+FALSE - app will be closed

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::minimizesToTray (  )  const
+
+
+ +

+Returns whether minimizes to the tray rather than to the taskbar.

Returns:
TRUE - minimizes to the tray

+FALSE - minimizes to the taskbar

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::showConnectionErrors (  )  const
+
+
+ +

+Returns whether connection errors will be shown during refresh.

Returns:
TRUE - show errors

+FALSE - don't show errors

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::setAllowHTML (bool  allowHTML  ) 
+
+
+ +

+Sets whether the mail show dialog has to use HTML.

Parameters:
+ + +
allowHTML TRUE - the dialog has to use HTML; FALSE - the dialog must not use HTML
+
+
See also:
m_bAllowHTML
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::allowHTML (  )  const
+
+
+ +

+Returns whether the mail show dialog has to use HTML.

Returns:
TRUE - the dialog has to use HTML

+FALSE - the dialog must not use HTML

+
See also:
m_bAllowHTML
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::hasActiveAccounts (  ) 
+
+
+ +

+Returns whether there are active accounts. Doesn't set the current account.

Returns:
TRUE - Yes, there are active accounts (at least one :o) ); FALSE - no active accounts
+ +
+

+ +

+
+ + + + + + + + +
uint ConfigList::getTimeoutTime (  )  const
+
+
+ +

+Returns the number of seconds the application will be wait for a pop3 job.

Returns:
seconds to timeout
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::setTimeoutTime (uint  time  ) 
+
+
+ +

+Sets the number of seconds the application will be wait for a pop3 job. Minimum time is POP3_MINIMUM_TIMEOUT_TIME seconds.

Parameters:
+ + +
time seconds to timeout
+
+
See also:
constants.h
+ +
+

+ +

+
+ + + + + + + + +
ConfigElem * ConfigList::getSelectedAccount (  ) 
+
+
+ +

+Returns the first account, for which an appropriate item is selected in the account list view.

Returns:
pointer to the selected account object

+NULL - no account is selected

+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::deleteSelectedMails (  ) 
+
+
+ +

+Deletes all selected mails from the servers and the mail lists. This just starts the deletion and returns after then. When all accounts are ready the signal sigDeleteReady will be emitted. +

+

+ +

+
+ + + + + + + + +
void ConfigList::connectAccounts (  ) 
+
+
+ +

+Connects the signals of the accounts with the slots of this class. It is necessary to do this after an account has been appended to the list and it is a good idea to call this method before you invoke an operation on an account that may emit a signal. The reason is that the pointer list seemingly often changes the adresses of the inserted accounts. After that the connections are corrupt. +

+

+ +

+
+ + + + + + + + +
QStringList ConfigList::getSelectedSubjects (  )  const
+
+
+ +

+Returns the subjects of the selected mails.

Returns:
subjects of selected mails
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::hasSelectedMails (  ) 
+
+
+ +

+Returns whether there are mails in this list which are selected in the list view.

Returns:
TRUE - there are selected mails

+FALSE - there aren't selected mails

+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::showSelectedMails (  ) 
+
+
+ +

+Downloads and shows the bodies of the selected mails. This just starts the download and returns after then. When all bodies are downloaded and shown the signal sigShowBodiesReady will be emitted. +

+

+ +

+
+ + + + + + + + + +
void ConfigList::refreshMailLists (FilterLog log = NULL  ) 
+
+
+ +

+Refreshes the mail list of all accounts. This just starts the refresh and returns after then. When all accounts have refreshed their mail list the signal sigRefreshReady will be emitted.

Parameters:
+ + +
log Pointer to the filter log.
+
+ +
+

+ +

+
+ + + + + + + + +
int ConfigList::getNumberNewMails (  ) 
+
+
+ +

+Returns the number of new mails.

Returns:
number of new mails
+ +
+

+ +

+
+ + + + + + + + +
int ConfigList::getNumberMails (  ) 
+
+
+ +

+Returns the number of mails.

Returns:
number of mails
+ +
+

+ +

+
+ + + + + + + + +
long ConfigList::getTotalSize (  ) 
+
+
+ +

+Returns the total size of all mails.

Returns:
total size
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::fillMailListView (KshowmailView view  ) 
+
+
+ +

+Creates for every mail a list view item and inserts it into the mail list view.

Parameters:
+ + +
view pointer to the application view
+
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::showMainWindowForNewMails (  ) 
+
+
+ +

+Returns whether the main window will be shown, if new mails was received.

Returns:
TRUE - main window will be shown

+FALSE - main window will not be shown

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::showAlertMessageForNewMails (  ) 
+
+
+ +

+Returns whether an alert message will be shown if new mails were received.

Returns:
TRUE - will be shown

+FALSE - will not be shown

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::quitNoNewMails (  ) 
+
+
+ +

+Returns whether the app will be terminated if no new mails were received.

Returns:
TRUE - will be terminated

+FALSE - will not be terminated

+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::minimizeMainWindowNoNewMails (  ) 
+
+
+ +

+Returns whether the main window will be minimized, if no new mails were received.

Returns:
TRUE - main window will be minimized

+FALSE - main window will not be minimized

+ +
+

+ +

+
+ + + + + + + + +
int ConfigList::getInitTime (  ) 
+
+
+ +

+Returns the configured time to the first refresh.

Returns:
time to the first refresh (seconds)
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::setInitTime (int  time  ) 
+
+
+ +

+Sets the time to the first refresh.

Parameters:
+ + +
time time (seconds) to the first refresh
+
+ +
+

+ +

+
+ + + + + + + + +
bool ConfigList::hasInitTime (  ) 
+
+
+ +

+Returns whether a time to first refresh is configured.

Returns:
TRUE - init time configured

+FALSE - no init time configured

+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::refreshAccountList (  ) 
+
+
+ +

+Refreshes the account list (number of mails and total size). +

+

+ +

+
+ + + + + + + + +
void ConfigList::killPOP3Jobs (  ) 
+
+
+ +

+Kills all running pop3 jobs. +

+

+ +

+
+ + + + + + + + +
void ConfigList::showSelectedHeaders (  ) 
+
+
+ +

+Shows the headers of all selected mails. +

+

+ +

+
+ + + + + + + + +
void ConfigList::executeNewMailCommand (  ) 
+
+
+ +

+Executes the configure new mail command. Does nothing, if the command option is switched off (m_bCommand == false). +

+

+ +

+
+ + + + + + + + +
bool ConfigList::keepNew (  ) 
+
+
+ +

+Returns whether all new mails will keep new status until the app is closed.

Returns:
TRUE - mails keep new status at next refresh

+FALSE - mails don't keep new status at next refresh

+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::printSetup (  ) 
+
+
+ +

+Prints the setup. +

+

+ +

+
+ + + + + + + + +
void ConfigList::saveOptions (  ) 
+
+
+ +

+Saves the current mails data and the account setups. The mails data will be saved into an XML file (kshowmail.xml). The account setups will be saved into the application config file (kshowmailrc). +

+

+ +

+
+ + + + + + + + +
void ConfigList::readStoredMails (  ) 
+
+
+ +

+Reads stored mails data. At every setup saving (e.g. at exit) the mails data will be stored into the file kshowmail.xml. At application start we read this file to identify mails which are not new at first refresh. +

+

+ +

+
+ + + + + + + + +
FilterAction_Type ConfigList::getSpamAction (  ) 
+
+
+ +

+Returns the action to used on spam mails

Returns:
action to used on spam mails
+ +
+

+ +

+
+ + + + + + + + +
QString ConfigList::getSpamMailbox (  ) 
+
+
+ +

+Returns the mailbox for spam mails

Returns:
mailbox for spam
+ +
+

+ +

+
+ + + + + + + + + +
bool ConfigList::setItem (const char *  item  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ConfigList::setList (QListView *  list  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
void ConfigList::beep (  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
void ConfigList::playSound (  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ConfigList::playSound (const char *  file  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
QCollection::Item ConfigList::newItem (QCollection::Item  item  )  [protected, virtual]
+
+
+ +

+Makes a copy from the given account object and returns the pointer to it. Reimplementation of QPtrList::newItem(). Used by QPtrList to add new items.

Parameters:
+ + +
item account object
+
+
Returns:
pointer to the new account object
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int ConfigList::compareItems (QCollection::Item  item1,
QCollection::Item  item2 
) [protected, virtual]
+
+
+ +

+Compares two ConfigElem objects. Reimplementation of QPtrList::compareItems(). Used by inSort().

Parameters:
+ + + +
item1 account 1
item2 account 2
+
+
Returns:
0 if account name 1 == account name 2

+nonzero if account name 2 != account name 2

+ +
+

+ +

+
+ + + + + + + + + +
bool ConfigList::hasAccount (const QString &  name  )  const [protected]
+
+
+ +

+Returns whether the given account is in the list

Parameters:
+ + +
name name of the searched account
+
+
Returns:
TRUE - account is existent

+FALSE - account is not existent

+ +
+

+ +

+
+ + + + + + + + + +
ConfigElem * ConfigList::getAccount (const QString &  name  )  const [protected]
+
+
+ +

+Returns the pointer to the account named like the given name.

Parameters:
+ + +
name of the searched account
+
+
Returns:
account or NULL, if the account was not found
+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::slotAccountConfigChanged (  )  [protected, slot]
+
+
+ +

+Connected with signal sigConfigChanged of all accounts. Emits the signal sigConfigChanged. +

+

+ +

+
+ + + + + + + + + +
void ConfigList::slotCheckDeletionState (QString  account  )  [protected, slot]
+
+
+ +

+Connected with signal sigDeleteReady of all accounts. When an account has sent this signal its appropriate item in AccountDeletionMap will set to FALSE. When all accounts have done the deletion it will emit signal sigDeleteReady.

Parameters:
+ + +
account name of the account which has emitted the signal
+
+
See also:
AccountDeletionMap
+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::slotCheckShowBodiesState (QString  account  )  [protected, slot]
+
+
+ +

+Connected with signal sigShowBodiesReady of all accounts. When an account has sent this signal its appropriate item in AccountShowBodiesMap will set to FALSE. When all accounts have shown the mail it will emit signal sigShowBodiesReady.

Parameters:
+ + +
account name of the account which has emitted the signal
+
+
See also:
AccountShowBodiesMap
+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::slotMessageWindowOpened (  )  [protected, slot]
+
+
+ +

+Connected with signal sigMessageWindowOpened of all accounts. When an account has sent this signal the counter ctrOpenMessageWindows will be incremented. When the counter was incremented from zero (the first window was opened) the signal sigMessageWindowOpened will be emitted.

See also:
ctrOpenMessageWindows

+sigMessageWindowOpened

+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::slotMessageWindowClosed (  )  [protected, slot]
+
+
+ +

+Connected with signal sigMessageWindowClosed of all accounts. When an account has sent this signal the counter ctrOpenMessageWindows will be decremented. When the counter has reached zero the signal sigAllMessageWindowsClosed will be emitted.

See also:
ctrOpenMessageWindows

+sigAllMessageWindowsClosed

+ +
+

+ +

+
+ + + + + + + + + +
void ConfigList::slotCheckRefreshState (QString  account  )  [protected, slot]
+
+
+ +

+Connected with signal sigRefreshReady of all accounts. When an account has sent this signal its appropriate item in AccountRefreshMap will set to FALSE. When all accounts have refreshed their mail list it will emit signal sigRefreshReady.

Parameters:
+ + +
account name of the account which has emitted the signal
+
+
See also:
AccountRefreshMap
+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::sigConfigChanged (  )  [signal]
+
+
+ +

+Will be emitted when the configuration of an account or of the app was changed. +

+

+ +

+
+ + + + + + + + +
void ConfigList::sigDeleteReady (  )  [signal]
+
+
+ +

+Will be emitted when all selected mails are deleted. +

+

+ +

+
+ + + + + + + + +
void ConfigList::sigShowBodiesReady (  )  [signal]
+
+
+ +

+Will be emitted when all selected mails are shown. +

+

+ +

+
+ + + + + + + + +
void ConfigList::sigMessageWindowOpened (  )  [signal]
+
+
+ +

+Will be emitted by slotMessageWindowOpened when an account has opened a window to show a mail.

See also:
slotMessageWindowOpened
+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::sigAllMessageWindowsClosed (  )  [signal]
+
+
+ +

+Will be emitted by slotMessageWindowClosed when all accounts have closed their windows to show mails.

See also:
slotMessageWindowClosed
+ +
+

+ +

+
+ + + + + + + + +
void ConfigList::sigRefreshReady (  )  [signal]
+
+
+ +

+Will be emitted, when all accounts have refreshed their mail list. +

+

+


Member Data Documentation

+ +
+
+ + + + +
KConfig* ConfigList::config [private]
+
+
+ +

+Connector to the configuration file +

+

+ +

+
+ + + + +
int ConfigList::m_nIntervalTimer [private]
+
+
+ +

+Time in minutes to the next automatic refresh. +

+

+ +

+
+ + + + +
uint ConfigList::m_nPop3Timer [private]
+
+
+ +

+Number of seconds the application will wait for a pop3 job to complete. +

+

+ +

+
+ + + + +
AccountTaskMap_Type ConfigList::AccountDeletionMap [private]
+
+
+ +

+This map is used by the delete methods. deleteSelectedMails() clears it and after that inserts for every account an item. The Key is the account name and the data is TRUE. When slotCheckDeletionState() is invoked by a signal sent by an account, this slot will set the appropriate item data to FALSE. If the data of all items are set to FALSE, the method will know all accounts have ended the deletion and will emit sigDeleteReady.

See also:
deleteSelectedMails()

+slotCheckDeletionState()

+ +
+

+ +

+
+ + + + +
AccountTaskMap_Type ConfigList::AccountShowBodiesMap [private]
+
+
+ +

+This map is used by the methods to show the mail body. showSelectedMails() clears it and after that inserts for every account an item. The Key is the account name and the data is TRUE. When slotCheckShowBodiesState() is invoked by a signal sent by an account, this slot will set the appropriate item data to FALSE. If the data of all items are set to FALSE, the method will know all accounts have shown the mail body and will emit sigShowBodiesReady.

See also:
showSelectedMails()

+slotCheckShowBodiesState()

+ +
+

+ +

+
+ + + + +
AccountTaskMap_Type ConfigList::AccountRefreshMap [private]
+
+
+ +

+This map is used by the methods to refresh the account mail lists. refreshMailLists() clears it and after that inserts for every account an item. The Key ist the account name and the data is TRUE. When slotCheckRefreshState() is invoked by a signal sent by an account, this slot will set the appropriate item data to FALSE. If the data of all items are set to FALSE, the method will know all accounts have refreshed their mail list and will emit sigRefreshReady.

See also:
refreshMailLists()

+slotCheckRefreshState()

+ +
+

+ +

+
+ + + + +
bool ConfigList::m_bConfirmDelete [private]
+
+
+ +

+TRUE - the user has to confirm a deletion, FALSE - the user does not have to confirm a deletion +

+

+ +

+
+ + + + +
bool ConfigList::m_bAllowHTML [private]
+
+
+ +

+TRUE - allow HTML formatting in the mail show dialog box FALSE - don't allow HTML formatting

See also:
setAllowHTML()

+allowHTML()

+ +
+

+ +

+
+ + + + +
int ConfigList::ctrOpenMessageWindows [private]
+
+
+ +

+Number of windows, which have been opened by the accounts to show mails. Used by slotMessageWindowOpened() and slotMessageWindowClosed().

See also:
slotMessageWindowOpened

+slotMessageWindowClosed

+ +
+

+ +

+
+ + + + +
int ConfigList::m_nInitTimer [private]
+
+
+ +

+Contains the time (seconds) to first refresh.

See also:
setInitTime()

+getInitTime()

+ +
+

+ +

+
+ + + + +
bool ConfigList::m_bShowMessage [private]
+
+
+ +

+TRUE - If a new mail is arrived an alert window will be shown. +

+

+ +

+
+ + + + +
bool ConfigList::m_bShowMainWindow [private]
+
+
+ +

+TRUE - If a new mail is arrived the main window will be shown. +

+

+ +

+
+ + + + +
bool ConfigList::m_bBeep [private]
+
+
+ +

+TRUE - If a new mail is arrived the system will beep. +

+

+ +

+
+ + + + +
bool ConfigList::m_bSound [private]
+
+
+ +

+TRUE - If a new mail is arrived a sound will be played. +

+

+ +

+
+ + + + +
QString ConfigList::m_strSoundFile [private]
+
+
+ +

+Sound file which will be played if a new mail is arrived. +

+

+ +

+
+ + + + +
bool ConfigList::m_bCommand [private]
+
+
+ +

+TRUE - If a new mail is arrived a command will be executed. +

+

+ +

+
+ + + + +
QString ConfigList::m_strCommandPath [private]
+
+
+ +

+Path to command which will be executed if a new mail is arrived. +

+

+ +

+
+ + + + +
bool ConfigList::m_bTerminate [private]
+
+
+ +

+TRUE - If no new mail is arrived the application will be ended. +

+

+ +

+
+ + + + +
bool ConfigList::m_bMinimize [private]
+
+
+ +

+TRUE - If no new mail is arrived the main window will be minimized. +

+

+ +

+
+ + + + +
bool ConfigList::m_bShowConnectionErrors [private]
+
+
+ +

+TRUE - If a connection error occures during refresh an error message will be shown. +

+

+ +

+
+ + + + +
bool ConfigList::m_bConfirmClose [private]
+
+
+ +

+TRUE - The user has to confirm window close. +

+

+ +

+
+ + + + +
bool ConfigList::m_bStartMinimized [private]
+
+
+ +

+TRUE - the app starts minimized. +

+

+ +

+
+ + + + +
bool ConfigList::m_bCloseMinimizes [private]
+
+
+ +

+TRUE - the close button leaves the application running in tray +

+

+ +

+
+ + + + +
bool ConfigList::m_bMinimizeToTray [private]
+
+
+ +

+TRUE - minimizes to the tray rather than to the taskbar +

+

+ +

+
+ + + + +
bool ConfigList::m_bKeepNew [private]
+
+
+ +

+TRUE - mails keep new until termination +

+

+ +

+
+ + + + +
QString ConfigList::spamMailbox [private]
+
+
+ +

+Mailbox for Spam, if configured +

+

+ +

+ +
+ +

+Action which shall be done, if the mail is Spam +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classEditDialog-members.html b/doc/html/classEditDialog-members.html new file mode 100644 index 0000000..39f5388 --- /dev/null +++ b/doc/html/classEditDialog-members.html @@ -0,0 +1,44 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

EditDialog Member List

This is the complete list of members for EditDialog, including all inherited members.

+ + + + + + + + + + + + + + + + +
_buttonCancelEditDlg
_buttonOkEditDlg
_buttonReplyEditDlg
_rowEditDialog [private]
addWidget(const QString &label, const QString &value)EditDialog
EditDialog(QWidget *parent, const char *name, const char *content, bool html)EditDialog
EditDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)EditDlg
EditDlgLayoutEditDlg [protected]
headerlayoutEditDlg [protected]
languageChange()EditDlg [protected, virtual, slot]
layout3EditDlg [protected]
m_EditEditDlg
slotReplyClicked()EditDialog [virtual, slot]
Spacer15EditDlg [protected]
~EditDialog()EditDialog
~EditDlg()EditDlg


Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classEditDialog.html b/doc/html/classEditDialog.html new file mode 100644 index 0000000..33b8c23 --- /dev/null +++ b/doc/html/classEditDialog.html @@ -0,0 +1,63 @@ + + +kshowmail: EditDialog Class Reference + + + + +
+
+
+
+

EditDialog Class Reference

#include <editdialog.h> +

+

Inheritance diagram for EditDialog: +

+ +EditDlg + +List of all members. + + + + + + + + + + + + + + +

Public Slots

+virtual void slotReplyClicked ()

Public Member Functions

EditDialog (QWidget *parent, const char *name, const char *content, bool html)
~EditDialog ()
+void addWidget (const QString &label, const QString &value)

Private Attributes

+int _row
+

Detailed Description

+
Author:
Eggert Ehmke
+ +

+ +

+Definition at line 28 of file editdialog.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classEditDialog.png b/doc/html/classEditDialog.png new file mode 100644 index 0000000..91976e2 Binary files /dev/null and b/doc/html/classEditDialog.png differ diff --git a/doc/html/classEditDlg-members.html b/doc/html/classEditDlg-members.html new file mode 100644 index 0000000..119c66b --- /dev/null +++ b/doc/html/classEditDlg-members.html @@ -0,0 +1,40 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

EditDlg Member List

This is the complete list of members for EditDlg, including all inherited members.

+ + + + + + + + + + + + +
_buttonCancelEditDlg
_buttonOkEditDlg
_buttonReplyEditDlg
EditDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)EditDlg
EditDlgLayoutEditDlg [protected]
headerlayoutEditDlg [protected]
languageChange()EditDlg [protected, virtual, slot]
layout3EditDlg [protected]
m_EditEditDlg
slotReplyClicked()EditDlg [virtual, slot]
Spacer15EditDlg [protected]
~EditDlg()EditDlg


Generated on Wed May 16 21:15:20 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classEditDlg.html b/doc/html/classEditDlg.html new file mode 100644 index 0000000..c8298fb --- /dev/null +++ b/doc/html/classEditDlg.html @@ -0,0 +1,83 @@ + + +kshowmail: EditDlg Class Reference + + + + +
+
+
+
+

EditDlg Class Reference

Inheritance diagram for EditDlg: +

+ +EditDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotReplyClicked ()

Public Member Functions

EditDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~EditDlg ()

Public Attributes

+KTextBrowser * m_Edit
+QPushButton * _buttonReply
+QPushButton * _buttonOk
+QPushButton * _buttonCancel

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QVBoxLayout * EditDlgLayout
+QGridLayout * headerlayout
+QHBoxLayout * layout3
+QSpacerItem * Spacer15
+

Detailed Description

+ +

+ +

+Definition at line 23 of file EditDlg.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:20 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classEditDlg.png b/doc/html/classEditDlg.png new file mode 100644 index 0000000..f546770 Binary files /dev/null and b/doc/html/classEditDlg.png differ diff --git a/doc/html/classFilter-members.html b/doc/html/classFilter-members.html new file mode 100644 index 0000000..a9befa8 --- /dev/null +++ b/doc/html/classFilter-members.html @@ -0,0 +1,39 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

Filter Member List

This is the complete list of members for Filter, including all inherited members.

+ + + + + + + + + + + +
_filterFilter [static]
_statusFilter [static]
automatic enum value (defined in Filter)Filter
Filter()Filter [private]
filterStatus enum nameFilter
matches(ShowRecordElem *)Filter [static]
off enum value (defined in Filter)Filter
on enum value (defined in Filter)Filter
readOptions(KConfig *config)Filter [static]
saveOptions(KConfig *config)Filter [static]
~Filter()Filter [private]


Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilter.html b/doc/html/classFilter.html new file mode 100644 index 0000000..30d435b --- /dev/null +++ b/doc/html/classFilter.html @@ -0,0 +1,67 @@ + + +kshowmail: Filter Class Reference + + + + +
+
+
+
+

Filter Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + + + +

Public Types

enum  filterStatus { off, +on, +automatic + }

Static Public Member Functions

+static FilterElemmatches (ShowRecordElem *)
+static void readOptions (KConfig *config)
+static void saveOptions (KConfig *config)

Static Public Attributes

+static FilterList _filter
+static filterStatus _status

Private Member Functions

Filter ()
~Filter ()
+

Detailed Description

+ +

+ +

+Definition at line 34 of file filter.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterDialog-members.html b/doc/html/classFilterDialog-members.html new file mode 100644 index 0000000..d9f7eed --- /dev/null +++ b/doc/html/classFilterDialog-members.html @@ -0,0 +1,58 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterDialog Member List

This is the complete list of members for FilterDialog, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
_buttonAddFilterDlg
_buttonCancelFilterDlg
_buttonCopyFilterDlg
_buttonDeleteFilterDlg
_buttonEditFilterDlg
_buttonOkFilterDlg
_comboFilterFilterDlg
_filtersFilterDialog [private]
_radioAutoFilterDlg
_radioOffFilterDlg
_radioOnFilterDlg
buttonGroup1FilterDlg
buttonGroup1LayoutFilterDlg [protected]
FilterDialog(QWidget *parent=0, const char *name=0)FilterDialog
FilterDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)FilterDlg
FilterDlgLayoutFilterDlg [protected]
languageChange()FilterDlg [protected, virtual, slot]
Layout6FilterDlg [protected]
QGroupBox_1FilterDlg
QGroupBox_1LayoutFilterDlg [protected]
slotAdd()FilterDialog [virtual, slot]
slotAutomaticActivated()FilterDialog [virtual, slot]
slotCopy()FilterDialog [virtual, slot]
slotDelete()FilterDialog [virtual, slot]
slotEdit()FilterDialog [virtual, slot]
slotFilterActivated(int)FilterDialog [virtual, slot]
slotOk()FilterDialog [virtual, slot]
Spacer11FilterDlg [protected]
~FilterDialog()FilterDialog
~FilterDlg()FilterDlg


Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterDialog.html b/doc/html/classFilterDialog.html new file mode 100644 index 0000000..240836e --- /dev/null +++ b/doc/html/classFilterDialog.html @@ -0,0 +1,78 @@ + + +kshowmail: FilterDialog Class Reference + + + + +
+
+
+
+

FilterDialog Class Reference

#include <filterdialog.h> +

+

Inheritance diagram for FilterDialog: +

+ +FilterDlg + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotAdd ()
+virtual void slotEdit ()
+virtual void slotCopy ()
+virtual void slotDelete ()
+virtual void slotOk ()
+virtual void slotFilterActivated (int)
+virtual void slotAutomaticActivated ()

Public Member Functions

FilterDialog (QWidget *parent=0, const char *name=0)
~FilterDialog ()

Private Attributes

+FilterList _filters
+

Detailed Description

+
Author:
Eggert Ehmke
+ +

+ +

+Definition at line 31 of file filterdialog.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterDialog.png b/doc/html/classFilterDialog.png new file mode 100644 index 0000000..24b20e3 Binary files /dev/null and b/doc/html/classFilterDialog.png differ diff --git a/doc/html/classFilterDlg-members.html b/doc/html/classFilterDlg-members.html new file mode 100644 index 0000000..8767d66 --- /dev/null +++ b/doc/html/classFilterDlg-members.html @@ -0,0 +1,55 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterDlg Member List

This is the complete list of members for FilterDlg, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
_buttonAddFilterDlg
_buttonCancelFilterDlg
_buttonCopyFilterDlg
_buttonDeleteFilterDlg
_buttonEditFilterDlg
_buttonOkFilterDlg
_comboFilterFilterDlg
_radioAutoFilterDlg
_radioOffFilterDlg
_radioOnFilterDlg
buttonGroup1FilterDlg
buttonGroup1LayoutFilterDlg [protected]
FilterDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)FilterDlg
FilterDlgLayoutFilterDlg [protected]
languageChange()FilterDlg [protected, virtual, slot]
Layout6FilterDlg [protected]
QGroupBox_1FilterDlg
QGroupBox_1LayoutFilterDlg [protected]
slotAdd()FilterDlg [virtual, slot]
slotAutomaticActivated()FilterDlg [virtual, slot]
slotCopy()FilterDlg [virtual, slot]
slotDelete()FilterDlg [virtual, slot]
slotEdit()FilterDlg [virtual, slot]
slotFilterActivated(int)FilterDlg [virtual, slot]
slotOk()FilterDlg [virtual, slot]
Spacer11FilterDlg [protected]
~FilterDlg()FilterDlg


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterDlg.html b/doc/html/classFilterDlg.html new file mode 100644 index 0000000..e1da3d2 --- /dev/null +++ b/doc/html/classFilterDlg.html @@ -0,0 +1,128 @@ + + +kshowmail: FilterDlg Class Reference + + + + +
+
+
+
+

FilterDlg Class Reference

Inheritance diagram for FilterDlg: +

+ +FilterDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotAdd ()
+virtual void slotCopy ()
+virtual void slotDelete ()
+virtual void slotEdit ()
+virtual void slotOk ()
+virtual void slotFilterActivated (int)
+virtual void slotAutomaticActivated ()

Public Member Functions

FilterDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~FilterDlg ()

Public Attributes

+QPushButton * _buttonOk
+QPushButton * _buttonCancel
+QButtonGroup * buttonGroup1
+QRadioButton * _radioOff
+QRadioButton * _radioOn
+QRadioButton * _radioAuto
+QGroupBox * QGroupBox_1
+QComboBox * _comboFilter
+QPushButton * _buttonAdd
+QPushButton * _buttonEdit
+QPushButton * _buttonCopy
+QPushButton * _buttonDelete

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QGridLayout * FilterDlgLayout
+QHBoxLayout * Layout6
+QSpacerItem * Spacer11
+QGridLayout * buttonGroup1Layout
+QGridLayout * QGroupBox_1Layout
+

Detailed Description

+ +

+ +

+Definition at line 26 of file FilterDlg.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterDlg.png b/doc/html/classFilterDlg.png new file mode 100644 index 0000000..1bff8a5 Binary files /dev/null and b/doc/html/classFilterDlg.png differ diff --git a/doc/html/classFilterElem-members.html b/doc/html/classFilterElem-members.html new file mode 100644 index 0000000..24039ee --- /dev/null +++ b/doc/html/classFilterElem-members.html @@ -0,0 +1,46 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterElem Member List

This is the complete list of members for FilterElem, including all inherited members.

+ + + + + + + + + + + + + + + + + + +
_counterFilterElem [private]
_filter1FilterElem
_filter2FilterElem
_secondConditionFilterElem
condAnd enum value (defined in FilterElem)FilterElem
condOr enum value (defined in FilterElem)FilterElem
FilterElem()FilterElem
FilterElem(const FilterRecord &)FilterElem
FilterElem(const FilterElem &)FilterElem
getCounter()FilterElem
incCounter()FilterElem
matches(ShowRecordElem *)FilterElem
noSecondCondition enum value (defined in FilterElem)FilterElem
secondCondition enum nameFilterElem
setCounter(unsigned int number)FilterElem
setSecondCondition(secondCondition scnd, const FilterRecord &)FilterElem
toString() constFilterElem
~FilterElem()FilterElem


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterElem.html b/doc/html/classFilterElem.html new file mode 100644 index 0000000..6e96266 --- /dev/null +++ b/doc/html/classFilterElem.html @@ -0,0 +1,185 @@ + + +kshowmail: FilterElem Class Reference + + + + +
+
+
+
+

FilterElem Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Types

enum  secondCondition { noSecondCondition, +condAnd, +condOr + }

Public Member Functions

FilterElem ()
FilterElem (const FilterRecord &)
FilterElem (const FilterElem &)
+void setSecondCondition (secondCondition scnd, const FilterRecord &)
~FilterElem ()
+QString toString () const
+bool matches (ShowRecordElem *)
unsigned int getCounter ()
void setCounter (unsigned int number)
void incCounter ()

Public Attributes

+FilterRecord _filter1
+FilterRecord _filter2
+secondCondition _secondCondition

Private Attributes

unsigned int _counter
+

Detailed Description

+ +

+ +

+Definition at line 48 of file filterelem.h.


Member Function Documentation

+ +
+
+ + + + + + + + +
unsigned int FilterElem::getCounter (  ) 
+
+
+ +

+Returns the number of mail deletions which was caused by this filter.

Returns:
number of deleted mails
+ +

+Definition at line 289 of file filterelem.cpp. +

+References _counter. +

+Referenced by FilterList::compareItems(), and FilterEntryDialog::FilterEntryDialog(). +

+

+ +

+
+ + + + + + + + + +
void FilterElem::setCounter (unsigned int  number  ) 
+
+
+ +

+Sets the deleted mail counter.

Parameters:
+ + +
number number of mail deletions caused by this filter
+
+ +

+Definition at line 299 of file filterelem.cpp. +

+References _counter. +

+Referenced by FilterList::readOptions(), and FilterEntryDialog::slotCounterChanged(). +

+

+ +

+
+ + + + + + + + +
void FilterElem::incCounter (  ) 
+
+
+ +

+Increments the deleted mail counter. +

+Definition at line 294 of file filterelem.cpp. +

+References _counter. +

+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned int FilterElem::_counter [private]
+
+
+ +

+Number of mails its deletion was caused by this filter. +

+Definition at line 90 of file filterelem.h. +

+Referenced by getCounter(), incCounter(), setCounter(), and toString(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterEntryDialog-members.html b/doc/html/classFilterEntryDialog-members.html new file mode 100644 index 0000000..e6644ec --- /dev/null +++ b/doc/html/classFilterEntryDialog-members.html @@ -0,0 +1,77 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterEntryDialog Member List

This is the complete list of members for FilterEntryDialog, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
_buttonEditRegExp1FilterEntryDlg
_buttonEditRegExp2FilterEntryDlg
_buttonResetCounterFilterEntryDlg
_checkCaseSensitive1FilterEntryDlg
_checkCaseSensitive2FilterEntryDlg
_checkRegExp1FilterEntryDlg
_checkRegExp2FilterEntryDlg
_comboExpression1FilterEntryDlg
_comboExpression2FilterEntryDlg
_comboItem1FilterEntryDlg
_comboItem2FilterEntryDlg
_comboSecondConditionFilterEntryDlg
_editMatch1FilterEntryDlg
_editMatch2FilterEntryDlg
_editNameFilterEntryDlg
_elemFilterEntryDialog [private]
_groupBox2FilterEntryDlg
_groupBox2LayoutFilterEntryDlg [protected]
_spinCounterFilterEntryDlg
FilterEntryDialog(QWidget *parent, const char *name, FilterElem *elem)FilterEntryDialog
FilterEntryDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)FilterEntryDlg
FilterEntryDlgLayoutFilterEntryDlg [protected]
groupBox3FilterEntryDlg
groupBox3LayoutFilterEntryDlg [protected]
languageChange()FilterEntryDlg [protected, virtual, slot]
Layout11FilterEntryDlg [protected]
m_ButtonCancelFilterEntryDlg
m_ButtonOkFilterEntryDlg
QGroupBox_1FilterEntryDlg
QGroupBox_1LayoutFilterEntryDlg [protected]
slotCondition1Selected(int)FilterEntryDialog [virtual, slot]
slotCondition2Selected(int)FilterEntryDialog [virtual, slot]
slotCounterChanged(int)FilterEntryDialog [virtual, slot]
slotEditRegExp1()FilterEntryDialog [virtual, slot]
slotEditRegExp2()FilterEntryDialog [virtual, slot]
slotItem1Selected(int)FilterEntryDialog [virtual, slot]
slotItem2Selected(int)FilterEntryDialog [virtual, slot]
slotMatch1Changed(const QString &)FilterEntryDialog [virtual, slot]
slotMatch2Changed(const QString &)FilterEntryDialog [virtual, slot]
slotOk()FilterEntryDialog [virtual, slot]
slotResetCounter()FilterEntryDialog [virtual, slot]
slotSecondCondition(int)FilterEntryDialog [virtual, slot]
slotToggleRegExp1(bool)FilterEntryDialog [virtual, slot]
slotToggleRegExp2(bool)FilterEntryDialog [virtual, slot]
Spacer17FilterEntryDlg [protected]
spacer2FilterEntryDlg [protected]
spacer3FilterEntryDlg [protected]
~FilterEntryDialog()FilterEntryDialog
~FilterEntryDlg()FilterEntryDlg


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterEntryDialog.html b/doc/html/classFilterEntryDialog.html new file mode 100644 index 0000000..57c19ca --- /dev/null +++ b/doc/html/classFilterEntryDialog.html @@ -0,0 +1,99 @@ + + +kshowmail: FilterEntryDialog Class Reference + + + + +
+
+
+
+

FilterEntryDialog Class Reference

#include <filterentrydialog.h> +

+

Inheritance diagram for FilterEntryDialog: +

+ +FilterEntryDlg + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotOk ()
+virtual void slotItem1Selected (int)
+virtual void slotItem2Selected (int)
+virtual void slotSecondCondition (int)
+virtual void slotCondition1Selected (int)
+virtual void slotCondition2Selected (int)
+virtual void slotMatch1Changed (const QString &)
+virtual void slotMatch2Changed (const QString &)
+virtual void slotResetCounter ()
+virtual void slotCounterChanged (int)
+virtual void slotEditRegExp1 ()
+virtual void slotEditRegExp2 ()
+virtual void slotToggleRegExp1 (bool)
+virtual void slotToggleRegExp2 (bool)

Public Member Functions

FilterEntryDialog (QWidget *parent, const char *name, FilterElem *elem)
~FilterEntryDialog ()

Private Attributes

+FilterElem_elem
+

Detailed Description

+
Author:
Eggert Ehmke
+ +

+ +

+Definition at line 29 of file filterentrydialog.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterEntryDialog.png b/doc/html/classFilterEntryDialog.png new file mode 100644 index 0000000..83546bb Binary files /dev/null and b/doc/html/classFilterEntryDialog.png differ diff --git a/doc/html/classFilterEntryDlg-members.html b/doc/html/classFilterEntryDlg-members.html new file mode 100644 index 0000000..5b53119 --- /dev/null +++ b/doc/html/classFilterEntryDlg-members.html @@ -0,0 +1,74 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterEntryDlg Member List

This is the complete list of members for FilterEntryDlg, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
_buttonEditRegExp1FilterEntryDlg
_buttonEditRegExp2FilterEntryDlg
_buttonResetCounterFilterEntryDlg
_checkCaseSensitive1FilterEntryDlg
_checkCaseSensitive2FilterEntryDlg
_checkRegExp1FilterEntryDlg
_checkRegExp2FilterEntryDlg
_comboExpression1FilterEntryDlg
_comboExpression2FilterEntryDlg
_comboItem1FilterEntryDlg
_comboItem2FilterEntryDlg
_comboSecondConditionFilterEntryDlg
_editMatch1FilterEntryDlg
_editMatch2FilterEntryDlg
_editNameFilterEntryDlg
_groupBox2FilterEntryDlg
_groupBox2LayoutFilterEntryDlg [protected]
_spinCounterFilterEntryDlg
FilterEntryDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)FilterEntryDlg
FilterEntryDlgLayoutFilterEntryDlg [protected]
groupBox3FilterEntryDlg
groupBox3LayoutFilterEntryDlg [protected]
languageChange()FilterEntryDlg [protected, virtual, slot]
Layout11FilterEntryDlg [protected]
m_ButtonCancelFilterEntryDlg
m_ButtonOkFilterEntryDlg
QGroupBox_1FilterEntryDlg
QGroupBox_1LayoutFilterEntryDlg [protected]
slotCondition1Selected(int)FilterEntryDlg [virtual, slot]
slotCondition2Selected(int)FilterEntryDlg [virtual, slot]
slotCounterChanged(int)FilterEntryDlg [virtual, slot]
slotEditRegExp1()FilterEntryDlg [virtual, slot]
slotEditRegExp2()FilterEntryDlg [virtual, slot]
slotItem1Selected(int)FilterEntryDlg [virtual, slot]
slotItem2Selected(int)FilterEntryDlg [virtual, slot]
slotMatch1Changed(const QString &)FilterEntryDlg [virtual, slot]
slotMatch2Changed(const QString &)FilterEntryDlg [virtual, slot]
slotOk()FilterEntryDlg [virtual, slot]
slotResetCounter()FilterEntryDlg [virtual, slot]
slotSecondCondition(int)FilterEntryDlg [virtual, slot]
slotToggleRegExp1(bool)FilterEntryDlg [virtual, slot]
slotToggleRegExp2(bool)FilterEntryDlg [virtual, slot]
Spacer17FilterEntryDlg [protected]
spacer2FilterEntryDlg [protected]
spacer3FilterEntryDlg [protected]
~FilterEntryDlg()FilterEntryDlg


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterEntryDlg.html b/doc/html/classFilterEntryDlg.html new file mode 100644 index 0000000..9f63fb8 --- /dev/null +++ b/doc/html/classFilterEntryDlg.html @@ -0,0 +1,185 @@ + + +kshowmail: FilterEntryDlg Class Reference + + + + +
+
+
+
+

FilterEntryDlg Class Reference

Inheritance diagram for FilterEntryDlg: +

+ +FilterEntryDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotOk ()
+virtual void slotItem1Selected (int)
+virtual void slotItem2Selected (int)
+virtual void slotSecondCondition (int)
+virtual void slotCondition1Selected (int)
+virtual void slotCondition2Selected (int)
+virtual void slotMatch1Changed (const QString &)
+virtual void slotMatch2Changed (const QString &)
+virtual void slotResetCounter ()
+virtual void slotCounterChanged (int)
+virtual void slotEditRegExp1 ()
+virtual void slotEditRegExp2 ()
+virtual void slotToggleRegExp1 (bool)
+virtual void slotToggleRegExp2 (bool)

Public Member Functions

FilterEntryDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~FilterEntryDlg ()

Public Attributes

+QLineEdit * _editName
+QGroupBox * QGroupBox_1
+QComboBox * _comboItem1
+QComboBox * _comboExpression1
+QLineEdit * _editMatch1
+QComboBox * _comboSecondCondition
+QCheckBox * _checkCaseSensitive1
+QPushButton * _buttonEditRegExp1
+QCheckBox * _checkRegExp1
+QGroupBox * _groupBox2
+QComboBox * _comboItem2
+QComboBox * _comboExpression2
+QLineEdit * _editMatch2
+QCheckBox * _checkCaseSensitive2
+QCheckBox * _checkRegExp2
+QPushButton * _buttonEditRegExp2
+QPushButton * m_ButtonOk
+QPushButton * m_ButtonCancel
+QGroupBox * groupBox3
+QSpinBox * _spinCounter
+QPushButton * _buttonResetCounter

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QGridLayout * FilterEntryDlgLayout
+QGridLayout * QGroupBox_1Layout
+QSpacerItem * spacer2
+QGridLayout * _groupBox2Layout
+QSpacerItem * spacer3
+QHBoxLayout * Layout11
+QSpacerItem * Spacer17
+QHBoxLayout * groupBox3Layout
+

Detailed Description

+ +

+ +

+Definition at line 27 of file FilterEntryDlg.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterEntryDlg.png b/doc/html/classFilterEntryDlg.png new file mode 100644 index 0000000..21fe538 Binary files /dev/null and b/doc/html/classFilterEntryDlg.png differ diff --git a/doc/html/classFilterList-members.html b/doc/html/classFilterList-members.html new file mode 100644 index 0000000..c6849cf --- /dev/null +++ b/doc/html/classFilterList-members.html @@ -0,0 +1,36 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterList Member List

This is the complete list of members for FilterList, including all inherited members.

+ + + + + + + + +
compareItems(QCollection::Item item1, QCollection::Item item2)FilterList [protected, virtual]
FilterList()FilterList
newItem(QCollection::Item d)FilterList [protected, virtual]
operator=(FilterList &right)FilterList
readOptions(KConfig *config)FilterList
saveOptions(KConfig *config)FilterList
setCombo(QComboBox *combo, int nIndex)FilterList
~FilterList()FilterList [virtual]


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterList.html b/doc/html/classFilterList.html new file mode 100644 index 0000000..6021ffe --- /dev/null +++ b/doc/html/classFilterList.html @@ -0,0 +1,92 @@ + + +kshowmail: FilterList Class Reference + + + + +
+
+
+
+

FilterList Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + +

Public Member Functions

FilterList ()
+virtual ~FilterList ()
+FilterListoperator= (FilterList &right)
+void setCombo (QComboBox *combo, int nIndex)
+void readOptions (KConfig *config)
void saveOptions (KConfig *config)

Protected Member Functions

+virtual int compareItems (QCollection::Item item1, QCollection::Item item2)
+virtual QCollection::Item newItem (QCollection::Item d)
+

Detailed Description

+ +

+ +

+Definition at line 37 of file filterlist.h.


Member Function Documentation

+ +
+
+ + + + + + + + + +
void FilterList::saveOptions (KConfig *  config  ) 
+
+
+ +

+Saves the filter setup into the application config file (kshowmailrc).

Parameters:
+ + +
config application config
+
+ +

+Definition at line 122 of file filterlist.cpp. +

+Referenced by Filter::saveOptions(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterRecord-members.html b/doc/html/classFilterRecord-members.html new file mode 100644 index 0000000..0781472 --- /dev/null +++ b/doc/html/classFilterRecord-members.html @@ -0,0 +1,50 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

FilterRecord Member List

This is the complete list of members for FilterRecord, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + +
_CaseSensitiveFilterRecord
_expressionFilterRecord
_matchFilterRecord
_RegExpFilterRecord
_typeFilterRecord
contains enum value (defined in FilterRecord)FilterRecord
contains_not enum value (defined in FilterRecord)FilterRecord
equals enum value (defined in FilterRecord)FilterRecord
equals_not enum value (defined in FilterRecord)FilterRecord
expressionType enum nameFilterRecord
FilterRecord()FilterRecord
FilterRecord(filterType type, expressionType expression, const QString &match, bool CaseSensitive, bool regExp)FilterRecord
filterType enum nameFilterRecord
from enum value (defined in FilterRecord)FilterRecord
greater enum value (defined in FilterRecord)FilterRecord
header enum value (defined in FilterRecord)FilterRecord
less enum value (defined in FilterRecord)FilterRecord
matches(ShowRecordElem *)FilterRecord
size enum value (defined in FilterRecord)FilterRecord
subject enum value (defined in FilterRecord)FilterRecord
to enum value (defined in FilterRecord)FilterRecord
toString() constFilterRecord


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classFilterRecord.html b/doc/html/classFilterRecord.html new file mode 100644 index 0000000..5819b85 --- /dev/null +++ b/doc/html/classFilterRecord.html @@ -0,0 +1,88 @@ + + +kshowmail: FilterRecord Class Reference + + + + +
+
+
+
+

FilterRecord Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Types

enum  filterType {
+  from, +subject, +header, +size, +
+  to +
+ }
enum  expressionType {
+  contains, +contains_not, +equals, +equals_not, +
+  greater, +less +
+ }

Public Member Functions

FilterRecord ()
FilterRecord (filterType type, expressionType expression, const QString &match, bool CaseSensitive, bool regExp)
+bool matches (ShowRecordElem *)
+QString toString () const

Public Attributes

+filterType _type
+expressionType _expression
+QString _match
+bool _CaseSensitive
+bool _RegExp
+

Detailed Description

+ +

+ +

+Definition at line 29 of file filterelem.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackAnswer-members.html b/doc/html/classKFeedbackAnswer-members.html new file mode 100644 index 0000000..fc42767 --- /dev/null +++ b/doc/html/classKFeedbackAnswer-members.html @@ -0,0 +1,40 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

KFeedbackAnswer Member List

This is the complete list of members for KFeedbackAnswer, including all inherited members.

+ + + + + + + + + + + + +
_exclusiveKFeedbackAnswer [protected]
_idKFeedbackAnswer [protected]
_noKFeedbackAnswer [protected]
id()KFeedbackAnswer [inline]
isChecked()KFeedbackAnswer [inline]
isExclusive()KFeedbackAnswer [inline]
key(int column, bool ascending) constKFeedbackAnswer [virtual]
KFeedbackAnswer(KFeedbackQuestion *parent, const QString &text, const QString &id, bool exclusive=true)KFeedbackAnswer
nextAnswer() constKFeedbackAnswer [inline]
question() constKFeedbackAnswer [inline]
stateChange(bool newState)KFeedbackAnswer [virtual]
text()KFeedbackAnswer


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackAnswer.html b/doc/html/classKFeedbackAnswer.html new file mode 100644 index 0000000..2e6fab8 --- /dev/null +++ b/doc/html/classKFeedbackAnswer.html @@ -0,0 +1,311 @@ + + +kshowmail: KFeedbackAnswer Class Reference + + + + +
+
+
+
+

KFeedbackAnswer Class Reference

List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 KFeedbackAnswer (KFeedbackQuestion *parent, const QString &text, const QString &id, bool exclusive=true)
QString id ()
QString text ()
bool isExclusive ()
bool isChecked ()
KFeedbackAnswernextAnswer () const
KFeedbackQuestionquestion () const
virtual QString key (int column, bool ascending) const
virtual void stateChange (bool newState)

Protected Attributes

+QString _id
+bool _exclusive
+int _no
+

Detailed Description

+ +

+ +

+Definition at line 388 of file kfeedback.h.


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KFeedbackAnswer::KFeedbackAnswer (KFeedbackQuestion parent,
const QString &  text,
const QString &  id,
bool  exclusive = true 
)
+
+
+ +

+Constructor.

+'exclusive' tells the type of answer: One of many allowed or any number of many. +

+Definition at line 458 of file kfeedback.cpp. +

+References _no. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
QString KFeedbackAnswer::id (  )  [inline]
+
+
+ +

+Return this answer's ID. +

+Definition at line 405 of file kfeedback.h. +

+References _id. +

+Referenced by KFeedbackQuestion::result(). +

+

+ +

+
+ + + + + + + + +
QString KFeedbackAnswer::text (  ) 
+
+
+ +

+Return this answer's text. +

+Definition at line 474 of file kfeedback.cpp. +

+

+ +

+
+ + + + + + + + +
bool KFeedbackAnswer::isExclusive (  )  [inline]
+
+
+ +

+Returns whether or not this is an exclusive answer. +

+Definition at line 415 of file kfeedback.h. +

+References _exclusive. +

+

+ +

+
+ + + + + + + + +
bool KFeedbackAnswer::isChecked (  )  [inline]
+
+
+ +

+Returns whether or not this answer is checked. +

+Definition at line 420 of file kfeedback.h. +

+Referenced by KFeedbackQuestion::isAnswered(), and KFeedbackQuestion::result(). +

+

+ +

+
+ + + + + + + + +
KFeedbackAnswer* KFeedbackAnswer::nextAnswer (  )  const [inline]
+
+
+ +

+Returns the next possible answer or 0 if there is no more. +

+Definition at line 425 of file kfeedback.h. +

+Referenced by KFeedbackQuestion::isAnswered(), and KFeedbackQuestion::result(). +

+

+ +

+
+ + + + + + + + +
KFeedbackQuestion* KFeedbackAnswer::question (  )  const [inline]
+
+
+ +

+Returns the question to this answer. +

+Definition at line 431 of file kfeedback.h. +

+Referenced by stateChange(). +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
QString KFeedbackAnswer::key (int  column,
bool  ascending 
) const [virtual]
+
+
+ +

+Returns the sort key.

+Reimplemented from QListViewItem to maintain insertion order. +

+Definition at line 481 of file kfeedback.cpp. +

+References _no. +

+

+ +

+
+ + + + + + + + + +
void KFeedbackAnswer::stateChange (bool  newState  )  [virtual]
+
+
+ +

+On/off change.

+Reimplemented from QCheckListItem to monitor answering required questions. This method notifies the KFeedbackQuestionList whenever a required question is being answered. +

+Definition at line 491 of file kfeedback.cpp. +

+References question(), KFeedbackQuestionList::questionAnswered(), and KFeedbackQuestion::questionList(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackDialog-members.html b/doc/html/classKFeedbackDialog-members.html new file mode 100644 index 0000000..cec50c5 --- /dev/null +++ b/doc/html/classKFeedbackDialog-members.html @@ -0,0 +1,34 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

KFeedbackDialog Member List

This is the complete list of members for KFeedbackDialog, including all inherited members.

+ + + + + + +
_formKFeedbackDialog [protected]
checkSendButton()KFeedbackDialog [slot]
form()KFeedbackDialog [inline]
KFeedbackDialog(const QString &feedbackMailAddress, const QString &helpTopic=QString::null)KFeedbackDialog
mailSent()KFeedbackDialog [signal]
~KFeedbackDialog()KFeedbackDialog [virtual]


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackDialog.html b/doc/html/classKFeedbackDialog.html new file mode 100644 index 0000000..655cd8e --- /dev/null +++ b/doc/html/classKFeedbackDialog.html @@ -0,0 +1,185 @@ + + +kshowmail: KFeedbackDialog Class Reference + + + + +
+
+
+
+

KFeedbackDialog Class Reference

#include <kfeedback.h> +

+List of all members. + + + + + + + + + + + + + + + + + +

Public Slots

void checkSendButton ()

Signals

void mailSent ()

Public Member Functions

 KFeedbackDialog (const QString &feedbackMailAddress, const QString &helpTopic=QString::null)
virtual ~KFeedbackDialog ()
KFeedbackFormform ()

Protected Attributes

+KFeedbackForm_form
+


Detailed Description

+Dialog containing a KFeedbackForm and all the infrastructure for sending a mail etc. +

+ +

+Definition at line 42 of file kfeedback.h.


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
KFeedbackDialog::KFeedbackDialog (const QString &  feedbackMailAddress,
const QString &  helpTopic = QString::null 
)
+
+
+ +

+Constructor. +

+Definition at line 34 of file kfeedback.cpp. +

+References _form, checkSendButton(), and mailSent(). +

+

+ +

+
+ + + + + + + + +
KFeedbackDialog::~KFeedbackDialog (  )  [virtual]
+
+
+ +

+Destructor. +

+Definition at line 64 of file kfeedback.cpp. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
KFeedbackForm* KFeedbackDialog::form (  )  [inline]
+
+
+ +

+Returns the internal +

+Definition at line 64 of file kfeedback.h. +

+References _form. +

+Referenced by KShowMailApp::slotSendFeedbackMail(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackDialog::checkSendButton (  )  [slot]
+
+
+ +

+Check if sufficient information is available to send a mail now and enable / disable the "send mail" button accordingly. +

+Definition at line 71 of file kfeedback.cpp. +

+References _form, and KFeedbackForm::readyToSend(). +

+Referenced by KFeedbackDialog(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackDialog::mailSent (  )  [signal]
+
+
+ +

+Emitted when the user has sent the feedback mail - i.e. when he clicked on the "Send mail" button and the mail has successfully been forwarded to the mailer. He can still choose not to send the mail from within the mailer, though. +

+Definition at line 84 of file kfeedback.moc.cpp. +

+Referenced by KFeedbackDialog(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackForm-members.html b/doc/html/classKFeedbackForm-members.html new file mode 100644 index 0000000..2698b3f --- /dev/null +++ b/doc/html/classKFeedbackForm-members.html @@ -0,0 +1,40 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

KFeedbackForm Member List

This is the complete list of members for KFeedbackForm, including all inherited members.

+ + + + + + + + + + + + +
_commentKFeedbackForm [protected]
_feedbackMailAddressKFeedbackForm [protected]
_questionListKFeedbackForm [protected]
checkComplete()KFeedbackForm [signal]
formatComment()KFeedbackForm [protected]
KFeedbackForm(const QString &feedbackMailAddress, QWidget *parent)KFeedbackForm
mailSent()KFeedbackForm [signal]
questionList()KFeedbackForm [inline]
readyToSend()KFeedbackForm [virtual]
sendMail()KFeedbackForm [virtual, slot]
slotCheckComplete()KFeedbackForm [protected, slot]
~KFeedbackForm()KFeedbackForm [virtual]


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackForm.html b/doc/html/classKFeedbackForm.html new file mode 100644 index 0000000..de9f434 --- /dev/null +++ b/doc/html/classKFeedbackForm.html @@ -0,0 +1,300 @@ + + +kshowmail: KFeedbackForm Class Reference + + + + +
+
+
+
+

KFeedbackForm Class Reference

#include <kfeedback.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

virtual void sendMail ()

Signals

void mailSent ()
void checkComplete ()

Public Member Functions

 KFeedbackForm (const QString &feedbackMailAddress, QWidget *parent)
virtual ~KFeedbackForm ()
virtual bool readyToSend ()
KFeedbackQuestionListquestionList ()

Protected Slots

void slotCheckComplete ()

Protected Member Functions

QString formatComment ()

Protected Attributes

+QString _feedbackMailAddress
+KFeedbackQuestionList_questionList
+QMultiLineEdit * _comment
+


Detailed Description

+User feedback form:

+User is asked a list of questions, the answers of which will be sent via mail back to a feedback mail address. +

+ +

+Definition at line 98 of file kfeedback.h.


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
KFeedbackForm::KFeedbackForm (const QString &  feedbackMailAddress,
QWidget *  parent 
)
+
+
+ +

+Constructor. +

+Definition at line 80 of file kfeedback.cpp. +

+References _comment, _questionList, checkComplete(), and slotCheckComplete(). +

+

+ +

+
+ + + + + + + + +
KFeedbackForm::~KFeedbackForm (  )  [virtual]
+
+
+ +

+Destructor. +

+Definition at line 146 of file kfeedback.cpp. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
void KFeedbackForm::sendMail (  )  [virtual, slot]
+
+
+ +

+Compose a mail from the user's answers and send it to the feedback mail address passed to the constructor.

+This method will check with readyToSend() if the mail can be sent with the questions answered until now and prompt the user to answer more questions if not.

+Connect the mailSent() signal if you are interested when exactly all this was successful. +

+Definition at line 153 of file kfeedback.cpp. +

+References _feedbackMailAddress, _questionList, formatComment(), mailSent(), and KFeedbackQuestionList::result(). +

+

+ +

+
+ + + + + + + + +
bool KFeedbackForm::readyToSend (  )  [virtual]
+
+
+ +

+Checks if the mail is ready to send, i.e. if all required fields are filled. +

+Definition at line 229 of file kfeedback.cpp. +

+References _questionList, and KFeedbackQuestionList::isComplete(). +

+Referenced by KFeedbackDialog::checkSendButton(). +

+

+ +

+
+ + + + + + + + +
KFeedbackQuestionList* KFeedbackForm::questionList (  )  [inline]
+
+
+ +

+Returns the KFeedbackQuestionList . +

+Definition at line 142 of file kfeedback.h. +

+References _questionList. +

+Referenced by KShowMailApp::slotSendFeedbackMail(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackForm::mailSent (  )  [signal]
+
+
+ +

+Emitted when the user has sent the feedback mail - i.e. when he clicked on the "Send mail" button and the mail has successfully been forwarded to the mailer. He can still choose not to send the mail from within the mailer, though. +

+Definition at line 185 of file kfeedback.moc.cpp. +

+Referenced by sendMail(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackForm::checkComplete (  )  [signal]
+
+
+ +

+Emitted when it is time to check for completeness of all information in this form: Either when a new question is added or when a question is answered. +

+Definition at line 191 of file kfeedback.moc.cpp. +

+Referenced by KFeedbackForm(), and slotCheckComplete(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackForm::slotCheckComplete (  )  [protected, slot]
+
+
+ +

+Check for completeness of this form. +

+Definition at line 208 of file kfeedback.cpp. +

+References checkComplete(). +

+Referenced by KFeedbackForm(). +

+

+ +

+
+ + + + + + + + +
QString KFeedbackForm::formatComment (  )  [protected]
+
+
+ +

+Format the "personal comments" field for sending mail. +

+Definition at line 215 of file kfeedback.cpp. +

+References _comment. +

+Referenced by sendMail(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackQuestion-members.html b/doc/html/classKFeedbackQuestion-members.html new file mode 100644 index 0000000..14aa262 --- /dev/null +++ b/doc/html/classKFeedbackQuestion-members.html @@ -0,0 +1,44 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

KFeedbackQuestion Member List

This is the complete list of members for KFeedbackQuestion, including all inherited members.

+ + + + + + + + + + + + + + + + +
_exclusiveAnswerKFeedbackQuestion [protected]
_idKFeedbackQuestion [protected]
_noKFeedbackQuestion [protected]
_requiredKFeedbackQuestion [protected]
addAnswer(const QString &text, const QString &id)KFeedbackQuestion
exclusiveAnswer()KFeedbackQuestion [inline]
firstAnswer() constKFeedbackQuestion [inline]
id()KFeedbackQuestion [inline]
isAnswered()KFeedbackQuestion
isRequired()KFeedbackQuestion [inline]
key(int column, bool ascending) constKFeedbackQuestion [virtual]
KFeedbackQuestion(KFeedbackQuestionList *parent, const QString &text, const QString &id, bool exclusiveAnswer=true, bool required=false, bool open=true)KFeedbackQuestion
nextQuestion() constKFeedbackQuestion [inline]
questionList() constKFeedbackQuestion
result()KFeedbackQuestion
text()KFeedbackQuestion


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackQuestion.html b/doc/html/classKFeedbackQuestion.html new file mode 100644 index 0000000..37cd13e --- /dev/null +++ b/doc/html/classKFeedbackQuestion.html @@ -0,0 +1,424 @@ + + +kshowmail: KFeedbackQuestion Class Reference + + + + +
+
+
+
+

KFeedbackQuestion Class Reference

#include <kfeedback.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 KFeedbackQuestion (KFeedbackQuestionList *parent, const QString &text, const QString &id, bool exclusiveAnswer=true, bool required=false, bool open=true)
void addAnswer (const QString &text, const QString &id)
bool isRequired ()
bool isAnswered ()
QString result ()
QString id ()
QString text ()
bool exclusiveAnswer ()
virtual QString key (int column, bool ascending) const
KFeedbackQuestionnextQuestion () const
KFeedbackAnswerfirstAnswer () const
KFeedbackQuestionListquestionList () const

Protected Attributes

+QString _id
+bool _exclusiveAnswer
+bool _required
+int _no
+


Detailed Description

+A user feedback question to be inserted into a KFeedbackQuestionList. +

+ +

+Definition at line 275 of file kfeedback.h.


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KFeedbackQuestion::KFeedbackQuestion (KFeedbackQuestionList parent,
const QString &  text,
const QString &  id,
bool  exclusiveAnswer = true,
bool  required = false,
bool  open = true 
)
+
+
+ +

+Constructor.

+The parent KFeedbackQuestionList assumes ownership of this object, so don't delete it unless you want to delete it from the question list as well.

+'text' is the text the user will see (in his native language).

+'id' is what will be sent with the feedback mail, thus it should be unique within the application, yet human readable (preferably English) and not contain any weird characters that might confuse scripts that are later used to automatically parse those mails. Examples: "features_not_liked", "stability"

+Set 'required' to 'true' if answering this question is required to successfully complete this form.

+Set 'exclusiveAnswer' to 'true' if only one of all answers may be checked at any one time, to 'false' if multiple answers are allowed. +

+Definition at line 336 of file kfeedback.cpp. +

+References _no, and KFeedbackQuestionList::questionAdded(). +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
void KFeedbackQuestion::addAnswer (const QString &  text,
const QString &  id 
)
+
+
+ +

+Add an answer to this question. Again, 'text' is what the user will see (translated to his native language), 'id' is what you will get back with the mail. The answer IDs need only be unique for that question; answers to other questions may have the same ID. +

+Definition at line 360 of file kfeedback.cpp. +

+References _exclusiveAnswer. +

+Referenced by KShowMailApp::addFeatureList(), KFeedbackQuestionList::addYesNoQuestion(), and KShowMailApp::slotSendFeedbackMail(). +

+

+ +

+
+ + + + + + + + +
bool KFeedbackQuestion::isRequired (  )  [inline]
+
+
+ +

+Returns if answering this question is required. +

+Definition at line 319 of file kfeedback.h. +

+References _required. +

+Referenced by KFeedbackQuestionList::isComplete(), and KFeedbackQuestionList::questionAdded(). +

+

+ +

+
+ + + + + + + + +
bool KFeedbackQuestion::isAnswered (  ) 
+
+
+ +

+Returns if this question is answered satisfactorily. +

+If any number of answers is permitted for this question, this question is always considered to be answered.

+If this question requires an exclusive answer, exactly one of them should be checked. We don't need to bother about more than one being checked here - QListView does that for us. +

+Definition at line 368 of file kfeedback.cpp. +

+References _exclusiveAnswer, firstAnswer(), KFeedbackAnswer::isChecked(), and KFeedbackAnswer::nextAnswer(). +

+Referenced by KFeedbackQuestionList::isComplete(). +

+

+ +

+
+ + + + + + + + +
QString KFeedbackQuestion::result (  ) 
+
+
+ +

+The result of this question in ASCII, e.g. recommend="yes" or features_i_like="builtin_tetris" features_i_like="pink_elephant" features_i_like="studlycapslyfier" +

+Definition at line 402 of file kfeedback.cpp. +

+References _id, firstAnswer(), KFeedbackAnswer::id(), KFeedbackAnswer::isChecked(), and KFeedbackAnswer::nextAnswer(). +

+Referenced by KFeedbackQuestionList::result(). +

+

+ +

+
+ + + + + + + + +
QString KFeedbackQuestion::id (  )  [inline]
+
+
+ +

+Return this question's ID. +

+Definition at line 339 of file kfeedback.h. +

+References _id. +

+

+ +

+
+ + + + + + + + +
QString KFeedbackQuestion::text (  ) 
+
+
+ +

+Return this question's text. +

+Definition at line 430 of file kfeedback.cpp. +

+

+ +

+
+ + + + + + + + +
bool KFeedbackQuestion::exclusiveAnswer (  )  [inline]
+
+
+ +

+Returns whether or not this question requires an exclusive answer. +

+Definition at line 349 of file kfeedback.h. +

+References _exclusiveAnswer. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
QString KFeedbackQuestion::key (int  column,
bool  ascending 
) const [virtual]
+
+
+ +

+Returns the sort key.

+Reimplemented from QListViewItem to maintain insertion order. +

+Definition at line 437 of file kfeedback.cpp. +

+References _no. +

+

+ +

+
+ + + + + + + + +
KFeedbackQuestion* KFeedbackQuestion::nextQuestion (  )  const [inline]
+
+
+ +

+Returns the next question or 0 if there is no more. +

+Definition at line 362 of file kfeedback.h. +

+Referenced by KFeedbackQuestionList::isComplete(), and KFeedbackQuestionList::result(). +

+

+ +

+
+ + + + + + + + +
KFeedbackAnswer* KFeedbackQuestion::firstAnswer (  )  const [inline]
+
+
+ +

+Returns the first possible answer to this question. Use KFeedbackAnswer::nextAnswer() to get the next one. +

+Definition at line 369 of file kfeedback.h. +

+Referenced by isAnswered(), and result(). +

+

+ +

+
+ + + + + + + + +
KFeedbackQuestionList * KFeedbackQuestion::questionList (  )  const
+
+
+ +

+Returns the KFeedbackQuestionList this question belongs to or 0 if the parent is no KFeedbackQuestionList. +

+Definition at line 447 of file kfeedback.cpp. +

+Referenced by KFeedbackAnswer::stateChange(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackQuestionList-members.html b/doc/html/classKFeedbackQuestionList-members.html new file mode 100644 index 0000000..73dc057 --- /dev/null +++ b/doc/html/classKFeedbackQuestionList-members.html @@ -0,0 +1,38 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

KFeedbackQuestionList Member List

This is the complete list of members for KFeedbackQuestionList, including all inherited members.

+ + + + + + + + + + +
addQuestion(const QString &text, const QString &id, bool exclusiveAnswer=true, bool required=false)KFeedbackQuestionList
addYesNoQuestion(const QString &text, const QString &id, bool required=false)KFeedbackQuestionList
checkComplete()KFeedbackQuestionList [signal]
firstQuestion() constKFeedbackQuestionList [inline]
isComplete()KFeedbackQuestionList [virtual]
KFeedbackQuestionList(QWidget *parent)KFeedbackQuestionList
questionAdded(KFeedbackQuestion *question)KFeedbackQuestionList
questionAnswered()KFeedbackQuestionList
result()KFeedbackQuestionList
~KFeedbackQuestionList()KFeedbackQuestionList [virtual]


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKFeedbackQuestionList.html b/doc/html/classKFeedbackQuestionList.html new file mode 100644 index 0000000..0973549 --- /dev/null +++ b/doc/html/classKFeedbackQuestionList.html @@ -0,0 +1,343 @@ + + +kshowmail: KFeedbackQuestionList Class Reference + + + + +
+
+
+
+

KFeedbackQuestionList Class Reference

#include <kfeedback.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + +

Signals

void checkComplete ()

Public Member Functions

 KFeedbackQuestionList (QWidget *parent)
virtual ~KFeedbackQuestionList ()
virtual bool isComplete ()
QString result ()
KFeedbackQuestionaddQuestion (const QString &text, const QString &id, bool exclusiveAnswer=true, bool required=false)
void addYesNoQuestion (const QString &text, const QString &id, bool required=false)
KFeedbackQuestionfirstQuestion () const
void questionAnswered ()
void questionAdded (KFeedbackQuestion *question)
+


Detailed Description

+List of feedback questions presented in a QListView widget. +

+ +

+Definition at line 187 of file kfeedback.h.


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + +
KFeedbackQuestionList::KFeedbackQuestionList (QWidget *  parent  ) 
+
+
+ +

+Constructor. +

+Definition at line 239 of file kfeedback.cpp. +

+

+ +

+
+ + + + + + + + +
KFeedbackQuestionList::~KFeedbackQuestionList (  )  [virtual]
+
+
+ +

+Destructor. +

+Definition at line 247 of file kfeedback.cpp. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
bool KFeedbackQuestionList::isComplete (  )  [virtual]
+
+
+ +

+Returns whether or not this question list is answered satisfactorily, i.e. if all questions marked as "required" are answered. +

+Definition at line 254 of file kfeedback.cpp. +

+References firstQuestion(), KFeedbackQuestion::isAnswered(), KFeedbackQuestion::isRequired(), and KFeedbackQuestion::nextQuestion(). +

+Referenced by KFeedbackForm::readyToSend(). +

+

+ +

+
+ + + + + + + + +
QString KFeedbackQuestionList::result (  ) 
+
+
+ +

+The result of all answered questions in ASCII. +

+Definition at line 270 of file kfeedback.cpp. +

+References firstQuestion(), KFeedbackQuestion::nextQuestion(), and KFeedbackQuestion::result(). +

+Referenced by KFeedbackForm::sendMail(). +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KFeedbackQuestion * KFeedbackQuestionList::addQuestion (const QString &  text,
const QString &  id,
bool  exclusiveAnswer = true,
bool  required = false 
)
+
+
+ +

+Add a yes/no question to the list.

+'text' is the text the user will see (in his native language).

+'id' is what will be sent with the feedback mail, thus it should be unique within the application, yet human readable (preferably English) and not contain any weird characters that might confuse scripts that are later used to automatically parse those mails. Examples: "would_recommend_to_a_friend"

+Set 'required' to 'true' if answering this question is required to successfully complete this form.

+Returns a pointer to this question so you can add answers. +

+Definition at line 288 of file kfeedback.cpp. +

+Referenced by KShowMailApp::slotSendFeedbackMail(). +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void KFeedbackQuestionList::addYesNoQuestion (const QString &  text,
const QString &  id,
bool  required = false 
)
+
+
+ +

+Add a yes/no question to the list. +

+Definition at line 303 of file kfeedback.cpp. +

+References KFeedbackQuestion::addAnswer(). +

+Referenced by KShowMailApp::slotSendFeedbackMail(). +

+

+ +

+
+ + + + + + + + +
KFeedbackQuestion* KFeedbackQuestionList::firstQuestion (  )  const [inline]
+
+
+ +

+Returns the first question of that list. Use KFeedbackQuestion::next() to get the next one. +

+Definition at line 247 of file kfeedback.h. +

+Referenced by isComplete(), and result(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackQuestionList::questionAnswered (  ) 
+
+
+ +

+Notify the list that another question has been answered. Emits the checkComplete() signal when all required questions are answered. +

+Definition at line 318 of file kfeedback.cpp. +

+References checkComplete(). +

+Referenced by KFeedbackAnswer::stateChange(). +

+

+ +

+
+ + + + + + + + + +
void KFeedbackQuestionList::questionAdded (KFeedbackQuestion question  ) 
+
+
+ +

+Notify the list that another question has been added. Emits the checkComplete() signal when a required question is added. +

+Definition at line 324 of file kfeedback.cpp. +

+References checkComplete(), and KFeedbackQuestion::isRequired(). +

+Referenced by KFeedbackQuestion::KFeedbackQuestion(). +

+

+ +

+
+ + + + + + + + +
void KFeedbackQuestionList::checkComplete (  )  [signal]
+
+
+ +

+Emitted when all required questions are answered. +

+Definition at line 286 of file kfeedback.moc.cpp. +

+Referenced by questionAdded(), and questionAnswered(). +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKShowMailApp-members.html b/doc/html/classKShowMailApp-members.html new file mode 100644 index 0000000..96a9e94 --- /dev/null +++ b/doc/html/classKShowMailApp-members.html @@ -0,0 +1,85 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

KShowMailApp Member List

This is the complete list of members for KShowMailApp, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
addFeatureList(KFeedbackQuestion *question)KShowMailApp [protected]
askCloseConfirmation()KShowMailApp [protected]
delayNextRefresh()KShowMailApp
event(QEvent *e)KShowMailApp [protected, virtual]
fLogKShowMailApp [private]
initActions()KShowMailApp [protected]
initDocument()KShowMailApp [protected]
initFirstRefresh()KShowMailApp [protected]
initNextRefresh()KShowMailApp [protected]
initStatusBar()KShowMailApp [protected]
initView()KShowMailApp [protected]
KShowMailApp()KShowMailApp
KshowmailDock classKShowMailApp [friend]
KshowmailView classKShowMailApp [friend]
m_actionRefreshKShowMailApp [private]
m_bForceCloseKShowMailApp [private]
m_ConfigListKShowMailApp [private]
m_nSecondsToGoKShowMailApp [private]
m_pAboutKShowMailApp [static]
m_pAlertDialogKShowMailApp [private]
m_pDocKShowMailApp [private]
m_pDockWindowKShowMailApp [private]
m_pTimerKShowMailApp [private]
m_pViewKShowMailApp [private]
m_stateKShowMailApp [private]
queryClose()KShowMailApp [protected, virtual]
queryExit()KShowMailApp [protected, virtual]
SetupDialogKShowMailApp [private]
slotAccountActivated(QListViewItem *)KShowMailApp [protected, slot]
slotAlertDestroyed()KShowMailApp [protected, slot]
slotAlertOk()KShowMailApp [protected, slot]
slotConfChanged()KShowMailApp [protected, slot]
slotDelete()KShowMailApp [protected, slot]
slotDeletionReady()KShowMailApp [protected, slot]
slotEditToolbars()KShowMailApp [protected, slot]
slotFileQuit()KShowMailApp [protected, slot]
slotForceClose()KShowMailApp [protected, slot]
slotNormalCursor()KShowMailApp [protected, slot]
slotRefresh()KShowMailApp [protected, slot]
slotRefreshReady()KShowMailApp [protected, slot]
slotRefreshView()KShowMailApp [protected, slot]
slotSaveOptions()KShowMailApp [protected, slot]
slotSendFeedbackMail()KShowMailApp [protected, slot]
slotSetup()KShowMailApp [protected, slot]
slotSetupAccount()KShowMailApp [protected, slot]
slotShowFilterLog()KShowMailApp [protected, slot]
slotShowHeader()KShowMailApp [protected, slot]
slotShowMessage()KShowMailApp [protected, slot]
slotShowMessageReady()KShowMailApp [protected, slot]
slotStatusHelpMsg(const QString &text)KShowMailApp [protected, slot]
slotStatusMsg(const QString &text)KShowMailApp [protected, slot]
slotStop()KShowMailApp [protected, slot]
slotWaitingCursor()KShowMailApp [protected, slot]
stopRefreshTimer()KShowMailApp [protected]
timerEvent(QTimerEvent *)KShowMailApp [protected, virtual]
UniqueApp classKShowMailApp [friend]
~KShowMailApp()KShowMailApp


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKShowMailApp.html b/doc/html/classKShowMailApp.html new file mode 100644 index 0000000..9d618a8 --- /dev/null +++ b/doc/html/classKShowMailApp.html @@ -0,0 +1,1211 @@ + + +kshowmail.kdevelop: KShowMailApp Class Reference + + + + +
+
+
+
+

KShowMailApp Class Reference

#include <kshowmail.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 KShowMailApp ()
 ~KShowMailApp ()
void delayNextRefresh ()

Static Public Attributes

static KAboutData * m_pAbout

Protected Slots

void slotStatusHelpMsg (const QString &text)
void slotStatusMsg (const QString &text)
void slotConfChanged ()
void slotDelete ()
void slotDeletionReady ()
void slotShowMessage ()
void slotShowMessageReady ()
void slotNormalCursor ()
void slotWaitingCursor ()
void slotRefresh ()
void slotRefreshReady ()
void slotAlertDestroyed ()
void slotAlertOk ()
void slotRefreshView ()
void slotStop ()
void slotShowHeader ()
void slotEditToolbars ()
void slotSaveOptions ()
void slotFileQuit ()
void slotSetupAccount ()
void slotSetup ()
void slotShowFilterLog ()
void slotAccountActivated (QListViewItem *)
void slotSendFeedbackMail ()
void slotForceClose ()

Protected Member Functions

void initStatusBar ()
void initActions ()
void initDocument ()
void initView ()
virtual bool queryClose ()
virtual bool queryExit ()
virtual void timerEvent (QTimerEvent *)
virtual bool event (QEvent *e)
void initFirstRefresh ()
void stopRefreshTimer ()
void initNextRefresh ()
void addFeatureList (KFeedbackQuestion *question)
bool askCloseConfirmation ()

Private Attributes

KshowmailDocm_pDoc
KshowmailViewm_pView
KCMultiDialog * SetupDialog
KAction * m_actionRefresh
ConfigList m_ConfigList
AlertDialogm_pAlertDialog
KShowMailDockm_pDockWindow
QTimer * m_pTimer
Types::State_Type m_state
unsigned long m_nSecondsToGo
FilterLog fLog
bool m_bForceClose

Friends

class KshowmailView
class KshowmailDock
class UniqueApp
+


Detailed Description

+The base class for Kshowmail application windows. It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. An instance of KshowmailView creates your center view, which is connected to the window's Doc object. KShowMailApp reimplements the methods that KMainWindow provides for main window handling and supports full session management as well as keyboard accelerator configuration by using KAccel.
See also:
KMainWindow

+KApplication

+KConfig

+KAccel

+
Author:
Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
+
Version:
KDevelop version 0.4 code generation
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
KShowMailApp::KShowMailApp (  ) 
+
+
+ +

+Constructor of KShowMailApp, calls all init functions to create the application.

See also:
initMenuBar initToolBar
+ +
+

+ +

+
+ + + + + + + + +
KShowMailApp::~KShowMailApp (  ) 
+
+
+ +

+Destructor +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
void KShowMailApp::delayNextRefresh (  ) 
+
+
+ +

+Delays the next refresh for one minute. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::initStatusBar (  )  [protected]
+
+
+ +

+sets up the statusbar for the main window by initialzing a statuslabel. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::initActions (  )  [protected]
+
+
+ +

+sets up the actions. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::initDocument (  )  [protected]
+
+
+ +

+initializes the document object of the main window that is connected to the view in initView().

See also:
initView();
+ +
+

+ +

+
+ + + + + + + + +
void KShowMailApp::initView (  )  [protected]
+
+
+ +

+creates the centerwidget of the KMainWindow instance and sets it as the view +

+

+ +

+
+ + + + + + + + +
bool KShowMailApp::queryClose (  )  [protected, virtual]
+
+
+ +

+queryClose is called by KMainWindow on each closeEvent of a window. Against the default implementation (only returns true), this calles saveModified() on the document object to ask if the document should be saved if Modified; on cancel the closeEvent is rejected.

See also:
KMainWindow::queryClose

+KMainWindow::closeEvent

+ +
+

+ +

+
+ + + + + + + + +
bool KShowMailApp::queryExit (  )  [protected, virtual]
+
+
+ +

+queryExit is called by KMainWindow when the last window of the app is going to be closed during the closeEvent(). Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's properties.

See also:
KMainWindow::queryExit

+KMainWindow::closeEvent

+ +
+

+ +

+
+ + + + + + + + + +
void KShowMailApp::timerEvent (QTimerEvent *   )  [protected, virtual]
+
+
+ +

+overwrite method of QObject; will be invoked by the internal QObject-Timer the timer is set to 1 second in the construtor; this method sets the time to the next refresh in the statusbar and animates the "?" in the traybar, when the refresh is working +

+

+ +

+
+ + + + + + + + + +
bool KShowMailApp::event (QEvent *  e  )  [protected, virtual]
+
+
+ +

+overwrite method of QWidget; to hide the taskbar button +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::initFirstRefresh (  )  [protected]
+
+
+ +

+Starts the first refresh or starts the refresh timer with the configured init time. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::stopRefreshTimer (  )  [protected]
+
+
+ +

+Stops the refresh timer. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::initNextRefresh (  )  [protected]
+
+
+ +

+Starts the refresh timer for the next refresh. +

+

+ +

+
+ + + + + + + + + +
void KShowMailApp::slotStatusHelpMsg (const QString &  text  )  [protected, slot]
+
+
+ +

+Changes the status message of the whole statusbar for two seconds, then restores the last status. This is used to display statusbar messages that give information about actions for toolbar icons and menu entries.

Parameters:
+ + +
text the text that is displayed in the statusbar
+
+ +
+

+ +

+
+ + + + + + + + + +
void KShowMailApp::slotStatusMsg (const QString &  text  )  [protected, slot]
+
+
+ +

+Changes the contents in the left status bar item permanently, used to indicate current actions. And sets the current time in the right item.

Parameters:
+ + +
text the text that is displayed in the statusbar
+
+ +
+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotConfChanged (  )  [protected, slot]
+
+
+ +

+Connected with the setup dialog. Reloads the configuration, if it was changed from the dialog. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotDelete (  )  [protected, slot]
+
+
+ +

+Connected with action m_actionDelete. Deletes all selected mails. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotDeletionReady (  )  [protected, slot]
+
+
+ +

+Connected with signal sigDeleteReady of m_ConfigList. This signal will be emitted when one or many accounts have ended a deletion. This slot refreshes the view, sets the state to idle and sets a normal cursor. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotShowMessage (  )  [protected, slot]
+
+
+ +

+Connected with action m_actionShowMessage. Shows all selected mails. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotShowMessageReady (  )  [protected, slot]
+
+
+ +

+Connected with signal sigShowBodiesReady of m_ConfigList. This signal will be emitted when all accounts have downloaded and shown the selected messages. This slot sets the state to idle and sets a normal cursor. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotNormalCursor (  )  [protected, slot]
+
+
+ +

+Connected with signal sigMessageWindowOpened of m_ConfigList. This signal will be emitted when a window to show a mail body was opened. Switches the cursor to normal view. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotWaitingCursor (  )  [protected, slot]
+
+
+ +

+Connected with signal sigAllMessageWindowsClosed of m_ConfigList. This signal will be emitted when all windows to show a mail body have been closed. Switches the cursor to waiting view. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotRefresh (  )  [protected, slot]
+
+
+ +

+Connected with m_actionRefresh. Refreshes the mail list. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotRefreshReady (  )  [protected, slot]
+
+
+ +

+Connected with signal sigRefreshReady of m_ConfigList. This signal will be emitted when all accounts have refreshed their mail list. This slot refreshes the mail view. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotAlertDestroyed (  )  [protected, slot]
+
+
+ +

+Connected with signal destroyed of the alert message dialog. Sets m_pAlertDialog to NULL, if the dialog was destroyed. If m_pAlertDialog == NULL, slotRefreshReady will create a new instance of it.

See also:
m_pAlertDialog

+slotRefreshReady()

+ +
+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotAlertOk (  )  [protected, slot]
+
+
+ +

+Connected with signal signalOk of the alert message dialog. Switches the main window to normal view.

See also:
m_pAlertDialog;
+ +
+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotRefreshView (  )  [protected, slot]
+
+
+ +

+Refreshes the account and messages list view. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotStop (  )  [protected, slot]
+
+
+ +

+If the application state is not "idle" it will stop all current running POP3 jobs. Connected with m_actionStop(). +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotShowHeader (  )  [protected, slot]
+
+
+ +

+Shows the headers of all selected mails. Connected with action m_actionShowHeader. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotEditToolbars (  )  [protected, slot]
+
+
+ +

+Connected with standard action configureToolbars. Opens a dialog to configure the icons of the toolbar. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotSaveOptions (  )  [protected, slot]
+
+
+ +

+Saves GUI options, account and filter settings to the configuration file. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotFileQuit (  )  [protected, slot]
+
+
+ +

+Calls the close() method of KShowMailApp to exit the application. Uses askCloseConfirmation() to ask the user (if configured). Sets m_bForceClose to TRUE, therefore queryClose() will be passed without anything to do. After that in queryExit() slotSaveOptions() will be invoked. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotSetupAccount (  )  [protected, slot]
+
+
+ +

+Opens the setup dialog for the highlighted account. Connected with m_actionSetupAccount. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotSetup (  )  [protected, slot]
+
+
+ +

+Connected with the standard setup action. If the application state is "idle" (m_state == idle) it will open the configuration dialog. +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotShowFilterLog (  )  [protected, slot]
+
+
+ +

+Shows the filter log. +

+

+ +

+
+ + + + + + + + + +
void KShowMailApp::slotAccountActivated (QListViewItem *   )  [protected, slot]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotSendFeedbackMail (  )  [protected, slot]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
void KShowMailApp::slotForceClose (  )  [protected, slot]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void KShowMailApp::addFeatureList (KFeedbackQuestion *  question  )  [protected]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
bool KShowMailApp::askCloseConfirmation (  )  [protected]
+
+
+ +

+ +

+

+


Friends And Related Function Documentation

+ +
+
+ + + + +
friend class KshowmailView [friend]
+
+
+ +

+ +

+

+ +

+
+ + + + +
friend class KshowmailDock [friend]
+
+
+ +

+ +

+

+ +

+
+ + + + +
friend class UniqueApp [friend]
+
+
+ +

+ +

+

+


Member Data Documentation

+ +
+
+ + + + +
KshowmailDoc* KShowMailApp::m_pDoc [private]
+
+
+ +

+The central document of our application. Just contains the view (m_pView). +

+

+ +

+
+ + + + +
KshowmailView* KShowMailApp::m_pView [private]
+
+
+ +

+Contains the account and messages list views. +

+

+ +

+
+ + + + +
KCMultiDialog* KShowMailApp::SetupDialog [private]
+
+
+ +

+The setup dialog. Created and used by slotSetup(). +

+

+ +

+
+ + + + +
KAction* KShowMailApp::m_actionRefresh [private]
+
+
+ +

+refresh messages action; connected with slotRefresh() +

+

+ +

+
+ + + + +
ConfigList KShowMailApp::m_ConfigList [private]
+
+
+ +

+Contains the application and account settings. The account settings are stored in ConfigElem objects. +

+

+ +

+ +
+ +

+Message box which will be shown, when new mail has arrived. +

+

+ +

+ +
+ +

+The window into the system tray. +

+

+ +

+
+ + + + +
QTimer* KShowMailApp::m_pTimer [private]
+
+
+ +

+The refresh timer. Its timeout signal is connected with slotRefresh(). +

+

+ +

+ +
+ +

+Application state during the run time. Shows what KShowMail is doing :-) . +

+

+ +

+
+ + + + +
unsigned long KShowMailApp::m_nSecondsToGo [private]
+
+
+ +

+Number of seconds until the next refresh +

+

+ +

+
+ + + + +
FilterLog KShowMailApp::fLog [private]
+
+
+ +

+The filter log. +

+

+ +

+
+ + + + +
KAboutData * KShowMailApp::m_pAbout [static]
+
+
+ +

+Contains information about KShowMail, including author, license, version etc. This is accessed in main() when calling KShowMailApp::initMenuBar() to create the help menu. +

+

+ +

+
+ + + + +
bool KShowMailApp::m_bForceClose [private]
+
+
+ +

+ +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKShowMailDock-members.html b/doc/html/classKShowMailDock-members.html new file mode 100644 index 0000000..ec8f04f --- /dev/null +++ b/doc/html/classKShowMailDock-members.html @@ -0,0 +1,36 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

KShowMailDock Member List

This is the complete list of members for KShowMailDock, including all inherited members.

+ + + + + + + + +
clear()KShowMailDock
drawNumber(int n, const QColor &color)KShowMailDock
drawText(const QString str, const QColor &color)KShowMailDock
KShowMailDock(QWidget *, KAction *actionRefresh)KShowMailDock
m_backgroundKShowMailDock [private]
sigActivated(int)KShowMailDock [signal]
sigHighlighted(int)KShowMailDock [signal]
~KShowMailDock()KShowMailDock [inline]


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKShowMailDock.html b/doc/html/classKShowMailDock.html new file mode 100644 index 0000000..c62b9f5 --- /dev/null +++ b/doc/html/classKShowMailDock.html @@ -0,0 +1,240 @@ + + +kshowmail.kdevelop: KShowMailDock Class Reference + + + + +
+
+
+
+

KShowMailDock Class Reference

#include <kshowmaildock.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + +

Signals

void sigActivated (int)
void sigHighlighted (int)

Public Member Functions

 KShowMailDock (QWidget *, KAction *actionRefresh)
 ~KShowMailDock ()
void drawText (const QString str, const QColor &color)
void drawNumber (int n, const QColor &color)
void clear ()

Private Attributes

QPixmap m_background
+


Detailed Description

+
Author:
Eggert Ehmke
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
KShowMailDock::KShowMailDock (QWidget * ,
KAction *  actionRefresh 
)
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
KShowMailDock::~KShowMailDock (  )  [inline]
+
+
+ +

+ +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
void KShowMailDock::drawText (const QString  str,
const QColor &  color 
)
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void KShowMailDock::drawNumber (int  n,
const QColor &  color 
)
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
void KShowMailDock::clear (  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void KShowMailDock::sigActivated (int   )  [signal]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void KShowMailDock::sigHighlighted (int   )  [signal]
+
+
+ +

+ +

+

+


Member Data Documentation

+ +
+
+ + + + +
QPixmap KShowMailDock::m_background [private]
+
+
+ +

+ +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKshowmailDoc-members.html b/doc/html/classKshowmailDoc-members.html new file mode 100644 index 0000000..764afc0 --- /dev/null +++ b/doc/html/classKshowmailDoc-members.html @@ -0,0 +1,38 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

KshowmailDoc Member List

This is the complete list of members for KshowmailDoc, including all inherited members.

+ + + + + + + + + + +
addView(KshowmailView *view)KshowmailDoc
doc_urlKshowmailDoc [private]
KshowmailDoc(QWidget *parent, const char *name=0)KshowmailDoc
newDocument()KshowmailDoc
pViewKshowmailDoc [static]
removeView(KshowmailView *view)KshowmailDoc
setURL(const KURL &url)KshowmailDoc
slotUpdateAllViews(KshowmailView *sender)KshowmailDoc [slot]
URL() constKshowmailDoc
~KshowmailDoc()KshowmailDoc


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKshowmailDoc.html b/doc/html/classKshowmailDoc.html new file mode 100644 index 0000000..614bd5c --- /dev/null +++ b/doc/html/classKshowmailDoc.html @@ -0,0 +1,264 @@ + + +kshowmail.kdevelop: KshowmailDoc Class Reference + + + + +
+
+
+
+

KshowmailDoc Class Reference

#include <kshowmaildoc.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

void slotUpdateAllViews (KshowmailView *sender)

Public Member Functions

 KshowmailDoc (QWidget *parent, const char *name=0)
 ~KshowmailDoc ()
void addView (KshowmailView *view)
void removeView (KshowmailView *view)
bool newDocument ()
const KURL & URL () const
void setURL (const KURL &url)

Static Public Attributes

static KshowmailViewpView

Private Attributes

KURL doc_url
+


Detailed Description

+KshowmailDoc provides a document object for a document-view model.

+The KshowmailDoc class provides a document object that can be used in conjunction with the classes KshowmailApp and KshowmailView to create a document-view model for standard KDE applications based on KApplication and KMainWindow. Thereby, the document object is created by the KshowmailApp instance and contains the document structure with the according methods for manipulation of the document data by KshowmailView objects. Also, KshowmailDoc contains the methods for serialization of the document data from and to files.

+

Author:
Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
+
Version:
KDevelop version 1.2 code generation
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
KshowmailDoc::KshowmailDoc (QWidget *  parent,
const char *  name = 0 
)
+
+
+ +

+Constructor for the fileclass of the application +

+

+ +

+
+ + + + + + + + +
KshowmailDoc::~KshowmailDoc (  ) 
+
+
+ +

+Destructor for the fileclass of the application +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
void KshowmailDoc::addView (KshowmailView view  ) 
+
+
+ +

+adds a view to the document which represents the document contents. Usually this is your main view. +

+

+ +

+
+ + + + + + + + + +
void KshowmailDoc::removeView (KshowmailView view  ) 
+
+
+ +

+removes a view from the list of currently connected views +

+

+ +

+
+ + + + + + + + +
bool KshowmailDoc::newDocument (  ) 
+
+
+ +

+initializes the document generally +

+

+ +

+
+ + + + + + + + +
const KURL & KshowmailDoc::URL (  )  const
+
+
+ +

+returns the KURL of the document +

+

+ +

+
+ + + + + + + + + +
void KshowmailDoc::setURL (const KURL &  url  ) 
+
+
+ +

+sets the URL of the document +

+

+ +

+
+ + + + + + + + + +
void KshowmailDoc::slotUpdateAllViews (KshowmailView sender  )  [slot]
+
+
+ +

+calls repaint() on all views connected to the document object and is called by the view by which the document has been changed. As this view normally repaints itself, it is excluded from the paintEvent. +

+

+


Member Data Documentation

+ +
+
+ + + + +
KshowmailView * KshowmailDoc::pView [static]
+
+
+ +

+the list of the views currently connected to the document +

+

+ +

+
+ + + + +
KURL KshowmailDoc::doc_url [private]
+
+
+ +

+the modified flag of the current document +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKshowmailView-members.html b/doc/html/classKshowmailView-members.html new file mode 100644 index 0000000..aa29796 --- /dev/null +++ b/doc/html/classKshowmailView-members.html @@ -0,0 +1,45 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

KshowmailView Member List

This is the complete list of members for KshowmailView, including all inherited members.

+ + + + + + + + + + + + + + + + + +
clearMailListView()KshowmailView
configKshowmailView [private]
insertMail(QString &number, QString &account, QString &from, QString &to, QString &subject, QString &date, QString &size, QString &content, QString &state, QString &time)KshowmailView
KshowmailView(QWidget *parent=0, const char *name=0)KshowmailView
m_pixOkKshowmailView [private]
m_pListAccountsKshowmailView
m_pListMessagesKshowmailView
readOptions()KshowmailView [private]
refreshSetup()KshowmailView
saveOptions(KConfig *config)KshowmailView
signalActiveChanged()KshowmailView [signal]
slotAccountClicked(QListViewItem *, const QPoint &point, int col)KshowmailView [private, slot]
slotAccountContext(QListViewItem *, const QPoint &, int)KshowmailView [private, slot]
slotMessageClicked(QListViewItem *)KshowmailView [private, slot]
slotMessageContext(QListViewItem *, const QPoint &, int)KshowmailView [private, slot]
slotMessageDoubleClicked(QListViewItem *)KshowmailView [private, slot]
~KshowmailView()KshowmailView


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classKshowmailView.html b/doc/html/classKshowmailView.html new file mode 100644 index 0000000..0831a68 --- /dev/null +++ b/doc/html/classKshowmailView.html @@ -0,0 +1,525 @@ + + +kshowmail.kdevelop: KshowmailView Class Reference + + + + +
+
+
+
+

KshowmailView Class Reference

#include <kshowmailview.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Signals

void signalActiveChanged ()

Public Member Functions

 KshowmailView (QWidget *parent=0, const char *name=0)
 ~KshowmailView ()
void saveOptions (KConfig *config)
void clearMailListView ()
ShowListViewIteminsertMail (QString &number, QString &account, QString &from, QString &to, QString &subject, QString &date, QString &size, QString &content, QString &state, QString &time)
void refreshSetup ()

Public Attributes

KListView * m_pListAccounts
KListView * m_pListMessages

Private Slots

void slotMessageContext (QListViewItem *, const QPoint &, int)
void slotMessageDoubleClicked (QListViewItem *)
void slotMessageClicked (QListViewItem *)
void slotAccountContext (QListViewItem *, const QPoint &, int)
void slotAccountClicked (QListViewItem *, const QPoint &point, int col)

Private Member Functions

void readOptions ()

Private Attributes

QPixmap * m_pixOk
KConfig * config
+


Detailed Description

+The KshowmailView class provides the view widget for the KShowMailApp instance. The View instance inherits QWidget as a base class and represents the view object of a KMainWindow. As KshowmailView is part of the document-view model, it needs a reference to the document object connected with it by the KShowMailApp class to manipulate and display the document structure provided by the KshowmailDoc class.

+

Author:
Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.

+Ulrich Weigelt <ulrich.weigelt@gmx.de>

+
Version:
KDevelop version 0.4 code generation
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
KshowmailView::KshowmailView (QWidget *  parent = 0,
const char *  name = 0 
)
+
+
+ +

+Constructor for the main view +

+

+ +

+
+ + + + + + + + +
KshowmailView::~KshowmailView (  ) 
+
+
+ +

+Destructor for the main view +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
void KshowmailView::saveOptions (KConfig *  config  ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + +
void KshowmailView::clearMailListView (  ) 
+
+
+ +

+Clears the mail list view. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ShowListViewItem * KshowmailView::insertMail (QString &  number,
QString &  account,
QString &  from,
QString &  to,
QString &  subject,
QString &  date,
QString &  size,
QString &  content,
QString &  state,
QString &  time 
)
+
+
+ +

+Creates a mail list view item with the given content and inserts it into the mail list view.

Parameters:
+ + + + + + + + + + + +
number mail number
account account name
from sender of the mail
to recipient of the mail
subject mail subject
date date on which the mail was sent, formated to the current locale's conventions.
size size of the mail
content content type
state new or old
time send date, formated to the ISO 8601 extended specification (YYYY-MM-DDTHH:MM:SS)
+
+
Returns:
pointer to the created list view item
+ +
+

+ +

+
+ + + + + + + + +
void KshowmailView::refreshSetup (  ) 
+
+
+ +

+Refreshes the geometry. Reads from the config file the properties about show or hide columns. If a shown column should be hidden, the current width will be saved and the column will be hidden. If a hidden column should be shown, it will be set to the old saved width. +

+

+ +

+
+ + + + + + + + +
void KshowmailView::readOptions (  )  [private]
+
+
+ +

+Reads the some geometry options from the application config file. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void KshowmailView::slotMessageContext (QListViewItem * ,
const QPoint & ,
int  
) [private, slot]
+
+
+ +

+Connected with signal rightButtonClicked of m_pListMessages. Invoked, when the user has clicked on a list item with the right mouse button. Selects the clicked item and shows the popup menu mail_context_popup defined in kshowmailui.rc. +

+

+ +

+
+ + + + + + + + + +
void KshowmailView::slotMessageDoubleClicked (QListViewItem *   )  [private, slot]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void KshowmailView::slotMessageClicked (QListViewItem *   )  [private, slot]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void KshowmailView::slotAccountContext (QListViewItem * ,
const QPoint & ,
int  
) [private, slot]
+
+
+ +

+Connected with signal rightButtonClicked of m_pListAccounts. Invoked, when the user has clicked on a list item with the right mouse button. Selects the clicked item and shows the popup menu account_context_popup defined in kshowmailui.rc. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void KshowmailView::slotAccountClicked (QListViewItem * ,
const QPoint &  point,
int  col 
) [private, slot]
+
+
+ +

+Connected with signal clicked of the account list. Activate or deactivate the account, if the user has clicked in the first column +

+

+ +

+
+ + + + + + + + +
void KshowmailView::signalActiveChanged (  )  [signal]
+
+
+ +

+ +

+

+


Member Data Documentation

+ +
+
+ + + + +
KListView* KshowmailView::m_pListAccounts
+
+
+ +

+ +

+

+ +

+
+ + + + +
KListView* KshowmailView::m_pListMessages
+
+
+ +

+ +

+

+ +

+
+ + + + +
QPixmap* KshowmailView::m_pixOk [private]
+
+
+ +

+ +

+

+ +

+
+ + + + +
KConfig* KshowmailView::config [private]
+
+
+ +

+Connector to the configuration file +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classLogger-members.html b/doc/html/classLogger-members.html new file mode 100644 index 0000000..73880ee --- /dev/null +++ b/doc/html/classLogger-members.html @@ -0,0 +1,33 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

Logger Member List

This is the complete list of members for Logger, including all inherited members.

+ + + + + +
flush()Logger [static]
logfileLogger [static]
Logger()Logger [inline]
logstreamLogger [static]
~Logger()Logger


Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classLogger.html b/doc/html/classLogger.html new file mode 100644 index 0000000..a647303 --- /dev/null +++ b/doc/html/classLogger.html @@ -0,0 +1,58 @@ + + +kshowmail: Logger Class Reference + + + + +
+
+
+
+

Logger Class Reference

#include <logger.h> +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

Logger ()
~Logger ()

Static Public Member Functions

+static void flush ()

Static Public Attributes

+static QTextStream * logstream
+static QFile logfile
+


Detailed Description

+
Author:
Eggert Ehmke
+ +

+ +

+Definition at line 29 of file logger.h.


The documentation for this class was generated from the following files: +
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classOptionDialog-members.html b/doc/html/classOptionDialog-members.html new file mode 100644 index 0000000..1b78f79 --- /dev/null +++ b/doc/html/classOptionDialog-members.html @@ -0,0 +1,123 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

OptionDialog Member List

This is the complete list of members for OptionDialog, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
_checkConfirmCloseOptionDlg
GroupBox2OptionDlg
GroupBox2LayoutOptionDlg [protected]
GroupBox3OptionDlg
GroupBox3LayoutOptionDlg [protected]
groupBox4OptionDlg
groupBox4LayoutOptionDlg [protected]
languageChange()OptionDlg [protected, virtual, slot]
layout2OptionDlg [protected]
layout3OptionDlg [protected]
m_ButtonAddOptionDlg
m_ButtonCancelOptionDlg
m_ButtonCopyOptionDlg
m_ButtonDeleteOptionDlg
m_ButtonEditOptionDlg
m_ButtonExternalProgTestOptionDlg
m_ButtonOkOptionDlg
m_ButtonSelectSoundFileOptionDlg
m_ButtonSoundTestOptionDlg
m_CheckAccount1OptionDlg
m_CheckAccount2OptionDlg
m_CheckActiveOptionDlg
m_CheckBeepOptionDlg
m_CheckCloseMinimizesOptionDlg
m_CheckConfirmDeleteOptionDlg
m_CheckContentOptionDlg
m_CheckDateOptionDlg
m_CheckExternalProgOptionDlg
m_CheckFromOptionDlg
m_checkHTMLOptionDlg
m_CheckKeepNewMailOptionDlg
m_CheckMessagesOptionDlg
m_CheckMinimizeNoMailOptionDlg
m_CheckMinimizeToTrayOptionDlg
m_CheckNumberOptionDlg
m_CheckSavePasswordOptionDlg
m_CheckServerOptionDlg
m_CheckShowMainWindowOptionDlg
m_CheckShowMessageboxOptionDlg
m_CheckSize1OptionDlg
m_CheckSize2OptionDlg
m_CheckSoundOptionDlg
m_CheckStartMinimizedOptionDlg
m_CheckStateOptionDlg
m_CheckSubjectOptionDlg
m_CheckTerminateNoMailOptionDlg
m_CheckToOptionDlg
m_CheckUserOptionDlg
m_ComboAccountOptionDlg
m_ComboExternalProgOptionDlg
m_ConfigListOptionDialog [private]
m_EditSoundFileOptionDlg
m_pCmdListOptionDialog [private]
m_pConfigListOptionDialog [private]
m_SpinInitTimerOptionDlg
m_SpinIntervalTimerOptionDlg
m_SpinMaxSizeOptionDlg
m_SpinPop3TimerOptionDlg
OptionDialog(QWidget *parent, const char *name, ConfigList *config, CommandList *cmd)OptionDialog
OptionDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)OptionDlg
OptionDlgLayoutOptionDlg [protected]
QGroupBox_1OptionDlg
QGroupBox_1LayoutOptionDlg [protected]
QLabel_1OptionDlg
QLabel_2OptionDlg
QLabel_3OptionDlg
QLabel_4OptionDlg
QLabel_5OptionDlg
QLabel_6OptionDlg
slotAccountActivated(int index)OptionDialog [virtual, slot]
slotButtonAddClicked()OptionDialog [virtual, slot]
slotButtonCopyClicked()OptionDialog [virtual, slot]
slotButtonDeleteClicked()OptionDialog [virtual, slot]
slotButtonEditClicked()OptionDialog [virtual, slot]
slotButtonOkClicked()OptionDialog [virtual, slot]
slotButtonSelectSoundFile()OptionDialog [virtual, slot]
slotExternalProgTest()OptionDialog [virtual, slot]
slotMinimizeNoMailClicked()OptionDialog [virtual, slot]
slotSavePasswordToggled()OptionDialog [virtual, slot]
slotSoundTest()OptionDialog [virtual, slot]
slotTerminateNoMailClicked()OptionDialog [virtual, slot]
spacer2OptionDlg [protected]
spacer4OptionDlg [protected]
Spacer70OptionDlg [protected]
tabOptionDlg
tab_2OptionDlg
tab_3OptionDlg
tab_4OptionDlg
tabLayoutOptionDlg [protected]
tabLayout_2OptionDlg [protected]
tabLayout_3OptionDlg [protected]
tabLayout_4OptionDlg [protected]
TabWidget2OptionDlg
~OptionDialog()OptionDialog
~OptionDlg()OptionDlg


Generated on Wed May 16 21:15:20 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classOptionDialog.html b/doc/html/classOptionDialog.html new file mode 100644 index 0000000..9d1d98d --- /dev/null +++ b/doc/html/classOptionDialog.html @@ -0,0 +1,99 @@ + + +kshowmail: OptionDialog Class Reference + + + + +
+
+
+
+

OptionDialog Class Reference

#include <optiondialog.h> +

+

Inheritance diagram for OptionDialog: +

+ +OptionDlg + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotButtonAddClicked ()
+virtual void slotButtonEditClicked ()
+virtual void slotButtonCopyClicked ()
+virtual void slotButtonDeleteClicked ()
+virtual void slotButtonOkClicked ()
+virtual void slotAccountActivated (int index)
+virtual void slotSavePasswordToggled ()
+virtual void slotButtonSelectSoundFile ()
+virtual void slotMinimizeNoMailClicked ()
+virtual void slotTerminateNoMailClicked ()
+virtual void slotSoundTest ()
+virtual void slotExternalProgTest ()

Public Member Functions

OptionDialog (QWidget *parent, const char *name, ConfigList *config, CommandList *cmd)
~OptionDialog ()

Private Attributes

+ConfigList m_ConfigList
+ConfigListm_pConfigList
+CommandListm_pCmdList
+

Detailed Description

+
Author:
Eggert Ehmke
+ +

+ +

+Definition at line 30 of file optiondialog.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:20 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classOptionDialog.png b/doc/html/classOptionDialog.png new file mode 100644 index 0000000..3e9b5d8 Binary files /dev/null and b/doc/html/classOptionDialog.png differ diff --git a/doc/html/classOptionDlg-members.html b/doc/html/classOptionDlg-members.html new file mode 100644 index 0000000..1f204b6 --- /dev/null +++ b/doc/html/classOptionDlg-members.html @@ -0,0 +1,118 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

OptionDlg Member List

This is the complete list of members for OptionDlg, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
_checkConfirmCloseOptionDlg
GroupBox2OptionDlg
GroupBox2LayoutOptionDlg [protected]
GroupBox3OptionDlg
GroupBox3LayoutOptionDlg [protected]
groupBox4OptionDlg
groupBox4LayoutOptionDlg [protected]
languageChange()OptionDlg [protected, virtual, slot]
layout2OptionDlg [protected]
layout3OptionDlg [protected]
m_ButtonAddOptionDlg
m_ButtonCancelOptionDlg
m_ButtonCopyOptionDlg
m_ButtonDeleteOptionDlg
m_ButtonEditOptionDlg
m_ButtonExternalProgTestOptionDlg
m_ButtonOkOptionDlg
m_ButtonSelectSoundFileOptionDlg
m_ButtonSoundTestOptionDlg
m_CheckAccount1OptionDlg
m_CheckAccount2OptionDlg
m_CheckActiveOptionDlg
m_CheckBeepOptionDlg
m_CheckCloseMinimizesOptionDlg
m_CheckConfirmDeleteOptionDlg
m_CheckContentOptionDlg
m_CheckDateOptionDlg
m_CheckExternalProgOptionDlg
m_CheckFromOptionDlg
m_checkHTMLOptionDlg
m_CheckKeepNewMailOptionDlg
m_CheckMessagesOptionDlg
m_CheckMinimizeNoMailOptionDlg
m_CheckMinimizeToTrayOptionDlg
m_CheckNumberOptionDlg
m_CheckSavePasswordOptionDlg
m_CheckServerOptionDlg
m_CheckShowMainWindowOptionDlg
m_CheckShowMessageboxOptionDlg
m_CheckSize1OptionDlg
m_CheckSize2OptionDlg
m_CheckSoundOptionDlg
m_CheckStartMinimizedOptionDlg
m_CheckStateOptionDlg
m_CheckSubjectOptionDlg
m_CheckTerminateNoMailOptionDlg
m_CheckToOptionDlg
m_CheckUserOptionDlg
m_ComboAccountOptionDlg
m_ComboExternalProgOptionDlg
m_EditSoundFileOptionDlg
m_SpinInitTimerOptionDlg
m_SpinIntervalTimerOptionDlg
m_SpinMaxSizeOptionDlg
m_SpinPop3TimerOptionDlg
OptionDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)OptionDlg
OptionDlgLayoutOptionDlg [protected]
QGroupBox_1OptionDlg
QGroupBox_1LayoutOptionDlg [protected]
QLabel_1OptionDlg
QLabel_2OptionDlg
QLabel_3OptionDlg
QLabel_4OptionDlg
QLabel_5OptionDlg
QLabel_6OptionDlg
slotAccountActivated(int)OptionDlg [virtual, slot]
slotButtonAddClicked()OptionDlg [virtual, slot]
slotButtonCopyClicked()OptionDlg [virtual, slot]
slotButtonDeleteClicked()OptionDlg [virtual, slot]
slotButtonEditClicked()OptionDlg [virtual, slot]
slotButtonOkClicked()OptionDlg [virtual, slot]
slotButtonSelectSoundFile()OptionDlg [virtual, slot]
slotExternalProgTest()OptionDlg [virtual, slot]
slotMinimizeNoMailClicked()OptionDlg [virtual, slot]
slotSavePasswordToggled()OptionDlg [virtual, slot]
slotSoundTest()OptionDlg [virtual, slot]
slotTerminateNoMailClicked()OptionDlg [virtual, slot]
spacer2OptionDlg [protected]
spacer4OptionDlg [protected]
Spacer70OptionDlg [protected]
tabOptionDlg
tab_2OptionDlg
tab_3OptionDlg
tab_4OptionDlg
tabLayoutOptionDlg [protected]
tabLayout_2OptionDlg [protected]
tabLayout_3OptionDlg [protected]
tabLayout_4OptionDlg [protected]
TabWidget2OptionDlg
~OptionDlg()OptionDlg


Generated on Wed May 16 21:15:21 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classOptionDlg.html b/doc/html/classOptionDlg.html new file mode 100644 index 0000000..b21d2ad --- /dev/null +++ b/doc/html/classOptionDlg.html @@ -0,0 +1,317 @@ + + +kshowmail: OptionDlg Class Reference + + + + +
+
+
+
+

OptionDlg Class Reference

Inheritance diagram for OptionDlg: +

+ +OptionDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotExternalProgTest ()
+virtual void slotAccountActivated (int)
+virtual void slotButtonAddClicked ()
+virtual void slotButtonCopyClicked ()
+virtual void slotButtonDeleteClicked ()
+virtual void slotButtonEditClicked ()
+virtual void slotButtonOkClicked ()
+virtual void slotButtonSelectSoundFile ()
+virtual void slotMinimizeNoMailClicked ()
+virtual void slotSavePasswordToggled ()
+virtual void slotSoundTest ()
+virtual void slotTerminateNoMailClicked ()

Public Member Functions

OptionDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~OptionDlg ()

Public Attributes

+QGroupBox * QGroupBox_1
+QLabel * QLabel_1
+QPushButton * m_ButtonDelete
+QPushButton * m_ButtonCopy
+QPushButton * m_ButtonEdit
+QPushButton * m_ButtonAdd
+QComboBox * m_ComboAccount
+QTabWidget * TabWidget2
+QWidget * tab
+QCheckBox * m_CheckSavePassword
+QCheckBox * m_CheckStartMinimized
+QCheckBox * m_CheckConfirmDelete
+QLabel * QLabel_2
+QLabel * QLabel_3
+QLabel * QLabel_6
+QLabel * QLabel_4
+QSpinBox * m_SpinPop3Timer
+QSpinBox * m_SpinInitTimer
+QSpinBox * m_SpinIntervalTimer
+QSpinBox * m_SpinMaxSize
+QCheckBox * _checkConfirmClose
+QCheckBox * m_CheckKeepNewMail
+QCheckBox * m_CheckCloseMinimizes
+QCheckBox * m_CheckMinimizeToTray
+QWidget * tab_2
+QGroupBox * GroupBox3
+QCheckBox * m_CheckActive
+QCheckBox * m_CheckAccount1
+QCheckBox * m_CheckServer
+QCheckBox * m_CheckUser
+QCheckBox * m_CheckMessages
+QCheckBox * m_CheckSize1
+QGroupBox * GroupBox2
+QCheckBox * m_CheckNumber
+QCheckBox * m_CheckAccount2
+QCheckBox * m_CheckFrom
+QCheckBox * m_CheckTo
+QCheckBox * m_CheckSubject
+QCheckBox * m_CheckDate
+QCheckBox * m_CheckSize2
+QCheckBox * m_CheckContent
+QCheckBox * m_CheckState
+QGroupBox * groupBox4
+QCheckBox * m_checkHTML
+QWidget * tab_3
+QCheckBox * m_CheckMinimizeNoMail
+QCheckBox * m_CheckTerminateNoMail
+QWidget * tab_4
+QCheckBox * m_CheckBeep
+QCheckBox * m_CheckShowMainWindow
+QCheckBox * m_CheckSound
+QCheckBox * m_CheckExternalProg
+QPushButton * m_ButtonSelectSoundFile
+QPushButton * m_ButtonSoundTest
+QLabel * QLabel_5
+QComboBox * m_ComboExternalProg
+QPushButton * m_ButtonExternalProgTest
+QLineEdit * m_EditSoundFile
+QCheckBox * m_CheckShowMessagebox
+QPushButton * m_ButtonOk
+QPushButton * m_ButtonCancel

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QVBoxLayout * OptionDlgLayout
+QGridLayout * QGroupBox_1Layout
+QSpacerItem * spacer4
+QSpacerItem * spacer2
+QVBoxLayout * layout3
+QGridLayout * tabLayout
+QHBoxLayout * tabLayout_2
+QVBoxLayout * GroupBox3Layout
+QVBoxLayout * GroupBox2Layout
+QVBoxLayout * groupBox4Layout
+QVBoxLayout * tabLayout_3
+QGridLayout * tabLayout_4
+QHBoxLayout * layout2
+QSpacerItem * Spacer70
+

Detailed Description

+ +

+ +

+Definition at line 30 of file OptionDlg.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:21 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classOptionDlg.png b/doc/html/classOptionDlg.png new file mode 100644 index 0000000..c787b90 Binary files /dev/null and b/doc/html/classOptionDlg.png differ diff --git a/doc/html/classServerDialog-members.html b/doc/html/classServerDialog-members.html new file mode 100644 index 0000000..b084b24 --- /dev/null +++ b/doc/html/classServerDialog-members.html @@ -0,0 +1,44 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

ServerDialog Member List

This is the complete list of members for ServerDialog, including all inherited members.

+ + + + + + + + + + + + + + + + +
accountServerDialog [private]
cboProtocolServerDialog [private]
chkActiveServerDialog [private]
fillDialog()ServerDialog [protected]
grpPasswordStorageServerDialog [private]
grpSecureTransferServerDialog [private]
ServerDialog(QWidget *parent, ConfigElem *item=NULL)ServerDialog
slotOk()ServerDialog [protected, slot]
slotPasswordStorageChanged(int id)ServerDialog [protected, slot]
slotSecureTransferChanged(int id)ServerDialog [protected, slot]
spbPortServerDialog [private]
txtAccountServerDialog [private]
txtPasswordServerDialog [private]
txtServerServerDialog [private]
txtUserServerDialog [private]
~ServerDialog()ServerDialog


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classServerDialog.html b/doc/html/classServerDialog.html new file mode 100644 index 0000000..c7c70ea --- /dev/null +++ b/doc/html/classServerDialog.html @@ -0,0 +1,375 @@ + + +kshowmail.kdevelop: ServerDialog Class Reference + + + + +
+
+
+
+

ServerDialog Class Reference

Dialog to edit account options. You can not create a new account or edit the account name. +More... +

+#include <serverdialog.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 ServerDialog (QWidget *parent, ConfigElem *item=NULL)
 ~ServerDialog ()

Protected Slots

void slotPasswordStorageChanged (int id)
void slotSecureTransferChanged (int id)
void slotOk ()

Protected Member Functions

void fillDialog ()

Private Attributes

ConfigElemaccount
KLineEdit * txtAccount
KLineEdit * txtServer
KComboBox * cboProtocol
QSpinBox * spbPort
KLineEdit * txtUser
KPasswordEdit * txtPassword
QCheckBox * chkActive
QButtonGroup * grpPasswordStorage
QButtonGroup * grpSecureTransfer
+


Detailed Description

+Dialog to edit account options. You can not create a new account or edit the account name. +

+

Author:
Eggert Ehmke

+Ulrich Weigelt <ulrich.weigelt@gmx.de>

+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
ServerDialog::ServerDialog (QWidget *  parent,
ConfigElem item = NULL 
)
+
+
+ +

+General constructor

Parameters:
+ + + +
parent parent of the dialog
item account to setup
+
+ +
+

+ +

+
+ + + + + + + + +
ServerDialog::~ServerDialog (  ) 
+
+
+ +

+Destructor +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
void ServerDialog::slotPasswordStorageChanged (int  id  )  [protected, slot]
+
+
+ +

+Connected with the password button group. Enabled or disabled the password edit line.

Parameters:
+ + +
id button identifier
+
+ +
+

+ +

+
+ + + + + + + + + +
void ServerDialog::slotSecureTransferChanged (int  id  )  [protected, slot]
+
+
+ +

+Connected with the secure transfer button group. Changes the port number.

Parameters:
+ + +
id button identifier
+
+ +
+

+ +

+
+ + + + + + + + +
void ServerDialog::slotOk (  )  [protected, slot]
+
+
+ +

+Overwritten methode of KDialogBase. Called if OK was clicked. Stores the entered values into the given account item. If no item was given, it creates a new one. After then it invokes slotOk() of KDialogBase. +

+

+ +

+
+ + + + + + + + +
void ServerDialog::fillDialog (  )  [protected]
+
+
+ +

+Writes the values of the account into the dialog items. +

+

+


Member Data Documentation

+ +
+
+ + + + +
ConfigElem* ServerDialog::account [private]
+
+
+ +

+account to setup +

+

+ +

+
+ + + + +
KLineEdit* ServerDialog::txtAccount [private]
+
+
+ +

+Edit line which contains the unique account name. +

+

+ +

+
+ + + + +
KLineEdit* ServerDialog::txtServer [private]
+
+
+ +

+Edit line which contains the server name. +

+

+ +

+
+ + + + +
KComboBox* ServerDialog::cboProtocol [private]
+
+
+ +

+Combo box to choose the protocol. +

+

+ +

+
+ + + + +
QSpinBox* ServerDialog::spbPort [private]
+
+
+ +

+Spinbox to choose the tcp port. +

+

+ +

+
+ + + + +
KLineEdit* ServerDialog::txtUser [private]
+
+
+ +

+Edit line which contains the user name. +

+

+ +

+
+ + + + +
KPasswordEdit* ServerDialog::txtPassword [private]
+
+
+ +

+Edit line which contains the password. +

+

+ +

+
+ + + + +
QCheckBox* ServerDialog::chkActive [private]
+
+
+ +

+Check box to select whether the account is active or not. +

+

+ +

+
+ + + + +
QButtonGroup* ServerDialog::grpPasswordStorage [private]
+
+
+ +

+Combines the radio buttons of password storage. +

+

+ +

+
+ + + + +
QButtonGroup* ServerDialog::grpSecureTransfer [private]
+
+
+ +

+Combines the radio buttons of secure transfer. +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classServerDialog.png b/doc/html/classServerDialog.png new file mode 100644 index 0000000..86fb286 Binary files /dev/null and b/doc/html/classServerDialog.png differ diff --git a/doc/html/classServerDlg-members.html b/doc/html/classServerDlg-members.html new file mode 100644 index 0000000..03e0ee4 --- /dev/null +++ b/doc/html/classServerDlg-members.html @@ -0,0 +1,54 @@ + + +kshowmail: Member List + + + + +
+
+
+
+

ServerDlg Member List

This is the complete list of members for ServerDlg, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
CheckActiveServerDlg
languageChange()ServerDlg [protected, virtual, slot]
Layout13ServerDlg [protected]
Layout14ServerDlg [protected]
Layout15ServerDlg [protected]
m_ButtonCancelServerDlg
m_ButtonOkServerDlg
m_ComboProtocolServerDlg
m_EditAccountServerDlg
m_EditPasswordServerDlg
m_EditServerServerDlg
m_EditUserServerDlg
m_SpinPortServerDlg
QLabel_1ServerDlg
QLabel_2ServerDlg
QLabel_3ServerDlg
QLabel_4ServerDlg
QLabel_5ServerDlg
QLabel_6ServerDlg
ServerDlg(QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)ServerDlg
ServerDlgLayoutServerDlg [protected]
slotButtonOkClicked()ServerDlg [virtual, slot]
Spacer1ServerDlg [protected]
Spacer10ServerDlg [protected]
Spacer11ServerDlg [protected]
~ServerDlg()ServerDlg


Generated on Wed May 16 21:15:21 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classServerDlg.html b/doc/html/classServerDlg.html new file mode 100644 index 0000000..d786310 --- /dev/null +++ b/doc/html/classServerDlg.html @@ -0,0 +1,125 @@ + + +kshowmail: ServerDlg Class Reference + + + + +
+
+
+
+

ServerDlg Class Reference

Inheritance diagram for ServerDlg: +

+ +ServerDialog + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Slots

+virtual void slotButtonOkClicked ()

Public Member Functions

ServerDlg (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
~ServerDlg ()

Public Attributes

+QLabel * QLabel_4
+QLineEdit * m_EditAccount
+QLineEdit * m_EditServer
+QLabel * QLabel_3
+QCheckBox * CheckActive
+QPushButton * m_ButtonOk
+QPushButton * m_ButtonCancel
+QLabel * QLabel_1
+QLabel * QLabel_2
+QLabel * QLabel_5
+QLabel * QLabel_6
+QComboBox * m_ComboProtocol
+QSpinBox * m_SpinPort
+QLineEdit * m_EditUser
+QLineEdit * m_EditPassword

Protected Slots

+virtual void languageChange ()

Protected Attributes

+QGridLayout * ServerDlgLayout
+QHBoxLayout * Layout13
+QSpacerItem * Spacer1
+QHBoxLayout * Layout15
+QSpacerItem * Spacer11
+QHBoxLayout * Layout14
+QSpacerItem * Spacer10
+

Detailed Description

+ +

+ +

+Definition at line 28 of file ServerDlg.h.


The documentation for this class was generated from the following files: +
Generated on Wed May 16 21:15:21 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classServerDlg.png b/doc/html/classServerDlg.png new file mode 100644 index 0000000..076105f Binary files /dev/null and b/doc/html/classServerDlg.png differ diff --git a/doc/html/classShowListViewItem-members.html b/doc/html/classShowListViewItem-members.html new file mode 100644 index 0000000..9e8ea3a --- /dev/null +++ b/doc/html/classShowListViewItem-members.html @@ -0,0 +1,53 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

ShowListViewItem Member List

This is the complete list of members for ShowListViewItem, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
_colAccount enum valueShowListViewItem
_colContent enum valueShowListViewItem
_colDate enum valueShowListViewItem
_colFrom enum valueShowListViewItem
_colNumber enum valueShowListViewItem
_colSize enum valueShowListViewItem
_colState enum valueShowListViewItem
_colSubject enum valueShowListViewItem
_colTo enum valueShowListViewItem
compare(QListViewItem *i, int col, bool ascending) constShowListViewItem [virtual]
key(int column, bool ascending) constShowListViewItem [virtual]
m_timeShowListViewItem [private]
setAccount(const QString &)ShowListViewItem
setContent(const QString &)ShowListViewItem
setDate(const QString &)ShowListViewItem
setFrom(const QString &)ShowListViewItem
setNumber(const QString &)ShowListViewItem
setSize(const QString &)ShowListViewItem
setState(const QString &)ShowListViewItem
setSubject(const QString &)ShowListViewItem
setTime(const QString &)ShowListViewItem
setTo(const QString &)ShowListViewItem
ShowListViewItem(QListView *parent, ShowListViewItem *after)ShowListViewItem
ShowListViewItem(QListView *parent)ShowListViewItem
~ShowListViewItem()ShowListViewItem [virtual]


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classShowListViewItem.html b/doc/html/classShowListViewItem.html new file mode 100644 index 0000000..fde173f --- /dev/null +++ b/doc/html/classShowListViewItem.html @@ -0,0 +1,487 @@ + + +kshowmail.kdevelop: ShowListViewItem Class Reference + + + + +
+
+
+
+

ShowListViewItem Class Reference

#include <showlistviewitem.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Types

enum  {
+  _colNumber, +_colAccount, +_colFrom, +_colTo, +
+  _colSubject, +_colDate, +_colSize, +_colContent, +
+  _colState +
+ }

Public Member Functions

 ShowListViewItem (QListView *parent, ShowListViewItem *after)
 ShowListViewItem (QListView *parent)
virtual ~ShowListViewItem ()
virtual QString key (int column, bool ascending) const
virtual int compare (QListViewItem *i, int col, bool ascending) const
void setNumber (const QString &)
void setAccount (const QString &)
void setFrom (const QString &)
void setTo (const QString &)
void setSubject (const QString &)
void setDate (const QString &)
void setSize (const QString &)
void setContent (const QString &)
void setState (const QString &)
void setTime (const QString &)

Private Attributes

QString m_time
+


Detailed Description

+
Author:
Eggert Ehmke
+ +

+


Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+ +

+

Enumerator:
+ + + + + + + + + + +
_colNumber  +
_colAccount  +
_colFrom  +
_colTo  +
_colSubject  +
_colDate  +
_colSize  +
_colContent  +
_colState  +
+
+ +
+

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
ShowListViewItem::ShowListViewItem (QListView *  parent,
ShowListViewItem after 
)
+
+
+ +

+Constructor

Parameters:
+ + + +
parent mail list view
after insert the new item after this item
+
+ +
+

+ +

+
+ + + + + + + + + +
ShowListViewItem::ShowListViewItem (QListView *  parent  ) 
+
+
+ +

+Constructor

Parameters:
+ + +
parent mail list view
+
+ +
+

+ +

+
+ + + + + + + + +
ShowListViewItem::~ShowListViewItem (  )  [virtual]
+
+
+ +

+ +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
QString ShowListViewItem::key (int  column,
bool  ascending 
) const [virtual]
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int ShowListViewItem::compare (QListViewItem *  i,
int  col,
bool  ascending 
) const [virtual]
+
+
+ +

+reimplement compare to solve bug #856005 standard compare is locale dependant +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setNumber (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setAccount (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setFrom (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setTo (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setSubject (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setDate (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setSize (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setContent (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setState (const QString &   ) 
+
+
+ +

+ +

+

+ +

+
+ + + + + + + + + +
void ShowListViewItem::setTime (const QString &   ) 
+
+
+ +

+ +

+

+


Member Data Documentation

+ +
+
+ + + + +
QString ShowListViewItem::m_time [private]
+
+
+ +

+ +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classShowRecord-members.html b/doc/html/classShowRecord-members.html new file mode 100644 index 0000000..bc37347 --- /dev/null +++ b/doc/html/classShowRecord-members.html @@ -0,0 +1,62 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

ShowRecord Member List

This is the complete list of members for ShowRecord, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
appendNewMail(int number, QString uid, bool isNew)ShowRecord
applyHeaderFilter(HeaderFilter *filter, QString account, MailNumberList_Type &deleteList, MailToDownloadMap_Type &downloadList, FilterLog *log=NULL)ShowRecord
cancelShowHeadersShowRecord [static]
continueShowHeadersShowRecord [static]
decodeMailBody(QByteArray body, int number, bool preferHTML) constShowRecord
fillMailListView(KshowmailView *view, QString &account)ShowRecord
getDateOf(int number) constShowRecord
getHeaderOf(QString uid)ShowRecord
getNewMails()ShowRecord
getNumberMails()ShowRecord
getNumberNewMails()ShowRecord
getSelectedMails()ShowRecord
getSelectedSubjects() constShowRecord
getSenderOf(int number) constShowRecord
getSizeOf(int number) constShowRecord
getSubjectOf(int number) constShowRecord
getTotalSize()ShowRecord
getUIDsOfOldMails()ShowRecord
hasMail(QString uid)ShowRecord
hasSelectedMails()ShowRecord
isNew(QString uid) const ShowRecord
printMailList()ShowRecord
readStoredMails(QDomElement &parent)ShowRecord
removeMail(int number)ShowRecord
saveOptions(QDomDocument &doc, QDomElement &parent)ShowRecord
setHeader(int number, QString header)ShowRecord
setHeader(QString uid, QString header)ShowRecord
setMarkAtNextViewRefresh(int number)ShowRecord
setSize(int number, long size)ShowRecord
ShowRecord()ShowRecord
showSelectedHeaders(QString &account)ShowRecord
writeToDeleteLog(FilterLog *log, int number, QString account)ShowRecord
writeToMoveLog(FilterLog *log, int number, QString account, QString mailbox)ShowRecord
~ShowRecord()ShowRecord


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classShowRecord.html b/doc/html/classShowRecord.html new file mode 100644 index 0000000..9e972ec --- /dev/null +++ b/doc/html/classShowRecord.html @@ -0,0 +1,1060 @@ + + +kshowmail.kdevelop: ShowRecord Class Reference + + + + +
+
+
+
+

ShowRecord Class Reference

List which contains all mails of an account. +More... +

+#include <showrecord.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 ShowRecord ()
 ~ShowRecord ()
void saveOptions (QDomDocument &doc, QDomElement &parent)
void readStoredMails (QDomElement &parent)
void applyHeaderFilter (HeaderFilter *filter, QString account, MailNumberList_Type &deleteList, MailToDownloadMap_Type &downloadList, FilterLog *log=NULL)
bool hasSelectedMails ()
Types::MailNumberList_Type getSelectedMails ()
void removeMail (int number)
QStringList getSelectedSubjects () const
QString getSenderOf (int number) const
QString getDateOf (int number) const
QString getSizeOf (int number) const
QString getSubjectOf (int number) const
QString decodeMailBody (QByteArray body, int number, bool preferHTML) const
bool hasMail (QString uid)
bool isNew (QString uid) const
void appendNewMail (int number, QString uid, bool isNew)
void printMailList ()
void setSize (int number, long size)
Types::MailNumberList_Type getNewMails ()
void setHeader (int number, QString header)
QStringList getUIDsOfOldMails ()
QString getHeaderOf (QString uid)
void setHeader (QString uid, QString header)
int getNumberNewMails ()
int getNumberMails ()
long getTotalSize ()
void fillMailListView (KshowmailView *view, QString &account)
int showSelectedHeaders (QString &account)
void writeToMoveLog (FilterLog *log, int number, QString account, QString mailbox)
void writeToDeleteLog (FilterLog *log, int number, QString account)
void setMarkAtNextViewRefresh (int number)

Static Public Attributes

static const int continueShowHeaders
static const int cancelShowHeaders
+


Detailed Description

+List which contains all mails of an account. +

+The mails are objects of ShowRecordElem. Inherits QPtrList.

+

See also:
ShowRecordElem
+
Author:
Eggert Ehmke

+Ulrich Weigelt

+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
ShowRecord::ShowRecord (  ) 
+
+
+ +

+Constructor +

+

+ +

+
+ + + + + + + + +
ShowRecord::~ShowRecord (  ) 
+
+
+ +

+Destructor Does nothing. +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
void ShowRecord::saveOptions (QDomDocument &  doc,
QDomElement &  parent 
)
+
+
+ +

+Saves all stored mails into the given DOM document inside the given account element.

Parameters:
+ + + +
doc DOM document in that all options are stored
parent account element
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecord::readStoredMails (QDomElement &  parent  ) 
+
+
+ +

+Reads out all mails stored inside the given account element, creates objects from class ShowRecordElem and stores them in this list. All old items will be removed.

Parameters:
+ + +
parent account element (DOM element)
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void ShowRecord::applyHeaderFilter (HeaderFilter filter,
QString  account,
MailNumberList_Type &  deleteList,
MailToDownloadMap_Type &  downloadList,
FilterLog log = NULL 
)
+
+
+ +

+Apply the filters to the mails in this list.

Parameters:
+ + + + + + +
filter pointer to the header filter
account name of this account
deleteList reference to a list in which this methode writes the numbers of mails to delete
downloadList reference to a list in which this methode writes the number of mails to download
log pointer to the filter log
+
+ +
+

+ +

+
+ + + + + + + + +
bool ShowRecord::hasSelectedMails (  ) 
+
+
+ +

+Returns whether there are mails in this list which are selected in the list view.

Returns:
TRUE - there are selected mails

+FALSE - there aren't selected mails

+ +
+

+ +

+
+ + + + + + + + +
MailNumberList_Type ShowRecord::getSelectedMails (  ) 
+
+
+ +

+Returns the numbers of all selected mails.

Returns:
numbers of selected mails.
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecord::removeMail (int  number  ) 
+
+
+ +

+Removes the mail which has the given number.

Parameters:
+ + +
number number of the mail which will be removed
+
+ +
+

+ +

+
+ + + + + + + + +
QStringList ShowRecord::getSelectedSubjects (  )  const
+
+
+ +

+Returns the subjects of the selected mails.

Returns:
subjects of selected mails
+ +
+

+ +

+
+ + + + + + + + + +
QString ShowRecord::getSenderOf (int  number  )  const
+
+
+ +

+Returns the sender of the mail with the given number.

Parameters:
+ + +
number mail number
+
+
Returns:
sender
+ +
+

+ +

+
+ + + + + + + + + +
QString ShowRecord::getDateOf (int  number  )  const
+
+
+ +

+Returns the date of sent of the mail with the given number.

Parameters:
+ + +
number mail number
+
+
Returns:
date
+ +
+

+ +

+
+ + + + + + + + + +
QString ShowRecord::getSizeOf (int  number  )  const
+
+
+ +

+Returns the size of the mail with the given number.

Parameters:
+ + +
number mail number
+
+
Returns:
size
+ +
+

+ +

+
+ + + + + + + + + +
QString ShowRecord::getSubjectOf (int  number  )  const
+
+
+ +

+Returns the subject of the mail with the given number.

Parameters:
+ + +
number mail number
+
+
Returns:
subject
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
QString ShowRecord::decodeMailBody (QByteArray  body,
int  number,
bool  preferHTML 
) const
+
+
+ +

+Decodes the given mail body by the appropriate mail object. The mail object (ShowRecordElem) has to do this job, because it has stored the mail header and therefore it knows the content type and encoding of the mail. It decodes just the text or html part of the body. The rest of it will be rejected.

Parameters:
+ + + + +
body the encoded mail (including header)
number number of the downloaded mail
preferHTML decode HTML part if present
+
+
Returns:
decoded mail body
+ +
+

+ +

+
+ + + + + + + + + +
bool ShowRecord::hasMail (QString  uid  ) 
+
+
+ +

+Returns whether there is mail with the given uid in the list.

Parameters:
+ + +
uid UID of the mail
+
+
Returns:
TRUE - mail is in the list

+FALSE - mail is not in the list

+ +
+

+ +

+
+ + + + + + + + + +
bool ShowRecord::isNew (QString  uid  )  const
+
+
+ +

+Returns whether the given mail is new.

Parameters:
+ + +
uid UID of the mail
+
+
Returns:
TRUE - mail is new

+FALSE - mail is not new or mail doesn't exist

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void ShowRecord::appendNewMail (int  number,
QString  uid,
bool  isNew 
)
+
+
+ +

+Appends a new mail to the list.

Parameters:
+ + + + +
number number of the mail on the server
uid Unique ID of the mail
isNew TRUE - mail is new; FALSE - mail is not new
+
+ +
+

+ +

+
+ + + + + + + + +
void ShowRecord::printMailList (  ) 
+
+
+ +

+Just for debugging. Prints a list of all contained mails to stdout. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ShowRecord::setSize (int  number,
long  size 
)
+
+
+ +

+Sets the size of a mail.

Parameters:
+ + + +
number number of the mail
size mail size
+
+ +
+

+ +

+
+ + + + + + + + +
Types::MailNumberList_Type ShowRecord::getNewMails (  ) 
+
+
+ +

+Returns the numbers of mails which are marked as new.

Returns:
numbers of the new mails
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ShowRecord::setHeader (int  number,
QString  header 
)
+
+
+ +

+Sets the header of the given mail.

Parameters:
+ + + +
number number of the mail
header the header
+
+ +
+

+ +

+
+ + + + + + + + +
QStringList ShowRecord::getUIDsOfOldMails (  ) 
+
+
+ +

+Returns a list of the UIDs of all old mails.

Returns:
UIDs of all old mails
+ +
+

+ +

+
+ + + + + + + + + +
QString ShowRecord::getHeaderOf (QString  uid  ) 
+
+
+ +

+Returns the header of the mail with the given UID.

Parameters:
+ + +
uid UID
+
+
Returns:
mail header
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ShowRecord::setHeader (QString  uid,
QString  header 
)
+
+
+ +

+Sets the header of the mail with the given UID.

Parameters:
+ + + +
uid UID
header mail header
+
+ +
+

+ +

+
+ + + + + + + + +
int ShowRecord::getNumberNewMails (  ) 
+
+
+ +

+Returns the number of new mails.

Returns:
number of new mails
+ +
+

+ +

+
+ + + + + + + + +
int ShowRecord::getNumberMails (  ) 
+
+
+ +

+Returns the number of mails.

Returns:
number of mails
+ +
+

+ +

+
+ + + + + + + + +
long ShowRecord::getTotalSize (  ) 
+
+
+ +

+Returns the total size of all mails.

Returns:
total size
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ShowRecord::fillMailListView (KshowmailView view,
QString &  account 
)
+
+
+ +

+Creates for every mail a list view item and insert it into the mail list view.

Parameters:
+ + + +
view pointer to the application view
account account name
+
+ +
+

+ +

+
+ + + + + + + + + +
int ShowRecord::showSelectedHeaders (QString &  account  ) 
+
+
+ +

+Shows the headers of all selected mails.

Parameters:
+ + +
account account name
+
+
Returns:
continueShowHeaders - the user has always clicked OK. The invoking function will show the next header

+cancelShowHeaders - the user has clicked Cancel. The invoking function will not show the next header.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void ShowRecord::writeToMoveLog (FilterLog log,
int  number,
QString  account,
QString  mailbox 
)
+
+
+ +

+Writes the mail into the Move Log.

Parameters:
+ + + + + +
log pointer to the log
number number of the mail
account name of the account
mailbox name of the mailbox
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void ShowRecord::writeToDeleteLog (FilterLog log,
int  number,
QString  account 
)
+
+
+ +

+Writes the mail into the Delete Log.

Parameters:
+ + + + +
log pointer to the log
number number of the mail
account name of the account
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecord::setMarkAtNextViewRefresh (int  number  ) 
+
+
+ +

+The given mail will be marked at the next view refresh.

Parameters:
+ + +
number number of the mail
+
+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
int const ShowRecord::continueShowHeaders [static]
+
+
+ +

+Returned by showSelectedHeaders() if the user has always clicked OK. +

+

+ +

+
+ + + + +
int const ShowRecord::cancelShowHeaders [static]
+
+
+ +

+Returned by showSelectedHeaders() if the user has clicked Cancel. +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classShowRecordElem-members.html b/doc/html/classShowRecordElem-members.html new file mode 100644 index 0000000..a130b5c --- /dev/null +++ b/doc/html/classShowRecordElem-members.html @@ -0,0 +1,86 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

ShowRecordElem Member List

This is the complete list of members for ShowRecordElem, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
applyHeaderFilter(HeaderFilter *filter, QString account, QString &mailbox, FilterLog *log=NULL)ShowRecordElem
cancelShowHeadersShowRecordElem [static]
content() constShowRecordElem
continueShowHeadersShowRecordElem [static]
date() constShowRecordElem
decodeMailBody(QByteArray body, bool preferHTML) constShowRecordElem
from() constShowRecordElem
getBoundary() constShowRecordElem [private]
getCharset() constShowRecordElem [private]
getTransferEncoding() constShowRecordElem [private]
header() constShowRecordElem
isNew() constShowRecordElem
isSelected() constShowRecordElem
m_contentShowRecordElem [private]
m_fromShowRecordElem [private]
m_headerShowRecordElem [private]
m_newShowRecordElem [private]
m_nNumberShowRecordElem [private]
m_pFilterShowRecordElem [private]
m_pItemShowRecordElem [private]
m_sizeShowRecordElem [private]
m_subjectShowRecordElem [private]
m_toShowRecordElem [private]
m_uidShowRecordElem [private]
m_unixDateShowRecordElem [private]
markAtViewRefreshShowRecordElem [private]
number() constShowRecordElem
readOptions(QDomElement &elem)ShowRecordElem
saveOptions(QDomDocument &doc, QDomElement &parent)ShowRecordElem
scanHeader(const QString &item) constShowRecordElem [private]
sentDateTime() constShowRecordElem
setContent(const QCString &content)ShowRecordElem [private]
setDate(const QCString &date)ShowRecordElem [private]
setFilter(FilterElem *filter)ShowRecordElem [private]
setFrom(const QCString &from)ShowRecordElem [private]
setHeader(const QString &header)ShowRecordElem
setMarkAtNextViewRefresh()ShowRecordElem
setNew(bool isnew)ShowRecordElem
setNumber(int n)ShowRecordElem
setSize(int size)ShowRecordElem
setSubject(const QCString &subject)ShowRecordElem [private]
setTo(const QCString &to)ShowRecordElem [private]
setUIDL(const QString &uid)ShowRecordElem
setViewItem(ShowListViewItem *item)ShowRecordElem
showHeader(QString &account)ShowRecordElem
ShowRecordElem()ShowRecordElem
ShowRecordElem(int number, QString &uid, bool isNew)ShowRecordElem
size() constShowRecordElem
state() constShowRecordElem
strSize() constShowRecordElem
strSizePrefix() constShowRecordElem
strUnixTime() constShowRecordElem
subject() constShowRecordElem
to() constShowRecordElem
uidl() constShowRecordElem
viewItem() constShowRecordElem
writeToDeleteLog(FilterLog *log, QString account)ShowRecordElem
writeToMoveLog(FilterLog *log, QString account, QString mailbox)ShowRecordElem


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classShowRecordElem.html b/doc/html/classShowRecordElem.html new file mode 100644 index 0000000..64055a4 --- /dev/null +++ b/doc/html/classShowRecordElem.html @@ -0,0 +1,1459 @@ + + +kshowmail.kdevelop: ShowRecordElem Class Reference + + + + +
+
+
+
+

ShowRecordElem Class Reference

Represents a mail. +More... +

+#include <showrecordelem.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 ShowRecordElem ()
 ShowRecordElem (int number, QString &uid, bool isNew)
void setHeader (const QString &header)
QString header () const
QString from () const
QString to () const
QString subject () const
QString content () const
QString date () const
QString strUnixTime () const
QDateTime sentDateTime () const
void setUIDL (const QString &uid)
QString uidl () const
void setSize (int size)
int size () const
QString strSize () const
QString strSizePrefix () const
void setNew (bool isnew)
bool isNew () const
QString state () const
void setNumber (int n)
int number () const
void setViewItem (ShowListViewItem *item)
ShowListViewItemviewItem () const
FilterAction_Type applyHeaderFilter (HeaderFilter *filter, QString account, QString &mailbox, FilterLog *log=NULL)
void readOptions (QDomElement &elem)
void saveOptions (QDomDocument &doc, QDomElement &parent)
bool isSelected () const
QString decodeMailBody (QByteArray body, bool preferHTML) const
int showHeader (QString &account)
void writeToMoveLog (FilterLog *log, QString account, QString mailbox)
void writeToDeleteLog (FilterLog *log, QString account)
void setMarkAtNextViewRefresh ()

Static Public Attributes

static const int continueShowHeaders
static const int cancelShowHeaders

Private Member Functions

QCString scanHeader (const QString &item) const
void setFrom (const QCString &from)
void setTo (const QCString &to)
void setSubject (const QCString &subject)
void setDate (const QCString &date)
void setContent (const QCString &content)
void setFilter (FilterElem *filter)
QString getBoundary () const
QString getCharset () const
QString getTransferEncoding () const

Private Attributes

QCString m_header
QCString m_from
QCString m_to
QCString m_subject
QDateTime m_unixDate
QCString m_content
QString m_uid
int m_size
bool m_new
int m_nNumber
bool markAtViewRefresh
ShowListViewItemm_pItem
FilterElem * m_pFilter
+


Detailed Description

+Represents a mail. +

+It contains UID, Subject, From, To and date of the mail. Subject, From and To will be read out from the given header. It also contains pointer to the corresponding list view entry and maybe to a matching filter. All mail objects are held by ShowRecord.

See also:
ShowRecord

+ConfigElem

+
Author:
Eggert Ehmke
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
ShowRecordElem::ShowRecordElem (  ) 
+
+
+ +

+Constructor +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ShowRecordElem::ShowRecordElem (int  number,
QString &  uid,
bool  isNew 
)
+
+
+ +

+Constructor

Parameters:
+ + + + +
number number of the mail on the server
uid Unique ID of the mail
isNew TRUE - mail is new; FALSE - mail is not new
+
+ +
+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
void ShowRecordElem::setHeader (const QString &  header  ) 
+
+
+ +

+Sets the mail header and extracts From, To, Subject, Date and Content Type. All parts of the header are coded according RFC 2047.

Parameters:
+ + +
header the mail header
+
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::header (  )  const
+
+
+ +

+Returns the whole header.

Returns:
the mail header
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::from (  )  const
+
+
+ +

+Returns the sender address.

Returns:
sender address
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::to (  )  const
+
+
+ +

+Returns the addressee.

Returns:
the addressee
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::subject (  )  const
+
+
+ +

+Returns the subject.

Returns:
mail subject
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::content (  )  const
+
+
+ +

+Returns the stored content type.

Returns:
content type
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::date (  )  const
+
+
+ +

+Returns the date on which the mail was sent, formated to the current locale's conventions.

Returns:
the date
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::strUnixTime (  )  const
+
+
+ +

+Returns the date on which the mail was sent. The format corresponds to the ISO 8601 extended specification for representations of dates and times, which is YYYY-MM-DDTHH:MM:SS

Returns:
the date
+ +
+

+ +

+
+ + + + + + + + +
QDateTime ShowRecordElem::sentDateTime (  )  const
+
+
+ +

+Returns the date and time on which the mail was sent.

Returns:
the date
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setUIDL (const QString &  uid  ) 
+
+
+ +

+Sets the unique mail ID.

Parameters:
+ + +
uid the ID
+
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::uidl (  )  const
+
+
+ +

+Returns the unique ID of this mail.

Returns:
UID
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setSize (int  size  ) 
+
+
+ +

+Sets the size of the mail.

Parameters:
+ + +
size Size
+
+ +
+

+ +

+
+ + + + + + + + +
int ShowRecordElem::size (  )  const
+
+
+ +

+Returns the mail size as numeric value.

Returns:
size of the mail
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::strSize (  )  const
+
+
+ +

+Returns the mail size as string. The String has a length of 8 and the number is right-aligned to allow sorting. +

+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::strSizePrefix (  )  const
+
+
+ +

+Returns the mails size as string with prefix +

+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setNew (bool  isnew  ) 
+
+
+ +

+Sets whether the mail is new or not.

Parameters:
+ + +
isnew TRUE - mail is new; FALSE - mail is not new
+
+ +
+

+ +

+
+ + + + + + + + +
bool ShowRecordElem::isNew (  )  const
+
+
+ +

+Returns whether the mail is new or not.

Returns:
TRUE - mail is new

+FALSE - mail is not new

+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::state (  )  const
+
+
+ +

+Returns whether the mail is new or not.

Returns:
localized String "new", if the mail is new

+localized String "old", if the mail is not new

+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setNumber (int  n  ) 
+
+
+ +

+Sets the number of this mail.

Parameters:
+ + +
n mail number
+
+ +
+

+ +

+
+ + + + + + + + +
int ShowRecordElem::number (  )  const
+
+
+ +

+Returns the number of this mail.

Returns:
mail number
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setViewItem (ShowListViewItem item  ) 
+
+
+ +

+Sets the pointer to the corresponding list view item.

See also:
m_pItem

+ShowListViewItem

+
Parameters:
+ + +
item pointer to the corresponding item
+
+ +
+

+ +

+
+ + + + + + + + +
ShowListViewItem * ShowRecordElem::viewItem (  )  const
+
+
+ +

+Returns the pointer to the corresponding list view item.

See also:
m_pItem

+ShowListViewItem

+
Returns:
pointer to the item
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilterAction_Type ShowRecordElem::applyHeaderFilter (HeaderFilter filter,
QString  account,
QString &  mailbox,
FilterLog log = NULL 
)
+
+
+ +

+Looks for a filter matching the mail header and returns the action recommend by this filter. If the action is MARK, it set markAtViewRefresh to True so the related view entry will be marked at the next view refresh.

Parameters:
+ + + + + +
filter pointer to the header filter
account name of the account
mailbox reference to a QString object in which the mailbox name shall be written if the action is MOVE
log pointer to the filter log
+
+
Returns:
recommend action
+
See also:
FilterAction_Type

+HeaderFilter

+markAtViewRefresh

+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::readOptions (QDomElement &  elem  ) 
+
+
+ +

+Read a mail (header, size, uid and number) from the given DOM element and store it in this mail object. The element has to contains the attributes "uidl", "size", "number" and a child node called "header".

Parameters:
+ + +
elem a DOM element which contains a mail
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ShowRecordElem::saveOptions (QDomDocument &  doc,
QDomElement &  parent 
)
+
+
+ +

+Creates a new DOM element in the given DOM document and add it to given DOM parent element

Parameters:
+ + + +
doc the DOM document in that all options are stored
parent the parent element (account) of the mail
+
+ +
+

+ +

+
+ + + + + + + + +
bool ShowRecordElem::isSelected (  )  const
+
+
+ +

+Returns whether the mail is selected in the list view.

Returns:
TRUE - mail is selected

+FALSE - mail is not selected

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
QString ShowRecordElem::decodeMailBody (QByteArray  body,
bool  preferHTML 
) const
+
+
+ +

+Decodes the given mail body. The mail object has to do this job, because it has stored the mail header and therefore it knows the content type and encoding of the mail. It decodes just the text or html part of the body. The rest of it will be rejected.

Parameters:
+ + + +
body the encoded mail (including header)
preferHTML decode HTML part if present
+
+
Returns:
decoded mail body
+ +
+

+ +

+
+ + + + + + + + + +
int ShowRecordElem::showHeader (QString &  account  ) 
+
+
+ +

+Shows the header in a dialog box.

Parameters:
+ + +
account account name
+
+
Returns:
continueShowHeaders - the user has OK clicked. The invoking function will show the next header

+cancelShowHeaders - the user has Cancel clicked. The invoking function will not show the next header.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void ShowRecordElem::writeToMoveLog (FilterLog log,
QString  account,
QString  mailbox 
)
+
+
+ +

+Writes this mail into the Move Log.

Parameters:
+ + + + +
log pointer to the log
account name of the account
mailbox name of the mailbox
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void ShowRecordElem::writeToDeleteLog (FilterLog log,
QString  account 
)
+
+
+ +

+Writes this mail into the Delete Log.

Parameters:
+ + + +
log pointer to the log
account name of the account
+
+ +
+

+ +

+
+ + + + + + + + +
void ShowRecordElem::setMarkAtNextViewRefresh (  ) 
+
+
+ +

+The mail will be marked at the next view refresh. +

+

+ +

+
+ + + + + + + + + +
QCString ShowRecordElem::scanHeader (const QString &  item  )  const [private]
+
+
+ +

+Searches in the header for a line which starts with the given item. For example: scanHeader( "From") will find the line "From: Ulrich Weigelt <ulrich.weigelt@gmx.de>" and returns "Ulrich Weigelt <ulrich.weigelt@gmx.de>" Returns an empty string (""), if nothing was found.

Parameters:
+ + +
item the search item
+
+
Returns:
the content of the found line
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setFrom (const QCString &  from  )  [private]
+
+
+ +

+Sets the given string as sender address

Parameters:
+ + +
from sender address
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setTo (const QCString &  to  )  [private]
+
+
+ +

+Sets the given string as recipient address

Parameters:
+ + +
to recipient address
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setSubject (const QCString &  subject  )  [private]
+
+
+ +

+Sets the given string as subject

Parameters:
+ + +
subject the mail subject
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setDate (const QCString &  date  )  [private]
+
+
+ +

+Converts the given string to a date-time value and stores it.

Parameters:
+ + +
date the date
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setContent (const QCString &  content  )  [private]
+
+
+ +

+Sets the given string as content type.

Parameters:
+ + +
content the content type
+
+ +
+

+ +

+
+ + + + + + + + + +
void ShowRecordElem::setFilter (FilterElem *  filter  )  [private]
+
+
+ +

+Sets the pointer to a matching filter. Used by applyFilters().

See also:
applyFilters
+
Parameters:
+ + +
filter pointer to the filter
+
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::getBoundary (  )  const [private]
+
+
+ +

+Returns the boundary, if the mail has a multi part body. Otherwise it returns an empty string.

Returns:
boundary
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::getCharset (  )  const [private]
+
+
+ +

+Returns the char set of the content (e.g. iso-8859-1). If no char set is denoted, it will returns an empty string.

Returns:
charset
+ +
+

+ +

+
+ + + + + + + + +
QString ShowRecordElem::getTransferEncoding (  )  const [private]
+
+
+ +

+Returns the content transfer encoding of the content (e.g. quoted-printable). If no encoding is denoted, it will returns an empty string.

Returns:
content transfer encoding
+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
int const ShowRecordElem::continueShowHeaders [static]
+
+
+ +

+Returned by showHeader(), if the user has clicked OK. +

+

+ +

+
+ + + + +
int const ShowRecordElem::cancelShowHeaders [static]
+
+
+ +

+Returned by showHeader(), if the user has clicked Cancel. +

+

+ +

+
+ + + + +
QCString ShowRecordElem::m_header [private]
+
+
+ +

+Mail header; coded according RFC 2047 +

+

+ +

+
+ + + + +
QCString ShowRecordElem::m_from [private]
+
+
+ +

+The sender address; coded according RFC 2047 +

+

+ +

+
+ + + + +
QCString ShowRecordElem::m_to [private]
+
+
+ +

+The addressee; coded according RFC 2047 +

+

+ +

+
+ + + + +
QCString ShowRecordElem::m_subject [private]
+
+
+ +

+The subject; coded according RFC 2047 +

+

+ +

+
+ + + + +
QDateTime ShowRecordElem::m_unixDate [private]
+
+
+ +

+The date on which the mail was sent +

+

+ +

+
+ + + + +
QCString ShowRecordElem::m_content [private]
+
+
+ +

+The content type +

+

+ +

+
+ + + + +
QString ShowRecordElem::m_uid [private]
+
+
+ +

+The unique ID of the mail. +

+

+ +

+
+ + + + +
int ShowRecordElem::m_size [private]
+
+
+ +

+Size of the mail +

+

+ +

+
+ + + + +
bool ShowRecordElem::m_new [private]
+
+
+ +

+It is set to TRUE when the mail is new. +

+

+ +

+
+ + + + +
int ShowRecordElem::m_nNumber [private]
+
+
+ +

+The mail number of the account +

+

+ +

+
+ + + + +
bool ShowRecordElem::markAtViewRefresh [private]
+
+
+ +

+TRUE - the mail shall be marked at the next mail view refresh. It will be set to True by applyHeaderFilter() if the recommend filter action is MARK. It is used by setViewItem(). This methode marks the related list entry and after then it set this variable to False. +

+

+ +

+ +
+ +

+Pointer to the corresponding list view entry. Used to check whether the entry is highlighted and we have to process this mail.

See also:
ShowListViewItem
+ +
+

+ +

+
+ + + + +
FilterElem* ShowRecordElem::m_pFilter [private]
+
+
+ +

+This is a pointer to the filter, which matches this mail. If it is NULL, no filter matches. Will be set by applyFilters(). This pointer will just be used to count the deleted mails by this filter( see implementation of setDeleted() ). +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classUniqueApp-members.html b/doc/html/classUniqueApp-members.html new file mode 100644 index 0000000..83f4d8a --- /dev/null +++ b/doc/html/classUniqueApp-members.html @@ -0,0 +1,32 @@ + + +kshowmail.kdevelop: Member List + + + + +
+
+
+
+

UniqueApp Member List

This is the complete list of members for UniqueApp, including all inherited members.

+ + + + +
m_pAppUniqueApp [private]
newInstance()UniqueApp [virtual]
UniqueApp()UniqueApp
~UniqueApp()UniqueApp


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classUniqueApp.html b/doc/html/classUniqueApp.html new file mode 100644 index 0000000..9efe314 --- /dev/null +++ b/doc/html/classUniqueApp.html @@ -0,0 +1,128 @@ + + +kshowmail.kdevelop: UniqueApp Class Reference + + + + +
+
+
+
+

UniqueApp Class Reference

Creates a unique instance of kshowmail. +More... +

+#include <uniqueapp.h> +

+List of all members. + + + + + + + + + + + +

Public Member Functions

 UniqueApp ()
 ~UniqueApp ()
virtual int newInstance ()

Private Attributes

KShowMailAppm_pApp
+


Detailed Description

+Creates a unique instance of kshowmail. +

+

Author:
Eggert Ehmke
+ +

+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
UniqueApp::UniqueApp (  ) 
+
+
+ +

+Constructor +

+

+ +

+
+ + + + + + + + +
UniqueApp::~UniqueApp (  ) 
+
+
+ +

+Destructor +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
int UniqueApp::newInstance (  )  [virtual]
+
+
+ +

+overloaded method of KUniqueApplication. Creates a new instance of kshowmail. +

+

+


Member Data Documentation

+ +
+
+ + + + +
KShowMailApp* UniqueApp::m_pApp [private]
+
+
+ +

+the kshowmail instance +

+

+


The documentation for this class was generated from the following files: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/classes.html b/doc/html/classes.html new file mode 100644 index 0000000..6831214 --- /dev/null +++ b/doc/html/classes.html @@ -0,0 +1,39 @@ + + +kshowmail.kdevelop: Alphabetical List + + + + +
+
+
+
+

kshowmail.kdevelop Class Index

A | C | D | F | H | K | M | S | U

+ +
  A  
+
ConfigFilter   FilterItem   HeaderFilter   SenderListDialog   
AccountSetupDialog   ConfigGeneral   FilterItemCriteria   
  K  
+
SenderListFilter   
AccountSetupItem   ConfigList   FilterLog   KShowMailApp   ServerDialog   
AlertDialog   ConfigLog   FilterLogEntry   KshowmailDoc   ShowHeaderDialog   
AlertDlg   ConfigSpamcheck   FilterLogView   KShowMailDock   ShowListViewItem   
  C  
+
  D  
+
FilterLogViewDeletedItem   KshowmailView   ShowMailDialog   
ConfigAccounts   DownloadActionParams_Type (Types)   FilterLogViewMovedItem   
  M  
+
ShowRecord   
ConfigActions   
  F  
+
FilterSetupDialog   MailBoxWizard   ShowRecordElem   
ConfigDisplay   FilterCriteria_Type (Types)   FilterSetupItem   MailBoxWizardListItem   
  U  
+
ConfigElem   FilterCriteriaWidget   
  H  
+
  S  
+
UniqueApp   

A | C | D | F | H | K | M | S | U

+


Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commanddialog_8cpp-source.html b/doc/html/commanddialog_8cpp-source.html new file mode 100644 index 0000000..bdd3432 --- /dev/null +++ b/doc/html/commanddialog_8cpp-source.html @@ -0,0 +1,150 @@ + + +kshowmail: kshowmail/commanddialog.cpp Source File + + + + +
+
+ +

commanddialog.cpp

00001 /***************************************************************************
+00002                           commanddialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <klocale.h>
+00019 #include <kmessagebox.h>
+00020 #include "kshowmail.h"
+00021 #include "commanddialog.h"
+00022 #include "commandentrydialog.h"
+00023 
+00024 CommandDialog::CommandDialog(QWidget *parent, const char *name, CommandList* list, ConfigElem* pConfig, ConfigList* pConfigList):
+00025        CommandDlg(parent,name,true),
+00026 //     m_locallist (*list), we don't have a proper copy contructor
+00027        m_plist (list),
+00028        m_pConfigList (pConfigList),
+00029        m_pConfig (pConfig)
+00030 {
+00031        m_locallist = *list;
+00032        int index = list->at ();
+00033        for (unsigned int i = 0; i < list->count(); i ++)
+00034        {
+00035               m_ComboCommand->insertItem (m_locallist.at (i)->m_name);
+00036        }
+00037        m_locallist.at (index);
+00038        m_ComboCommand->setCurrentItem (index);
+00039 }
+00040 
+00041 CommandDialog::~CommandDialog()
+00042 {
+00043 }
+00044 
+00045 void CommandDialog::slotAdd ()
+00046 {
+00047        CommandEntry* entry = new CommandEntry ();
+00048        CommandEntryDialog dlg (this, "New command", entry, m_pConfig);
+00049        if (dlg.exec () == QDialog::Accepted)
+00050        {
+00051               m_locallist.append (entry);
+00052               int pos = m_locallist.at ();
+00053     m_locallist.setCombo (m_ComboCommand, pos);
+00054   }
+00055        else
+00056               delete entry;
+00057 }
+00058 
+00059 void CommandDialog::slotEdit ()
+00060 {
+00061        if (m_locallist.current ())
+00062        {
+00063               CommandEntryDialog dlg (this, "Edit command", m_locallist.current (), m_pConfig);
+00064               if (dlg.exec () == QDialog::Accepted)
+00065               {
+00066                      // the command name may have changed. Update the combo box.
+00067                      int pos = m_locallist.at ();
+00068       m_locallist.setCombo (m_ComboCommand, pos);
+00069               }
+00070        }
+00071 }
+00072 
+00073 void CommandDialog::slotCopy ()
+00074 {
+00075        if (m_locallist.current ())
+00076        {
+00077               CommandEntry* entry = new CommandEntry (m_locallist.current ());
+00078               CommandEntryDialog dlg (this, "Copy command", entry, m_pConfig);
+00079               if (dlg.exec () == QDialog::Accepted)
+00080               {
+00081                      m_locallist.append (entry);
+00082                      int pos = m_locallist.at ();
+00083       m_locallist.setCombo (m_ComboCommand, pos);
+00084               }
+00085               else
+00086                      delete entry;
+00087        }
+00088 }
+00089 
+00090 void CommandDialog::slotDelete ()
+00091 {
+00092        if (m_locallist.current())
+00093        {
+00094               if (KMessageBox::warningYesNo (this, i18n("Command %1 will be deleted.\nAre you sure ?").arg(m_locallist.current()->m_name)) == KMessageBox::Yes)
+00095               {
+00096                      int pos = m_locallist.at ();
+00097                      m_locallist.remove (pos);
+00098       m_locallist.setCombo (m_ComboCommand, pos);
+00099               }
+00100        }
+00101 }
+00102 
+00103 void CommandDialog::slotOk ()
+00104 {
+00105        *m_plist = m_locallist;
+00106        int index = m_locallist.at ();
+00107        for (unsigned int i = 0; i < m_plist->count (); i++)
+00108        {
+00109               if (m_plist->at (i)->m_name == "complain")
+00110                      m_plist->at (i)->m_id = ID_OPTION_COMPLAIN;
+00111               else
+00112                      m_plist->at (i)->m_id = ID_OPTION_COMPLAIN + 1 + i;
+00113        }
+00114        if (m_pConfigList->m_bExternalProg && (m_pConfigList->m_nExternalProg >= m_plist->count ()))
+00115        {
+00116               m_pConfigList->m_bExternalProg = false;
+00117               m_pConfigList->m_nExternalProg = -1;
+00118        }
+00119        m_plist->at (index);
+00120        accept ();
+00121 }
+00122 
+00123 void CommandDialog::slotCommandActivated (int index)
+00124 {
+00125        m_locallist.at (index); // will set current item
+00126 }
+00127 
+00128 
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commanddialog_8h-source.html b/doc/html/commanddialog_8h-source.html new file mode 100644 index 0000000..fabeb32 --- /dev/null +++ b/doc/html/commanddialog_8h-source.html @@ -0,0 +1,73 @@ + + +kshowmail: kshowmail/commanddialog.h Source File + + + + +
+
+ +

commanddialog.h

00001 /***************************************************************************
+00002                           commanddialog.h  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef COMMANDDIALOG_H
+00019 #define COMMANDDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "CommandDlg.h"
+00023 #include "commandlist.h"
+00024 #include "configelem.h"
+00025 #include "configlist.h"
+00026 
+00031 #define ID_OPTION_COMPLAIN 13000
+00032 
+00033 class ConfigList;
+00034 
+00035 class CommandDialog : public CommandDlg
+00036 {
+00037    Q_OBJECT
+00038 public: 
+00039        CommandDialog(QWidget *parent, const char *name, CommandList* list, ConfigElem* pConfig, ConfigList* pConfigList);
+00040        ~CommandDialog();
+00041 private slots:
+00042   virtual void slotAdd ();
+00043   virtual void slotEdit ();
+00044   virtual void slotCopy();
+00045   virtual void slotDelete ();
+00046   virtual void slotOk ();
+00047   virtual void slotCommandActivated (int);
+00048 private:
+00049        CommandList* m_plist;
+00050        CommandList m_locallist;
+00051        ConfigList* m_pConfigList;
+00052        ConfigElem* m_pConfig;
+00053 };
+00054 
+00055 #endif
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commanddialog_8moc_8cpp-source.html b/doc/html/commanddialog_8moc_8cpp-source.html new file mode 100644 index 0000000..1a54c91 --- /dev/null +++ b/doc/html/commanddialog_8moc_8cpp-source.html @@ -0,0 +1,141 @@ + + +kshowmail: kshowmail/commanddialog.moc.cpp Source File + + + + +
+
+ +

commanddialog.moc.cpp

00001 /****************************************************************************
+00002 ** CommandDialog meta object code from reading C++ file 'commanddialog.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: commanddialog_8moc_8cpp-source.html,v 1.8 2007/05/16 20:12:00 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "commanddialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *CommandDialog::className() const
+00023 {
+00024     return "CommandDialog";
+00025 }
+00026 
+00027 QMetaObject *CommandDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_CommandDialog( "CommandDialog", &CommandDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString CommandDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "CommandDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString CommandDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "CommandDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* CommandDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = CommandDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotAdd", 0, 0 };
+00056     static const QUMethod slot_1 = {"slotEdit", 0, 0 };
+00057     static const QUMethod slot_2 = {"slotCopy", 0, 0 };
+00058     static const QUMethod slot_3 = {"slotDelete", 0, 0 };
+00059     static const QUMethod slot_4 = {"slotOk", 0, 0 };
+00060     static const QUParameter param_slot_5[] = {
+00061        { 0, &static_QUType_int, 0, QUParameter::In }
+00062     };
+00063     static const QUMethod slot_5 = {"slotCommandActivated", 1, param_slot_5 };
+00064     static const QMetaData slot_tbl[] = {
+00065        { "slotAdd()", &slot_0, QMetaData::Private },
+00066        { "slotEdit()", &slot_1, QMetaData::Private },
+00067        { "slotCopy()", &slot_2, QMetaData::Private },
+00068        { "slotDelete()", &slot_3, QMetaData::Private },
+00069        { "slotOk()", &slot_4, QMetaData::Private },
+00070        { "slotCommandActivated(int)", &slot_5, QMetaData::Private }
+00071     };
+00072     metaObj = QMetaObject::new_metaobject(
+00073        "CommandDialog", parentObject,
+00074        slot_tbl, 6,
+00075        0, 0,
+00076 #ifndef QT_NO_PROPERTIES
+00077        0, 0,
+00078        0, 0,
+00079 #endif // QT_NO_PROPERTIES
+00080        0, 0 );
+00081     cleanUp_CommandDialog.setMetaObject( metaObj );
+00082     return metaObj;
+00083 }
+00084 
+00085 void* CommandDialog::qt_cast( const char* clname )
+00086 {
+00087     if ( !qstrcmp( clname, "CommandDialog" ) )
+00088        return this;
+00089     return CommandDlg::qt_cast( clname );
+00090 }
+00091 
+00092 bool CommandDialog::qt_invoke( int _id, QUObject* _o )
+00093 {
+00094     switch ( _id - staticMetaObject()->slotOffset() ) {
+00095     case 0: slotAdd(); break;
+00096     case 1: slotEdit(); break;
+00097     case 2: slotCopy(); break;
+00098     case 3: slotDelete(); break;
+00099     case 4: slotOk(); break;
+00100     case 5: slotCommandActivated((int)static_QUType_int.get(_o+1)); break;
+00101     default:
+00102        return CommandDlg::qt_invoke( _id, _o );
+00103     }
+00104     return TRUE;
+00105 }
+00106 
+00107 bool CommandDialog::qt_emit( int _id, QUObject* _o )
+00108 {
+00109     return CommandDlg::qt_emit(_id,_o);
+00110 }
+00111 #ifndef QT_NO_PROPERTIES
+00112 
+00113 bool CommandDialog::qt_property( int id, int f, QVariant* v)
+00114 {
+00115     return CommandDlg::qt_property( id, f, v);
+00116 }
+00117 
+00118 bool CommandDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00119 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandentry_8cpp-source.html b/doc/html/commandentry_8cpp-source.html new file mode 100644 index 0000000..94ad5c7 --- /dev/null +++ b/doc/html/commandentry_8cpp-source.html @@ -0,0 +1,143 @@ + + +kshowmail: kshowmail/commandentry.cpp Source File + + + + +
+
+ +

commandentry.cpp

00001 /***************************************************************************
+00002                           commandentry.cpp  -  description
+00003                              -------------------
+00004     begin                : Thu Jul 20 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 #include <stdlib.h>
+00018 #include <stdio.h>
+00019 #include <unistd.h>
+00020 
+00021 #include <kapplication.h>
+00022 #include <kaction.h>
+00023 #include <kdebug.h>
+00024 #include <qmessagebox.h>
+00025 
+00026 #include "commandentry.h"
+00027 #include "editdialog.h"
+00028 
+00029 CommandEntry& CommandEntry::operator = (const CommandEntry& entry)
+00030 {
+00031        m_id = entry.m_id;
+00032        m_name = entry.m_name;
+00033        m_path = entry.m_path;
+00034   m_waitForCommand = entry.m_waitForCommand;
+00035   return *this;
+00036 }
+00037 
+00038 bool CommandEntry::exec (ConfigElem* pelem, const char* header, const char* body)
+00039 {
+00040        kdDebug () << "CommandEntry::exec ();" << endl;
+00041        return exec (m_path, pelem, header, body);
+00042 }
+00043 
+00044 bool CommandEntry::exec (const QString& path, ConfigElem* pelem, const char* header, const char* body)
+00045 {
+00046        kdDebug () << "CommandEntry::exec (" << path << ");" << endl;
+00047        QString cmd = path;
+00048        int pos;
+00049        if (pelem)
+00050        {
+00051               if ((pos = cmd.find ("<user>")) >= 0)
+00052                      cmd.replace (pos, strlen ("<user>"), pelem->getUser() );
+00053               if ((pos = cmd.find ("<server>")) >= 0)
+00054                      cmd.replace (pos, strlen ("<server>"), pelem->getHost());
+00055               if ((pos = cmd.find ("<passwd>")) >= 0)
+00056                      cmd.replace (pos, strlen ("<passwd>"), pelem->getPassword());
+00057        }
+00058   else
+00059   {
+00060               if ((pos = cmd.find ("<user>")) >= 0)
+00061                      cmd.remove (pos, strlen ("<user>"));
+00062               if ((pos = cmd.find ("<server>")) >= 0)
+00063                      cmd.remove (pos, strlen ("<server>"));
+00064               if ((pos = cmd.find ("<passwd>")) >= 0)
+00065                      cmd.remove (pos, strlen ("<passwd>"));
+00066   }
+00067        if (header && (pos = cmd.find ("<header>")) >= 0)
+00068        {
+00069               FILE* tmp = fopen ("/tmp/spamheader", "w");
+00070               fputs (header, tmp);
+00071               fclose (tmp);
+00072               cmd.replace (pos, strlen ("<header>"), "/tmp/spamheader");
+00073        }
+00074        if (body && (pos = cmd.find ("<body>")) >= 0)
+00075        {
+00076               FILE* tmp = fopen ("/tmp/spambody", "w");
+00077               fputs (body, tmp);
+00078               fclose (tmp);
+00079               cmd.replace (pos, strlen ("<body>"), "/tmp/spambody");
+00080        }
+00081   int result = 0;
+00082   if (m_waitForCommand) {
+00083     //execute the command and wait for it to return
+00084     FILE* output = popen (cmd, "r");
+00085        char buffer [81];
+00086        QString str;
+00087        while (fgets (buffer, 80, output))
+00088        {
+00089               str += buffer;
+00090        }
+00091               KApplication::setOverrideCursor (Qt::arrowCursor);
+00092        result = pclose (output);
+00093        if (!str.isEmpty ())
+00094        {
+00095               EditDialog dlg (NULL, cmd, str, false);
+00096               dlg.exec ();
+00097        }
+00098        kdDebug () << cmd << " returned " << result << endl;
+00099   }
+00100   else
+00101   {
+00102     //execute the command and don't wait for it to return
+00103     int pid;
+00104     if ((pid = fork()) == 0)
+00105     {
+00106       // child processing; don't do any gui stuff here !
+00107       system (cmd);
+00108       // we must terminate the child process
+00109       exit (0);
+00110       // the bad thing is, we never know if the command failed. We would need some pipe.
+00111     }
+00112     else if (pid == -1)
+00113     {
+00114       EditDialog dlg (NULL, cmd, "The command failed to execute", false);
+00115       dlg.exec ();
+00116     }
+00117   }
+00118   KApplication::restoreOverrideCursor ();
+00119   return (result == 0);
+00120 }
+00121 
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandentry_8h-source.html b/doc/html/commandentry_8h-source.html new file mode 100644 index 0000000..9e53f18 --- /dev/null +++ b/doc/html/commandentry_8h-source.html @@ -0,0 +1,69 @@ + + +kshowmail: kshowmail/commandentry.h Source File + + + + +
+
+ +

commandentry.h

00001 /***************************************************************************
+00002                           commandentry.h  -  description
+00003                              -------------------
+00004     begin                : Thu Jul 20 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef COMMANDENTRY_H
+00019 #define COMMANDENTRY_H
+00020 
+00021 #include <qdialog.h>
+00022 #include <qpopupmenu.h>
+00023 
+00024 #include <ktoolbar.h>
+00025 
+00026 #include "configelem.h"
+00027 
+00031 class ConfigElem;
+00032 
+00033 class CommandEntry
+00034 {
+00035        public:
+00036        CommandEntry () {};
+00037        CommandEntry (const char* name, const char* path, const int id, const bool modal)
+00038        : m_name (name), m_path (path), m_id (id), m_waitForCommand (modal) {};
+00039        CommandEntry (const CommandEntry* copy)
+00040        : m_name (copy->m_name), m_path (copy->m_path), m_id (copy->m_id), m_waitForCommand (copy->m_waitForCommand) {};
+00041        CommandEntry& operator = (const CommandEntry& entry);
+00042        bool exec (ConfigElem* pelem = NULL, const char* header = NULL, const char* body = NULL);
+00043        bool exec (const QString& path, ConfigElem* pelem, const char* header = NULL, const char* body = NULL);
+00044        QString m_name;
+00045        QString m_path;
+00046        int m_id;
+00047   bool m_waitForCommand;
+00048 };
+00049 
+00050 #endif
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandentrydialog_8cpp-source.html b/doc/html/commandentrydialog_8cpp-source.html new file mode 100644 index 0000000..fae9542 --- /dev/null +++ b/doc/html/commandentrydialog_8cpp-source.html @@ -0,0 +1,91 @@ + + +kshowmail: kshowmail/commandentrydialog.cpp Source File + + + + +
+
+ +

commandentrydialog.cpp

00001 /***************************************************************************
+00002                           commandentrydialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <qwidget.h>
+00019 #include <qlineedit.h>
+00020 #include <qfileinfo.h>
+00021 #include <qfiledialog.h>
+00022 #include <qcheckbox.h>
+00023 #include <klocale.h>
+00024 #include "commandentry.h"
+00025 #include "commandentrydialog.h"
+00026 
+00027 CommandEntryDialog::CommandEntryDialog(QWidget *parent, const char *name, CommandEntry* entry, ConfigElem* pConfigElem):
+00028        CommandEntryDlg(parent,name,true),
+00029        m_pentry (entry),
+00030        m_pConfigElem (pConfigElem)
+00031 {
+00032        m_EditName->setText (entry->m_name);
+00033        m_EditPath->setText (entry->m_path);
+00034   m_checkModal->setChecked(entry->m_waitForCommand);
+00035        m_EditName->setFocus ();
+00036 }
+00037 
+00038 CommandEntryDialog::~CommandEntryDialog(){
+00039 }
+00040 
+00041 void CommandEntryDialog::slotPath ()
+00042 {
+00043        QFileInfo info (m_EditPath->text ());
+00044        QString dir = info.dirPath ();
+00045        QFileDialog dlg (this, "Command", TRUE);
+00046        dlg.setCaption (i18n("Select Command"));
+00047        dlg.setDir (dir);
+00048        dlg.setMode (QFileDialog::ExistingFile);
+00049   if (dlg.exec () == QDialog::Accepted)
+00050        m_EditPath->setText (dlg.selectedFile());
+00051 }
+00052 
+00053 void CommandEntryDialog::slotOk ()
+00054 {
+00055        QString name = m_EditName->text();
+00056        QString path = m_EditPath->text();
+00057        if (!name.isEmpty() && !path.isEmpty())
+00058        {
+00059               m_pentry->m_name = name;
+00060               m_pentry->m_path = path;
+00061     m_pentry->m_waitForCommand = m_checkModal->isChecked();
+00062     accept ();
+00063        }
+00064 }
+00065 
+00066 void CommandEntryDialog::slotTest ()
+00067 {
+00068        m_pentry->exec (m_EditPath->text(), m_pConfigElem);
+00069 }
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandentrydialog_8h-source.html b/doc/html/commandentrydialog_8h-source.html new file mode 100644 index 0000000..b091588 --- /dev/null +++ b/doc/html/commandentrydialog_8h-source.html @@ -0,0 +1,63 @@ + + +kshowmail: kshowmail/commandentrydialog.h Source File + + + + +
+
+ +

commandentrydialog.h

00001 /***************************************************************************
+00002                           commandentrydialog.h  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef COMMANDENTRYDIALOG_H
+00019 #define COMMANDENTRYDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "commandentry.h"
+00023 #include "CommandEntryDlg.h"
+00024 #include "configelem.h"
+00025 
+00030 class CommandEntryDialog : public CommandEntryDlg
+00031 {
+00032    Q_OBJECT
+00033 public: 
+00034        CommandEntryDialog(QWidget *parent, const char *name, CommandEntry* entry, ConfigElem* pConfigElem);
+00035        ~CommandEntryDialog();
+00036 private slots:
+00037   void slotPath ();
+00038   void slotTest ();
+00039   void slotOk ();
+00040 private:
+00041        CommandEntry* m_pentry;
+00042        ConfigElem* m_pConfigElem;
+00043 };
+00044 
+00045 #endif
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandentrydialog_8moc_8cpp-source.html b/doc/html/commandentrydialog_8moc_8cpp-source.html new file mode 100644 index 0000000..d6439ed --- /dev/null +++ b/doc/html/commandentrydialog_8moc_8cpp-source.html @@ -0,0 +1,129 @@ + + +kshowmail: kshowmail/commandentrydialog.moc.cpp Source File + + + + +
+
+ +

commandentrydialog.moc.cpp

00001 /****************************************************************************
+00002 ** CommandEntryDialog meta object code from reading C++ file 'commandentrydialog.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: commandentrydialog_8moc_8cpp-source.html,v 1.8 2007/05/16 20:12:00 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "commandentrydialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *CommandEntryDialog::className() const
+00023 {
+00024     return "CommandEntryDialog";
+00025 }
+00026 
+00027 QMetaObject *CommandEntryDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_CommandEntryDialog( "CommandEntryDialog", &CommandEntryDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString CommandEntryDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "CommandEntryDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString CommandEntryDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "CommandEntryDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* CommandEntryDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = CommandEntryDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotPath", 0, 0 };
+00056     static const QUMethod slot_1 = {"slotTest", 0, 0 };
+00057     static const QUMethod slot_2 = {"slotOk", 0, 0 };
+00058     static const QMetaData slot_tbl[] = {
+00059        { "slotPath()", &slot_0, QMetaData::Private },
+00060        { "slotTest()", &slot_1, QMetaData::Private },
+00061        { "slotOk()", &slot_2, QMetaData::Private }
+00062     };
+00063     metaObj = QMetaObject::new_metaobject(
+00064        "CommandEntryDialog", parentObject,
+00065        slot_tbl, 3,
+00066        0, 0,
+00067 #ifndef QT_NO_PROPERTIES
+00068        0, 0,
+00069        0, 0,
+00070 #endif // QT_NO_PROPERTIES
+00071        0, 0 );
+00072     cleanUp_CommandEntryDialog.setMetaObject( metaObj );
+00073     return metaObj;
+00074 }
+00075 
+00076 void* CommandEntryDialog::qt_cast( const char* clname )
+00077 {
+00078     if ( !qstrcmp( clname, "CommandEntryDialog" ) )
+00079        return this;
+00080     return CommandEntryDlg::qt_cast( clname );
+00081 }
+00082 
+00083 bool CommandEntryDialog::qt_invoke( int _id, QUObject* _o )
+00084 {
+00085     switch ( _id - staticMetaObject()->slotOffset() ) {
+00086     case 0: slotPath(); break;
+00087     case 1: slotTest(); break;
+00088     case 2: slotOk(); break;
+00089     default:
+00090        return CommandEntryDlg::qt_invoke( _id, _o );
+00091     }
+00092     return TRUE;
+00093 }
+00094 
+00095 bool CommandEntryDialog::qt_emit( int _id, QUObject* _o )
+00096 {
+00097     return CommandEntryDlg::qt_emit(_id,_o);
+00098 }
+00099 #ifndef QT_NO_PROPERTIES
+00100 
+00101 bool CommandEntryDialog::qt_property( int id, int f, QVariant* v)
+00102 {
+00103     return CommandEntryDlg::qt_property( id, f, v);
+00104 }
+00105 
+00106 bool CommandEntryDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00107 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandlist_8cpp-source.html b/doc/html/commandlist_8cpp-source.html new file mode 100644 index 0000000..913d2df --- /dev/null +++ b/doc/html/commandlist_8cpp-source.html @@ -0,0 +1,153 @@ + + +kshowmail: kshowmail/commandlist.cpp Source File + + + + +
+
+ +

commandlist.cpp

00001 /***************************************************************************
+00002                           commandlist.cpp  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <kdebug.h>
+00019 #include "commandentry.h"
+00020 #include "commandlist.h"
+00021 
+00022 CommandList::CommandList()
+00023 {
+00024        setAutoDelete (true);
+00025 }
+00026 
+00027 CommandList::~CommandList()
+00028 {
+00029 }
+00030 
+00031 void CommandList::setCombo (QComboBox* combo, int nIndex)
+00032 {
+00033        combo->clear ();
+00034        for (CommandEntry* pElem = first(); pElem; pElem = next())
+00035        {
+00036               combo->insertItem (pElem->m_name);
+00037        }
+00038        if (nIndex >= 0)
+00039        {
+00040               at (nIndex);
+00041               combo->setCurrentItem (nIndex);
+00042        }
+00043 }
+00044 
+00045 CommandList& CommandList::operator = (CommandList& list)
+00046 {
+00047        clear ();
+00048        int nIndex = list.at ();
+00049        for (CommandEntry* item = list.first (); item; item = list.next ())
+00050        {
+00051               append (new CommandEntry (item));         
+00052        }
+00053        at (nIndex);
+00054        return *this;
+00055 }
+00056 
+00057 bool CommandList::exec (unsigned int id, ConfigElem* pelem, const char* header, const char* body)
+00058 {
+00059        bool result = false;
+00060        CommandEntry* test = new CommandEntry (NULL, NULL, id, true);
+00061        int pos = find (test);
+00062        if (pos >= 0)
+00063        {
+00064               result = at (pos)->exec (pelem, header, body);
+00065        }
+00066        else
+00067               kdError () << "No ID " << id << " found in commandlist." << endl;
+00068        delete test;
+00069        return result;
+00070 }
+00071 
+00072 bool CommandList::exec (unsigned int pos, ConfigElem* pelem)
+00073 {
+00074        // command may have bee deleted
+00075        if (pos < count ())
+00076               return at (pos)->exec (pelem);
+00077        else
+00078               return false;
+00079 }
+00080 
+00081 int CommandList::compareItems (QCollection::Item item1, QCollection::Item item2 )
+00082 {
+00083        CommandEntry* entry1 = (CommandEntry*) item1;
+00084        CommandEntry* entry2 = (CommandEntry*) item2;
+00085        if (entry1->m_id > entry2->m_id)
+00086               return 1;
+00087        else if (entry1->m_id == entry2->m_id)
+00088               return 0;
+00089        else return -1;
+00090 }
+00091 
+00092 QCollection::Item CommandList::newItem (QCollection::Item d)
+00093 {
+00094        return new CommandEntry ((CommandEntry*)d);
+00095 }
+00096 
+00097 void CommandList::readOptions (KConfig* config)
+00098 {
+00099        config->setGroup ("usercommands");
+00100        bool goon = true;
+00101        int i = 0;
+00102        while (goon)
+00103        {
+00104               QString cmd (config->readEntry (QString ("cmd%1").arg(i)));
+00105               if (!cmd.isEmpty ())
+00106               {
+00107                      QString path = config->readEntry (QString("path%1").arg(i));
+00108                      int id = config->readNumEntry (QString("id%1").arg(i));
+00109       bool modal = config->readBoolEntry (QString("modal%1").arg(i), true);
+00110       append (new CommandEntry (cmd, path, id, modal));
+00111                      i++;
+00112               }
+00113               else
+00114                      goon = false;
+00115        }
+00116        if (i > 0)
+00117               at (0);
+00118 }
+00119 
+00120 void CommandList::saveOptions (KConfig* config)
+00121 {
+00122        kdDebug () << "CommandList::saveOptions" << endl;
+00123        config->setGroup ("usercommands");
+00124        for (unsigned int i = 0; i < count (); i++)
+00125        {
+00126               config->writeEntry (QString("cmd%1").arg(i), at(i)->m_name);
+00127               config->writeEntry (QString("path%1").arg(i), at(i)->m_path);
+00128               config->writeEntry (QString("id%1").arg(i), at(i)->m_id);
+00129               config->writeEntry (QString("modal%1").arg(i), at(i)->m_waitForCommand);
+00130        }
+00131 }
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/commandlist_8h-source.html b/doc/html/commandlist_8h-source.html new file mode 100644 index 0000000..651391b --- /dev/null +++ b/doc/html/commandlist_8h-source.html @@ -0,0 +1,66 @@ + + +kshowmail: kshowmail/commandlist.h Source File + + + + +
+
+ +

commandlist.h

00001 /***************************************************************************
+00002                           commandlist.h  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef COMMANDLIST_H
+00019 #define COMMANDLIST_H
+00020 
+00021 #include <qptrlist.h>
+00022 #include "configelem.h"
+00023 #include "commandentry.h"
+00024 
+00028 class CommandEntry;
+00029 class ConfigElem;
+00030 
+00031 class CommandList : public QPtrList<CommandEntry>
+00032 {
+00033        public:
+00034        CommandList ();
+00035        virtual ~CommandList();
+00036        void setCombo (QComboBox* combo, int nIndex);
+00037        CommandList& operator = (CommandList& right);
+00038        bool exec (unsigned int id, ConfigElem* pelem, const char* header, const char* body);
+00039        bool exec (unsigned int pos, ConfigElem* pelem);
+00040        void readOptions (KConfig* config);
+00041        void saveOptions (KConfig* config);
+00042        protected:
+00043        virtual int compareItems (QCollection::Item item1, QCollection::Item item2);
+00044        virtual QCollection::Item newItem (QCollection::Item d);
+00045 };
+00046 
+00047 #endif
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/config_8h-source.html b/doc/html/config_8h-source.html new file mode 100644 index 0000000..1f431a6 --- /dev/null +++ b/doc/html/config_8h-source.html @@ -0,0 +1,265 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/config.h Source File + + + + +
+
+
+
+ +

config.h

Go to the documentation of this file.
00001 /* config.h.  Generated from config.h.in by configure.  */
+00002 /* config.h.in.  Generated from configure.in by autoheader.  */
+00003 
+00004 /* Define to 1 if you have the <Carbon/Carbon.h> header file. */
+00005 /* #undef HAVE_CARBON_CARBON_H */
+00006 
+00007 /* Define if you have the CoreAudio API */
+00008 /* #undef HAVE_COREAUDIO */
+00009 
+00010 /* Define to 1 if you have the <crt_externs.h> header file. */
+00011 /* #undef HAVE_CRT_EXTERNS_H */
+00012 
+00013 /* Defines if your system has the crypt function */
+00014 #define HAVE_CRYPT 1
+00015 
+00016 /* Define to 1 if you have the <dlfcn.h> header file. */
+00017 #define HAVE_DLFCN_H 1
+00018 
+00019 /* Define to 1 if you have the <inttypes.h> header file. */
+00020 #define HAVE_INTTYPES_H 1
+00021 
+00022 /* Define if you have libjpeg */
+00023 #define HAVE_LIBJPEG 1
+00024 
+00025 /* Define if you have libpng */
+00026 #define HAVE_LIBPNG 1
+00027 
+00028 /* Define if you have a working libpthread (will enable threaded code) */
+00029 #define HAVE_LIBPTHREAD 1
+00030 
+00031 /* Define if you have libz */
+00032 #define HAVE_LIBZ 1
+00033 
+00034 /* Define to 1 if you have the <memory.h> header file. */
+00035 #define HAVE_MEMORY_H 1
+00036 
+00037 /* Define if your system needs _NSGetEnviron to set up the environment */
+00038 /* #undef HAVE_NSGETENVIRON */
+00039 
+00040 /* Define if you have res_init */
+00041 #define HAVE_RES_INIT 1
+00042 
+00043 /* Define if you have the res_init prototype */
+00044 #define HAVE_RES_INIT_PROTO 1
+00045 
+00046 /* Define if you have a STL implementation by SGI */
+00047 #define HAVE_SGI_STL 1
+00048 
+00049 /* Define to 1 if you have the `snprintf' function. */
+00050 #define HAVE_SNPRINTF 1
+00051 
+00052 /* Define to 1 if you have the <stdint.h> header file. */
+00053 #define HAVE_STDINT_H 1
+00054 
+00055 /* Define to 1 if you have the <stdlib.h> header file. */
+00056 #define HAVE_STDLIB_H 1
+00057 
+00058 /* Define to 1 if you have the <strings.h> header file. */
+00059 #define HAVE_STRINGS_H 1
+00060 
+00061 /* Define to 1 if you have the <string.h> header file. */
+00062 #define HAVE_STRING_H 1
+00063 
+00064 /* Define if you have strlcat */
+00065 /* #undef HAVE_STRLCAT */
+00066 
+00067 /* Define if you have the strlcat prototype */
+00068 /* #undef HAVE_STRLCAT_PROTO */
+00069 
+00070 /* Define if you have strlcpy */
+00071 /* #undef HAVE_STRLCPY */
+00072 
+00073 /* Define if you have the strlcpy prototype */
+00074 /* #undef HAVE_STRLCPY_PROTO */
+00075 
+00076 /* Define to 1 if you have the <sys/bitypes.h> header file. */
+00077 #define HAVE_SYS_BITYPES_H 1
+00078 
+00079 /* Define to 1 if you have the <sys/stat.h> header file. */
+00080 #define HAVE_SYS_STAT_H 1
+00081 
+00082 /* Define to 1 if you have the <sys/types.h> header file. */
+00083 #define HAVE_SYS_TYPES_H 1
+00084 
+00085 /* Define to 1 if you have the <unistd.h> header file. */
+00086 #define HAVE_UNISTD_H 1
+00087 
+00088 /* Define to 1 if you have the `vsnprintf' function. */
+00089 #define HAVE_VSNPRINTF 1
+00090 
+00091 /* Suffix for lib directories */
+00092 #define KDELIBSUFF ""
+00093 
+00094 /* Name of package */
+00095 #define PACKAGE "kshowmail"
+00096 
+00097 /* Define to the address where bug reports for this package should be sent. */
+00098 #define PACKAGE_BUGREPORT ""
+00099 
+00100 /* Define to the full name of this package. */
+00101 #define PACKAGE_NAME ""
+00102 
+00103 /* Define to the full name and version of this package. */
+00104 #define PACKAGE_STRING ""
+00105 
+00106 /* Define to the one symbol short name of this package. */
+00107 #define PACKAGE_TARNAME ""
+00108 
+00109 /* Define to the version of this package. */
+00110 #define PACKAGE_VERSION ""
+00111 
+00112 /* The size of `char *', as computed by sizeof. */
+00113 #define SIZEOF_CHAR_P 4
+00114 
+00115 /* The size of `int', as computed by sizeof. */
+00116 #define SIZEOF_INT 4
+00117 
+00118 /* The size of `long', as computed by sizeof. */
+00119 #define SIZEOF_LONG 4
+00120 
+00121 /* The size of `short', as computed by sizeof. */
+00122 #define SIZEOF_SHORT 2
+00123 
+00124 /* The size of `size_t', as computed by sizeof. */
+00125 #define SIZEOF_SIZE_T 4
+00126 
+00127 /* The size of `unsigned long', as computed by sizeof. */
+00128 #define SIZEOF_UNSIGNED_LONG 4
+00129 
+00130 /* Define to 1 if you have the ANSI C header files. */
+00131 #define STDC_HEADERS 1
+00132 
+00133 /* Version number of package */
+00134 #define VERSION "3.3"
+00135 
+00136 /* Defined if compiling without arts */
+00137 /* #undef WITHOUT_ARTS */
+00138 
+00139 /*
+00140  * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
+00141  * headers and I'm too lazy to write a configure test as long as only
+00142  * unixware is related
+00143  */
+00144 #ifdef _UNIXWARE
+00145 #define HAVE_BOOLEAN
+00146 #endif
+00147 
+00148 
+00149 
+00150 /*
+00151  * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
+00152  * that defines bzero.
+00153  */
+00154 
+00155 #if defined(_AIX)
+00156 #include <strings.h>
+00157 #endif
+00158 
+00159 
+00160 
+00161 #if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
+00162 # include <sys/time.h>
+00163 # include <crt_externs.h>
+00164 # define environ (*_NSGetEnviron())
+00165 #endif
+00166 
+00167 
+00168 
+00169 #if !defined(HAVE_RES_INIT_PROTO)
+00170 #ifdef __cplusplus
+00171 extern "C" {
+00172 #endif
+00173 int res_init(void);
+00174 #ifdef __cplusplus
+00175 }
+00176 #endif
+00177 #endif
+00178 
+00179 
+00180 
+00181 #if !defined(HAVE_STRLCAT_PROTO)
+00182 #ifdef __cplusplus
+00183 extern "C" {
+00184 #endif
+00185 unsigned long strlcat(char*, const char*, unsigned long);
+00186 #ifdef __cplusplus
+00187 }
+00188 #endif
+00189 #endif
+00190 
+00191 
+00192 
+00193 #if !defined(HAVE_STRLCPY_PROTO)
+00194 #ifdef __cplusplus
+00195 extern "C" {
+00196 #endif
+00197 unsigned long strlcpy(char*, const char*, unsigned long);
+00198 #ifdef __cplusplus
+00199 }
+00200 #endif
+00201 #endif
+00202 
+00203 
+00204 
+00205 /*
+00206  * On HP-UX, the declaration of vsnprintf() is needed every time !
+00207  */
+00208 
+00209 #if !defined(HAVE_VSNPRINTF) || defined(hpux)
+00210 #if __STDC__
+00211 #include <stdarg.h>
+00212 #include <stdlib.h>
+00213 #else
+00214 #include <varargs.h>
+00215 #endif
+00216 #ifdef __cplusplus
+00217 extern "C"
+00218 #endif
+00219 int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
+00220 #ifdef __cplusplus
+00221 extern "C"
+00222 #endif
+00223 int snprintf(char *str, size_t n, char const *fmt, ...);
+00224 #endif
+00225 
+00226 
+00227 
+00228 #if defined(__SVR4) && !defined(__svr4__)
+00229 #define __svr4__ 1
+00230 #endif
+00231 
+00232 
+00233 /* type to use in place of socklen_t if not defined */
+00234 #define kde_socklen_t socklen_t
+00235 
+00236 /* type to use in place of socklen_t if not defined (deprecated, use
+00237    kde_socklen_t) */
+00238 #define ksize_t socklen_t
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/configelem_8cpp-source.html b/doc/html/configelem_8cpp-source.html new file mode 100644 index 0000000..e8e1e2a --- /dev/null +++ b/doc/html/configelem_8cpp-source.html @@ -0,0 +1,1223 @@ + + +kshowmail: kshowmail/configelem.cpp Source File + + + + +
+
+ +

configelem.cpp

00001 /***************************************************************************
+00002                           ConfigElem.cpp  -  description
+00003                              -------------------
+00004     begin                : Tue May 9 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "configelem.h"
+00019 
+00020 int const ConfigElem::continueShowHeaders( 0 );
+00021 int const ConfigElem::cancelShowHeaders( 1 );
+00022 
+00023 
+00024 ConfigElem::ConfigElem( ) : QObject()
+00025 {
+00026   //initialize account
+00027   init();
+00028 
+00029   //set default values
+00030   m_url.setProtocol( "pop3" );
+00031   m_url.setPort( 110 );
+00032   m_bActive = false;
+00033   appConfig = NULL;
+00034   m_strAccount = "";
+00035 }
+00036 
+00037 ConfigElem::ConfigElem( ConfigList* config ) : QObject()
+00038 {
+00039   //initialize account
+00040   init();
+00041 
+00042   m_url.setProtocol( "pop3" );
+00043   m_url.setPort (110);
+00044 
+00045   m_bActive = false;
+00046 
+00047   appConfig = config;
+00048 
+00049 }
+00050 
+00051 ConfigElem::ConfigElem( ConfigElem* pElem ) : QObject()
+00052 {
+00053   //initialize account
+00054   init();
+00055 
+00056   //set active by default
+00057   m_bActive = pElem->isActive();
+00058 
+00059   //copy some interesting stuff from the sample
+00060   //the url object contains all necessary information about the server
+00061   m_strAccount = pElem->getAccountName();
+00062   m_url = pElem->getURL();
+00063   appConfig = pElem->appConfig;
+00064 
+00065 }
+00066 
+00067 ConfigElem::ConfigElem( ConfigList* config, const QString& account ) : QObject()
+00068 {
+00069   //initialize account
+00070   init();
+00071 
+00072   //set account name
+00073   m_strAccount = account;
+00074 
+00075   //deactivate it by default
+00076   m_bActive = false;
+00077 
+00078   //set the pointer to the general app configuration
+00079   appConfig = config;
+00080 }
+00081 
+00082 void ConfigElem::init( )
+00083 {
+00084   //initialize timeout timer
+00085   pop3Timer = new QTimer( this );
+00086   connect( pop3Timer, SIGNAL( timeout() ), this, SLOT( slotTimeout() ) );
+00087 
+00088   //state is idle
+00089   state = AccountIdle;
+00090 
+00091   //create new empty mail list
+00092   m_pshowrecord = new ShowRecord();
+00093 
+00094   //the account has no appropriate account list view item yet
+00095   m_pViewItem = NULL;
+00096 
+00097   //set default values
+00098   PasswordStorage = DEFAULT_ACCOUNT_PASSWORD_STORAGE;
+00099 }
+00100 
+00101 
+00102 ConfigElem::~ConfigElem()
+00103 {
+00104   // do not delete m_pshowrecord here
+00105 }
+00106 
+00107 void ConfigElem::saveOptions( QDomDocument& doc, QDomElement& parent )
+00108 {
+00109   //get application config
+00110   KConfig* config = KApplication::kApplication()->config();
+00111 
+00112   //save the active state
+00113   config->setGroup( getAccountName() );
+00114   config->writeEntry( CONFIG_ENTRY_ACCOUNT_ACTIVE, m_bActive );
+00115   config->sync();
+00116 
+00117   //save the stored mails inside this account
+00118   parent.setAttribute( ATTRIBUTE_ACCOUNT_NAME, m_strAccount );
+00119   m_pshowrecord->saveOptions( doc, parent );
+00120 }
+00121 
+00122 void ConfigElem::readStoredMails( QDomElement& parent )
+00123 {
+00124   //get mails
+00125   m_pshowrecord->readStoredMails( parent );
+00126 }
+00127 
+00128 
+00129 int ConfigElem::count()
+00130 {
+00131   return m_pshowrecord->count();
+00132 }
+00133 
+00134 void ConfigElem::applyFilters()
+00135 {
+00136   m_pshowrecord->applyFilters();
+00137 }
+00138 
+00139 bool ConfigElem::isActive( ) const
+00140 {
+00141   return m_bActive;
+00142 }
+00143 
+00144 void ConfigElem::setActive( bool active )
+00145 {
+00146   m_bActive = active;
+00147 }
+00148 
+00149 QString ConfigElem::getAccountName( ) const
+00150 {
+00151   return m_strAccount;
+00152 }
+00153 
+00154 void ConfigElem::setAccountName( QString name )
+00155 {
+00156   if( name != NULL )
+00157     m_strAccount = name;
+00158 }
+00159 
+00160 QString ConfigElem::getPassword( ) const
+00161 {
+00162   return m_url.pass();
+00163 }
+00164 
+00165 void ConfigElem::setPassword( const QString& password )
+00166 {
+00167     m_url.setPass( password );
+00168 }
+00169 
+00170 KURL ConfigElem::getURL( ) const
+00171 {
+00172   return m_url;
+00173 }
+00174 
+00175 bool ConfigElem::hasPassword( ) const
+00176 {
+00177   return m_url.hasPass();
+00178 }
+00179 
+00180 void ConfigElem::setListViewItem( QListViewItem* item )
+00181 {
+00182   m_pViewItem = item;
+00183 }
+00184 
+00185 QListViewItem * ConfigElem::getListViewItem( )
+00186 {
+00187   return m_pViewItem;
+00188 }
+00189 
+00190 bool ConfigElem::isSelected( ) const
+00191 {
+00192   if( m_pViewItem == NULL )
+00193 
+00194     return false;
+00195 
+00196   else
+00197 
+00198     return m_pViewItem->isSelected();
+00199 }
+00200 
+00201 void ConfigElem::clearMailList( )
+00202 {
+00203   if( m_pshowrecord == NULL )
+00204     //there is no mail list yet, create a one
+00205     m_pshowrecord = new ShowRecord;
+00206   else
+00207     //clear the existing mail list
+00208     m_pshowrecord->clear();
+00209 }
+00210 
+00211 void ConfigElem::setHost( const QString& host )
+00212 {
+00213   m_url.setHost( host );
+00214 }
+00215 
+00216 void ConfigElem::setProtocol( const QString& protocol )
+00217 {
+00218   m_url.setProtocol( protocol );
+00219 }
+00220 
+00221 void ConfigElem::setPort( unsigned short int port )
+00222 {
+00223   m_url.setPort( port );
+00224 }
+00225 
+00226 void ConfigElem::setUser( const QString & user )
+00227 {
+00228   m_url.setUser( user );
+00229 }
+00230 
+00231 QString ConfigElem::getUser( ) const
+00232 {
+00233   return m_url.user();
+00234 }
+00235 
+00236 QString ConfigElem::getHost( ) const
+00237 {
+00238   return m_url.host();
+00239 }
+00240 
+00241 void ConfigElem::deleteSelectedMails( )
+00242 {
+00243   //return if this account has no selected mails or
+00244   //the account is not idle or the account is not active
+00245   if( !m_pshowrecord->hasSelectedMails() || state != AccountIdle || !isActive() )
+00246   {
+00247     emit sigDeleteReady( m_strAccount );
+00248     return;
+00249   }
+00250 
+00251   //check whether we have a password for this account
+00252   //if not, ask for it
+00253   //return when no password is available
+00254   if( !assertPassword() )
+00255   {
+00256     emit sigDeleteReady( m_strAccount );
+00257     return;
+00258   }
+00259 
+00260   //get the numbers of all selected mails
+00261   MailsToDelete = m_pshowrecord->getSelectedMails();
+00262   if( MailsToDelete.empty() )
+00263   {
+00264     kdError() << "ConfigElem::deleteSelectedMails (Account " << m_strAccount << "): The account has selected mails to delete but ShowRecord::getSelectedMails has returned an empty list." << endl;
+00265     emit sigDeleteReady( m_strAccount );
+00266     return;
+00267   }
+00268 
+00269   //set account state
+00270   state = AccountDeleting;
+00271 
+00272   //start the deleting of all mails in MailsToDelete
+00273   deleteNextMail();
+00274 }
+00275 
+00276 bool ConfigElem::assertPassword( bool force )
+00277 {
+00278   //is a password stored?
+00279   if ( !hasPassword() || force )
+00280   {
+00281     //no password found, we will ask the user!
+00282     //set normal cursor
+00283     while( QApplication::overrideCursor() )
+00284       QApplication::restoreOverrideCursor();
+00285 
+00286     QCString password;      //for the password dialog to store the password
+00287     int result = KPasswordDialog::getPassword( password, i18n( "Please type in the password for %1" ).arg( getAccountName() ) );
+00288 
+00289     //set waiting cursor
+00290     QApplication::setOverrideCursor( Qt::waitCursor );
+00291 
+00292     //let's look, what the user has done :o)
+00293     if( result == KPasswordDialog::Accepted )
+00294     {
+00295       //the user has clicked OK in the password dialog
+00296       //store the password
+00297       setPassword( password );
+00298 
+00299       //save password in file or KWallet
+00300       KConfig* config = KApplication::kApplication()->config();
+00301       config->setGroup( getAccountName() );
+00302 
+00303       if( PasswordStorage == CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE )
+00304         config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, crypt( m_url ) );
+00305       else
+00306         config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, QString::null );
+00307 
+00308       if( PasswordStorage == CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET )
+00309         KWalletAccess::savePassword( getAccountName(), m_url.pass() );
+00310 
+00311       config->sync();
+00312 
+00313       //emit configuration changed signal
+00314       emit sigConfigChanged();
+00315 
+00316       //tell we have a password
+00317       return true;
+00318     }
+00319     else
+00320       //the user has clicked Cancel in the password dialog; we don't have a password
+00321       return false;
+00322   }
+00323   else
+00324     //we have already a password for this account
+00325     return true;
+00326 
+00327 }
+00328 
+00329 void ConfigElem::deleteNextMail( )
+00330 {
+00331   //if the list of mails to delete is empty, finalize the deletion and return
+00332   if( MailsToDelete.empty() )
+00333   {
+00334     commitDeletion();
+00335     return;
+00336   }
+00337 
+00338   //start job
+00339   startKIOJob( QString( "/remove/%1" ).arg( *MailsToDelete.begin() ) );
+00340   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotMailDeleted( KIO::Job* ) ) );
+00341 }
+00342 
+00343 void ConfigElem::slotMailDeleted( KIO::Job* job )
+00344 {
+00345   //stop timeout timer
+00346   pop3Timer->stop();
+00347 
+00348   //check for errors
+00349   //if an error is occured, the deletion will be canceled
+00350   //or will ask for a new password
+00351   if( job->error() == KIO::ERR_COULD_NOT_LOGIN )
+00352   {
+00353     //login failed, ask for a new password
+00354     job->showErrorDialog();
+00355     bool res = assertPassword( true );
+00356     if( res == false )
+00357     {
+00358       //we have not got a new password; cancel delete
+00359       slotFinalizeDeletion( NULL );
+00360       return;
+00361     }
+00362     //if we have got a new password, it jumps to the end of the if-statement
+00363   }
+00364   else if( job->error() != 0 )
+00365   {
+00366     //unknown error, show message and cancel delete
+00367     job->showErrorDialog();
+00368     slotFinalizeDeletion( NULL );
+00369     return;
+00370   }
+00371   else
+00372   {
+00373     //operation was successful
+00374     //remove the deleted mail from the internal mail list
+00375     m_pshowrecord->removeMail( *MailsToDelete.begin() );
+00376 
+00377     //remove the first item of the list of mails to delete
+00378     MailsToDelete.remove( MailsToDelete.begin() );
+00379 
+00380     //if the list of mails to delete is empty, finalize the deletion and return
+00381     if( MailsToDelete.empty() )
+00382     {
+00383       commitDeletion();
+00384       return;
+00385     }
+00386   }
+00387 
+00388   //delete next mail in list
+00389   deleteNextMail();
+00390 
+00391 
+00392 }
+00393 
+00394 void ConfigElem::slotFinalizeDeletion( KIO::Job* )
+00395 {
+00396   //stop timeout time
+00397   pop3Timer->stop();
+00398 
+00399   //set account state to idle
+00400   state = AccountIdle;
+00401 
+00402   //emit signal to report the deletion is ready
+00403   emit sigDeleteReady( m_strAccount );
+00404 }
+00405 
+00406 void ConfigElem::startKIOJob( const QString & path )
+00407 {
+00408   KIO::MetaData options;           //options for the pop3 job
+00409 
+00410   //set options
+00411   options.insert( "progress", "off" );
+00412   options.insert( "pipelining", "off" );
+00413   options.insert( "auth", "TEXT" );
+00414   options.insert( "tls", "off" );
+00415 
+00416   //set the given command and parameters
+00417   m_url.setPath( path );
+00418 
+00419   //print debug message
+00420   kdDebug() << "ConfigElem::startKIOJob: start KIO job on URL " << m_url.url() << endl;
+00421 
+00422   //start the job and get handle to it
+00423   pop3Job = KIO::get( m_url, false, false );
+00424 
+00425   //put options to the job
+00426   pop3Job->addMetaData( options );
+00427 
+00428   //start timeout timer
+00429   pop3Timer->start( getTimeoutTime() * 1000, true );
+00430 }
+00431 
+00432 Types::AccountState_Type ConfigElem::getState( )
+00433 {
+00434   return state;
+00435 }
+00436 
+00437 void ConfigElem::commitDeletion( )
+00438 {
+00439   //start job to commit
+00440   startKIOJob( QString( "/commit" ) );
+00441   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotFinalizeDeletion( KIO::Job* ) ) );
+00442 }
+00443 
+00444 unsigned int ConfigElem::getTimeoutTime( )
+00445 {
+00446   //return default time, if the configuration is not accessable
+00447   if( appConfig == NULL )
+00448     return DEFAULT_TIMEOUT_TIME;
+00449 
+00450   //get time from configuration
+00451   unsigned int time = appConfig->getTimeoutTime();
+00452 
+00453   //take minimum time, if get time is less
+00454   if( time < MINIMUM_TIMEOUT_TIME )
+00455     time = MINIMUM_TIMEOUT_TIME;
+00456 
+00457   return time;
+00458 }
+00459 
+00460 void ConfigElem::slotTimeout( )
+00461 {
+00462   //kill a running job
+00463   if( pop3Job != NULL )
+00464     pop3Job->kill( true );
+00465 
+00466   //show error message (during refresh if desired only)
+00467   kdError() << "Timeout error!" << endl;
+00468 
+00469   if( state != AccountRefreshing || appConfig->showConnectionErrors() )
+00470     KMessageBox::error( NULL, QString( i18n( "Time out on %1. The operation could not be finished on time" ) ).arg( m_strAccount ), i18n( "Time Out" ) );
+00471 
+00472   //call the appropriate finalize methode
+00473   switch( state )
+00474   {
+00475     case AccountIdle        : break;
+00476     case AccountDeleting    : slotFinalizeDeletion( NULL ); break;
+00477     case AccountDownloading : slotFinalizeShowMail( NULL ); break;
+00478     case AccountRefreshing  : cancelRefresh(); break;
+00479 
+00480     default : break;
+00481   }
+00482 }
+00483 
+00484 QStringList ConfigElem::getSelectedSubjects( ) const
+00485 {
+00486   return m_pshowrecord->getSelectedSubjects();
+00487 }
+00488 
+00489 bool ConfigElem::hasSelectedMails( )
+00490 {
+00491   return m_pshowrecord->hasSelectedMails();
+00492 }
+00493 
+00494 void ConfigElem::showSelectedMails( )
+00495 {
+00496   //return if this account has no selected mails or
+00497   //the account is not idle or the account is not active
+00498   if( !m_pshowrecord->hasSelectedMails() || state != AccountIdle || !isActive() )
+00499   {
+00500     emit sigShowBodiesReady( m_strAccount );
+00501     return;
+00502   }
+00503 
+00504   //check whether we have a password for this account
+00505   //if not, ask for it
+00506   //return when no password is available
+00507   if( !assertPassword() )
+00508   {
+00509     emit sigShowBodiesReady( m_strAccount );
+00510     return;
+00511   }
+00512 
+00513   //get the numbers of all selected mails
+00514   MailsToShow = m_pshowrecord->getSelectedMails();
+00515   if( MailsToShow.empty() )
+00516   {
+00517     kdError() << "ConfigElem::showSelectedMails (Account " << m_strAccount << "): The account has selected mails to show but ShowRecord::getSelectedMails has returned an empty list." << endl;
+00518     emit sigShowBodiesReady( m_strAccount );
+00519     return;
+00520   }
+00521 
+00522   //set account state
+00523   state = AccountDownloading;
+00524 
+00525   //start the deleting of all mails in MailsToDelete
+00526   showNextMail();
+00527 
+00528 }
+00529 
+00530 void ConfigElem::showNextMail( )
+00531 {
+00532   //if the list of mails to show is empty, finalize it and return
+00533   if( MailsToShow.empty() )
+00534   {
+00535     slotFinalizeShowMail( NULL );
+00536     return;
+00537   }
+00538 
+00539   //clear the class variable mailbody, which contains the downloaded mail body
+00540   mailbody.resize( 0 );
+00541 
+00542   //start job
+00543   startKIOJob( QString( "/download/%1" ).arg( *MailsToShow.begin() ) );
+00544   connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), SLOT( slotDataMailBody( KIO::Job*, const QByteArray & ) ) );
+00545   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotBodyDownloaded( KIO::Job* ) ) );
+00546 
+00547 }
+00548 
+00549 void ConfigElem::slotBodyDownloaded( KIO::Job * job )
+00550 {
+00551   //stop timeout timer
+00552   pop3Timer->stop();
+00553 
+00554   //check for errors
+00555   //if an error has occured, the download will be canceled
+00556   //or will ask for a new password
+00557   if( job->error() == KIO::ERR_COULD_NOT_LOGIN )
+00558   {
+00559     //login failed, ask for a new password
+00560     job->showErrorDialog();
+00561     bool res = assertPassword( true );
+00562     if( res == false )
+00563     {
+00564       //we have not got a new password; cancel delete
+00565       slotFinalizeShowMail( NULL );
+00566       return;
+00567     }
+00568     //if we have got a new password, jump to the end of the if-statement
+00569   }
+00570   else if( job->error() != 0 )
+00571   {
+00572     job->showErrorDialog();
+00573     slotFinalizeShowMail( NULL );
+00574     return;
+00575   }
+00576   else
+00577   {
+00578     //succesful download
+00579     //show mail
+00580     int currentMail = *MailsToShow.begin();
+00581     QString tsender = m_pshowrecord->getSenderOf( currentMail );
+00582     QString tdate = m_pshowrecord->getDateOf( currentMail );
+00583     QString tsize = m_pshowrecord->getSizeOf( currentMail );
+00584     QString tsubject = m_pshowrecord->getSubjectOf( currentMail );
+00585     QString tmailbody( m_pshowrecord->decodeMailBody( mailbody, currentMail, appConfig->allowHTML() ) );
+00586 
+00587     //emit signal to notify the opening of a window
+00588     emit sigMessageWindowOpened();
+00589 
+00590     //create and open the window
+00591     ShowMailDialog dlg( kapp->mainWidget(), m_strAccount, appConfig->allowHTML(), tsender, tdate, tsize, tsubject, tmailbody );
+00592     int ret = dlg.exec();
+00593 
+00594     //emit signal to notify the closing of a window
+00595     emit sigMessageWindowClosed();
+00596 
+00597     //cancel the download if desired
+00598     if( ret == KDialogBase::Rejected )
+00599     {
+00600       MailsToShow.clear();
+00601       commitDownloading();
+00602       return;
+00603     }
+00604 
+00605     //remove the first item of the list of mails to show
+00606     MailsToShow.remove( MailsToShow.begin() );
+00607 
+00608     //if the list of mails is empty, finalize the showing and return
+00609     if( MailsToShow.empty() )
+00610     {
+00611       commitDownloading();
+00612       return;
+00613     }
+00614   }
+00615 
+00616 
+00617   //show next mail in list
+00618   showNextMail();
+00619 }
+00620 
+00621 void ConfigElem::slotFinalizeShowMail( KIO::Job* )
+00622 {
+00623   //stop timeout time
+00624   pop3Timer->stop();
+00625 
+00626   //set account state to idle
+00627   state = AccountIdle;
+00628 
+00629   //emit signal to report the download is ready
+00630   emit sigShowBodiesReady( m_strAccount );
+00631 }
+00632 
+00633 void ConfigElem::slotDataMailBody( KIO::Job *, const QByteArray & datas )
+00634 {
+00635   if( !datas.isEmpty() )
+00636   {
+00637     //we get the next part of the mail
+00638     //append it
+00639     uint lastSize = mailbody.size();
+00640     mailbody.resize( lastSize + datas.size() );
+00641     for( uint i = 0; i < datas.size(); i++ )
+00642       mailbody[ lastSize + i ] = datas[ i ];
+00643   }
+00644 }
+00645 
+00646 void ConfigElem::commitDownloading( )
+00647 {
+00648   //start job to commit
+00649   startKIOJob( QString( "/commit" ) );
+00650   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotFinalizeShowMail( KIO::Job* ) ) );
+00651 }
+00652 
+00653 void ConfigElem::refreshMailList( )
+00654 {
+00655   //return, if account is not active
+00656   if( !isActive() )
+00657   {
+00658     emit sigRefreshReady( m_strAccount );
+00659     return;
+00660   }
+00661 
+00662   //check whether we have a password for this account
+00663   //if not, ask for it
+00664   //return when no password is available
+00665   if( !assertPassword() )
+00666   {
+00667     emit sigRefreshReady( m_strAccount );
+00668     return;
+00669   }
+00670 
+00671   //create a new ShowRecord instance
+00672   //When the refresh has finished successfully, this will
+00673   //replace the old mail list
+00674   tempMailList = new ShowRecord();
+00675 
+00676   //set account state
+00677   state = AccountRefreshing;
+00678 
+00679   //the first step is to get the UIDs
+00680   getUIDs();
+00681 }
+00682 
+00683 void ConfigElem::getUIDs( )
+00684 {
+00685   //clears the QString list, which contains all received UIDs
+00686   receivedUIDs.clear();
+00687 
+00688   //start job
+00689   startKIOJob( QString( "/uidl" ) );
+00690   connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), SLOT( slotReceiveUID( KIO::Job*, const QByteArray & ) ) );
+00691   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotUIDsReceived( KIO::Job* ) ) );
+00692 
+00693 }
+00694 
+00695 void ConfigElem::slotReceiveUID( KIO::Job*, const QByteArray& data )
+00696 {
+00697   //return, when data is empty
+00698   if( data.isEmpty() ) return;
+00699 
+00700  //cast the data to QString
+00701   QString uid( data );
+00702 
+00703   //insert the uid at the end of the UID list
+00704   receivedUIDs.append( uid );
+00705 }
+00706 
+00707 void ConfigElem::slotUIDsReceived( KIO::Job * job )
+00708 {
+00709   int number;                 //an extracted mail number
+00710   QString uid;                //an extracted uid
+00711   bool corruptData = false;   //set to TRUE, if a data is corrupt
+00712   bool isNew = false;         //state of the received mail
+00713 
+00714   //stop timeout timer
+00715   pop3Timer->stop();
+00716 
+00717   //check for errors
+00718   //if an error has occured, the refresh will be canceled
+00719   //or will ask for a new password
+00720   if( job->error() == KIO::ERR_COULD_NOT_LOGIN )
+00721   {
+00722     //login failed, ask for a new password
+00723     job->showErrorDialog();
+00724     bool res = assertPassword( true );
+00725     if( res == true )
+00726     {
+00727       //we have got a new password, try again
+00728       delete tempMailList;
+00729       refreshMailList();
+00730     }
+00731     else
+00732       //we have not got a new password; cancel refresh
+00733       cancelRefresh();
+00734 
+00735     return;
+00736   }
+00737   else if( job->error() != 0 )
+00738   {
+00739     //show error message if desired
+00740     if( appConfig->showConnectionErrors() )
+00741       job->showErrorDialog();
+00742 
+00743     cancelRefresh();
+00744     return;
+00745   }
+00746 
+00747   //analyze UIDs
+00748   if( !receivedUIDs.isEmpty() )
+00749   {
+00750     //iterate over all UIDs in the list
+00751     for ( QStringList::Iterator it = receivedUIDs.begin(); it != receivedUIDs.end(); ++it )
+00752     {
+00753       QString line = *it;
+00754 
+00755       //every line has the format "number UID", e.g.: 1 bf10d38018de7c1d628d65288d722f6a
+00756       //get the position of the separating space
+00757       int positionOfSpace = line.find( " " );
+00758 
+00759       //if no space was found, the line is corrupt
+00760       if( positionOfSpace == -1 )
+00761       {
+00762         kdError() << "ConfigElem::slotUIDsReceived: get a corrupt UID from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No space. : " << line << endl;
+00763         corruptData = true;
+00764       }
+00765       else
+00766       {
+00767         //extract mail number and uid
+00768         bool isNumber;
+00769         number = line.left( positionOfSpace ).toInt( &isNumber );
+00770         //check number
+00771         if( !isNumber )
+00772         {
+00773           //the first part is not a number
+00774           kdError() << "ConfigElem::slotUIDsReceived: get a corrupt UID from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No number found at begin. : " << line << endl;
+00775           corruptData = true;
+00776         }
+00777         else
+00778         {
+00779           //number is ok; extract uid
+00780           uid = line.mid( positionOfSpace + 1 );
+00781 
+00782           //determine about new mail or not
+00783           if( !m_pshowrecord->hasMail( uid ) )
+00784           {
+00785             //the old list doesn't contain a mail with this uid
+00786             //the mail is new
+00787             isNew = true;
+00788           }
+00789           else if( appConfig->keepNew() && m_pshowrecord->isNew( uid ) )
+00790           {
+00791             //the mail is already in the old list
+00792             //but we will leave the state of formerly new mails, because the user wants it
+00793             isNew = true;
+00794           }
+00795           else
+00796             isNew = false;
+00797 
+00798           //append mail to the list
+00799           tempMailList->appendNewMail( number, uid, isNew );
+00800 
+00801         }
+00802       }
+00803     }
+00804 
+00805     //if the data are ok, start the second step: get sizes
+00806     //otherwise cancel the refresh
+00807     if( !corruptData )
+00808       getSizes();
+00809     else
+00810       cancelRefresh();
+00811   }
+00812   else
+00813   {
+00814     //we haven't received any UIDs. The account has no mails.
+00815     //Commit refresh.
+00816     commitRefresh();
+00817   }
+00818 
+00819 }
+00820 
+00821 void ConfigElem::cancelRefresh()
+00822 {
+00823   //print error message
+00824   kdError() << m_strAccount << ": " << "Refresh canceled" << endl;
+00825 
+00826   //delete the new mail list
+00827   delete tempMailList;
+00828 
+00829   //delete old mail list and create a new empty one
+00830   delete m_pshowrecord;
+00831   m_pshowrecord = new ShowRecord();
+00832 
+00833   //emit signal
+00834   emit sigRefreshReady( m_strAccount );
+00835 
+00836   //set account state to idle
+00837   state = AccountIdle;
+00838 
+00839   //we don't need an error message, because the KIO job has shown one
+00840 }
+00841 
+00842 void ConfigElem::slotFinalizeRefresh( KIO::Job* )
+00843 {
+00844   //stop timeout time
+00845   pop3Timer->stop();
+00846 
+00847   //delete old mail list
+00848   delete m_pshowrecord;
+00849 
+00850   //assign the new list
+00851   if( tempMailList != NULL )
+00852     m_pshowrecord = tempMailList;
+00853   else
+00854     m_pshowrecord = new ShowRecord();
+00855 
+00856   //emit signal
+00857   emit sigRefreshReady( m_strAccount );
+00858 
+00859   //set account state to idle
+00860   state = AccountIdle;
+00861 }
+00862 
+00863 void ConfigElem::commitRefresh( )
+00864 {
+00865   //start job to commit
+00866   startKIOJob( QString( "/commit" ) );
+00867   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotFinalizeRefresh( KIO::Job* ) ) );
+00868 }
+00869 
+00870 void ConfigElem::getSizes( )
+00871 {
+00872   //clears the QString list, which contains all received UIDs
+00873   receivedSizes.clear();
+00874 
+00875   //start job
+00876   startKIOJob( QString( "/index" ) );
+00877   connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), SLOT( slotReceiveSize( KIO::Job*, const QByteArray & ) ) );
+00878   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotSizesReceived( KIO::Job* ) ) );
+00879 
+00880 }
+00881 
+00882 void ConfigElem::slotSizesReceived( KIO::Job * job )
+00883 {
+00884   int number;                 //an extracted mail number
+00885   long size;                   //an extracted size
+00886   bool corruptData = false;   //set to TRUE, if a data is corrupt
+00887 
+00888   //stop timeout timer
+00889   pop3Timer->stop();
+00890 
+00891   //check for errors
+00892   //if an error has occured, the refresh will be canceled
+00893   if( job->error() != 0 )
+00894   {
+00895     //show error message if desired
+00896     if( appConfig->showConnectionErrors() )
+00897       job->showErrorDialog();
+00898     cancelRefresh();
+00899     return;
+00900   }
+00901 
+00902   //analyze UIDs
+00903   if( !receivedSizes.isEmpty() )
+00904   {
+00905     //iterate over all sizes in the list
+00906     for ( QStringList::Iterator it = receivedSizes.begin(); it != receivedSizes.end(); ++it )
+00907     {
+00908       QString line = *it;
+00909 
+00910       //every line has the format "number size", e.g.: 1 1234
+00911       //get the position of the separating space
+00912       int positionOfSpace = line.find( " " );
+00913 
+00914       //if no space was found, the line is corrupt
+00915       if( positionOfSpace == -1 )
+00916       {
+00917         kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No space. : " << line << endl;
+00918         corruptData = true;
+00919       }
+00920       else
+00921       {
+00922         //extract mail number and size
+00923         bool isNumber;
+00924         number = line.left( positionOfSpace ).toInt( &isNumber );
+00925         //check number
+00926         if( !isNumber )
+00927         {
+00928           //the first part is not a number
+00929           kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No number found at begin. : " << line << endl;
+00930           corruptData = true;
+00931         }
+00932         else
+00933         {
+00934           //number is ok; extract size
+00935           size = line.mid( positionOfSpace + 1 ).toLong( &isNumber );
+00936 
+00937           //check size
+00938           if( !isNumber )
+00939           {
+00940             //the second part of the string is not a number
+00941             kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No size found at end. : " << line << endl;
+00942             corruptData = true;
+00943           }
+00944           else
+00945           {
+00946             //size is ok
+00947             //set it
+00948             tempMailList->setSize( number, size );
+00949           }
+00950         }
+00951       }
+00952     }
+00953 
+00954     //if the data are ok, start the third step: get headers
+00955     //otherwise cancel the refresh
+00956     if( !corruptData )
+00957       getHeaders();
+00958     else
+00959       cancelRefresh();
+00960   }
+00961 }
+00962 
+00963 void ConfigElem::slotReceiveSize( KIO::Job *, const QByteArray & data )
+00964 {
+00965   //return, when data is empty
+00966   if( data.isEmpty() ) return;
+00967 
+00968  //cast the data to QString
+00969   QString size( data );
+00970 
+00971   //insert the uid at the end of the sizes list
+00972   receivedSizes.append( size );
+00973 
+00974 }
+00975 
+00976 void ConfigElem::getHeaders( )
+00977 {
+00978   //get the numbers of all new mails
+00979   newMails = tempMailList->getNewMails();
+00980   if( newMails.empty() )
+00981   {
+00982     //no new mails available; copy the known headers from the old mail list
+00983     copyHeaders();
+00984     return;
+00985   }
+00986 
+00987   //get the headers
+00988   getNextHeader();
+00989 }
+00990 
+00991 void ConfigElem::getNextHeader( )
+00992 {
+00993   //if the list of mails empty, copy the known headers from the old mail list
+00994   if( newMails.empty() )
+00995   {
+00996     copyHeaders();
+00997     return;
+00998   }
+00999 
+01000   //clear temporary header store
+01001   receivedHeader.resize( 0 );
+01002 
+01003   //start job
+01004   startKIOJob( QString( "/headers/%1" ).arg( *newMails.begin() ) );
+01005   connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), this, SLOT( slotReceiveHeader( KIO::Job*, const QByteArray & ) ) );
+01006   connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotHeaderDownloaded( KIO::Job* ) ) );
+01007 
+01008 }
+01009 
+01010 void ConfigElem::slotHeaderDownloaded( KIO::Job * job )
+01011 {
+01012   //stop timeout timer
+01013   pop3Timer->stop();
+01014 
+01015   //check for errors
+01016   //if an error is occured, the download will be canceled
+01017   if( job->error() != 0 )
+01018   {
+01019     //show error message if desired
+01020     if( appConfig->showConnectionErrors() )
+01021       job->showErrorDialog();
+01022 
+01023     cancelRefresh();
+01024     return;
+01025   }
+01026 
+01027   //store header
+01028   tempMailList->setHeader( *newMails.begin(), QString( receivedHeader ) );
+01029 
+01030   //remove the first item of the list of new mails
+01031   newMails.remove( newMails.begin() );
+01032 
+01033   //if the list of new mails is empty, copy the headers of old mails to the new list
+01034   if( newMails.empty() )
+01035   {
+01036     copyHeaders();
+01037     return;
+01038   }
+01039 
+01040   //get next header
+01041   getNextHeader();
+01042 }
+01043 
+01044 void ConfigElem::copyHeaders( )
+01045 {
+01046   //get the UIDs of the old mails in the temporary mail list
+01047   QStringList UIDs = tempMailList->getUIDsOfOldMails();
+01048 
+01049   //iterate over all members of the list,
+01050   //get the header from the old list and store it in the new one
+01051   QStringList::iterator it;
+01052   for ( it = UIDs.begin(); it != UIDs.end(); ++it )
+01053   {
+01054     QString header = m_pshowrecord->getHeaderOf( *it );
+01055     tempMailList->setHeader( *it, header );
+01056   }
+01057 
+01058   //commit refresh
+01059   commitRefresh();
+01060 }
+01061 
+01062 void ConfigElem::slotReceiveHeader( KIO::Job *, const QByteArray & data )
+01063 {
+01064   if( !data.isEmpty() )
+01065   {
+01066     //we get the next part of the mail
+01067     //append it
+01068     uint lastSize = receivedHeader.size();
+01069     receivedHeader.resize( lastSize + data.size() );
+01070     for( uint i = 0; i < data.size(); i++ )
+01071       receivedHeader[ lastSize + i ] = data[ i ];
+01072   }
+01073 }
+01074 
+01075 int ConfigElem::getNumberNewMails( )
+01076 {
+01077   return m_pshowrecord->getNumberNewMails();
+01078 }
+01079 
+01080 int ConfigElem::getNumberMails( )
+01081 {
+01082   return m_pshowrecord->getNumberMails();
+01083 }
+01084 
+01085 long ConfigElem::getTotalSize( )
+01086 {
+01087   return m_pshowrecord->getTotalSize();
+01088 }
+01089 
+01090 void ConfigElem::fillMailListView( KshowmailView* view )
+01091 {
+01092   m_pshowrecord->fillMailListView( view, m_strAccount );
+01093 }
+01094 
+01095 void ConfigElem::refreshAccountListItem( )
+01096 {
+01097   if( m_pViewItem != NULL )
+01098   {
+01099     if( isActive() )
+01100     {
+01101       m_pViewItem->setText( 4, QString( "%1" ).arg( getNumberMails(), 3 ) );
+01102       m_pViewItem->setText( 5, QString( "%1" ).arg( getTotalSize(), 8 ) );
+01103     }
+01104     else
+01105     {
+01106       m_pViewItem->setText( 4, QString( "???" ) );
+01107       m_pViewItem->setText( 5, QString( "???" ) );
+01108     }
+01109   }
+01110 }
+01111 
+01112 void ConfigElem::killPOP3Job( )
+01113 {
+01114   //just try to kill, if it is not idle
+01115   if( state != AccountIdle )
+01116   {
+01117     //kill a running job
+01118     if( pop3Job != NULL )
+01119       pop3Job->kill( true );
+01120 
+01121     //stop timeout timer
+01122     pop3Timer->stop();
+01123 
+01124     //call the appropriate finalize method
+01125     switch( state )
+01126     {
+01127       case AccountDeleting    : slotFinalizeDeletion( NULL ); break;
+01128       case AccountDownloading : slotFinalizeShowMail( NULL ); break;
+01129       case AccountRefreshing  : cancelRefresh(); break;
+01130 
+01131       default : break;
+01132     }
+01133   }
+01134 }
+01135 
+01136 int ConfigElem::showSelectedHeaders( )
+01137 {
+01138   //return, if no mails are selected
+01139   if( !hasSelectedMails() )
+01140     return ConfigElem::continueShowHeaders;
+01141 
+01142   //order the mail list to show the headers of the selected mails
+01143   int ret = m_pshowrecord->showSelectedHeaders( m_strAccount );
+01144 
+01145   return ret == ShowRecord::continueShowHeaders ? ConfigElem::continueShowHeaders : ConfigElem::cancelShowHeaders;
+01146 }
+01147 
+01148 void ConfigElem::printSetup( ) const
+01149 {
+01150   kdDebug() << "Setup of " << m_strAccount << ":" << endl;
+01151   kdDebug() << "Host: " << m_url.host() << endl;
+01152   kdDebug() << "Protocol: " << m_url.protocol() << endl;
+01153   kdDebug() << "Port: " << m_url.port() << endl;
+01154   kdDebug() << "User: " << m_url.user() << endl;
+01155   kdDebug() << "Password: " << m_url.pass() << endl;
+01156 
+01157   switch( PasswordStorage )
+01158   {
+01159     case CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE    : kdDebug() << "Password Storage: don't save" << endl; break;
+01160     case CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE    : kdDebug() << "Password Storage: save in file" << endl; break;
+01161     case CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET : kdDebug() << "Password Storage: use KWallet" << endl; break;
+01162     default                                         : kdDebug() << "Password Storage: invalid value" << endl;
+01163 
+01164   }
+01165 
+01166   kdDebug() << "active: " << m_bActive << endl << endl;
+01167 
+01168 
+01169 }
+01170 
+01171 void ConfigElem::setPasswordStorage( int storage )
+01172 {
+01173   if( storage == CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE ||
+01174       storage == CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE ||
+01175       storage == CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET )
+01176 
+01177     PasswordStorage = storage;
+01178 
+01179   else
+01180 
+01181     PasswordStorage =  DEFAULT_ACCOUNT_PASSWORD_STORAGE;
+01182 }
+01183 
+01184 int ConfigElem::getPasswordStorage( ) const
+01185 {
+01186   return PasswordStorage;
+01187 }
+01188 
+01189 QString ConfigElem::getProtocol( bool upperCase ) const
+01190 {
+01191   if( upperCase )
+01192     return m_url.protocol().upper();
+01193   else
+01194     return m_url.protocol();
+01195 }
+01196 
+01197 unsigned short int ConfigElem::getPort( ) const
+01198 {
+01199   return m_url.port();
+01200 }
+01201 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/configelem_8h-source.html b/doc/html/configelem_8h-source.html new file mode 100644 index 0000000..697d9ce --- /dev/null +++ b/doc/html/configelem_8h-source.html @@ -0,0 +1,363 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/configelem.h Source File + + + + +
+
+
+
+ +

configelem.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           configelem.h  -  description
+00003                              -------------------
+00004     begin                : Tue May 9 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef CONFIGELEM_H
+00019 #define CONFIGELEM_H
+00020 
+00021 //C headers
+00022 #include <time.h>
+00023 #include <unistd.h>
+00024 #include <stdlib.h>
+00025 #include <stdio.h>
+00026 
+00027 //QT headers
+00028 #include <qstring.h>
+00029 #include <qlistview.h>
+00030 #include <qdom.h>
+00031 #include <qobject.h>
+00032 #include <qtimer.h>
+00033 #include <qregexp.h>
+00034 #include <qdir.h>
+00035 #include <qfile.h>
+00036 #include <qtextstream.h>
+00037 
+00038 //KDE headers
+00039 #include <kurl.h>
+00040 #include <kconfig.h>
+00041 #include <kdebug.h>
+00042 #include <kpassdlg.h>
+00043 #include <kio/job.h>
+00044 #include <kio/global.h>
+00045 #include <kmessagebox.h>
+00046 #include <kapplication.h>
+00047 
+00048 //KShowmail headers
+00049 #include "showrecord.h"
+00050 #include "constants.h"
+00051 #include "types.h"
+00052 #include "configlist.h"
+00053 #include "showmaildialog.h"
+00054 #include "decodeRFC2047.h"
+00055 #include "kshowmailview.h"
+00056 #include "encryption.h"
+00057 #include "kwalletaccess.h"
+00058 #include "headerfilter.h"
+00059 #include "filterlog.h"
+00060 
+00061 
+00062 
+00063 using namespace Constants;
+00064 using namespace Types;
+00065 using namespace Encryption;
+00066 
+00067 //forward class declarations
+00068 class KshowmailView;
+00069 class ConfigList;
+00070 class ShowRecordElem;
+00071 class ShowRecord;
+00072 
+00086 class ConfigElem : public QObject {
+00087 
+00088   Q_OBJECT
+00089 
+00090   public:
+00091 
+00096     static const int continueShowHeaders;
+00097 
+00102     static const int cancelShowHeaders;
+00103 
+00109     ConfigElem();
+00110 
+00115     ConfigElem ( ConfigList* config );
+00116 
+00124     ConfigElem( ConfigElem* pElem );
+00125 
+00134     ConfigElem( ConfigList* config, const QString& account );
+00135 
+00140     ~ConfigElem();
+00141 
+00146     bool isActive() const;
+00147 
+00152     void setActive( bool active );
+00153 
+00158    QString getAccountName() const;
+00159 
+00164    void setAccountName( QString name );
+00165 
+00170    QString getPassword() const;
+00171 
+00177    void setPassword( const QString& password );
+00178 
+00183    bool hasPassword() const;
+00184 
+00189    KURL getURL() const;
+00190 
+00196    void setListViewItem( QListViewItem* item );
+00197 
+00203    QListViewItem* getListViewItem();
+00204 
+00210    bool isSelected() const;
+00211 
+00215    void clearMailList();
+00216 
+00221    void setHost( const QString& host );
+00222 
+00227    QString getHost() const;
+00228 
+00233    void setProtocol( const QString& protocol );
+00234 
+00240    QString getProtocol( bool upperCase = false ) const;
+00241 
+00246    void setTLS( bool tls );
+00247 
+00253    bool getTLS() const;
+00254 
+00259    void setPort( unsigned short int port );
+00260 
+00265    unsigned short int getPort() const;
+00266 
+00271    void setUser( const QString& user );
+00272 
+00277    QString getUser() const;
+00278 
+00284    void setPasswordStorage( int storage );
+00285 
+00291    int getPasswordStorage() const;
+00292 
+00293 
+00301   void saveOptions( QDomDocument& doc, QDomElement& parent );
+00302 
+00307   void readStoredMails( QDomElement& parent );
+00308 
+00313   int count();
+00314 
+00320   void deleteSelectedMails();
+00321 
+00328   void showSelectedMails();
+00329 
+00338   bool assertPassword( bool force = false );
+00339 
+00344   Types::AccountState_Type getState();
+00345 
+00350   QStringList getSelectedSubjects() const;
+00351 
+00358   bool hasSelectedMails();
+00359 
+00368   void refreshMailList( FilterLog* log = NULL );
+00369 
+00374   int getNumberNewMails();
+00375 
+00380   int getNumberMails();
+00381 
+00386   long getTotalSize();
+00387 
+00393   void fillMailListView( KshowmailView* view );
+00394 
+00400   void refreshAccountListItem();
+00401 
+00405   void killPOP3Job();
+00406 
+00413   int showSelectedHeaders();
+00414 
+00418   void printSetup() const;
+00419 
+00424   void reloadFilterSettings();
+00425 
+00426 
+00427   private:
+00428 
+00433     ConfigList* appConfig;
+00434 
+00439     FilterLog* FLog;
+00440 
+00444     Types::AccountState_Type state;
+00445 
+00453     int PasswordStorage;
+00454 
+00458     bool m_bActive;
+00459 
+00463     QString m_strAccount;
+00464 
+00468     QListViewItem* m_pViewItem;
+00469 
+00473     ShowRecord* m_pshowrecord;
+00474 
+00478     KURL m_url;
+00479 
+00484     int secureLoginType;
+00485 
+00489     bool useTLS;
+00490 
+00495     QByteArray mailbody;
+00496 
+00505     MailNumberList_Type MailsToDelete;
+00506 
+00513     MailToDownloadMap_Type MailsToDownload;
+00514 
+00522     MailNumberList_Type MailsToShow;
+00523 
+00531     MailNumberList_Type newMails;
+00532 
+00536     KIO::TransferJob* pop3Job;
+00537 
+00542     QTimer* pop3Timer;
+00543 
+00549     ShowRecord* tempMailList;
+00550 
+00555     QStringList receivedUIDs;
+00556 
+00561     QStringList receivedSizes;
+00562 
+00567     QByteArray receivedHeader;
+00568 
+00572     HeaderFilter headerFilter;
+00573 
+00581     bool filterApplied;
+00582 
+00587     bool deletionPerformedByFilters;
+00588 
+00593     bool refreshPerformedByFilters;
+00594 
+00599     bool downloadActionsInvoked;
+00600 
+00604     int moveCounter;
+00605 
+00609     void init();
+00610 
+00619     void deleteNextMail();
+00620 
+00627     void commitDeletion();
+00628 
+00638     void showNextMail();
+00639 
+00646     void commitDownloading();
+00647 
+00652     void startKIOJob( const QString& path );
+00653 
+00663     unsigned int getTimeoutTime();
+00664 
+00672     void getUIDs();
+00673 
+00681     void getSizes();
+00682 
+00687     void getHeaders();
+00688 
+00699     void getNextHeader();
+00700 
+00707     void copyHeaders();
+00708 
+00720     void applyFilters();
+00721 
+00730     void applyFiltersDeleted();
+00731 
+00736     void cancelRefresh();
+00737 
+00747     void commitRefresh();
+00748 
+00764     void swapMailLists();
+00765 
+00772     void doDownloadActions();
+00773 
+00783     void getNextMailForDownloadActions();
+00784 
+00790     bool isMailDir( const QDir& path );
+00791 
+00798     bool writeToMailBox( const QString& mail, const QString& box );
+00799 
+00800   private slots:
+00801 
+00816     void slotMailDeleted( KIO::Job* job );
+00817 
+00826     void slotFinalizeDeletion( KIO::Job* );
+00827 
+00845     void slotBodyDownloaded( KIO::Job* job );
+00846 
+00862     void slotMailDownloadedForAction( KIO::Job* job );
+00863 
+00872     void slotDataMailBody( KIO::Job*, const QByteArray & datas );
+00873 
+00883     void slotFinalizeShowMail( KIO::Job* );
+00884 
+00892     void slotTimeout();
+00893 
+00902     void slotReceiveUID( KIO::Job*, const QByteArray& data );
+00903 
+00911     void slotUIDsReceived( KIO::Job* job );
+00912 
+00921     void slotReceiveSize( KIO::Job*, const QByteArray& data );
+00922 
+00929     void slotSizesReceived( KIO::Job* job );
+00930 
+00931 
+00937     void slotFinalizeRefresh( KIO::Job* );
+00938 
+00954     void slotHeaderDownloaded( KIO::Job* job );
+00955 
+00964     void slotReceiveHeader( KIO::Job*, const QByteArray& data );
+00965 
+00966 
+00967   signals:
+00968 
+00973     void sigDeleteReady( QString account );
+00974 
+00980     void sigShowBodiesReady( QString account );
+00981 
+00985     void sigConfigChanged();
+00986 
+00990     void sigMessageWindowOpened();
+00991 
+00995     void sigMessageWindowClosed();
+00996 
+01001     void sigRefreshReady( QString account );
+01002 
+01003   protected:
+01004 
+01010     bool isSpam( QByteArray mail ) const;
+01011 
+01016     bool isSpamAssassinRunning() const;
+01017 
+01018 
+01019 
+01020 };
+01021 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/configlist_8cpp-source.html b/doc/html/configlist_8cpp-source.html new file mode 100644 index 0000000..2564682 --- /dev/null +++ b/doc/html/configlist_8cpp-source.html @@ -0,0 +1,1055 @@ + + +kshowmail: kshowmail/configlist.cpp Source File + + + + +
+
+ +

configlist.cpp

00001 /***************************************************************************
+00002                           configlist.cpp  -  description
+00003                              -------------------
+00004     begin                : Tue May 9 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007 
+00008     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
+00009  ***************************************************************************/
+00010 
+00011 /***************************************************************************
+00012  *                                                                         *
+00013  *   This program is free software; you can redistribute it and/or modify  *
+00014  *   it under the terms of the GNU General Public License as published by  *
+00015  *   the Free Software Foundation; either version 2 of the License, or     *
+00016  *   (at your option) any later version.                                   *
+00017  *                                                                         *
+00018  ***************************************************************************/
+00019 #include <stdio.h>
+00020 #include <stdlib.h>
+00021 
+00022 #include <qfile.h>
+00023 
+00024 #include <kconfig.h>
+00025 #include <ksavefile.h>
+00026 #include <kapplication.h>
+00027 #include <kstandarddirs.h>
+00028 #include <kaudioplayer.h>
+00029 #include <kdebug.h>
+00030 
+00031 #include "configlist.h"
+00032 #include "filter.h"
+00033 
+00034 ConfigList::ConfigList() : QObject()
+00035 {
+00036        setAutoDelete (true);
+00037 
+00038     //assume, no window to show a mail is open at beginning
+00039     ctrOpenMessageWindows = 0;
+00040 
+00041     //set default values
+00042     m_bShowMessage = DEFAULT_ACTION_NEW_MAIL_ALERTWINDOW;
+00043     m_bShowMainWindow = DEFAULT_ACTION_NEW_MAIL_MAINWINDOW;
+00044     m_bBeep = DEFAULT_ACTION_NEW_MAIL_BEEP;
+00045     m_bSound = DEFAULT_ACTION_NEW_MAIL_SOUND;
+00046     m_bCommand = DEFAULT_ACTION_NEW_MAIL_COMMAND;
+00047     m_bMinimize = DEFAULT_ACTION_NO_NEW_MAIL_MINIMIZE;
+00048     m_bTerminate = DEFAULT_ACTION_NO_NEW_MAIL_TERMINATE;
+00049 
+00050     m_bConfirmClose = DEFAULT_CONFIRM_CLOSE;
+00051     m_bConfirmDelete = DEFAULT_CONFIRM_DELETE;
+00052     m_bStartMinimized = DEFAULT_START_MINIMIZED;
+00053     m_bCloseMinimizes = DEFAULT_CLOSE_TO_TRAY;
+00054     m_bMinimizeToTray = DEFAULT_MINIMIZE_TO_TRAY;
+00055     m_bShowConnectionErrors = DEFAULT_SHOW_CONNECTION_ERRORS;
+00056     m_bKeepNew = DEFAULT_KEEP_NEW;
+00057     m_nInitTimer = DEFAULT_INITIAL_TIME;
+00058     m_nIntervalTimer = DEFAULT_INTERVAL_TIME;
+00059     m_nPop3Timer = DEFAULT_TIMEOUT_TIME;
+00060 }
+00061 
+00062 int ConfigList::compareItems( QCollection::Item item1, QCollection::Item item2 )
+00063 {
+00064   ConfigElem* p1 = (ConfigElem*)item1;
+00065   ConfigElem* p2 = (ConfigElem*)item2;
+00066 
+00067   return strcmp( p1->getAccountName(), p2->getAccountName() );
+00068 }
+00069 
+00070 QCollection::Item ConfigList::newItem( QCollection::Item item )
+00071 {
+00072   return new ConfigElem( (ConfigElem*)item );
+00073 }
+00074 
+00075 void ConfigList::saveOptions ()
+00076 {
+00077   kdDebug () << "ConfigList::saveOptions" << endl;
+00078 
+00079   //create XML document
+00080   QDomDocument doc( "KShowmail" );
+00081 
+00082   //create root element
+00083   QDomElement accounts = doc.createElement( ROOT_ELEMENT );
+00084 
+00085   //create for every account an element
+00086   //the account saves its mails into this element
+00087   //after that the element will be appended to the root element
+00088   int i = 0;
+00089   ConfigElem* account = NULL;               //current processed account
+00090   QPtrListIterator<ConfigElem> it( *this ); //iterator for the account list
+00091 
+00092   //iterate over all accounts
+00093   while( ( account = it.current() ) != NULL )
+00094   {
+00095     //increment iterator to next account
+00096     ++it;
+00097 
+00098     //save mails
+00099     QDomElement accElem = doc.createElement( QString( ACCOUNT_ELEMENT ) + QString( "%1" ).arg( i++ ) );
+00100     account->saveOptions( doc, accElem ); //account saves the mails into given XML document and the setup into the application config file
+00101     accounts.appendChild( accElem );
+00102 
+00103   }
+00104 
+00105   //append root element to XML document
+00106   doc.appendChild( accounts );
+00107 
+00108   //save XML document
+00109   QCString str = doc.toCString(); //convert XML document to a string
+00110   QString cachefilename = locateLocal( "config", "kshowmail.xml" ); //get file path
+00111   KSaveFile file( cachefilename, 0600 );  //create file
+00112 
+00113   if( file.status() != 0 )
+00114   {
+00115     kdError() << "Couldn't save mail cache. " << strerror( file.status() );
+00116     return;
+00117   }
+00118 
+00119     //write data
+00120   file.file()->writeBlock( str.data(), str.length() );
+00121 
+00122     //close file
+00123   if( !file.close() )
+00124   {
+00125     kdError () << "Couldn't save mail cache. " << strerror(file.status());
+00126     return;
+00127   }
+00128 }
+00129 
+00130 
+00131 void ConfigList::setList (QListView* list)
+00132 {
+00133        QPixmap pix (::locate ("data", "kshowmail/pics/ok.png"));
+00134        list->clear ();
+00135        int nIndex = at ();
+00136        QListViewItem* last = NULL;
+00137        for (ConfigElem* pElem = first(); pElem; pElem = next())
+00138        {
+00139               last = new QListViewItem (list, last, "", pElem->getAccountName(), pElem->getURL().host(), pElem->getURL().user(), "?");
+00140         pElem->setListViewItem( last );
+00141               if (pElem->isActive())
+00142                      pElem->getListViewItem()->setPixmap (0, pix);
+00143        }
+00144 
+00145        if (nIndex >= 0)
+00146        {
+00147               at (nIndex);
+00148 //            list->setCurrentItem (nIndex);
+00149        }
+00150 }
+00151 
+00152 
+00153 bool ConfigList::setItem (const char* item)
+00154 {
+00155        int nPos = at ();
+00156        ConfigElem* pActive = new ConfigElem (this, item);
+00157        bool result = (find (pActive) >= 0);
+00158        delete pActive;
+00159        if (result)
+00160               return true;
+00161        else
+00162        {
+00163               at (nPos);
+00164               return false;
+00165        }
+00166 }
+00167 
+00168 void ConfigList::beep ()
+00169 {
+00170        if (m_bBeep)
+00171               kapp->beep ();
+00172 }
+00173 
+00174 void ConfigList::playSound ()
+00175 {
+00176        if (m_bSound)
+00177        playSound (m_strSoundFile);
+00178 }
+00179 
+00180 void ConfigList::playSound (const char* file)
+00181 {
+00182        KAudioPlayer::play(file);
+00183 }
+00184 
+00185 
+00186 void ConfigList::applyFilters ()
+00187 {
+00188   if (Filter::_status != Filter::off)
+00189   {
+00190     for (ConfigElem* pElem = first(); pElem; pElem = next())
+00191     {
+00192       if (pElem->isActive() )
+00193       {
+00194         pElem->applyFilters ();
+00195       }
+00196     }
+00197   }
+00198 }
+00199 
+00200 int ConfigList::getRefreshTimeInterval( ) const
+00201 {
+00202   return m_nIntervalTimer;
+00203 }
+00204 
+00205 void ConfigList::setRefreshTimeInterval( unsigned int interval )
+00206 {
+00207   m_nIntervalTimer = interval;
+00208 }
+00209 
+00210 bool ConfigList::AutoRefreshOn( ) const
+00211 {
+00212   return ( m_nIntervalTimer > 0 );
+00213 }
+00214 
+00215 bool ConfigList::hasActiveAccounts( )
+00216 {
+00217   bool activeAccountFound = false;    //when a active account was found, this will be set to TRUE
+00218   ConfigElem* currentAccount;         //saved current account
+00219   ConfigElem* Account;                //used by the search
+00220 
+00221   //save the current account
+00222   currentAccount = current();
+00223 
+00224   //get the first account
+00225   Account = first();
+00226 
+00227   //looking for an active account
+00228   while( Account != NULL && !activeAccountFound )
+00229   {
+00230     //have we found one?
+00231     activeAccountFound = Account->isActive();
+00232 
+00233     //get next account
+00234     Account = next();
+00235   }
+00236 
+00237   //set the saved account to current
+00238   if( currentAccount != NULL )
+00239     findRef( currentAccount );
+00240 
+00241   //return the result
+00242   return activeAccountFound;
+00243 }
+00244 
+00245 
+00246 uint ConfigList::getTimeoutTime( ) const
+00247 {
+00248   return m_nPop3Timer;
+00249 }
+00250 
+00251 void ConfigList::setTimeoutTime( uint time )
+00252 {
+00253   if( time < MINIMUM_TIMEOUT_TIME )
+00254     m_nPop3Timer = MINIMUM_TIMEOUT_TIME;
+00255   else
+00256     m_nPop3Timer = time;
+00257 }
+00258 
+00259 ConfigElem* ConfigList::getSelectedAccount( )
+00260 {
+00261   //get the first account in the list
+00262   ConfigElem* account = first();
+00263 
+00264   //return NULL if there are no accounts
+00265   if( account == NULL )
+00266     return NULL;
+00267 
+00268   //return the account, if it is selected
+00269   if( account->isSelected() )
+00270     return account;
+00271 
+00272   //iterate over all accounts
+00273   bool selectedAccountFound = false;  //is TRUE, if a selected account was found
+00274   while( account != NULL && !selectedAccountFound )
+00275   {
+00276     //get next account
+00277     account = next();
+00278 
+00279     //is the account selected?
+00280     if( account != NULL )
+00281       selectedAccountFound = account->isSelected();
+00282     else
+00283       selectedAccountFound = false;
+00284   }
+00285 
+00286   //return the current account if we have found a selected account
+00287   //otherwise return FALSE
+00288   if( selectedAccountFound )
+00289     return account;
+00290   else
+00291     return NULL;
+00292 }
+00293 
+00294 void ConfigList::deleteSelectedMails( )
+00295 {
+00296   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00297   ConfigElem* account;                        //account to process
+00298 
+00299   //clear the map, which contains the names of the accounts,
+00300   //which have gotten an order to delete
+00301   AccountDeletionMap.clear();
+00302 
+00303   //refresh connects
+00304   connectAccounts();
+00305 
+00306   //inserts an item for every account which will get an order to delete
+00307   //its selected mails. The key is the account name and the data is TRUE.
+00308   //it is important to do this in a seperate iteration because this avoids
+00309   //race conditions
+00310   while( ( account = it.current() ) != NULL )
+00311   {
+00312     //insert item
+00313     AccountDeletionMap.insert( account->getAccountName(), true );
+00314 
+00315     //get next account
+00316     ++it;
+00317   }
+00318 
+00319   //order all accounts to delete its selected mail
+00320   it.toFirst();
+00321   while( ( account = it.current() ) != NULL )
+00322   {
+00323     account->deleteSelectedMails();
+00324 
+00325     //get next account
+00326     ++it;
+00327   }
+00328 }
+00329 
+00330 void ConfigList::slotAccountConfigChanged( )
+00331 {
+00332   emit sigConfigChanged();
+00333 }
+00334 
+00335 void ConfigList::slotCheckDeletionState( QString account )
+00336 {
+00337   bool accountDeleting = false;     //set to TRUE if an account is still deleting
+00338   AccountTaskMap_Type::Iterator it; //iterator over the account deletion map
+00339 
+00340   //set the appropriate item in AccountDeletionMap to FALSE
+00341   AccountDeletionMap[ account ] = false;
+00342 
+00343   //iterate over the account deletion map to check, whether all accounts
+00344   //are ready
+00345   for ( it = AccountDeletionMap.begin(); it != AccountDeletionMap.end(); ++it )
+00346   {
+00347     if( *it == true )
+00348       accountDeleting = true;
+00349   }
+00350 
+00351   //emit sigDeleteReady if all accounts are ready
+00352   if( !accountDeleting )
+00353     emit sigDeleteReady();
+00354 }
+00355 
+00356 void ConfigList::connectAccounts( )
+00357 {
+00358   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00359   ConfigElem* account;                        //account to connect
+00360 
+00361   while( ( account = it.current() ) != NULL )
+00362   {
+00363     //disconnect old connections
+00364     account->disconnect();
+00365 
+00366     //connect
+00367     connect( account, SIGNAL( sigConfigChanged() ), this, SLOT( slotAccountConfigChanged() ) );
+00368     connect( account, SIGNAL( sigDeleteReady( QString ) ), this, SLOT( slotCheckDeletionState( QString ) ) );
+00369     connect( account, SIGNAL( sigShowBodiesReady( QString ) ), this, SLOT( slotCheckShowBodiesState( QString ) ) );
+00370     connect( account, SIGNAL( sigMessageWindowOpened() ), this, SLOT( slotMessageWindowOpened() ) );
+00371     connect( account, SIGNAL( sigMessageWindowClosed() ), this, SLOT( slotMessageWindowClosed() ) );
+00372     connect( account, SIGNAL( sigRefreshReady( QString ) ), this, SLOT( slotCheckRefreshState( QString ) ) );
+00373 
+00374     //get next account
+00375     ++it;
+00376   }
+00377 }
+00378 
+00379 void ConfigList::setConfirmDeletion( bool confirm )
+00380 {
+00381   m_bConfirmDelete = confirm;
+00382 }
+00383 
+00384 bool ConfigList::confirmDeletion( )
+00385 {
+00386   return m_bConfirmDelete;
+00387 }
+00388 
+00389 QStringList ConfigList::getSelectedSubjects( ) const
+00390 {
+00391   QStringList subjects;                       //contains all subjects
+00392   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00393   ConfigElem* account;                        //current account
+00394 
+00395   while( ( account = it.current() ) != NULL )
+00396   {
+00397     //get subjects of the current account and append them to the list
+00398     subjects += account->getSelectedSubjects();
+00399 
+00400     //get next account
+00401     ++it;
+00402   }
+00403 
+00404   return subjects;
+00405 }
+00406 
+00407 bool ConfigList::hasSelectedMails( )
+00408 {
+00409   bool foundSelected = false;                 //set to TRUE, when an account with selected mails was found
+00410   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00411   ConfigElem* account;                        //current account
+00412 
+00413   while( ( account = it.current() ) != NULL && !foundSelected )
+00414   {
+00415     foundSelected = account->hasSelectedMails();
+00416 
+00417     //get next account
+00418     ++it;
+00419   }
+00420 
+00421   return foundSelected;
+00422 
+00423 }
+00424 
+00425 void ConfigList::showSelectedMails( )
+00426 {
+00427   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00428   ConfigElem* account;                        //account to process
+00429 
+00430   //clear the map, which contains the names of the accounts,
+00431   //which have gotten an order to show mails
+00432   AccountShowBodiesMap.clear();
+00433 
+00434   //refresh connects
+00435   connectAccounts();
+00436 
+00437   //inserts an item for every account which will get an order to show
+00438   //its selected mails. The key is the account name and the data is TRUE.
+00439   //it is important to do this in a seperate iteration because this avoids
+00440   //race conditions
+00441   while( ( account = it.current() ) != NULL )
+00442   {
+00443     //insert item
+00444     AccountShowBodiesMap.insert( account->getAccountName(), true );
+00445 
+00446     //get next account
+00447     ++it;
+00448   }
+00449 
+00450   //order all accounts to show its selected mail
+00451   it.toFirst();
+00452   while( ( account = it.current() ) != NULL )
+00453   {
+00454     account->showSelectedMails();
+00455 
+00456     //get next account
+00457     ++it;
+00458   }
+00459 
+00460 }
+00461 
+00462 void ConfigList::slotCheckShowBodiesState( QString account )
+00463 {
+00464   bool accountDownloading = false;    //set to TRUE if an account is downloading mail body yet
+00465   AccountTaskMap_Type::Iterator it;   //iterator over the account map
+00466 
+00467   //set the appropriate item in AccountShowBodiesMap to FALSE
+00468   AccountShowBodiesMap[ account ] = false;
+00469 
+00470   //iterate over the account map to check, whether all accounts
+00471   //are ready
+00472   for ( it = AccountShowBodiesMap.begin(); it != AccountShowBodiesMap.end(); ++it )
+00473   {
+00474     if( *it == true )
+00475       accountDownloading = true;
+00476   }
+00477 
+00478   //emit sigShowBodiesReady if all accounts are ready
+00479   //and assume all windows to show the mails are closed
+00480   if( !accountDownloading )
+00481   {
+00482     emit sigShowBodiesReady();
+00483     ctrOpenMessageWindows = 0;
+00484   }
+00485 }
+00486 
+00487 void ConfigList::setAllowHTML( bool allowHTML )
+00488 {
+00489   m_bAllowHTML = allowHTML;
+00490 }
+00491 
+00492 bool ConfigList::allowHTML( ) const
+00493 {
+00494   return m_bAllowHTML;
+00495 }
+00496 
+00497 void ConfigList::slotMessageWindowOpened( )
+00498 {
+00499   //increment the window counter
+00500   ctrOpenMessageWindows++;
+00501 
+00502   //if the counter was incremented from zero
+00503   //(the first window was opened), emit the
+00504   //signal
+00505   if( ctrOpenMessageWindows == 1 )
+00506     emit sigMessageWindowOpened();
+00507 }
+00508 
+00509 void ConfigList::slotMessageWindowClosed( )
+00510 {
+00511   //decrement the window counter
+00512   ctrOpenMessageWindows--;
+00513   if( ctrOpenMessageWindows < 0 )
+00514     ctrOpenMessageWindows = 0;
+00515 
+00516   //if counter is zero (all windows was closed),
+00517   //emit signal
+00518   if( ctrOpenMessageWindows == 0 )
+00519     emit sigAllMessageWindowsClosed();
+00520 }
+00521 
+00522 void ConfigList::refreshMailLists( )
+00523 {
+00524   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00525   ConfigElem* account;                        //account to process
+00526 
+00527   //return, if no accounts available
+00528   if( count() == 0 )
+00529   {
+00530     emit sigRefreshReady();
+00531     return;
+00532   }
+00533 
+00534   //clear the map, which contains the names of the accounts,
+00535   //which have gotten an order to show mails
+00536   AccountRefreshMap.clear();
+00537 
+00538   //refresh connects
+00539   connectAccounts();
+00540 
+00541   //inserts an item for every account which will get an order to refresh
+00542   //its mail list. The key is the account name and the data is TRUE.
+00543   //it is important to do this in a seperate iteration because this avoids
+00544   //race conditions
+00545   while( ( account = it.current() ) != NULL )
+00546   {
+00547     //insert item
+00548     AccountRefreshMap.insert( account->getAccountName(), true );
+00549 
+00550     //get next account
+00551     ++it;
+00552   }
+00553 
+00554   //order all accounts to refresh their mail lists
+00555   it.toFirst();
+00556   while( ( account = it.current() ) != NULL )
+00557   {
+00558     account->refreshMailList();
+00559 
+00560     //get next account
+00561     ++it;
+00562   }
+00563 
+00564 }
+00565 
+00566 void ConfigList::slotCheckRefreshState( QString account )
+00567 {
+00568   bool accountRefreshing = false;    //set to TRUE if an account is still refreshing
+00569   AccountTaskMap_Type::Iterator it;   //iterator over the account map
+00570 
+00571   //set the appropriate item in AccountRefreshMap to FALSE
+00572   AccountRefreshMap[ account ] = false;
+00573 
+00574   //iterate over the account map to check whether all accounts
+00575   //are ready
+00576   for ( it = AccountRefreshMap.begin(); it != AccountRefreshMap.end(); ++it )
+00577   {
+00578     if( *it == true )
+00579       accountRefreshing = true;
+00580   }
+00581 
+00582   //emit sigRefreshReady if all accounts are ready
+00583   if( !accountRefreshing )
+00584   {
+00585     emit sigRefreshReady();
+00586   }
+00587 
+00588 }
+00589 
+00590 int ConfigList::getNumberNewMails( )
+00591 {
+00592   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00593   ConfigElem* account;                        //account to process
+00594   int number = 0;                             //number of new mails
+00595 
+00596   //iterate over all accounts and sum up the number of new mails
+00597   while( ( account = it.current() ) != NULL )
+00598   {
+00599    number += account->getNumberNewMails();
+00600 
+00601     //get next account
+00602     ++it;
+00603   }
+00604 
+00605   return number;
+00606 }
+00607 
+00608 int ConfigList::getNumberMails( )
+00609 {
+00610   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00611   ConfigElem* account;                        //account to process
+00612   int number = 0;                             //number of mails
+00613 
+00614   //iterate over all accounts and sum up the number of mails
+00615   while( ( account = it.current() ) != NULL )
+00616   {
+00617     number += account->getNumberMails();
+00618 
+00619     //get next account
+00620     ++it;
+00621   }
+00622 
+00623   return number;
+00624 }
+00625 
+00626 long ConfigList::getTotalSize( )
+00627 {
+00628   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00629   ConfigElem* account;                        //account to process
+00630   long size = 0;                               //total size of all mails
+00631 
+00632   //iterate over all accounts and sum up the size of all mails
+00633   while( ( account = it.current() ) != NULL )
+00634   {
+00635     size += account->getTotalSize();
+00636 
+00637     //get next account
+00638     ++it;
+00639   }
+00640 
+00641   return size;
+00642 }
+00643 
+00644 void ConfigList::fillMailListView( KshowmailView * view )
+00645 {
+00646   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00647   ConfigElem* account;                        //account to process
+00648 
+00649   //iterate over all accounts and order the active accounts to fill their mails
+00650   //into the list view
+00651   while( ( account = it.current() ) != NULL )
+00652   {
+00653     if( account->isActive() )
+00654       account->fillMailListView( view );
+00655 
+00656     //get next account
+00657     ++it;
+00658   }
+00659 
+00660 }
+00661 
+00662 bool ConfigList::showMainWindowForNewMails( )
+00663 {
+00664   return m_bShowMainWindow;
+00665 }
+00666 
+00667 bool ConfigList::showAlertMessageForNewMails( )
+00668 {
+00669   return m_bShowMessage;
+00670 }
+00671 
+00672 bool ConfigList::quitNoNewMails( )
+00673 {
+00674   return m_bTerminate;
+00675 }
+00676 
+00677 bool ConfigList::minimizeMainWindowNoNewMails( )
+00678 {
+00679   return m_bMinimize;
+00680 }
+00681 
+00682 int ConfigList::getInitTime( )
+00683 {
+00684   return m_nInitTimer;
+00685 }
+00686 
+00687 void ConfigList::setInitTime( int time )
+00688 {
+00689   if( time >= 0 )
+00690     m_nInitTimer = time;
+00691   else
+00692     m_nInitTimer = 0;
+00693 }
+00694 
+00695 bool ConfigList::hasInitTime( )
+00696 {
+00697   return m_nInitTimer > 0;
+00698 }
+00699 
+00700 void ConfigList::refreshAccountList( )
+00701 {
+00702   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00703   ConfigElem* account;                        //account to process
+00704 
+00705   //iterate over all accounts and order the account to refresh its
+00706   //account list view item
+00707   while( ( account = it.current() ) != NULL )
+00708   {
+00709     account->refreshAccountListItem();
+00710 
+00711     //get next account
+00712     ++it;
+00713   }
+00714 
+00715 }
+00716 
+00717 void ConfigList::killPOP3Jobs( )
+00718 {
+00719   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00720   ConfigElem* account;                        //account to process
+00721 
+00722   //iterate over all accounts and order the account to kill
+00723   //a running pop3 job
+00724   while( ( account = it.current() ) != NULL )
+00725   {
+00726     account->killPOP3Job();
+00727 
+00728     //get next account
+00729     ++it;
+00730   }
+00731 }
+00732 
+00733 void ConfigList::showSelectedHeaders( )
+00734 {
+00735   QPtrListIterator<ConfigElem> it( *this );   //to iterate over all accounts
+00736   ConfigElem* account;                        //account to process
+00737   int showNextHeader = ConfigElem::continueShowHeaders; //return value of ConfigElem::showSelectedHeaders
+00738 
+00739   //iterate over all accounts and order the account to show
+00740   //the headers of all selected mails.
+00741   while( ( account = it.current() ) != NULL && showNextHeader == ConfigElem::continueShowHeaders )
+00742   {
+00743     if( account->hasSelectedMails() )
+00744       showNextHeader = account->showSelectedHeaders();
+00745 
+00746     //get next account
+00747     ++it;
+00748   }
+00749 }
+00750 
+00751 void ConfigList::refreshSetup( KListView* view )
+00752 {
+00753   //get application config object (kshowmailrc)
+00754   config = KApplication::kApplication()->config();
+00755 
+00756   //read actions group
+00757   config->setGroup( CONFIG_GROUP_ACTIONS );
+00758 
+00759   m_bShowMessage = config->readBoolEntry( CONFIG_ENTRY_NEW_MAIL_ALERTWINDOW, DEFAULT_ACTION_NEW_MAIL_ALERTWINDOW );
+00760   m_bShowMainWindow = config->readBoolEntry( CONFIG_ENTRY_NEW_MAIL_MAINWINDOW, DEFAULT_ACTION_NEW_MAIL_MAINWINDOW );
+00761   m_bBeep = config->readBoolEntry( CONFIG_ENTRY_NEW_MAIL_BEEP, DEFAULT_ACTION_NEW_MAIL_BEEP );
+00762   m_bSound = config->readBoolEntry( CONFIG_ENTRY_NEW_MAIL_SOUND, DEFAULT_ACTION_NEW_MAIL_SOUND );
+00763   m_strSoundFile = config->readEntry( CONFIG_ENTRY_NEW_MAIL_SOUNDPATH );
+00764   m_bCommand = config->readBoolEntry( CONFIG_ENTRY_NEW_MAIL_COMMAND, DEFAULT_ACTION_NEW_MAIL_COMMAND );
+00765   m_strCommandPath = config->readEntry( CONFIG_ENTRY_NEW_MAIL_COMMANDPATH );
+00766   m_bMinimize = config->readBoolEntry( CONFIG_ENTRY_NO_NEW_MAIL_MINIMIZE, DEFAULT_ACTION_NO_NEW_MAIL_MINIMIZE );
+00767   m_bTerminate = config->readBoolEntry( CONFIG_ENTRY_NO_NEW_MAIL_TERMINATE, DEFAULT_ACTION_NO_NEW_MAIL_TERMINATE );
+00768 
+00769   //read general group
+00770   config->setGroup( CONFIG_GROUP_GENERAL );
+00771   m_bConfirmClose = config->readBoolEntry( CONFIG_ENTRY_CONFIRM_CLOSE, DEFAULT_CONFIRM_CLOSE );
+00772   m_bConfirmDelete = config->readBoolEntry( CONFIG_ENTRY_CONFIRM_DELETE, DEFAULT_CONFIRM_DELETE );
+00773   m_bStartMinimized = config->readBoolEntry( CONFIG_ENTRY_START_MINIMIZED, DEFAULT_START_MINIMIZED );
+00774   m_bCloseMinimizes = config->readBoolEntry( CONFIG_ENTRY_CLOSE_TO_TRAY, DEFAULT_CLOSE_TO_TRAY );
+00775   m_bMinimizeToTray = config->readBoolEntry( CONFIG_ENTRY_MINIMIZE_TO_TRAY, DEFAULT_MINIMIZE_TO_TRAY );
+00776   m_bShowConnectionErrors = config->readBoolEntry( CONFIG_ENTRY_SHOW_CONNECTION_ERRORS, DEFAULT_SHOW_CONNECTION_ERRORS );
+00777   m_bKeepNew = config->readBoolEntry( CONFIG_ENTRY_KEEP_NEW, DEFAULT_KEEP_NEW );
+00778 
+00779   m_nInitTimer = config->readNumEntry( CONFIG_ENTRY_INITIAL_TIME, DEFAULT_INITIAL_TIME );
+00780   m_nIntervalTimer = config->readNumEntry( CONFIG_ENTRY_INTERVAL_TIME, DEFAULT_INTERVAL_TIME);
+00781   m_nPop3Timer = config->readNumEntry( CONFIG_ENTRY_TIMEOUT_TIME, DEFAULT_TIMEOUT_TIME );
+00782 
+00783   //read display group
+00784   config->setGroup( CONFIG_GROUP_VIEW );
+00785   m_bAllowHTML = config->readBoolEntry( CONFIG_ENTRY_VIEW_USE_HTML, DEFAULT_VIEW_USE_HTML );
+00786 
+00787   //read account configuration and setup accounts
+00788   //---------------------------------------------
+00789 
+00790   //get account names from the config file
+00791   config->setGroup( CONFIG_GROUP_ACCOUNTS );
+00792   QStringList accounts = config->readListEntry( CONFIG_ENTRY_ACCOUNTS_LIST, QStringList() );
+00793 
+00794   //remove deleted accounts from the account list
+00795   //accounts are deleted, if the are in ConfigList yet, but not in the list of the config file (accounts)
+00796   ConfigElem* accountDel = NULL;               //current processed account
+00797   QPtrListIterator<ConfigElem> iter( *this ); //iterator for the account list (ConfigList)
+00798 
+00799     //iterate over all accounts (ConfigList)
+00800   while( ( accountDel = iter.current() ) != NULL )
+00801   {
+00802     //increment iterator to get next account
+00803     ++iter;
+00804 
+00805     //search for the current account in the account list of the config file
+00806     QStringList::Iterator foundAccount = accounts.find( accountDel->getAccountName() );
+00807 
+00808     //remove account from ConfigList, if it is not in the list of the config file
+00809     if( foundAccount == accounts.end() )
+00810       remove( accountDel );
+00811   }
+00812 
+00813   //add or edit accounts
+00814   ConfigElem* acc;
+00815     //iterate over all items of the account list of the config file
+00816   for( QStringList::Iterator it = accounts.begin(); it != accounts.end(); ++it )
+00817   {
+00818     //create a new account, if it is not in the list yet (ConfigList)
+00819     //or get the account
+00820     if( !hasAccount( *it ) )
+00821     {
+00822       //create new account
+00823       acc = new ConfigElem( this, *it );
+00824       inSort( acc );
+00825 
+00826       //the pointer list inserts a copy of the new account object
+00827       //we have to delete the original
+00828       delete acc;
+00829     }
+00830 
+00831     //get account from ConfigList
+00832     acc = getAccount( *it );
+00833 
+00834     //get the setup of the account from the config file and setup the account
+00835     config->setGroup( *it );
+00836 
+00837     acc->setHost( config->readEntry( CONFIG_ENTRY_ACCOUNT_SERVER, DEFAULT_ACCOUNT_SERVER ) );
+00838     acc->setProtocol( config->readEntry( CONFIG_ENTRY_ACCOUNT_PROTOCOL, DEFAULT_ACCOUNT_PROTOCOL ).lower() );
+00839     acc->setPort( config->readNumEntry( CONFIG_ENTRY_ACCOUNT_PORT, DEFAULT_ACCOUNT_PORT_POP3 ) );
+00840     acc->setUser( config->readEntry( CONFIG_ENTRY_ACCOUNT_USER, DEFAULT_ACCOUNT_USER ) );
+00841     acc->setActive( config->readBoolEntry( CONFIG_ENTRY_ACCOUNT_ACTIVE, DEFAULT_ACCOUNT_ACTIVE ) );
+00842     int StorageType = config->readNumEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD_STORAGE, DEFAULT_ACCOUNT_PASSWORD_STORAGE );
+00843 
+00844     switch( StorageType )
+00845     {
+00846       case CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE:
+00847         acc->setPasswordStorage( CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE );
+00848         acc->setPassword( QString::null );
+00849         break;
+00850 
+00851       case CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE:
+00852         acc->setPasswordStorage( CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE );
+00853         acc->setPassword( Encryption::decrypt( config->readEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, DEFAULT_ACCOUNT_PASSWORD ) ) );
+00854         break;
+00855 
+00856       case CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET:
+00857         acc->setPasswordStorage( CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET );
+00858         acc->setPassword( KWalletAccess::getPassword( *it ) );
+00859         break;
+00860 
+00861       default:
+00862         acc->setPasswordStorage( DEFAULT_ACCOUNT_PASSWORD_STORAGE );
+00863         acc->setPassword( QString::null );
+00864     }
+00865 
+00866   }
+00867 
+00868   //connect the signals of the accounts with ConfigList
+00869   connectAccounts();
+00870 
+00871   //refresh account list view
+00872   setList( view );
+00873 }
+00874 
+00875 void ConfigList::executeNewMailCommand( )
+00876 {
+00877   if( m_bCommand )
+00878   {
+00879     if( m_strCommandPath != QString::null && m_strCommandPath != "" )
+00880     {
+00881       KShellProcess proc;    //process handler to execute the binary
+00882 
+00883       proc << m_strCommandPath;
+00884 
+00885       proc.start( KShellProcess::DontCare );
+00886     }
+00887   }
+00888 }
+00889 
+00890 bool ConfigList::keepNew( )
+00891 {
+00892   return m_bKeepNew;
+00893 }
+00894 
+00895 bool ConfigList::confirmClose( ) const
+00896 {
+00897   return m_bConfirmClose;
+00898 }
+00899 
+00900 bool ConfigList::startMinimized( ) const
+00901 {
+00902   return m_bStartMinimized;
+00903 }
+00904 
+00905 bool ConfigList::closeToTray( ) const
+00906 {
+00907   return m_bCloseMinimizes;
+00908 }
+00909 
+00910 bool ConfigList::minimizesToTray( ) const
+00911 {
+00912   return m_bMinimizeToTray;
+00913 }
+00914 
+00915 bool ConfigList::showConnectionErrors( ) const
+00916 {
+00917   return m_bShowConnectionErrors;
+00918 }
+00919 
+00920 bool ConfigList::hasAccount( const QString & name ) const
+00921 {
+00922   bool found = false;                       //TRUE if we have found the given account
+00923   ConfigElem* account;                      //account from which we want to get its name
+00924   QPtrListIterator<ConfigElem> it( *this ); //iterator for the account list
+00925 
+00926   //iterate over all accounts
+00927   while( ( account = it.current() ) != NULL && !found )
+00928   {
+00929     //increment iterator to next account
+00930     ++it;
+00931 
+00932     //if current account is the searched one set found to TRUE
+00933     if( account->getAccountName() == name )
+00934       found = true;
+00935   }
+00936 
+00937   return found;
+00938 }
+00939 
+00940 ConfigElem * ConfigList::getAccount( const QString & name ) const
+00941 {
+00942   bool found = false;                       //TRUE if we have found the given account
+00943   ConfigElem* account = NULL;               //account from which we want to get its name
+00944   QPtrListIterator<ConfigElem> it( *this ); //iterator for the account list
+00945   ConfigElem* returnValue = NULL;
+00946 
+00947   //iterate over all accounts
+00948   while( ( account = it.current() ) != NULL && !found )
+00949   {
+00950     //increment iterator to next account
+00951     ++it;
+00952 
+00953     //if current account is the searched one set found to TRUE
+00954     if( account->getAccountName() == name )
+00955     {
+00956       found = true;
+00957       returnValue = account;
+00958     }
+00959   }
+00960 
+00961   return returnValue;
+00962 }
+00963 
+00964 void ConfigList::printSetup( )
+00965 {
+00966   ConfigElem* account = NULL;               //account from which we want to print the setup
+00967   QPtrListIterator<ConfigElem> it( *this ); //iterator for the account list
+00968 
+00969   //iterate over all accounts
+00970   while( ( account = it.current() ) != NULL )
+00971   {
+00972     //increment iterator to next account
+00973     ++it;
+00974 
+00975     //print setup
+00976     account->printSetup();
+00977   }
+00978 }
+00979 
+00980 void ConfigList::readStoredMails( )
+00981 {
+00982   //open file
+00983   QString MailFileName = locateLocal( "config", MAIL_FILE );
+00984   QFile file( MailFileName );
+00985   bool fileOpen = file.open( IO_ReadOnly );
+00986 
+00987   //return, if the file could not be opened
+00988   if( !fileOpen )
+00989   {
+00990     kdError() << "ConfigList::readStoredMails: File " << MailFileName << " could not be opened." << endl;
+00991     return;
+00992   }
+00993 
+00994   //create DOM document with the content read from the file
+00995   QDomDocument doc( MAIL_FILE_DOCTYPE );
+00996   QString* errorMsg = new QString();
+00997 
+00998   bool success = doc.setContent( &file );
+00999   if( !success )
+01000   {
+01001     kdError() << "ConfigList::readStoredMails: Invalid content in " << MAIL_FILE << ". " << *errorMsg << endl;
+01002   }
+01003 
+01004   //get the root element
+01005   QDomElement accounts = doc.namedItem ( ROOT_ELEMENT ).toElement();
+01006 
+01007   //get the first account element
+01008   QDomNode accNode = accounts.firstChild();
+01009 
+01010   //get all account elements
+01011   while( !accNode.isNull() )
+01012   {
+01013     //convert account node to DOM element
+01014     QDomElement accElem = accNode.toElement();
+01015 
+01016     //get the account name
+01017     QString accName = accElem.attribute( ATTRIBUTE_ACCOUNT_NAME );
+01018 
+01019     //get the proper account object
+01020     ConfigElem* account = getAccount( accName );
+01021 
+01022     //order the account to read its stored mails
+01023     account->readStoredMails( accElem );
+01024 
+01025     //get next account node
+01026     accNode = accNode.nextSibling();
+01027   }
+01028 
+01029   //close file
+01030   file.close();
+01031 }
+01032 
+01033 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/configlist_8h-source.html b/doc/html/configlist_8h-source.html new file mode 100644 index 0000000..56a1f27 --- /dev/null +++ b/doc/html/configlist_8h-source.html @@ -0,0 +1,283 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/configlist.h Source File + + + + +
+
+
+
+ +

configlist.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           configlist.h  -  description
+00003                              -------------------
+00004     begin                : Tue May 9 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006                            (C) 2007 by Ulrich Weigelt
+00007     email                : eggert.ehmke@berlin.de
+00008                            ulrich.weigelt@gmx.de
+00009 
+00010     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
+00011  ***************************************************************************/
+00012 
+00013 /***************************************************************************
+00014  *                                                                         *
+00015  *   This program is free software; you can redistribute it and/or modify  *
+00016  *   it under the terms of the GNU General Public License as published by  *
+00017  *   the Free Software Foundation; either version 2 of the License, or     *
+00018  *   (at your option) any later version.                                   *
+00019  *                                                                         *
+00020  ***************************************************************************/
+00021 
+00022 #ifndef CONFIGLIST_H
+00023 #define CONFIGLIST_H
+00024 
+00025 //Qt header
+00026 #include <qptrlist.h>
+00027 #include <qlistview.h>
+00028 #include <qobject.h>
+00029 
+00030 //KDE headers
+00031 #include <kcombobox.h>
+00032 #include <kprocess.h>
+00033 #include <kdebug.h>
+00034 
+00035 //KShowmail headers
+00036 #include "configelem.h"
+00037 #include "constants.h"
+00038 #include "kshowmailview.h"
+00039 #include "types.h"
+00040 #include "encryption.h"
+00041 #include "kwalletaccess.h"
+00042 #include "filteritem.h"
+00043 #include "headerfilter.h"
+00044 #include "filterlog.h"
+00045 
+00046 using namespace Constants;
+00047 using namespace Types;
+00048 using namespace Encryption;
+00049 
+00050 class ConfigElem;
+00051 class KshowmailView;
+00052 
+00059 class ConfigList : public QObject, public QPtrList<ConfigElem>
+00060 {
+00061 
+00062   Q_OBJECT
+00063 
+00064   public:
+00065 
+00069     ConfigList ();
+00070 
+00074     virtual ~ConfigList () {};
+00075 
+00081     void refreshSetup( KListView* view );
+00082 
+00087     int getRefreshTimeInterval() const;
+00088 
+00093     void setRefreshTimeInterval( unsigned int interval );
+00094 
+00099     bool AutoRefreshOn() const;
+00100 
+00105     void setConfirmDeletion( bool confirm );
+00106 
+00112     bool confirmDeletion();
+00113 
+00119     bool confirmClose() const;
+00120 
+00126     bool startMinimized() const;
+00127 
+00133     bool closeToTray() const;
+00134 
+00140     bool minimizesToTray() const;
+00141 
+00147     bool showConnectionErrors() const;
+00148 
+00154     void setAllowHTML( bool allowHTML );
+00155 
+00162     bool allowHTML() const;
+00163 
+00169     bool hasActiveAccounts();
+00170 
+00175     uint getTimeoutTime() const;
+00176 
+00183     void setTimeoutTime( uint time );
+00184 
+00191     ConfigElem* getSelectedAccount();
+00192 
+00198     void deleteSelectedMails();
+00199 
+00209     void connectAccounts();
+00210 
+00215     QStringList getSelectedSubjects() const;
+00216 
+00223     bool hasSelectedMails();
+00224 
+00231     void showSelectedMails();
+00232 
+00240     void refreshMailLists( FilterLog* log = NULL );
+00241 
+00246     int getNumberNewMails();
+00247 
+00252     int getNumberMails();
+00253 
+00258     long getTotalSize();
+00259 
+00265     void fillMailListView( KshowmailView* view );
+00266 
+00273     bool showMainWindowForNewMails();
+00274 
+00281     bool showAlertMessageForNewMails();
+00282 
+00289     bool quitNoNewMails();
+00290 
+00297     bool minimizeMainWindowNoNewMails();
+00298 
+00303     int getInitTime();
+00304 
+00309     void setInitTime( int time );
+00310 
+00316     bool hasInitTime();
+00317 
+00321     void refreshAccountList();
+00322 
+00326     void killPOP3Jobs();
+00327 
+00331     void showSelectedHeaders();
+00332 
+00337     void executeNewMailCommand();
+00338 
+00344     bool keepNew();
+00345 
+00349     void printSetup();
+00350 
+00356     void saveOptions();
+00357 
+00363     void readStoredMails();
+00364 
+00369      FilterAction_Type getSpamAction();
+00370 
+00375      QString getSpamMailbox();
+00376 
+00377 
+00378         bool setItem (const char* item);
+00379         void setList (QListView* list);
+00380         void beep ();
+00381         void playSound ();
+00382         void playSound (const char* file);
+00383 
+00384 
+00385   private:
+00386 
+00390     KConfig* config;
+00391 
+00395     int m_nIntervalTimer;
+00396 
+00400     uint m_nPop3Timer;
+00401 
+00413     AccountTaskMap_Type AccountDeletionMap;
+00414 
+00426     AccountTaskMap_Type AccountShowBodiesMap;
+00427 
+00439     AccountTaskMap_Type AccountRefreshMap;
+00440 
+00445     bool m_bConfirmDelete;
+00446 
+00453     bool m_bAllowHTML;
+00454 
+00461     int ctrOpenMessageWindows;
+00462 
+00468     int m_nInitTimer;
+00469 
+00473     bool m_bShowMessage;
+00474 
+00478     bool m_bShowMainWindow;
+00479 
+00483     bool m_bBeep;
+00484 
+00488     bool m_bSound;
+00489 
+00493     QString m_strSoundFile;
+00494 
+00498     bool m_bCommand;
+00499 
+00503     QString m_strCommandPath;
+00504 
+00508     bool m_bTerminate;
+00509 
+00513     bool m_bMinimize;
+00514 
+00518     bool m_bShowConnectionErrors;
+00519 
+00523     bool m_bConfirmClose;
+00524 
+00528     bool m_bStartMinimized;
+00529 
+00533     bool m_bCloseMinimizes;
+00534 
+00538     bool m_bMinimizeToTray;
+00539 
+00543     bool m_bKeepNew;
+00544 
+00548      QString spamMailbox;
+00549 
+00553       FilterAction_Type spamAction;
+00554 
+00555 
+00556   protected:
+00557 
+00565     virtual QCollection::Item newItem( QCollection::Item item );
+00566 
+00575     virtual int compareItems( QCollection::Item item1, QCollection::Item item2 );
+00576 
+00583     bool hasAccount( const QString& name ) const;
+00584 
+00590     ConfigElem* getAccount( const QString& name ) const;
+00591 
+00592   protected slots:
+00593 
+00598     void slotAccountConfigChanged();
+00599 
+00609     void slotCheckDeletionState( QString account );
+00610 
+00620     void slotCheckShowBodiesState( QString account );
+00621 
+00631     void slotMessageWindowOpened();
+00632 
+00642     void slotMessageWindowClosed();
+00643 
+00653     void slotCheckRefreshState( QString account );
+00654 
+00655   signals:
+00656 
+00661     void sigConfigChanged();
+00662 
+00666     void sigDeleteReady();
+00667 
+00671     void sigShowBodiesReady();
+00672 
+00678     void sigMessageWindowOpened();
+00679 
+00685     void sigAllMessageWindowsClosed();
+00686 
+00690     void sigRefreshReady();
+00691 };
+00692 
+00693 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/constants_8h-source.html b/doc/html/constants_8h-source.html new file mode 100644 index 0000000..f7b174c --- /dev/null +++ b/doc/html/constants_8h-source.html @@ -0,0 +1,367 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/constants.h Source File + + + + +
+
+
+
+ +

constants.h

Go to the documentation of this file.
00001 //
+00002 // C++ Interface: constants
+00003 //
+00004 // Description:
+00005 // Containts all constants.
+00006 //
+00007 //
+00008 // Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2007
+00009 //
+00010 // Copyright: See COPYING file that comes with this distribution
+00011 //
+00012 //
+00013 
+00014 #ifndef CONSTANTS_H
+00015 #define CONSTANTS_H
+00016 
+00020 namespace Constants
+00021 {
+00025   //option for show config dialog at start
+00026   #define CMDLINE_CONFIG        "configure"
+00027   #define CMDLINE_CONFIG_SHORT  "c"
+00028   //option for looking for new mails at start
+00029   #define CMDLINE_REFRESH       "refresh"
+00030   #define CMDLINE_REFRESH_SHORT "r"
+00031 
+00035   //general defaults
+00036   #define DEFAULT_CONFIRM_CLOSE           false
+00037   #define DEFAULT_CONFIRM_DELETE          true
+00038   #define DEFAULT_START_MINIMIZED         false
+00039   #define DEFAULT_CLOSE_TO_TRAY           true
+00040   #define DEFAULT_MINIMIZE_TO_TRAY        true
+00041   #define DEFAULT_SHOW_CONNECTION_ERRORS  true
+00042   #define DEFAULT_KEEP_NEW                false
+00043 
+00044   #define DEFAULT_INITIAL_TIME    0
+00045   #define DEFAULT_INTERVAL_TIME   0
+00046   #define MINIMUM_TIMEOUT_TIME    5
+00047   #define DEFAULT_TIMEOUT_TIME    30
+00048 
+00049   //default actions
+00050   #define DEFAULT_ACTION_NEW_MAIL_ALERTWINDOW   true
+00051   #define DEFAULT_ACTION_NEW_MAIL_MAINWINDOW    false
+00052   #define DEFAULT_ACTION_NEW_MAIL_BEEP          false
+00053   #define DEFAULT_ACTION_NEW_MAIL_SOUND         false
+00054   #define DEFAULT_ACTION_NEW_MAIL_COMMAND       false
+00055   #define DEFAULT_ACTION_NO_NEW_MAIL_MINIMIZE   false
+00056   #define DEFAULT_ACTION_NO_NEW_MAIL_TERMINATE  false
+00057 
+00058   //default display options
+00059   #define DEFAULT_DISPLAY_ACCOUNT_ACTIVE    true
+00060   #define DEFAULT_DISPLAY_ACCOUNT_ACCOUNT   true
+00061   #define DEFAULT_DISPLAY_ACCOUNT_SERVER    true
+00062   #define DEFAULT_DISPLAY_ACCOUNT_USER      true
+00063   #define DEFAULT_DISPLAY_ACCOUNT_MESSAGES  true
+00064   #define DEFAULT_DISPLAY_ACCOUNT_SIZE      true
+00065   #define DEFAULT_DISPLAY_MESSAGE_NUMBER    true
+00066   #define DEFAULT_DISPLAY_MESSAGE_ACCOUNT   true
+00067   #define DEFAULT_DISPLAY_MESSAGE_FROM      true
+00068   #define DEFAULT_DISPLAY_MESSAGE_TO        true
+00069   #define DEFAULT_DISPLAY_MESSAGE_SUBJECT   true
+00070   #define DEFAULT_DISPLAY_MESSAGE_DATE      true
+00071   #define DEFAULT_DISPLAY_MESSAGE_SIZE      true
+00072   #define DEFAULT_DISPLAY_MESSAGE_CONTENT   true
+00073   #define DEFAULT_DISPLAY_MESSAGE_STATE     true
+00074 
+00075   //default view options
+00076   #define DEFAULT_VIEW_USE_HTML      false
+00077 
+00078   //default column widthes
+00079   #define DEFAULT_WIDTH_ACCOUNT_ACTIVE    50
+00080   #define DEFAULT_WIDTH_ACCOUNT_ACCOUNT   100
+00081   #define DEFAULT_WIDTH_ACCOUNT_SERVER    100
+00082   #define DEFAULT_WIDTH_ACCOUNT_USER      100
+00083   #define DEFAULT_WIDTH_ACCOUNT_MESSAGES  80
+00084   #define DEFAULT_WIDTH_ACCOUNT_SIZE      80
+00085   #define DEFAULT_WIDTH_MESSAGE_NUMBER    50
+00086   #define DEFAULT_WIDTH_MESSAGE_ACCOUNT   100
+00087   #define DEFAULT_WIDTH_MESSAGE_FROM      200
+00088   #define DEFAULT_WIDTH_MESSAGE_TO        200
+00089   #define DEFAULT_WIDTH_MESSAGE_SUBJECT   350
+00090   #define DEFAULT_WIDTH_MESSAGE_DATE      100
+00091   #define DEFAULT_WIDTH_MESSAGE_SIZE      80
+00092   #define DEFAULT_WIDTH_MESSAGE_CONTENT   80
+00093   #define DEFAULT_WIDTH_MESSAGE_STATE     50
+00094 
+00095   //account defaults
+00096   #define DEFAULT_ACCOUNT_NAME ""
+00097   #define DEFAULT_ACCOUNT_SERVER ""
+00098   #define DEFAULT_ACCOUNT_PROTOCOL "POP3"
+00099   #define DEFAULT_ACCOUNT_PORT_POP3 110
+00100   #define DEFAULT_ACCOUNT_PORT_POP3SSL 995
+00101   #define DEFAULT_ACCOUNT_USER ""
+00102   #define DEFAULT_ACCOUNT_PASSWORD ""
+00103   #define DEFAULT_ACCOUNT_PASSWORD_STORAGE  1
+00104     //1: don't save, 2: save in file, 3: use KWallet
+00105   #define DEFAULT_ACCOUNT_ACTIVE true
+00106   #define DEFAULT_ACCOUNT_SECTRANSFER 1
+00107     //1: no secure transfer, 2: SSL, 3: TLS
+00108 
+00109   //filter defaults
+00110   #define DEFAULT_FILTER_ACTIVE false
+00111   #define DEFAULT_FILTER_OTHERS_ACTION  1
+00112     //1: Pass, 2: Delete, 3: Mark, 4: Move to Mailbox, 5: Spamcheck, 6: Ignore
+00113   #define DEFAULT_FILTER_BLACKLIST_ACTION 1
+00114     //1: Delete, 2: Mark
+00115   #define DEFAULT_FILTER_NAME "New Filter"
+00116   #define DEFAULT_FILTER_CRITERIA_LINKAGE 1
+00117     //1: Match all (AND); 2: Match any (OR)
+00118   #define DEFAULT_FILTER_CRITERIA_SOURCE 1
+00119     //1: From, 2: To, 3: Size (Bytes), 4: Subject, 5: Header, 6: Account
+00120   #define DEFAULT_FILTER_CRITERIA_COND_TEXT 1
+00121     //1: contains, 2: doesn't contains, 3: equals, 4: doesn't equal, 5: matches regular expression, 6: doesn't match regular expression
+00122   #define DEFAULT_FILTER_CRITERIA_COND_NUM 3
+00123     //1: is equal to, 2: is not equal to, 3: is greater than, 4: is greater than or equal to, 5: is less than, 6: is less than or equal to
+00124   #define DEFAULT_FILTER_CRITERIA_SIZE 20000
+00125   #define DEFAULT_FILTER_CRITERIA_CASE_SENSITIVE false
+00126   #define DEFAULT_FILTER_ACTION  1
+00127     //1: Pass, 2: Delete, 3: Mark, 4: Move to Mailbox, 5: Spamcheck, 6: Ignore
+00128   #define DEFAULT_FILTER_ACTION_MOVE_MAILBOX ""
+00129 
+00130   //Spam check defaults
+00131   #define DEFAULT_SPAMCHECK_ACTION 3
+00132     //2: Delete, 3: Mark, 4: Move to Mailbox
+00133   #define DEFAULT_SPAMCHECK_ACTION_MOVE_MAILBOX ""
+00134 
+00135 
+00136   //Log Defaults
+00137   #define DEFAULT_LOG_LOG_DELETED_MAILS       true
+00138   #define DEFAULT_LOG_LOG_MOVED_MAILS         true
+00139     //the log entires will be deleted after some days (constant value is "days") or at app exit (value is "exit")
+00140   #define DEFAULT_LOG_REMOVE_DELETED_MAILS    "days"
+00141   #define DEFAULT_LOG_REMOVE_MOVED_MAILS      "exit"
+00142     //number of days the entries will be stored
+00143   #define DEFAULT_LOG_HOLDDAYS_DELETED_MAILS  7
+00144   #define DEFAULT_LOG_HOLDDAYS_MOVED_MAILS    7
+00145 
+00149   #define MAIL_FILE               "kshowmail.xml"
+00150   #define MAIL_FILE_DOCTYPE       "KShowmail"
+00151   #define ROOT_ELEMENT            "accounts"
+00152   #define ACCOUNT_ELEMENT         "account"
+00153   #define ATTRIBUTE_ACCOUNT_NAME  "account"
+00154   #define ATTRIBUTE_MAIL_UID      "uidl"
+00155   #define ATTRIBUTE_MAIL_SIZE     "size"
+00156   #define ATTRIBUTE_MAIL_NUMBER   "number"
+00157   #define ITEM_MAIL_HEADER        "header"
+00158   #define ITEM_MESSAGE            "message"
+00159 
+00163   #define LOG_FILE          "kshowmaillog.xml"
+00164   #define LOG_DOCTYPE       "KShowmailLog"
+00165   #define LOG_ROOT_ELEMENT  "DeletedMails"
+00166   #define LOG_ENTRY_ELEMENT "LogEntry"
+00167   #define LOG_ENTRY_ATTRIBUTE_DATETIME "DateTime"
+00168   #define LOG_ENTRY_ATTRIBUTE_SENDER "Sender"
+00169   #define LOG_ENTRY_ATTRIBUTE_ACCOUNT "Account"
+00170   #define LOG_ENTRY_ATTRIBUTE_SUBJECT "Subject"
+00171 
+00175   //Size of the view, which shows the mail text
+00176   #define WIDTH_VIEW_MAILBODY         500
+00177   #define HEIGHT_VIEW_MAILBODY        400
+00178 
+00179   //Size of the view, which shows the mail header
+00180   #define WIDTH_VIEW_MAILHEADER   500
+00181   #define HEIGHT_VIEW_MAILHEADER  400
+00182 
+00183   //Size of the text comparative value line of the filter criteria widget
+00184   #define WIDTH_FILTER_TEXT_VALUE_LINE  300
+00185 
+00189   #define CONFIG_GROUP_GENERAL                  "General"
+00190   #define CONFIG_ENTRY_CONFIRM_CLOSE            "confirmClose"
+00191   #define CONFIG_ENTRY_CONFIRM_DELETE           "confirmDelete"
+00192   #define CONFIG_ENTRY_START_MINIMIZED          "startMinimized"
+00193   #define CONFIG_ENTRY_CLOSE_TO_TRAY            "closeToTray"
+00194   #define CONFIG_ENTRY_MINIMIZE_TO_TRAY         "minimizeToTray"
+00195   #define CONFIG_ENTRY_SHOW_CONNECTION_ERRORS   "showConnectionErrors"
+00196   #define CONFIG_ENTRY_KEEP_NEW                 "keepMailsNew"
+00197   #define CONFIG_ENTRY_INITIAL_TIME             "InitialTime"
+00198   #define CONFIG_ENTRY_INTERVAL_TIME            "IntervalTime"
+00199   #define CONFIG_ENTRY_TIMEOUT_TIME             "TimeoutTime"
+00200 
+00201   #define CONFIG_GROUP_ACTIONS                "Actions"
+00202   #define CONFIG_ENTRY_NEW_MAIL_ALERTWINDOW   "showAlertMessageIfNewMail"
+00203   #define CONFIG_ENTRY_NEW_MAIL_MAINWINDOW    "showMainWindowIfNewMail"
+00204   #define CONFIG_ENTRY_NEW_MAIL_BEEP          "beepIfNewMail"
+00205   #define CONFIG_ENTRY_NEW_MAIL_SOUND         "playSoundIfNewMail"
+00206   #define CONFIG_ENTRY_NEW_MAIL_SOUNDPATH     "PathToSoundFile"
+00207   #define CONFIG_ENTRY_NEW_MAIL_COMMAND       "executeCommandIfNewMail"
+00208   #define CONFIG_ENTRY_NEW_MAIL_COMMANDPATH   "Command"
+00209   #define CONFIG_ENTRY_NO_NEW_MAIL_TERMINATE  "exitIfNoNewMails"
+00210   #define CONFIG_ENTRY_NO_NEW_MAIL_MINIMIZE   "minimizeMainWindowIfNoNewMails"
+00211 
+00212   #define CONFIG_GROUP_VIEW                "View"
+00213   #define CONFIG_ENTRY_VIEW_USE_HTML       "useHTML"
+00214 
+00215   #define CONFIG_GROUP_ACCOUNT_LIST               "LayoutAccountList"
+00216   #define CONFIG_ENTRY_DISPLAY_ACCOUNT_ACTIVE     "showAccountListActiveColumn"
+00217   #define CONFIG_ENTRY_DISPLAY_ACCOUNT_ACCOUNT    "showAccountListAccountColumn"
+00218   #define CONFIG_ENTRY_DISPLAY_ACCOUNT_SERVER     "showAccountListServerColumn"
+00219   #define CONFIG_ENTRY_DISPLAY_ACCOUNT_USER       "showAccountListUserColumn"
+00220   #define CONFIG_ENTRY_DISPLAY_ACCOUNT_MESSAGES   "showAccountListMessagesColumn"
+00221   #define CONFIG_ENTRY_DISPLAY_ACCOUNT_SIZE       "showAccountListSizeColumn"
+00222   #define CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_ACTIVE   "oldWidthAccountListActiveColumn"
+00223   #define CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_ACCOUNT  "oldWidthAccountListAccountColumn"
+00224   #define CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_SERVER   "oldWidthAccountListServerColumn"
+00225   #define CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_USER     "oldWidthAccountListUserColumn"
+00226   #define CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_MESSAGES "oldWidthAccountListMessagesColumn"
+00227   #define CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_SIZE     "oldWidthAccountListSizeColumn"
+00228 
+00229 
+00230   #define CONFIG_GROUP_MESSAGE_LIST               "LayoutMessageList"
+00231   #define CONFIG_ENTRY_DISPLAY_MESSAGE_NUMBER     "showMessageListNumberColumn"
+00232   #define CONFIG_ENTRY_DISPLAY_MESSAGE_ACCOUNT    "showMessageListAccountColumn"
+00233   #define CONFIG_ENTRY_DISPLAY_MESSAGE_FROM       "showMessageListFromColumn"
+00234   #define CONFIG_ENTRY_DISPLAY_MESSAGE_TO         "showMessageListToColumn"
+00235   #define CONFIG_ENTRY_DISPLAY_MESSAGE_SUBJECT    "showMessageListSubjectColumn"
+00236   #define CONFIG_ENTRY_DISPLAY_MESSAGE_DATE       "showMessageListDateColumn"
+00237   #define CONFIG_ENTRY_DISPLAY_MESSAGE_SIZE       "showMessageListSizeColumn"
+00238   #define CONFIG_ENTRY_DISPLAY_MESSAGE_CONTENT    "showMessageListContentColumn"
+00239   #define CONFIG_ENTRY_DISPLAY_MESSAGE_STATE      "showMessageListStateColumn"
+00240   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_NUMBER   "oldWidthMessageListNumberColumn"
+00241   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_ACCOUNT  "oldWidthMessageListAccountColumn"
+00242   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_FROM     "oldWidthMessageListFromColumn"
+00243   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_TO       "oldWidthMessageListToColumn"
+00244   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_SUBJECT  "oldWidthMessageListSubjectColumn"
+00245   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_DATE     "oldWidthMessageListDateColumn"
+00246   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_SIZE     "oldWidthMessageListSizeColumn"
+00247   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_CONTENT  "oldWidthMessageListContentColumn"
+00248   #define CONFIG_ENTRY_OLD_WIDTH_MESSAGE_STATE    "oldWidthMessageListStateColumn"
+00249 
+00250   #define CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE     1
+00251   #define CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE     2
+00252   #define CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET  3
+00253   #define CONFIG_VALUE_ACCOUNT_SECTRANSFER_NONE       1
+00254   #define CONFIG_VALUE_ACCOUNT_SECTRANSFER_SSL        2
+00255   #define CONFIG_VALUE_ACCOUNT_SECTRANSFER_TLS        3
+00256 
+00257   #define CONFIG_GROUP_ACCOUNTS      "Accounts"
+00258   #define CONFIG_ENTRY_ACCOUNTS_LIST "NamesList"
+00259 
+00260   #define CONFIG_ENTRY_ACCOUNT_NAME             "Name"
+00261   #define CONFIG_ENTRY_ACCOUNT_SERVER           "Server"
+00262   #define CONFIG_ENTRY_ACCOUNT_PROTOCOL         "Protocol"
+00263   #define CONFIG_ENTRY_ACCOUNT_PORT             "Port"
+00264   #define CONFIG_ENTRY_ACCOUNT_USER             "User"
+00265   #define CONFIG_ENTRY_ACCOUNT_PASSWORD         "Password"
+00266   #define CONFIG_ENTRY_ACCOUNT_PASSWORD_STORAGE "PasswordStorage"
+00267   #define CONFIG_ENTRY_ACCOUNT_ACTIVE           "Active"
+00268   #define CONFIG_ENTRY_ACCOUNT_SECTRANSFER      "SecureTransfer"
+00269 
+00270 
+00271   //general filter
+00272   #define CONFIG_GROUP_FILTER "Filter"
+00273 
+00274   #define CONFIG_ENTRY_FILTER_ACTIVE  "Active"
+00275 
+00276   #define CONFIG_VALUE_FILTER_OTHERS_ACTION_PASS        1
+00277   #define CONFIG_VALUE_FILTER_OTHERS_ACTION_DELETE      2
+00278   #define CONFIG_VALUE_FILTER_OTHERS_ACTION_MARK        3
+00279   #define CONFIG_VALUE_FILTER_OTHERS_ACTION_MOVE        4
+00280   #define CONFIG_VALUE_FILTER_OTHERS_ACTION_SPAMCHECK   5
+00281   #define CONFIG_VALUE_FILTER_OTHERS_ACTION_IGNORE      6
+00282 
+00283   #define CONFIG_ENTRY_FILTER_OTHERS_ACTION   "ActionForOthers"
+00284   #define CONFIG_ENTRY_FILTER_OTHERS_MAILBOX  "MailboxForOthers"
+00285 
+00286   #define CONFIG_VALUE_FILTER_BLACKLIST_ACTION_DELETE  1
+00287   #define CONFIG_VALUE_FILTER_BLACKLIST_ACTION_MARK    2
+00288 
+00289   #define CONFIG_ENTRY_FILTER_BLACKLIST_ACTION  "ActionBlacklist"
+00290   #define CONFIG_ENTRY_FILTER_BLACKLIST         "Blacklist"
+00291   #define CONFIG_ENTRY_FILTER_WHITELIST         "Whitelist"
+00292   #define CONFIG_ENTRY_FILTER_NUMBER_OF_FILTERS "NumberFilters"
+00293 
+00294   //single filter
+00295   #define CONFIG_ENTRY_FILTER_NAME "Name"
+00296   #define CONFIG_ENTRY_FILTER_CRITERIA_LINKAGE "CriteriaLinkage"
+00297   #define CONFIG_ENTRY_FILTER_CRITERIA_NUMBER "CriteriaNumber"
+00298   #define CONFIG_ENTRY_FILTER_CRITERIA_SOURCE "CriteriaSource"
+00299   #define CONFIG_ENTRY_FILTER_CRITERIA_CONDITION "CriteriaCondition"
+00300   #define CONFIG_ENTRY_FILTER_CRITERIA_VALUE "CriteriaValue"
+00301   #define CONFIG_ENTRY_FILTER_CRITERIA_CASESENSITIVE "CriteriaCaseSensitive"
+00302   #define CONFIG_ENTRY_FILTER_ACTION "Action"
+00303   #define CONFIG_ENTRY_FILTER_MOVE_MAILBOX "Mailbox"
+00304 
+00305   #define CONFIG_VALUE_FILTER_CRITERIA_LINKAGE_MATCH_ALL 1
+00306   #define CONFIG_VALUE_FILTER_CRITERIA_LINKAGE_MATCH_ANY 2
+00307 
+00308   #define CONFIG_VALUE_FILTER_CRITERIA_SOURCE_FROM    1
+00309   #define CONFIG_VALUE_FILTER_CRITERIA_SOURCE_TO      2
+00310   #define CONFIG_VALUE_FILTER_CRITERIA_SOURCE_SIZE    3
+00311   #define CONFIG_VALUE_FILTER_CRITERIA_SOURCE_SUBJECT 4
+00312   #define CONFIG_VALUE_FILTER_CRITERIA_SOURCE_HEADER  5
+00313   #define CONFIG_VALUE_FILTER_CRITERIA_SOURCE_ACCOUNT 6
+00314 
+00315   #define CONFIG_VALUE_FILTER_CRITERIA_COND_TEXT_CONTAINS     1
+00316   #define CONFIG_VALUE_FILTER_CRITERIA_COND_TEXT_NOT_CONTAINS 2
+00317   #define CONFIG_VALUE_FILTER_CRITERIA_COND_TEXT_EQUALS       3
+00318   #define CONFIG_VALUE_FILTER_CRITERIA_COND_TEXT_NOT_EQUALS   4
+00319   #define CONFIG_VALUE_FILTER_CRITERIA_COND_TEXT_REGEXPR      5
+00320   #define CONFIG_VALUE_FILTER_CRITERIA_COND_TEXT_NOT_REGEXPR  6
+00321 
+00322   #define CONFIG_VALUE_FILTER_CRITERIA_COND_NUM_EQUAL         1
+00323   #define CONFIG_VALUE_FILTER_CRITERIA_COND_NUM_NOT_EQUAL     2
+00324   #define CONFIG_VALUE_FILTER_CRITERIA_COND_NUM_GREATER       3
+00325   #define CONFIG_VALUE_FILTER_CRITERIA_COND_NUM_GREATER_EQUAL 4
+00326   #define CONFIG_VALUE_FILTER_CRITERIA_COND_NUM_LESS          5
+00327   #define CONFIG_VALUE_FILTER_CRITERIA_COND_NUM_LESS_EQUAL    6
+00328 
+00329   #define CONFIG_VALUE_FILTER_ACTION_PASS        1
+00330   #define CONFIG_VALUE_FILTER_ACTION_DELETE      2
+00331   #define CONFIG_VALUE_FILTER_ACTION_MARK        3
+00332   #define CONFIG_VALUE_FILTER_ACTION_MOVE        4
+00333   #define CONFIG_VALUE_FILTER_ACTION_SPAMCHECK   5
+00334   #define CONFIG_VALUE_FILTER_ACTION_IGNORE      6
+00335 
+00336   //Spamcheck
+00337   #define CONFIG_GROUP_SPAMCHECK "Spamcheck"
+00338 
+00339   #define CONFIG_ENTRY_SPAMCHECK_ACTION "Action"
+00340   #define CONFIG_ENTRY_SPAMCHECK_MOVE_MAILBOX "Mailbox"
+00341 
+00342   #define CONFIG_VALUE_SPAMCHECK_ACTION_DELETE      2
+00343   #define CONFIG_VALUE_SPAMCHECK_ACTION_MARK        3
+00344   #define CONFIG_VALUE_SPAMCHECK_ACTION_MOVE        4
+00345 
+00346   //Log
+00347   #define CONFIG_GROUP_LOG                        "Log"
+00348   #define CONFIG_ENTRY_LOG_LOG_DELETED_MAILS      "LogDeletedMails"
+00349   #define CONFIG_ENTRY_LOG_LOG_MOVED_MAILS        "LogMovedMails"
+00350   #define CONFIG_ENTRY_LOG_REMOVE_DELETED_MAILS   "RemoveEventOfDeletedMails"
+00351   #define CONFIG_ENTRY_LOG_REMOVE_MOVED_MAILS     "RemoveEvendOfMovedMails"
+00352   #define CONFIG_ENTRY_LOG_HOLDDAYS_DELETED_MAILS "HoldDaysOfDeletedMails"
+00353   #define CONFIG_ENTRY_LOG_HOLDDAYS_MOVED_MAILS   "HoldDaysOfMovedMails"
+00354 
+00355   #define CONFIG_VALUE_LOG_REMOVE_MAILS_AT_EXIT     "exit"
+00356   #define CONFIG_VALUE_LOG_REMOVE_MAILS_AFTER_DAYS  "days"
+00357 
+00358   //Misc
+00359   #define NAME_SPAMASSASSIN_DAEMON    "spamd"
+00360 }
+00361 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/decodeRFC2047_8cpp-source.html b/doc/html/decodeRFC2047_8cpp-source.html new file mode 100644 index 0000000..50d2f7b --- /dev/null +++ b/doc/html/decodeRFC2047_8cpp-source.html @@ -0,0 +1,204 @@ + + +kshowmail: kshowmail/decodeRFC2047.cpp Source File + + + + +
+
+ +

decodeRFC2047.cpp

00001 /***************************************************************************
+00002                           decodeRFC2047.cpp  -  description
+00003                              -------------------
+00004     begin                : Mon Jan 28 2002
+00005     copyright            : (C) 2002 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 
+00019 #include "decodeRFC2047.h"
+00020 
+00021 /*
+00022  * These functions have been adapted from the KMail program
+00023  */
+00024 
+00025 QCString decodeQuotedPrintable(const QCString& aStr)
+00026 {
+00027   QCString bStr = aStr;
+00028   if (aStr.isNull())
+00029     bStr = "";
+00030 
+00031   DwString dwsrc(bStr.data());
+00032   DwString dwdest;
+00033 
+00034   DwDecodeQuotedPrintable(dwsrc, dwdest);
+00035   return dwdest.c_str();
+00036 }
+00037 
+00038 QCString decodeBase64(const QCString& aStr)
+00039 {
+00040   QCString bStr = aStr;
+00041   if (aStr.isNull())
+00042     bStr = "";
+00043   while (bStr.length() < 16) bStr += "=";
+00044 
+00045   DwString dwsrc(bStr.data(), bStr.length());
+00046   DwString dwdest;
+00047   QCString result;
+00048 
+00049   DwDecodeBase64(dwsrc, dwdest);
+00050   result = dwdest.c_str();
+00051   return result;
+00052 }
+00053 
+00054 QTextCodec* codecForName(const QCString& _str)
+00055 {
+00056   if (_str.isEmpty()) return NULL;
+00057   if (_str.lower() == "shift_jis" || _str.lower() == "shift-jis")
+00058     return QTextCodec::codecForName("sjis");
+00059   return QTextCodec::codecForName(_str.lower().replace(
+00060     QRegExp("windows"), "cp") );
+00061 }
+00062 
+00063 QString Codecs::decodeRFC2047(const QCString& aStr)
+00064 {
+00065   QString result;
+00066   QCString charset;
+00067   char *pos, *beg, *end, *mid;
+00068   QCString str, cstr, LWSP_buffer;
+00069   char encoding, ch;
+00070   bool valid, lastWasEncodedWord=FALSE;
+00071   const int maxLen=200;
+00072   int i;
+00073 
+00074   if (aStr.find("=?") < 0)
+00075     return QString::fromLocal8Bit(aStr).replace(QRegExp("\n[\t ]")," ");
+00076 
+00077   for (pos=aStr.data(); *pos; pos++)
+00078   {
+00079     // line unfolding
+00080     if ( pos[0] == '\r' && pos[1] == '\n' ) {
+00081       pos++;
+00082       continue;
+00083     }
+00084     if ( pos[0] == '\n' )
+00085       continue;
+00086     // collect LWSP after encoded-words,
+00087     // because we might need to throw it out
+00088     // (when the next word is an encoded-word)
+00089     if ( lastWasEncodedWord && ( pos[0] == ' ' || pos[0] == '\t' ) )
+00090     {
+00091       LWSP_buffer += pos[0];
+00092       continue;
+00093     }
+00094     // verbatimly copy normal text
+00095     if (pos[0]!='=' || pos[1]!='?')
+00096     {
+00097       result += LWSP_buffer + pos[0];
+00098       LWSP_buffer = 0;
+00099       lastWasEncodedWord = FALSE;
+00100       continue;
+00101     }
+00102     // found possible encoded-word
+00103     beg = pos+2;
+00104     end = beg;
+00105     valid = TRUE;
+00106     // parse charset name
+00107     charset = "";
+00108     for (i=2,pos+=2; i<maxLen && (*pos!='?'&&(*pos==' '||ispunct(*pos)||isalnum(*pos))); i++)
+00109     {
+00110       charset += *pos;
+00111       pos++;
+00112     }
+00113     if (*pos!='?' || i<4 || i>=maxLen) valid = FALSE;
+00114     else
+00115     {
+00116       // get encoding and check delimiting question marks
+00117       encoding = toupper(pos[1]);
+00118       if (pos[2]!='?' || (encoding!='Q' && encoding!='B'))
+00119                             valid = FALSE;
+00120       pos+=3;
+00121       i+=3;
+00122     }
+00123     if (valid)
+00124     {
+00125       mid = pos;
+00126       // search for end of encoded part
+00127       while (i<maxLen && *pos && !(*pos=='?' && *(pos+1)=='='))
+00128       {
+00129                             i++;
+00130                             pos++;
+00131       }
+00132       end = pos+2;//end now points to the first char after the encoded string
+00133       if (i>=maxLen || !*pos)
+00134        valid = FALSE;
+00135     }
+00136     if (valid)
+00137     {
+00138       // valid encoding: decode and throw away separating LWSP
+00139       ch = *pos;
+00140       *pos = '\0';
+00141       str = QCString(mid).left((int)(mid - pos - 1));
+00142       if (encoding == 'Q')
+00143       {
+00144                             // decode quoted printable text
+00145                             for (i=str.length()-1; i>=0; i--)
+00146                      if (str[i]=='_')
+00147                             str[i]=' ';
+00148                             cstr = decodeQuotedPrintable(str);
+00149       }
+00150       else
+00151       {
+00152                             // decode base64 text
+00153                             cstr = decodeBase64(str);
+00154       }
+00155       QTextCodec *codec = codecForName(charset);
+00156       if (!codec)
+00157        codec = codecForName(KGlobal::locale()->encoding());
+00158       if (codec)
+00159        result += codec->toUnicode(cstr);
+00160       else
+00161        result += QString::fromLocal8Bit(cstr);
+00162       lastWasEncodedWord = TRUE;
+00163 
+00164       *pos = ch;
+00165       pos = end -1;
+00166     }
+00167     else
+00168     {
+00169       // invalid encoding, keep separating LWSP.
+00170       //result += "=?";
+00171       //pos = beg -1; // because pos gets increased shortly afterwards
+00172       pos = beg - 2;
+00173       result += LWSP_buffer;
+00174       result += *pos++;
+00175       result += *pos;
+00176       lastWasEncodedWord = FALSE;
+00177     }
+00178     LWSP_buffer = 0;
+00179   }
+00180   return result;
+00181 }
+00182 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/decodeRFC2047_8h-source.html b/doc/html/decodeRFC2047_8h-source.html new file mode 100644 index 0000000..e45ca0f --- /dev/null +++ b/doc/html/decodeRFC2047_8h-source.html @@ -0,0 +1,69 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/decodeRFC2047.h Source File + + + + +
+
+
+
+ +

decodeRFC2047.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           decodeRFC2047.h  -  description
+00003                              -------------------
+00004     begin                : Mon Jan 28 2002
+00005     copyright            : (C) 2002 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 #ifndef DECODE_RFC2047_H
+00018 #define DECODE_RFC2047_H
+00019 
+00020 #include <ctype.h>
+00021 #include <stdlib.h>
+00022 
+00023 //Qt header
+00024 #include <qtextcodec.h>
+00025 #include <qregexp.h>
+00026 #include <qstring.h>
+00027 #include <qcstring.h>
+00028 
+00029 //KDE header
+00030 #include <klocale.h>
+00031 #include <kglobal.h>
+00032 #include <mimelib/mimepp.h>
+00033 
+00034 
+00038 namespace Codecs
+00039 {
+00040 
+00047   QString decodeRFC2047( const QCString& aStr );
+00048 
+00049 }
+00050 
+00051 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/dir_656923b733374505e0e2f68ecb68d952.html b/doc/html/dir_656923b733374505e0e2f68ecb68d952.html new file mode 100644 index 0000000..5754588 --- /dev/null +++ b/doc/html/dir_656923b733374505e0e2f68ecb68d952.html @@ -0,0 +1,145 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/ Directory Reference + + + + +
+
+ +

kshowmail Directory Reference

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directories

directory  kcmconfigs

Files

file  alertdialog.cpp
file  alertdialog.h [code]
file  AlertDlg.cpp
file  AlertDlg.h [code]
file  configelem.cpp
file  configelem.h [code]
file  configlist.cpp
file  configlist.h [code]
file  constants.h [code]
file  decodeRFC2047.cpp
file  decodeRFC2047.h [code]
file  encryption.cpp
file  encryption.h [code]
file  filteritem.cpp
file  filteritem.h [code]
file  filteritemcriteria.cpp
file  filteritemcriteria.h [code]
file  filterlog.cpp
file  filterlog.h [code]
file  filterlogentry.cpp
file  filterlogentry.h [code]
file  filterlogview.cpp
file  filterlogview.h [code]
file  filterlogviewdeleteditem.cpp
file  filterlogviewdeleteditem.h [code]
file  filterlogviewmoveditem.cpp
file  filterlogviewmoveditem.h [code]
file  headerfilter.cpp
file  headerfilter.h [code]
file  kshowmail.cpp
file  kshowmail.h [code]
file  kshowmaildoc.cpp
file  kshowmaildoc.h [code]
file  kshowmaildock.cpp
file  kshowmaildock.h [code]
file  kshowmailfeedback.cpp
file  kshowmailview.cpp
file  kshowmailview.h [code]
file  kwalletaccess.cpp
file  kwalletaccess.h [code]
file  main.cpp
file  senderlistfilter.cpp
file  senderlistfilter.h [code]
file  serverdialog.cpp
file  serverdialog.h [code]
file  showheaderdialog.cpp
file  showheaderdialog.h [code]
file  showlistviewitem.cpp
file  showlistviewitem.h [code]
file  showmaildialog.cpp
file  showmaildialog.h [code]
file  showrecord.cpp
file  showrecord.h [code]
file  showrecordelem.cpp
file  showrecordelem.h [code]
file  types.h [code]
file  uniqueapp.cpp
file  uniqueapp.h [code]
+
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/dirs.html b/doc/html/dirs.html new file mode 100644 index 0000000..568b198 --- /dev/null +++ b/doc/html/dirs.html @@ -0,0 +1,41 @@ + + +kshowmail.kdevelop: Directory Hierarchy + + + + +
+
+

kshowmail.kdevelop Directories

This directory hierarchy is sorted roughly, but not completely, alphabetically: +
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/doxygen.css b/doc/html/doxygen.css new file mode 100644 index 0000000..c7db1a8 --- /dev/null +++ b/doc/html/doxygen.css @@ -0,0 +1,358 @@ +BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { + font-family: Geneva, Arial, Helvetica, sans-serif; +} +BODY,TD { + font-size: 90%; +} +H1 { + text-align: center; + font-size: 160%; +} +H2 { + font-size: 120%; +} +H3 { + font-size: 100%; +} +CAPTION { font-weight: bold } +DIV.qindex { + width: 100%; + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 140%; +} +DIV.nav { + width: 100%; + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 140%; +} +DIV.navtab { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} +TD.navtab { + font-size: 70%; +} +A.qindex { + text-decoration: none; + font-weight: bold; + color: #1A419D; +} +A.qindex:visited { + text-decoration: none; + font-weight: bold; + color: #1A419D +} +A.qindex:hover { + text-decoration: none; + background-color: #ddddff; +} +A.qindexHL { + text-decoration: none; + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + border: 1px double #9295C2; +} +A.qindexHL:hover { + text-decoration: none; + background-color: #6666cc; + color: #ffffff; +} +A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } +A.el { text-decoration: none; font-weight: bold } +A.elRef { font-weight: bold } +A.code:link { text-decoration: none; font-weight: normal; color: #0000FF} +A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF} +A.codeRef:link { font-weight: normal; color: #0000FF} +A.codeRef:visited { font-weight: normal; color: #0000FF} +A:hover { text-decoration: none; background-color: #f2f2ff } +DL.el { margin-left: -1cm } +.fragment { + font-family: monospace, fixed; + font-size: 95%; +} +PRE.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + margin-top: 4px; + margin-bottom: 4px; + margin-left: 2px; + margin-right: 8px; + padding-left: 6px; + padding-right: 6px; + padding-top: 4px; + padding-bottom: 4px; +} +DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } + +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; +} +DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% } +BODY { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} +TD.indexkey { + background-color: #e8eef2; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TD.indexvalue { + background-color: #e8eef2; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TR.memlist { + background-color: #f0f0f0; +} +P.formulaDsp { text-align: center; } +IMG.formulaDsp { } +IMG.formulaInl { vertical-align: middle; } +SPAN.keyword { color: #008000 } +SPAN.keywordtype { color: #604020 } +SPAN.keywordflow { color: #e08000 } +SPAN.comment { color: #800000 } +SPAN.preprocessor { color: #806020 } +SPAN.stringliteral { color: #002080 } +SPAN.charliteral { color: #008080 } +.mdescLeft { + padding: 0px 8px 4px 8px; + font-size: 80%; + font-style: italic; + background-color: #FAFAFA; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.mdescRight { + padding: 0px 8px 4px 8px; + font-size: 80%; + font-style: italic; + background-color: #FAFAFA; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.memItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memItemRight { + padding: 1px 8px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: none; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplItemRight { + padding: 1px 8px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: none; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplParams { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + color: #606060; + background-color: #FAFAFA; + font-size: 80%; +} +.search { color: #003399; + font-weight: bold; +} +FORM.search { + margin-bottom: 0px; + margin-top: 0px; +} +INPUT.search { font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +TD.tiny { font-size: 75%; +} +a { + color: #1A41A8; +} +a:visited { + color: #2A3798; +} +.dirtab { padding: 4px; + border-collapse: collapse; + border: 1px solid #84b0c7; +} +TH.dirtab { background: #e8eef2; + font-weight: bold; +} +HR { height: 1px; + border: none; + border-top: 1px solid black; +} + +/* Style for detailed member documentation */ +.memtemplate { + font-size: 80%; + color: #606060; + font-weight: normal; +} +.memnav { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} +.memitem { + padding: 4px; + background-color: #eef3f5; + border-width: 1px; + border-style: solid; + border-color: #dedeee; + -moz-border-radius: 8px 8px 8px 8px; +} +.memname { + white-space: nowrap; + font-weight: bold; +} +.memdoc{ + padding-left: 10px; +} +.memproto { + background-color: #d5e1e8; + width: 100%; + border-width: 1px; + border-style: solid; + border-color: #84b0c7; + font-weight: bold; + -moz-border-radius: 8px 8px 8px 8px; +} +.paramkey { + text-align: right; +} +.paramtype { + white-space: nowrap; +} +.paramname { + color: #602020; + font-style: italic; + white-space: nowrap; +} +/* End Styling for detailed member documentation */ + +/* for the tree view */ +.ftvtree { + font-family: sans-serif; + margin:0.5em; +} +.directory { font-size: 9pt; font-weight: bold; } +.directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; } +.directory > h3 { margin-top: 0; } +.directory p { margin: 0px; white-space: nowrap; } +.directory div { display: none; margin: 0px; } +.directory img { vertical-align: -30%; } diff --git a/doc/html/doxygen.png b/doc/html/doxygen.png new file mode 100644 index 0000000..f0a274b Binary files /dev/null and b/doc/html/doxygen.png differ diff --git a/doc/html/editdialog_8cpp-source.html b/doc/html/editdialog_8cpp-source.html new file mode 100644 index 0000000..0b643ba --- /dev/null +++ b/doc/html/editdialog_8cpp-source.html @@ -0,0 +1,74 @@ + + +kshowmail: kshowmail/editdialog.cpp Source File + + + + +
+
+ +

editdialog.cpp

00001 /***************************************************************************
+00002                           editdialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <qlayout.h>
+00019 #include <qmultilineedit.h>
+00020 #include <qlabel.h>
+00021 #include <qlineedit.h>
+00022 #include <ktextbrowser.h>
+00023 #include "editdialog.h"
+00024 
+00025 EditDialog::EditDialog(QWidget *parent, const char *name, const char* content, bool html):
+00026   EditDlg(parent,name,true), _row(0)
+00027 {
+00028   setCaption (name);
+00029   if (!html)
+00030     m_Edit->setTextFormat (Qt::PlainText);
+00031   m_Edit->setText (content);
+00032 }
+00033 
+00034 void EditDialog::addWidget (const QString& lbl, const QString& value)
+00035 {
+00036   QLabel* label = new QLabel (lbl, this);
+00037   QLineEdit* edit = new QLineEdit (this);
+00038   edit->setReadOnly (true);
+00039   edit->setText (value);
+00040   headerlayout->addMultiCellWidget (label, _row, _row, 0, 0);
+00041   headerlayout->addMultiCellWidget (edit, _row++, _row, 1, 1);
+00042 }
+00043 
+00044 EditDialog::~EditDialog()
+00045 {}
+00046 
+00047 void EditDialog::slotReplyClicked ()
+00048 {
+00049   // the value 10 is returned from exec
+00050   // works, but signal/slot would be nice
+00051   done (10);
+00052 }
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/editdialog_8h-source.html b/doc/html/editdialog_8h-source.html new file mode 100644 index 0000000..a1ff5b0 --- /dev/null +++ b/doc/html/editdialog_8h-source.html @@ -0,0 +1,58 @@ + + +kshowmail: kshowmail/editdialog.h Source File + + + + +
+
+ +

editdialog.h

00001 /***************************************************************************
+00002                           editdialog.h  -  description
+00003                              -------------------
+00004     begin                : Wed Oct 31 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef EDITDIALOG_H
+00019 #define EDITDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "EditDlg.h"
+00023 
+00028 class EditDialog : public EditDlg  {
+00029    Q_OBJECT
+00030 public: 
+00031        EditDialog(QWidget *parent, const char *name, const char* content, bool html);
+00032        ~EditDialog();
+00033   void addWidget (const QString& label, const QString& value);
+00034   public slots:
+00035   virtual void slotReplyClicked ();
+00036 private:
+00037   int _row;
+00038 };
+00039 
+00040 #endif
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/editdialog_8moc_8cpp-source.html b/doc/html/editdialog_8moc_8cpp-source.html new file mode 100644 index 0000000..558715e --- /dev/null +++ b/doc/html/editdialog_8moc_8cpp-source.html @@ -0,0 +1,123 @@ + + +kshowmail: kshowmail/editdialog.moc.cpp Source File + + + + +
+
+ +

editdialog.moc.cpp

00001 /****************************************************************************
+00002 ** EditDialog meta object code from reading C++ file 'editdialog.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: editdialog_8moc_8cpp-source.html,v 1.8 2007/05/16 20:12:00 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "editdialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *EditDialog::className() const
+00023 {
+00024     return "EditDialog";
+00025 }
+00026 
+00027 QMetaObject *EditDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_EditDialog( "EditDialog", &EditDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString EditDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "EditDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString EditDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "EditDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* EditDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = EditDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotReplyClicked", 0, 0 };
+00056     static const QMetaData slot_tbl[] = {
+00057        { "slotReplyClicked()", &slot_0, QMetaData::Public }
+00058     };
+00059     metaObj = QMetaObject::new_metaobject(
+00060        "EditDialog", parentObject,
+00061        slot_tbl, 1,
+00062        0, 0,
+00063 #ifndef QT_NO_PROPERTIES
+00064        0, 0,
+00065        0, 0,
+00066 #endif // QT_NO_PROPERTIES
+00067        0, 0 );
+00068     cleanUp_EditDialog.setMetaObject( metaObj );
+00069     return metaObj;
+00070 }
+00071 
+00072 void* EditDialog::qt_cast( const char* clname )
+00073 {
+00074     if ( !qstrcmp( clname, "EditDialog" ) )
+00075        return this;
+00076     return EditDlg::qt_cast( clname );
+00077 }
+00078 
+00079 bool EditDialog::qt_invoke( int _id, QUObject* _o )
+00080 {
+00081     switch ( _id - staticMetaObject()->slotOffset() ) {
+00082     case 0: slotReplyClicked(); break;
+00083     default:
+00084        return EditDlg::qt_invoke( _id, _o );
+00085     }
+00086     return TRUE;
+00087 }
+00088 
+00089 bool EditDialog::qt_emit( int _id, QUObject* _o )
+00090 {
+00091     return EditDlg::qt_emit(_id,_o);
+00092 }
+00093 #ifndef QT_NO_PROPERTIES
+00094 
+00095 bool EditDialog::qt_property( int id, int f, QVariant* v)
+00096 {
+00097     return EditDlg::qt_property( id, f, v);
+00098 }
+00099 
+00100 bool EditDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00101 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:18 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/files.html b/doc/html/files.html new file mode 100644 index 0000000..7df35ef --- /dev/null +++ b/doc/html/files.html @@ -0,0 +1,120 @@ + + +kshowmail.kdevelop: File Index + + + + +
+
+
+
+

kshowmail.kdevelop File List

Here is a list of all files with brief descriptions: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Daten/Documents/programmieren/kshowmail/kshowmail/config.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/alertdialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/alertdialog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/AlertDlg.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/AlertDlg.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/configelem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/configelem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/configlist.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/configlist.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/constants.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/decodeRFC2047.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/decodeRFC2047.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/encryption.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/encryption.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filteritem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filteritem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filteritemcriteria.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filteritemcriteria.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogentry.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogentry.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogview.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogview.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogviewdeleteditem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogviewdeleteditem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogviewmoveditem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/filterlogviewmoveditem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/headerfilter.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/headerfilter.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmail.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmail.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmaildoc.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmaildoc.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmaildock.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmaildock.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmailfeedback.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmailview.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmailview.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kwalletaccess.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kwalletaccess.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/main.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/senderlistfilter.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/senderlistfilter.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/serverdialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/serverdialog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showheaderdialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showheaderdialog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showlistviewitem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showlistviewitem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showmaildialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showmaildialog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showrecord.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showrecord.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showrecordelem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showrecordelem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/types.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/uniqueapp.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/uniqueapp.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/accountsetupdialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/accountsetupdialog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/accountsetupitem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/accountsetupitem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configaccounts.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configaccounts.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configactions.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configactions.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configdisplay.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configdisplay.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configfilter.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configfilter.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configgeneral.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configgeneral.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configlog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configlog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configspamcheck.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/configspamcheck.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/encryption.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/encryption.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/filtercriteriawidget.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/filtercriteriawidget.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/filtersetupdialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/filtersetupdialog.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/filtersetupitem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/filtersetupitem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/kwalletaccess.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/kwalletaccess.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/mailboxwizard.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/mailboxwizard.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/mailboxwizardlistitem.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/mailboxwizardlistitem.h [code]
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/senderlistdialog.cpp
Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kcmconfigs/senderlistdialog.h [code]
+
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filter_8cpp-source.html b/doc/html/filter_8cpp-source.html new file mode 100644 index 0000000..7c24bc6 --- /dev/null +++ b/doc/html/filter_8cpp-source.html @@ -0,0 +1,76 @@ + + +kshowmail: kshowmail/filter.cpp Source File + + + + +
+
+ +

filter.cpp

00001 /***************************************************************************
+00002                           filter.cpp  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "filter.h"
+00019 
+00020 FilterList Filter::_filter;
+00021 Filter::filterStatus Filter::_status = Filter::off;
+00022 
+00023 Filter::Filter()
+00024 {
+00025 }
+00026 
+00027 Filter::~Filter()
+00028 {
+00029 }
+00030 
+00031 FilterElem* Filter::matches (ShowRecordElem* pElem)
+00032 {
+00033   for (FilterElem* pFilter = _filter.first(); pFilter; pFilter = _filter.next())
+00034   {
+00035     if (pFilter->matches (pElem))
+00036       return pFilter;
+00037   }
+00038   return NULL;
+00039 }
+00040 
+00041 void Filter::readOptions (KConfig* config)
+00042 {
+00043   config->setGroup ("filter_general");
+00044   _status = (Filter::filterStatus)config->readNumEntry("status", 0);
+00045   _filter.readOptions(config);
+00046 }
+00047 
+00048 void Filter::saveOptions (KConfig* config)
+00049 {
+00050   config->setGroup ("filter_general");
+00051   config->writeEntry ("status", _status);
+00052   _filter.saveOptions(config);
+00053   config->sync();
+00054 }
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filter_8h-source.html b/doc/html/filter_8h-source.html new file mode 100644 index 0000000..cb1ed84 --- /dev/null +++ b/doc/html/filter_8h-source.html @@ -0,0 +1,66 @@ + + +kshowmail: kshowmail/filter.h Source File + + + + +
+
+ +

filter.h

00001 /***************************************************************************
+00002                           filter.h  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef FILTER_H
+00019 #define FILTER_H
+00020 
+00021 
+00022 #include <kconfig.h>
+00023 #include "filterlist.h"
+00024 #include "filterelem.h"
+00025 #include "showrecordelem.h"
+00026 
+00030 class ShowRecordElem;
+00031 class FilterElem;
+00032 class FilterList;
+00033 
+00034 class Filter {
+00035 private:
+00036        Filter();
+00037        ~Filter();
+00038 public:
+00039   enum filterStatus {off, on, automatic};
+00040   static FilterElem* matches (ShowRecordElem*);
+00041   static FilterList _filter;
+00042   static filterStatus _status;
+00043        static void readOptions (KConfig* config);
+00044        static void saveOptions (KConfig* config);
+00045 };
+00046 
+00047 #endif
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterdialog_8cpp-source.html b/doc/html/filterdialog_8cpp-source.html new file mode 100644 index 0000000..daf1e0a --- /dev/null +++ b/doc/html/filterdialog_8cpp-source.html @@ -0,0 +1,165 @@ + + +kshowmail: kshowmail/filterdialog.cpp Source File + + + + +
+
+ +

filterdialog.cpp

00001 /***************************************************************************
+00002                           filterdialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <qradiobutton.h>
+00019 #include <qcombobox.h>
+00020 #include <klocale.h>
+00021 #include <kmessagebox.h>
+00022 #include <kdebug.h>
+00023  
+00024 #include "filterdialog.h"
+00025 #include "filterentrydialog.h"
+00026 
+00027 FilterDialog::FilterDialog(QWidget *parent, const char *name ) :
+00028   FilterDlg(parent,name)
+00029 {
+00030   switch (Filter::_status)
+00031   {
+00032     case Filter::off:
+00033       _radioOff->setChecked(true);
+00034       break;
+00035     case Filter::on:
+00036       _radioOn->setChecked(true);
+00037       break;
+00038     case Filter::automatic:
+00039       _radioAuto->setChecked(true);
+00040       break;
+00041   }
+00042   _filters = Filter::_filter;
+00043   _filters.setCombo(_comboFilter, 0);
+00044 }
+00045 
+00046 FilterDialog::~FilterDialog()
+00047 {
+00048 }
+00049 
+00050 void FilterDialog::slotFilterActivated (int index)
+00051 {
+00052   _filters.at (index);
+00053 }
+00054 
+00055 void FilterDialog::slotAdd ()
+00056 {
+00057        FilterElem* entry = new FilterElem ();
+00058        FilterEntryDialog dlg (this, "New filter", entry);
+00059        if (dlg.exec () == QDialog::Accepted)
+00060        {
+00061               _filters.inSort (entry);
+00062               int pos = _filters.at ();
+00063     _filters.setCombo(_comboFilter, pos);
+00064   }
+00065        else
+00066               delete entry;
+00067 }
+00068 
+00069 void FilterDialog::slotEdit ()
+00070 {
+00071        if (_filters.current ())
+00072        {
+00073               FilterEntryDialog dlg (this, "Edit command", _filters.current ());
+00074               if (dlg.exec () == QDialog::Accepted)
+00075               {
+00076                      // the command name may have changed. Update the combo box.
+00077       _filters.sort();
+00078       int pos = _filters.at ();
+00079       _filters.setCombo(_comboFilter, pos);
+00080               }
+00081        }
+00082 }
+00083 
+00084 void FilterDialog::slotCopy ()
+00085 {
+00086        if (_filters.current ())
+00087        {
+00088               FilterElem* entry = new FilterElem (*_filters.current ());
+00089               FilterEntryDialog dlg (this, "Copy command", entry);
+00090               if (dlg.exec () == QDialog::Accepted)
+00091               {
+00092                      _filters.inSort (entry);
+00093                      int pos = _filters.at ();
+00094       _filters.setCombo(_comboFilter, pos);
+00095               }
+00096               else
+00097                      delete entry;
+00098        }
+00099 }
+00100 
+00101 void FilterDialog::slotDelete ()
+00102 {
+00103        if (_filters.current())
+00104        {
+00105               if (KMessageBox::warningYesNo (this, i18n("Filter %1 will be deleted.\n"
+00106                                               "Are you sure ?").arg(_filters.current()->toString())) == KMessageBox::Yes)
+00107               {
+00108                      int pos = _filters.at ();
+00109                      _filters.remove (pos);
+00110       _filters.setCombo(_comboFilter, pos);
+00111               }
+00112        }
+00113 }
+00114 
+00115 void FilterDialog::slotOk ()
+00116 {
+00117   if (_radioOff->isChecked())
+00118     Filter::_status = Filter::off;
+00119   else if (_radioOn->isChecked())
+00120     Filter::_status = Filter::on;
+00121   else if (_radioAuto->isChecked())
+00122     Filter::_status = Filter::automatic;
+00123   else
+00124     Filter::_status = Filter::off;
+00125   
+00126   Filter::_filter = _filters;
+00127   accept ();
+00128 }
+00129 
+00130 void FilterDialog::slotAutomaticActivated ()
+00131 {
+00132   if (_radioAuto->isChecked())
+00133   {
+00134     if (KMessageBox::warningContinueCancel (this, i18n("Automatic filters can cause loss of important mails.\n"
+00135                                                        "Please test your filters.\n"
+00136                                                        "Are you sure ?"),
+00137                                                        QString::null,
+00138                                                        KStdGuiItem::cont(),
+00139                                                        "autofilteraskagain") == KMessageBox::Cancel)
+00140       _radioOn->setChecked (true);
+00141   }
+00142 }
+00143 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterdialog_8h-source.html b/doc/html/filterdialog_8h-source.html new file mode 100644 index 0000000..fae4c33 --- /dev/null +++ b/doc/html/filterdialog_8h-source.html @@ -0,0 +1,66 @@ + + +kshowmail: kshowmail/filterdialog.h Source File + + + + +
+
+ +

filterdialog.h

00001 /***************************************************************************
+00002                           filterdialog.h  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef FILTERDIALOG_H
+00019 #define FILTERDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "filter.h"
+00023 #include "FilterDlg.h"
+00024 #include "filterlist.h"
+00025 #include "filterelem.h"
+00026 
+00031 class FilterDialog : public FilterDlg  {
+00032    Q_OBJECT
+00033 public: 
+00034        FilterDialog(QWidget *parent=0, const char *name=0);
+00035        ~FilterDialog();
+00036 public slots:
+00037   virtual void slotAdd ();
+00038   virtual void slotEdit ();
+00039   virtual void slotCopy();
+00040   virtual void slotDelete ();
+00041   virtual void slotOk ();
+00042   virtual void slotFilterActivated (int);
+00043   virtual void slotAutomaticActivated ();
+00044 private:
+00045   FilterList _filters;
+00046 };
+00047 
+00048 #endif
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterdialog_8moc_8cpp-source.html b/doc/html/filterdialog_8moc_8cpp-source.html new file mode 100644 index 0000000..7b8487f --- /dev/null +++ b/doc/html/filterdialog_8moc_8cpp-source.html @@ -0,0 +1,144 @@ + + +kshowmail: kshowmail/filterdialog.moc.cpp Source File + + + + +
+
+ +

filterdialog.moc.cpp

00001 /****************************************************************************
+00002 ** FilterDialog meta object code from reading C++ file 'filterdialog.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:09:04 2007
+00005 **      by: The Qt MOC ($Id: filterdialog_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:50 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "filterdialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *FilterDialog::className() const
+00023 {
+00024     return "FilterDialog";
+00025 }
+00026 
+00027 QMetaObject *FilterDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_FilterDialog( "FilterDialog", &FilterDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString FilterDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "FilterDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString FilterDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "FilterDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* FilterDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = FilterDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotAdd", 0, 0 };
+00056     static const QUMethod slot_1 = {"slotEdit", 0, 0 };
+00057     static const QUMethod slot_2 = {"slotCopy", 0, 0 };
+00058     static const QUMethod slot_3 = {"slotDelete", 0, 0 };
+00059     static const QUMethod slot_4 = {"slotOk", 0, 0 };
+00060     static const QUParameter param_slot_5[] = {
+00061        { 0, &static_QUType_int, 0, QUParameter::In }
+00062     };
+00063     static const QUMethod slot_5 = {"slotFilterActivated", 1, param_slot_5 };
+00064     static const QUMethod slot_6 = {"slotAutomaticActivated", 0, 0 };
+00065     static const QMetaData slot_tbl[] = {
+00066        { "slotAdd()", &slot_0, QMetaData::Public },
+00067        { "slotEdit()", &slot_1, QMetaData::Public },
+00068        { "slotCopy()", &slot_2, QMetaData::Public },
+00069        { "slotDelete()", &slot_3, QMetaData::Public },
+00070        { "slotOk()", &slot_4, QMetaData::Public },
+00071        { "slotFilterActivated(int)", &slot_5, QMetaData::Public },
+00072        { "slotAutomaticActivated()", &slot_6, QMetaData::Public }
+00073     };
+00074     metaObj = QMetaObject::new_metaobject(
+00075        "FilterDialog", parentObject,
+00076        slot_tbl, 7,
+00077        0, 0,
+00078 #ifndef QT_NO_PROPERTIES
+00079        0, 0,
+00080        0, 0,
+00081 #endif // QT_NO_PROPERTIES
+00082        0, 0 );
+00083     cleanUp_FilterDialog.setMetaObject( metaObj );
+00084     return metaObj;
+00085 }
+00086 
+00087 void* FilterDialog::qt_cast( const char* clname )
+00088 {
+00089     if ( !qstrcmp( clname, "FilterDialog" ) )
+00090        return this;
+00091     return FilterDlg::qt_cast( clname );
+00092 }
+00093 
+00094 bool FilterDialog::qt_invoke( int _id, QUObject* _o )
+00095 {
+00096     switch ( _id - staticMetaObject()->slotOffset() ) {
+00097     case 0: slotAdd(); break;
+00098     case 1: slotEdit(); break;
+00099     case 2: slotCopy(); break;
+00100     case 3: slotDelete(); break;
+00101     case 4: slotOk(); break;
+00102     case 5: slotFilterActivated((int)static_QUType_int.get(_o+1)); break;
+00103     case 6: slotAutomaticActivated(); break;
+00104     default:
+00105        return FilterDlg::qt_invoke( _id, _o );
+00106     }
+00107     return TRUE;
+00108 }
+00109 
+00110 bool FilterDialog::qt_emit( int _id, QUObject* _o )
+00111 {
+00112     return FilterDlg::qt_emit(_id,_o);
+00113 }
+00114 #ifndef QT_NO_PROPERTIES
+00115 
+00116 bool FilterDialog::qt_property( int id, int f, QVariant* v)
+00117 {
+00118     return FilterDlg::qt_property( id, f, v);
+00119 }
+00120 
+00121 bool FilterDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00122 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterelem_8cpp-source.html b/doc/html/filterelem_8cpp-source.html new file mode 100644 index 0000000..f1d16f9 --- /dev/null +++ b/doc/html/filterelem_8cpp-source.html @@ -0,0 +1,324 @@ + + +kshowmail: kshowmail/filterelem.cpp Source File + + + + +
+
+ +

filterelem.cpp

00001 /***************************************************************************
+00002                           filterelem.cpp  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <qregexp.h>
+00019 #include <klocale.h>
+00020 #include <kdebug.h>
+00021 #include "filterelem.h"
+00022 
+00023 FilterRecord::FilterRecord ():
+00024   _type (from), _expression (contains), _CaseSensitive (false), _RegExp (false)
+00025 {}
+00026 
+00027 FilterRecord::FilterRecord (filterType type, expressionType expression, const QString& match, bool caseSensitive, bool regExp):
+00028   _type (type),
+00029   _expression (expression),
+00030   _match (match),
+00031   _CaseSensitive (caseSensitive),
+00032   _RegExp (regExp)
+00033 {}
+00034 
+00035 QString FilterRecord::toString () const
+00036 {
+00037   QString name;
+00038   switch (_type)
+00039   {
+00040     case from:
+00041       name += i18n ("From");
+00042       break;
+00043     case subject:
+00044       name += i18n ("Subject");
+00045       break;
+00046     case header:
+00047       name += i18n ("Header");
+00048       break;
+00049     case size:
+00050       name += i18n ("Size");
+00051       break;
+00052     case to:
+00053       name += i18n ("To");
+00054       break;
+00055   }
+00056   name += " ";
+00057   switch (_expression)
+00058   {
+00059     case contains:
+00060       name += i18n ("Contains");
+00061       break;
+00062     case contains_not:
+00063       name += i18n ("Doesn't contain");
+00064       break;
+00065     case equals:
+00066       name += i18n ("Equals");
+00067       break;
+00068     case equals_not:
+00069       name += i18n ("Doesn't equal");
+00070       break;
+00071     case greater:
+00072       name += i18n ("Greater");
+00073       break;
+00074     case less:
+00075       name += i18n ("Less");
+00076       break;
+00077   }
+00078   name += " ";
+00079   name += _match;
+00080   return name;
+00081 }
+00082 
+00083 FilterElem::FilterElem():
+00084   _secondCondition (noSecondCondition),
+00085   _counter (0)
+00086 {
+00087 }
+00088 
+00089 FilterElem::FilterElem (const FilterRecord& record):
+00090   _filter1 (record), _secondCondition (noSecondCondition), _counter (0)
+00091 {
+00092 }
+00093 
+00094 FilterElem::FilterElem (const FilterElem& elem):
+00095   _filter1 (elem._filter1),
+00096   _filter2 (elem._filter2),
+00097   _secondCondition (elem._secondCondition),
+00098   _counter (elem._counter)
+00099 {
+00100 }
+00101 
+00102 FilterElem::~FilterElem()
+00103 {
+00104 }
+00105 
+00106 void FilterElem::setSecondCondition (secondCondition scnd, const FilterRecord& filter)
+00107 {
+00108   _secondCondition = scnd;
+00109   _filter2 = filter;
+00110 }
+00111 
+00112 QString FilterElem::toString () const
+00113 {
+00114   QString name;
+00115   name.sprintf ("%06d_", _counter);
+00116   name += _filter1.toString();
+00117   if (_secondCondition != FilterElem::noSecondCondition)
+00118   {
+00119     name += " ";
+00120     switch (_secondCondition)
+00121     {
+00122       case condAnd:
+00123         name += i18n ("And");
+00124         break;
+00125       case condOr:
+00126         name += i18n ("Or");
+00127         break;
+00128       default:
+00129         break;
+00130     }
+00131     name += " " + _filter2.toString();
+00132   }
+00133   return name;
+00134 }
+00135 
+00136 bool FilterRecord::matches (ShowRecordElem* pElem)
+00137 {
+00138   QString text;
+00139   int msgsize = 0;
+00140   switch (_type)
+00141   {
+00142     case subject:
+00143       text = pElem->subject();
+00144       break;
+00145     case from:
+00146       text = pElem->from();
+00147       break;
+00148     case to:
+00149       text = pElem->to();
+00150       break;
+00151     case header:
+00152       text = pElem->header();
+00153       break;
+00154     case size:
+00155       {
+00156         msgsize = pElem->size();
+00157         int value = _match.toInt();
+00158         switch (_expression)
+00159         {
+00160           case equals:
+00161             return (msgsize == value);
+00162             break;
+00163           case equals_not:
+00164             return (msgsize != value);
+00165             break;
+00166           case greater:
+00167             return (msgsize > value);
+00168             break;
+00169           case less:
+00170             return (msgsize < value);
+00171             break;
+00172           default:
+00173             // contains does not make sense for size
+00174             return false;
+00175         }
+00176         return false;
+00177       }
+00178       break;
+00179     default:
+00180       return false;
+00181   }
+00182 
+00183   switch (_expression)
+00184   {
+00185     case contains:
+00186       if (_RegExp)
+00187       {
+00188         return (QRegExp (_match, _CaseSensitive).search(text) >= 0);
+00189       }
+00190       else
+00191       {
+00192         return (text.contains (_match, _CaseSensitive) > 0);
+00193       }
+00194       break;
+00195     case contains_not:
+00196       if (_RegExp)
+00197       {
+00198         return (QRegExp (_match, _CaseSensitive).search(text) < 0);
+00199       }
+00200       else
+00201       {
+00202         return (text.contains (_match, _CaseSensitive) == 0);
+00203       }
+00204       break;
+00205     case equals:
+00206       if (_RegExp)
+00207       {
+00208         return (QRegExp (_match, _CaseSensitive).exactMatch (text));
+00209       }
+00210       else
+00211       {
+00212         if (_CaseSensitive)
+00213         {
+00214           return (text == _match);
+00215         }
+00216         else
+00217         {
+00218           return (text.upper() == _match.upper());
+00219         }
+00220       }
+00221       break;
+00222     case equals_not:
+00223       if (_RegExp)
+00224       {
+00225         return !(QRegExp (_match, _CaseSensitive).exactMatch (text));
+00226       }
+00227       else
+00228       {
+00229         if (_CaseSensitive)
+00230         {
+00231           return (text != _match);
+00232         }
+00233         else
+00234         {
+00235           return (text.upper() != _match.upper());
+00236         }
+00237       }
+00238       break;
+00239     case greater:
+00240       if (_CaseSensitive)
+00241       {
+00242         return (text > _match);
+00243       }
+00244       else
+00245       {
+00246         return (text.upper() > _match.upper());
+00247       }
+00248       break;
+00249     case less:
+00250       if (_CaseSensitive)
+00251       {
+00252         return (text < _match);
+00253       }
+00254       else
+00255       {
+00256         return (text.upper() < _match.upper());
+00257       }
+00258       break;
+00259     default:
+00260       return false;
+00261   }
+00262 
+00263   return false;
+00264 }
+00265 
+00266 bool FilterElem::matches (ShowRecordElem* pElem)
+00267 {
+00268   bool result = _filter1.matches (pElem);
+00269   switch (_secondCondition)
+00270   {
+00271     case noSecondCondition:
+00272       return result;
+00273       break;
+00274     case condAnd:
+00275       if (result)
+00276         return _filter2.matches (pElem);
+00277       else
+00278         return false;
+00279       break;
+00280     case condOr:
+00281       if (result)
+00282         return true;
+00283       else
+00284         return _filter2.matches (pElem);
+00285   }
+00286   return false;
+00287 }
+00288 
+00289 unsigned int FilterElem::getCounter( )
+00290 {
+00291   return _counter;
+00292 }
+00293 
+00294 void FilterElem::incCounter( )
+00295 {
+00296   _counter++;
+00297 }
+00298 
+00299 void FilterElem::setCounter( unsigned int number )
+00300 {
+00301   _counter = number;
+00302 }
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterelem_8h-source.html b/doc/html/filterelem_8h-source.html new file mode 100644 index 0000000..c38a116 --- /dev/null +++ b/doc/html/filterelem_8h-source.html @@ -0,0 +1,97 @@ + + +kshowmail: kshowmail/filterelem.h Source File + + + + +
+
+ +

filterelem.h

00001 /***************************************************************************
+00002                           filterelem.h  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef FILTERELEM_H
+00019 #define FILTERELEM_H
+00020 
+00021 #include "showrecordelem.h"
+00022 
+00027 class ShowRecordElem;
+00028 
+00029 class FilterRecord
+00030 {
+00031   public:
+00032   // this sequence must not be changed. See FilterEntryDlg.ui
+00033   enum filterType {from, subject, header, size, to};
+00034   enum expressionType {contains, contains_not, equals, equals_not, greater, less};
+00035 
+00036   FilterRecord ();
+00037   FilterRecord (filterType type, expressionType expression, const QString& match, bool CaseSensitive, bool regExp);
+00038   bool matches (ShowRecordElem*);
+00039   QString toString () const;
+00040 
+00041   filterType _type;
+00042   expressionType _expression;
+00043   QString _match;
+00044   bool _CaseSensitive;
+00045   bool _RegExp;
+00046 };
+00047 
+00048 class FilterElem {
+00049 public:
+00050   // this sequence must not be changed. See FilterEntryDlg.ui
+00051   enum secondCondition {noSecondCondition, condAnd, condOr};
+00052 
+00053        FilterElem();
+00054   FilterElem (const FilterRecord&);
+00055   FilterElem (const FilterElem&);
+00056   void setSecondCondition (secondCondition scnd, const FilterRecord&);
+00057 
+00058   ~FilterElem();
+00059   QString toString () const;
+00060 
+00061   FilterRecord _filter1;
+00062   FilterRecord _filter2;
+00063 
+00064   secondCondition _secondCondition;
+00065 
+00066   bool matches (ShowRecordElem*);
+00067 
+00072   unsigned int getCounter();
+00073 
+00078   void setCounter( unsigned int number );
+00079 
+00083   void incCounter();
+00084 
+00085   private:
+00086 
+00090     unsigned int _counter;
+00091 };
+00092 
+00093 #endif
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterentrydialog_8cpp-source.html b/doc/html/filterentrydialog_8cpp-source.html new file mode 100644 index 0000000..bf3a7ce --- /dev/null +++ b/doc/html/filterentrydialog_8cpp-source.html @@ -0,0 +1,272 @@ + + +kshowmail: kshowmail/filterentrydialog.cpp Source File + + + + +
+
+ +

filterentrydialog.cpp

00001 /***************************************************************************
+00002                           filterentrydialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Mit Sep 24 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <qvalidator.h>
+00019 #include <qlineedit.h>
+00020 #include <qcombobox.h>
+00021 #include <qcheckbox.h>
+00022 #include <qgroupbox.h>
+00023 #include <qspinbox.h>
+00024 #include <qpushbutton.h>
+00025 
+00026 #include <kdebug.h>
+00027 #include <klocale.h>
+00028 #include <kmessagebox.h>
+00029 #include <kregexpeditorinterface.h>
+00030 #include <kparts/part.h>
+00031 #include <kparts/componentfactory.h>
+00032 
+00033 #include "filterelem.h"
+00034 #include "filterentrydialog.h"
+00035 
+00036 FilterEntryDialog::FilterEntryDialog(QWidget *parent, const char *name, FilterElem* elem ) :
+00037 FilterEntryDlg(parent,name), _elem (elem)
+00038 {
+00039   _editName->setText (elem->toString());
+00040 
+00041   _comboItem1->setCurrentItem (elem->_filter1._type);
+00042   _comboExpression1->setCurrentItem (elem->_filter1._expression);
+00043   _editMatch1->setText (elem->_filter1._match);
+00044   _checkCaseSensitive1->setChecked (elem->_filter1._CaseSensitive);
+00045   _checkRegExp1->setChecked (elem->_filter1._RegExp);
+00046 
+00047   _comboSecondCondition->setCurrentItem (elem->_secondCondition);
+00048 
+00049   _comboItem2->setCurrentItem (elem->_filter2._type);
+00050   _comboExpression2->setCurrentItem (elem->_filter2._expression);
+00051   _editMatch2->setText (elem->_filter2._match);
+00052   _checkCaseSensitive2->setChecked (elem->_filter2._CaseSensitive);
+00053   _checkRegExp2->setChecked (elem->_filter2._RegExp);
+00054   _spinCounter->setValue (elem->getCounter() );
+00055 
+00056   slotItem1Selected (elem->_filter1._type);
+00057   slotItem2Selected (elem->_filter2._type);
+00058   slotSecondCondition (_elem->_secondCondition);
+00059 
+00060   if (KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty())
+00061   {
+00062     _buttonEditRegExp1->hide();
+00063     _buttonEditRegExp2->hide();
+00064   }
+00065   else
+00066   {
+00067     _buttonEditRegExp1->setEnabled (elem->_filter1._RegExp);
+00068     _buttonEditRegExp2->setEnabled (elem->_filter2._RegExp);
+00069   }
+00070 }
+00071 
+00072 FilterEntryDialog::~FilterEntryDialog()
+00073 {
+00074 }
+00075 
+00076 void FilterEntryDialog::slotOk ()
+00077 {
+00078   if (_editMatch1->text().isEmpty() ||
+00079      (((FilterElem::secondCondition)_comboSecondCondition->currentItem() != FilterElem::noSecondCondition) &&
+00080       _editMatch2->text().isEmpty()))
+00081   {
+00082     KMessageBox::sorry (this, i18n("Your conditions contain empty match strings.\n"
+00083                                    "This will not work."));
+00084     return;
+00085   }
+00086 
+00087   if (_elem->_filter1._RegExp)
+00088   {
+00089     QRegExp exp (_elem->_filter1._match);
+00090     if (!exp.isValid())
+00091     {
+00092       KMessageBox::sorry (this, i18n ("Condition") + ":\n" + exp.errorString());
+00093       return;
+00094     }
+00095   }
+00096   if (_elem->_secondCondition && _elem->_filter2._RegExp)
+00097   {
+00098     QRegExp exp (_elem->_filter2._match);
+00099     if (!exp.isValid())
+00100     {
+00101       KMessageBox::sorry (this, i18n ("second Condition") + ":\n" + exp.errorString());
+00102       return;
+00103     }
+00104   }
+00105 
+00106   _elem->_filter1._CaseSensitive = _checkCaseSensitive1->isChecked();
+00107   _elem->_filter2._CaseSensitive = _checkCaseSensitive2->isChecked();
+00108   _elem->_filter1._RegExp = _checkRegExp1->isChecked();
+00109   _elem->_filter2._RegExp = _checkRegExp2->isChecked();
+00110 
+00111   accept ();
+00112 }
+00113 
+00114 void FilterEntryDialog::slotItem1Selected (int type)
+00115 {
+00116   if (type == FilterRecord::size)
+00117   {
+00118     int dummy;
+00119     QString match (_editMatch1->text());
+00120     QIntValidator* validator = new QIntValidator (_editMatch1);
+00121     if (validator->validate (match, dummy) == QValidator::Invalid)
+00122       _editMatch1->clear();
+00123     _editMatch1->setValidator (validator);
+00124     _checkCaseSensitive1->setEnabled (false);
+00125   }
+00126   else
+00127   {
+00128     _editMatch1->setValidator (NULL);
+00129     _checkCaseSensitive1->setEnabled (true);
+00130   }
+00131 
+00132   _elem->_filter1._type = (FilterRecord::filterType)type;
+00133   _editName->setText (_elem->toString());
+00134 }
+00135 
+00136 void FilterEntryDialog::slotItem2Selected (int type)
+00137 {
+00138   if (type == FilterRecord::size)
+00139   {
+00140     int dummy;
+00141     QString match (_editMatch2->text());
+00142     QIntValidator* validator = new QIntValidator (_editMatch2);
+00143     if (validator->validate (match, dummy) == QValidator::Invalid)
+00144       _editMatch2->clear();
+00145     _editMatch2->setValidator (validator);
+00146     _checkCaseSensitive2->setEnabled (false);
+00147   }
+00148   else
+00149   {
+00150     _editMatch2->setValidator (NULL);
+00151     _checkCaseSensitive2->setEnabled (true);
+00152   }
+00153 
+00154   _elem->_filter2._type = (FilterRecord::filterType)type;
+00155   _editName->setText (_elem->toString());
+00156 }
+00157 
+00158 void FilterEntryDialog::slotSecondCondition (int condition)
+00159 {
+00160   if (condition == FilterElem::noSecondCondition)
+00161     _groupBox2->setEnabled(false);
+00162   else
+00163     _groupBox2->setEnabled(true);
+00164 
+00165   _elem->_secondCondition = (FilterElem::secondCondition)condition;
+00166   _editName->setText (_elem->toString());
+00167 }
+00168 
+00169 void FilterEntryDialog::slotCondition1Selected(int cond)
+00170 {
+00171   _elem->_filter1._expression = (FilterRecord::expressionType)cond;
+00172   _editName->setText (_elem->toString());
+00173 }
+00174 
+00175 void FilterEntryDialog::slotCondition2Selected(int cond)
+00176 {
+00177   _elem->_filter2._expression = (FilterRecord::expressionType)cond;
+00178   _editName->setText (_elem->toString());
+00179 }
+00180 
+00181 void FilterEntryDialog::slotMatch1Changed(const QString& match)
+00182 {
+00183   _elem->_filter1._match = match;
+00184   _editName->setText (_elem->toString());
+00185 }
+00186 
+00187 void FilterEntryDialog::slotMatch2Changed(const QString& match)
+00188 {
+00189   _elem->_filter2._match = match;
+00190   _editName->setText (_elem->toString());
+00191 }
+00192 
+00193 void FilterEntryDialog::slotResetCounter()
+00194 {
+00195   _spinCounter->setValue(0);
+00196 }
+00197 
+00198 void FilterEntryDialog::slotCounterChanged (int val)
+00199 {
+00200   _elem->setCounter( val );
+00201   _editName->setText (_elem->toString());
+00202 }
+00203 
+00204 void FilterEntryDialog::slotEditRegExp1()
+00205 {
+00206   QDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor" );
+00207   if ( editorDialog )
+00208   {
+00209     // kdeutils was installed, so the dialog was found fetch the editor interface
+00210     KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorDialog->qt_cast( "KRegExpEditorInterface" ) );
+00211     Q_ASSERT( editor ); // This should not fail!
+00212 
+00213     // now use the editor.
+00214     editor->setRegExp(_editMatch1->text());
+00215 
+00216     // Finally exec the dialog
+00217     if (editorDialog->exec() == QDialog::Accepted)
+00218       _editMatch1->setText (editor->regExp());
+00219   }
+00220 }
+00221 
+00222 void FilterEntryDialog::slotEditRegExp2()
+00223 {
+00224   QDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor" );
+00225   if ( editorDialog )
+00226   {
+00227     // kdeutils was installed, so the dialog was found fetch the editor interface
+00228     KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorDialog->qt_cast( "KRegExpEditorInterface" ) );
+00229     Q_ASSERT( editor ); // This should not fail!
+00230 
+00231     // now use the editor.
+00232     editor->setRegExp(_editMatch2->text());
+00233 
+00234     // Finally exec the dialog
+00235     if (editorDialog->exec() == QDialog::Accepted)
+00236       _editMatch2->setText (editor->regExp());
+00237   }
+00238 }
+00239 
+00240 void FilterEntryDialog::slotToggleRegExp1 (bool on)
+00241 {
+00242   _buttonEditRegExp1->setEnabled (on);
+00243 }
+00244 
+00245 void FilterEntryDialog::slotToggleRegExp2 (bool on)
+00246 {
+00247   _buttonEditRegExp2->setEnabled (on);
+00248 }
+00249 
+00250 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterentrydialog_8h-source.html b/doc/html/filterentrydialog_8h-source.html new file mode 100644 index 0000000..542ac05 --- /dev/null +++ b/doc/html/filterentrydialog_8h-source.html @@ -0,0 +1,72 @@ + + +kshowmail: kshowmail/filterentrydialog.h Source File + + + + +
+
+ +

filterentrydialog.h

00001 /***************************************************************************
+00002                           filterentrydialog.h  -  description
+00003                              -------------------
+00004     begin                : Mit Sep 24 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef FILTERENTRYDIALOG_H
+00019 #define FILTERENTRYDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "filterelem.h"
+00023 #include "FilterEntryDlg.h"
+00024 
+00029 class FilterEntryDialog : public FilterEntryDlg  {
+00030    Q_OBJECT
+00031 public: 
+00032        FilterEntryDialog(QWidget *parent, const char *name, FilterElem* elem);
+00033        ~FilterEntryDialog();
+00034 public slots:
+00035   virtual void slotOk ();
+00036   virtual void slotItem1Selected (int);
+00037   virtual void slotItem2Selected (int);
+00038   virtual void slotSecondCondition (int);
+00039   virtual void slotCondition1Selected(int);
+00040   virtual void slotCondition2Selected(int);
+00041   virtual void slotMatch1Changed(const QString&);
+00042   virtual void slotMatch2Changed(const QString&);
+00043   virtual void slotResetCounter();
+00044   virtual void slotCounterChanged(int);
+00045   virtual void slotEditRegExp1();
+00046   virtual void slotEditRegExp2();
+00047   virtual void slotToggleRegExp1(bool);
+00048   virtual void slotToggleRegExp2(bool);
+00049 
+00050 private:
+00051   FilterElem* _elem;
+00052 };
+00053 
+00054 #endif
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterentrydialog_8moc_8cpp-source.html b/doc/html/filterentrydialog_8moc_8cpp-source.html new file mode 100644 index 0000000..630ecca --- /dev/null +++ b/doc/html/filterentrydialog_8moc_8cpp-source.html @@ -0,0 +1,192 @@ + + +kshowmail: kshowmail/filterentrydialog.moc.cpp Source File + + + + +
+
+ +

filterentrydialog.moc.cpp

00001 /****************************************************************************
+00002 ** FilterEntryDialog meta object code from reading C++ file 'filterentrydialog.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:09:01 2007
+00005 **      by: The Qt MOC ($Id: filterentrydialog_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:50 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "filterentrydialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *FilterEntryDialog::className() const
+00023 {
+00024     return "FilterEntryDialog";
+00025 }
+00026 
+00027 QMetaObject *FilterEntryDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_FilterEntryDialog( "FilterEntryDialog", &FilterEntryDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString FilterEntryDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "FilterEntryDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString FilterEntryDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "FilterEntryDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* FilterEntryDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = FilterEntryDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotOk", 0, 0 };
+00056     static const QUParameter param_slot_1[] = {
+00057        { 0, &static_QUType_int, 0, QUParameter::In }
+00058     };
+00059     static const QUMethod slot_1 = {"slotItem1Selected", 1, param_slot_1 };
+00060     static const QUParameter param_slot_2[] = {
+00061        { 0, &static_QUType_int, 0, QUParameter::In }
+00062     };
+00063     static const QUMethod slot_2 = {"slotItem2Selected", 1, param_slot_2 };
+00064     static const QUParameter param_slot_3[] = {
+00065        { 0, &static_QUType_int, 0, QUParameter::In }
+00066     };
+00067     static const QUMethod slot_3 = {"slotSecondCondition", 1, param_slot_3 };
+00068     static const QUParameter param_slot_4[] = {
+00069        { 0, &static_QUType_int, 0, QUParameter::In }
+00070     };
+00071     static const QUMethod slot_4 = {"slotCondition1Selected", 1, param_slot_4 };
+00072     static const QUParameter param_slot_5[] = {
+00073        { 0, &static_QUType_int, 0, QUParameter::In }
+00074     };
+00075     static const QUMethod slot_5 = {"slotCondition2Selected", 1, param_slot_5 };
+00076     static const QUParameter param_slot_6[] = {
+00077        { 0, &static_QUType_QString, 0, QUParameter::In }
+00078     };
+00079     static const QUMethod slot_6 = {"slotMatch1Changed", 1, param_slot_6 };
+00080     static const QUParameter param_slot_7[] = {
+00081        { 0, &static_QUType_QString, 0, QUParameter::In }
+00082     };
+00083     static const QUMethod slot_7 = {"slotMatch2Changed", 1, param_slot_7 };
+00084     static const QUMethod slot_8 = {"slotResetCounter", 0, 0 };
+00085     static const QUParameter param_slot_9[] = {
+00086        { 0, &static_QUType_int, 0, QUParameter::In }
+00087     };
+00088     static const QUMethod slot_9 = {"slotCounterChanged", 1, param_slot_9 };
+00089     static const QUMethod slot_10 = {"slotEditRegExp1", 0, 0 };
+00090     static const QUMethod slot_11 = {"slotEditRegExp2", 0, 0 };
+00091     static const QUParameter param_slot_12[] = {
+00092        { 0, &static_QUType_bool, 0, QUParameter::In }
+00093     };
+00094     static const QUMethod slot_12 = {"slotToggleRegExp1", 1, param_slot_12 };
+00095     static const QUParameter param_slot_13[] = {
+00096        { 0, &static_QUType_bool, 0, QUParameter::In }
+00097     };
+00098     static const QUMethod slot_13 = {"slotToggleRegExp2", 1, param_slot_13 };
+00099     static const QMetaData slot_tbl[] = {
+00100        { "slotOk()", &slot_0, QMetaData::Public },
+00101        { "slotItem1Selected(int)", &slot_1, QMetaData::Public },
+00102        { "slotItem2Selected(int)", &slot_2, QMetaData::Public },
+00103        { "slotSecondCondition(int)", &slot_3, QMetaData::Public },
+00104        { "slotCondition1Selected(int)", &slot_4, QMetaData::Public },
+00105        { "slotCondition2Selected(int)", &slot_5, QMetaData::Public },
+00106        { "slotMatch1Changed(const QString&)", &slot_6, QMetaData::Public },
+00107        { "slotMatch2Changed(const QString&)", &slot_7, QMetaData::Public },
+00108        { "slotResetCounter()", &slot_8, QMetaData::Public },
+00109        { "slotCounterChanged(int)", &slot_9, QMetaData::Public },
+00110        { "slotEditRegExp1()", &slot_10, QMetaData::Public },
+00111        { "slotEditRegExp2()", &slot_11, QMetaData::Public },
+00112        { "slotToggleRegExp1(bool)", &slot_12, QMetaData::Public },
+00113        { "slotToggleRegExp2(bool)", &slot_13, QMetaData::Public }
+00114     };
+00115     metaObj = QMetaObject::new_metaobject(
+00116        "FilterEntryDialog", parentObject,
+00117        slot_tbl, 14,
+00118        0, 0,
+00119 #ifndef QT_NO_PROPERTIES
+00120        0, 0,
+00121        0, 0,
+00122 #endif // QT_NO_PROPERTIES
+00123        0, 0 );
+00124     cleanUp_FilterEntryDialog.setMetaObject( metaObj );
+00125     return metaObj;
+00126 }
+00127 
+00128 void* FilterEntryDialog::qt_cast( const char* clname )
+00129 {
+00130     if ( !qstrcmp( clname, "FilterEntryDialog" ) )
+00131        return this;
+00132     return FilterEntryDlg::qt_cast( clname );
+00133 }
+00134 
+00135 bool FilterEntryDialog::qt_invoke( int _id, QUObject* _o )
+00136 {
+00137     switch ( _id - staticMetaObject()->slotOffset() ) {
+00138     case 0: slotOk(); break;
+00139     case 1: slotItem1Selected((int)static_QUType_int.get(_o+1)); break;
+00140     case 2: slotItem2Selected((int)static_QUType_int.get(_o+1)); break;
+00141     case 3: slotSecondCondition((int)static_QUType_int.get(_o+1)); break;
+00142     case 4: slotCondition1Selected((int)static_QUType_int.get(_o+1)); break;
+00143     case 5: slotCondition2Selected((int)static_QUType_int.get(_o+1)); break;
+00144     case 6: slotMatch1Changed((const QString&)static_QUType_QString.get(_o+1)); break;
+00145     case 7: slotMatch2Changed((const QString&)static_QUType_QString.get(_o+1)); break;
+00146     case 8: slotResetCounter(); break;
+00147     case 9: slotCounterChanged((int)static_QUType_int.get(_o+1)); break;
+00148     case 10: slotEditRegExp1(); break;
+00149     case 11: slotEditRegExp2(); break;
+00150     case 12: slotToggleRegExp1((bool)static_QUType_bool.get(_o+1)); break;
+00151     case 13: slotToggleRegExp2((bool)static_QUType_bool.get(_o+1)); break;
+00152     default:
+00153        return FilterEntryDlg::qt_invoke( _id, _o );
+00154     }
+00155     return TRUE;
+00156 }
+00157 
+00158 bool FilterEntryDialog::qt_emit( int _id, QUObject* _o )
+00159 {
+00160     return FilterEntryDlg::qt_emit(_id,_o);
+00161 }
+00162 #ifndef QT_NO_PROPERTIES
+00163 
+00164 bool FilterEntryDialog::qt_property( int id, int f, QVariant* v)
+00165 {
+00166     return FilterEntryDlg::qt_property( id, f, v);
+00167 }
+00168 
+00169 bool FilterEntryDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00170 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterlist_8cpp-source.html b/doc/html/filterlist_8cpp-source.html new file mode 100644 index 0000000..9f3a679 --- /dev/null +++ b/doc/html/filterlist_8cpp-source.html @@ -0,0 +1,187 @@ + + +kshowmail: kshowmail/filterlist.cpp Source File + + + + +
+
+ +

filterlist.cpp

00001 /***************************************************************************
+00002                           filterlist.cpp  -  description
+00003                              -------------------
+00004     begin                : Wed Sep 25 2003
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <kdebug.h>
+00019 #include "filterlist.h"
+00020 
+00021 FilterList::FilterList()
+00022 {
+00023        setAutoDelete (true);
+00024 }
+00025 
+00026 FilterList::~FilterList()
+00027 {
+00028 }
+00029 
+00030 void FilterList::setCombo (QComboBox* combo, int nIndex)
+00031 {
+00032        combo->clear ();
+00033        for (FilterElem* pElem = first(); pElem; pElem = next())
+00034        {
+00035               combo->insertItem (pElem->toString());
+00036        }
+00037        if (nIndex >= 0)
+00038        {
+00039               at (nIndex);
+00040               combo->setCurrentItem (nIndex);
+00041        }
+00042 }
+00043 
+00044 FilterList& FilterList::operator = (FilterList& list)
+00045 {
+00046        clear ();
+00047        int nIndex = list.at ();
+00048        for (FilterElem* item = list.first (); item; item = list.next ())
+00049        {
+00050               inSort (new FilterElem (*item));
+00051        }
+00052        at (nIndex);
+00053        return *this;
+00054 }
+00055 
+00056 QCollection::Item FilterList::newItem (QCollection::Item d)
+00057 {
+00058        return new FilterElem (*(FilterElem*)d);
+00059 }
+00060 
+00061 int FilterList::compareItems (QCollection::Item item1, QCollection::Item item2 )
+00062 {
+00063        FilterElem* entry1 = (FilterElem*) item1;
+00064        FilterElem* entry2 = (FilterElem*) item2;
+00065 
+00066   // we sort the high counters first !
+00067   if (entry1->getCounter() < entry2->getCounter())
+00068     return 1;
+00069   else if (entry1->getCounter() == entry2->getCounter())
+00070   {
+00071     // for equal counters, we sort alphabetical
+00072     if (entry1->toString() > entry2->toString())
+00073                 return 1;
+00074          else if (entry1->toString() == entry2->toString())
+00075                 return 0;
+00076     else
+00077       return -1;
+00078   }
+00079        else return -1;
+00080 }
+00081 
+00082 void FilterList::readOptions (KConfig* config)
+00083 {
+00084        bool goon = true;
+00085        int i = 0;
+00086        while (goon)
+00087        {
+00088        config->setGroup (QString("filter%1").arg(i));
+00089               QString name (config->readEntry ("name"));
+00090               if (!name.isEmpty ())
+00091               {
+00092       unsigned int counter = config->readNumEntry ("counter");
+00093       FilterRecord::filterType type = (FilterRecord::filterType)config->readNumEntry ("type1");
+00094                      FilterRecord::expressionType expr = (FilterRecord::expressionType)config->readNumEntry ("expression1");
+00095       QString match = config->readEntry ("match1");
+00096       bool caseSensitive = (bool)config->readNumEntry ("casesensitive1", 0);
+00097       bool regExp = (bool)config->readNumEntry ("regexp1", 0);
+00098 
+00099       FilterElem* filter = new FilterElem (FilterRecord(type, expr, match, caseSensitive, regExp));
+00100       filter->setCounter( counter );
+00101 
+00102       FilterElem::secondCondition secondCondition = (FilterElem::secondCondition)config->readNumEntry ("secondcondition");
+00103       type = (FilterRecord::filterType)config->readNumEntry ("type2");
+00104                      expr = (FilterRecord::expressionType)config->readNumEntry ("expression2");
+00105       match = config->readEntry ("match2");
+00106       caseSensitive = (bool)config->readNumEntry ("casesensitive2", 0);
+00107       regExp = (bool)config->readNumEntry ("regexp2", 0);
+00108 
+00109       filter->setSecondCondition(secondCondition, FilterRecord (type, expr, match, caseSensitive, regExp));
+00110 
+00111       inSort (filter);
+00112                      i++;
+00113               }
+00114               else
+00115                      goon = false;
+00116        }
+00117        if (i > 0)
+00118               at (0);
+00119   sort ();
+00120 }
+00121 
+00122 void FilterList::saveOptions (KConfig* config)
+00123 {
+00124   //at first we remove all filter setups from the config
+00125   int filterNumber = 0;     //number of deleted filter
+00126   bool ready = false;       //TRUE - all filters are deleted
+00127 
+00128   while( !ready ) //loop until the last filter setup was removed (ready == true)
+00129   {
+00130     //do we have a setup with the current number (filterNumber) ?
+00131     if( config->hasGroup( QString( CONFIG_GROUP_FILTER ) + QString( "%1" ).arg( filterNumber ) ) )
+00132     {
+00133       //remove group
+00134       config->deleteGroup( QString( CONFIG_GROUP_FILTER ) + QString( "%1" ).arg( filterNumber ) );
+00135 
+00136       //process next filter
+00137       filterNumber++;
+00138     }
+00139     else
+00140       ready = true;
+00141   }
+00142 
+00143   //now we write the configured filters into the config
+00144        kdDebug () << "FilterList::saveOptions" << endl;
+00145        for (unsigned int i = 0; i < count (); i++)
+00146        {
+00147        config->setGroup (QString ("filter%1").arg(i));
+00148               config->writeEntry ("name", at(i)->toString());
+00149     config->writeEntry ("counter", at(i)->getCounter() );
+00150 
+00151     config->writeEntry ("type1", at(i)->_filter1._type);
+00152               config->writeEntry ("expression1", at(i)->_filter1._expression);
+00153               config->writeEntry ("match1", at(i)->_filter1._match);
+00154     config->writeEntry ("casesensitive1", at(i)->_filter1._CaseSensitive);
+00155     config->writeEntry ("regexp1", at(i)->_filter1._RegExp);
+00156 
+00157     config->writeEntry ("secondcondition", at(i)->_secondCondition);
+00158 
+00159     config->writeEntry ("type2", at(i)->_filter2._type);
+00160               config->writeEntry ("expression2", at(i)->_filter2._expression);
+00161               config->writeEntry ("match2", at(i)->_filter2._match);
+00162     config->writeEntry ("casesensitive2", at(i)->_filter2._CaseSensitive);
+00163     config->writeEntry ("regexp2", at(i)->_filter2._RegExp);
+00164        }
+00165 }
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/filterlist_8h-source.html b/doc/html/filterlist_8h-source.html new file mode 100644 index 0000000..576d7bf --- /dev/null +++ b/doc/html/filterlist_8h-source.html @@ -0,0 +1,74 @@ + + +kshowmail: kshowmail/filterlist.h Source File + + + + +
+
+ +

filterlist.h

00001 /***************************************************************************
+00002                           filterlist.h  -  description
+00003                              -------------------
+00004     begin                : Wed Sep 25 2003
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef FILTERLIST_H
+00019 #define FILTERLIST_H
+00020 
+00021 //Qt headers
+00022 #include <qptrlist.h>
+00023 #include <qcombobox.h>
+00024 
+00025 //KDE headers
+00026 #include <kconfig.h>
+00027 
+00028 //KShowmail headers
+00029 #include "filterelem.h"
+00030 #include "constants.h"
+00031 
+00035 class FilterElem;
+00036 
+00037 class FilterList : public QPtrList<FilterElem>
+00038 {
+00039   public:
+00040 
+00041     FilterList ();
+00042     virtual ~FilterList();
+00043     FilterList& operator = (FilterList& right);
+00044     void setCombo (QComboBox* combo, int nIndex);
+00045     void readOptions (KConfig* config);
+00046 
+00051   void saveOptions (KConfig* config);
+00052 
+00053   protected:
+00054 
+00055     virtual int compareItems (QCollection::Item item1, QCollection::Item item2);
+00056     virtual QCollection::Item newItem (QCollection::Item d);
+00057 };
+00058 
+00059 #endif
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions.html b/doc/html/functions.html new file mode 100644 index 0000000..25b17b1 --- /dev/null +++ b/doc/html/functions.html @@ -0,0 +1,107 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- _ -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x61.html b/doc/html/functions_0x61.html new file mode 100644 index 0000000..643919d --- /dev/null +++ b/doc/html/functions_0x61.html @@ -0,0 +1,136 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- a -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x62.html b/doc/html/functions_0x62.html new file mode 100644 index 0000000..4812c96 --- /dev/null +++ b/doc/html/functions_0x62.html @@ -0,0 +1,130 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- b -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x63.html b/doc/html/functions_0x63.html new file mode 100644 index 0000000..bf354fe --- /dev/null +++ b/doc/html/functions_0x63.html @@ -0,0 +1,285 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- c -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x64.html b/doc/html/functions_0x64.html new file mode 100644 index 0000000..04133c2 --- /dev/null +++ b/doc/html/functions_0x64.html @@ -0,0 +1,115 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- d -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x65.html b/doc/html/functions_0x65.html new file mode 100644 index 0000000..79c86ee --- /dev/null +++ b/doc/html/functions_0x65.html @@ -0,0 +1,79 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- e -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x66.html b/doc/html/functions_0x66.html new file mode 100644 index 0000000..169c87c --- /dev/null +++ b/doc/html/functions_0x66.html @@ -0,0 +1,116 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- f -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x67.html b/doc/html/functions_0x67.html new file mode 100644 index 0000000..f3c2152 --- /dev/null +++ b/doc/html/functions_0x67.html @@ -0,0 +1,225 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- g -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x68.html b/doc/html/functions_0x68.html new file mode 100644 index 0000000..629da22 --- /dev/null +++ b/doc/html/functions_0x68.html @@ -0,0 +1,91 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- h -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x69.html b/doc/html/functions_0x69.html new file mode 100644 index 0000000..89cf6ec --- /dev/null +++ b/doc/html/functions_0x69.html @@ -0,0 +1,110 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- i -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x6b.html b/doc/html/functions_0x6b.html new file mode 100644 index 0000000..35ca82f --- /dev/null +++ b/doc/html/functions_0x6b.html @@ -0,0 +1,92 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- k -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x6c.html b/doc/html/functions_0x6c.html new file mode 100644 index 0000000..bbc1cbd --- /dev/null +++ b/doc/html/functions_0x6c.html @@ -0,0 +1,126 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- l -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x6d.html b/doc/html/functions_0x6d.html new file mode 100644 index 0000000..58b727d --- /dev/null +++ b/doc/html/functions_0x6d.html @@ -0,0 +1,215 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- m -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x6e.html b/doc/html/functions_0x6e.html new file mode 100644 index 0000000..d2680a6 --- /dev/null +++ b/doc/html/functions_0x6e.html @@ -0,0 +1,108 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- n -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x6f.html b/doc/html/functions_0x6f.html new file mode 100644 index 0000000..72dab42 --- /dev/null +++ b/doc/html/functions_0x6f.html @@ -0,0 +1,85 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- o -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x70.html b/doc/html/functions_0x70.html new file mode 100644 index 0000000..9fff095 --- /dev/null +++ b/doc/html/functions_0x70.html @@ -0,0 +1,97 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- p -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x71.html b/doc/html/functions_0x71.html new file mode 100644 index 0000000..0a2baeb --- /dev/null +++ b/doc/html/functions_0x71.html @@ -0,0 +1,81 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- q -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x72.html b/doc/html/functions_0x72.html new file mode 100644 index 0000000..270c5e1 --- /dev/null +++ b/doc/html/functions_0x72.html @@ -0,0 +1,103 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- r -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x73.html b/doc/html/functions_0x73.html new file mode 100644 index 0000000..5ac62b9 --- /dev/null +++ b/doc/html/functions_0x73.html @@ -0,0 +1,525 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- s -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x74.html b/doc/html/functions_0x74.html new file mode 100644 index 0000000..ffba8af --- /dev/null +++ b/doc/html/functions_0x74.html @@ -0,0 +1,126 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- t -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x75.html b/doc/html/functions_0x75.html new file mode 100644 index 0000000..52420b1 --- /dev/null +++ b/doc/html/functions_0x75.html @@ -0,0 +1,82 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- u -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x76.html b/doc/html/functions_0x76.html new file mode 100644 index 0000000..7da72a7 --- /dev/null +++ b/doc/html/functions_0x76.html @@ -0,0 +1,73 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- v -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_0x7e.html b/doc/html/functions_0x7e.html new file mode 100644 index 0000000..aed2cc2 --- /dev/null +++ b/doc/html/functions_0x7e.html @@ -0,0 +1,147 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- ~ -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_enum.html b/doc/html/functions_enum.html new file mode 100644 index 0000000..3ee4014 --- /dev/null +++ b/doc/html/functions_enum.html @@ -0,0 +1,55 @@ + + +kshowmail.kdevelop: Class Members - Enumerations + + + + +
+
+
+
+
+ +
+  +

+

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_func.html b/doc/html/functions_func.html new file mode 100644 index 0000000..aae4c5a --- /dev/null +++ b/doc/html/functions_func.html @@ -0,0 +1,109 @@ + + +kshowmail.kdevelop: Class Members - Functions + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- a -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_rela.html b/doc/html/functions_rela.html new file mode 100644 index 0000000..85eb8ee --- /dev/null +++ b/doc/html/functions_rela.html @@ -0,0 +1,47 @@ + + +kshowmail.kdevelop: Class Members - Related Functions + + + + +
+
+
+
+
+ +
+  +

+

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars.html b/doc/html/functions_vars.html new file mode 100644 index 0000000..4f8dea2 --- /dev/null +++ b/doc/html/functions_vars.html @@ -0,0 +1,86 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- _ -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x61.html b/doc/html/functions_vars_0x61.html new file mode 100644 index 0000000..027bdb0 --- /dev/null +++ b/doc/html/functions_vars_0x61.html @@ -0,0 +1,94 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- a -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x62.html b/doc/html/functions_vars_0x62.html new file mode 100644 index 0000000..16430a1 --- /dev/null +++ b/doc/html/functions_vars_0x62.html @@ -0,0 +1,123 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- b -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x63.html b/doc/html/functions_vars_0x63.html new file mode 100644 index 0000000..cad8c07 --- /dev/null +++ b/doc/html/functions_vars_0x63.html @@ -0,0 +1,192 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- c -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x64.html b/doc/html/functions_vars_0x64.html new file mode 100644 index 0000000..3b25e8b --- /dev/null +++ b/doc/html/functions_vars_0x64.html @@ -0,0 +1,83 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- d -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x65.html b/doc/html/functions_vars_0x65.html new file mode 100644 index 0000000..8786e67 --- /dev/null +++ b/doc/html/functions_vars_0x65.html @@ -0,0 +1,70 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- e -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x66.html b/doc/html/functions_vars_0x66.html new file mode 100644 index 0000000..5fa8c93 --- /dev/null +++ b/doc/html/functions_vars_0x66.html @@ -0,0 +1,82 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- f -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x67.html b/doc/html/functions_vars_0x67.html new file mode 100644 index 0000000..5a51a01 --- /dev/null +++ b/doc/html/functions_vars_0x67.html @@ -0,0 +1,90 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- g -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x68.html b/doc/html/functions_vars_0x68.html new file mode 100644 index 0000000..a9b7176 --- /dev/null +++ b/doc/html/functions_vars_0x68.html @@ -0,0 +1,70 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- h -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x69.html b/doc/html/functions_vars_0x69.html new file mode 100644 index 0000000..ac629fa --- /dev/null +++ b/doc/html/functions_vars_0x69.html @@ -0,0 +1,70 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- i -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x6b.html b/doc/html/functions_vars_0x6b.html new file mode 100644 index 0000000..6678cd8 --- /dev/null +++ b/doc/html/functions_vars_0x6b.html @@ -0,0 +1,70 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- k -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x6c.html b/doc/html/functions_vars_0x6c.html new file mode 100644 index 0000000..4d45a74 --- /dev/null +++ b/doc/html/functions_vars_0x6c.html @@ -0,0 +1,98 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- l -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x6d.html b/doc/html/functions_vars_0x6d.html new file mode 100644 index 0000000..06d49ce --- /dev/null +++ b/doc/html/functions_vars_0x6d.html @@ -0,0 +1,204 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- m -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x6f.html b/doc/html/functions_vars_0x6f.html new file mode 100644 index 0000000..9bcd48c --- /dev/null +++ b/doc/html/functions_vars_0x6f.html @@ -0,0 +1,67 @@ + + +kshowmail: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- o -

+
Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x70.html b/doc/html/functions_vars_0x70.html new file mode 100644 index 0000000..94558da --- /dev/null +++ b/doc/html/functions_vars_0x70.html @@ -0,0 +1,80 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- p -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x71.html b/doc/html/functions_vars_0x71.html new file mode 100644 index 0000000..2fb3b16 --- /dev/null +++ b/doc/html/functions_vars_0x71.html @@ -0,0 +1,72 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- q -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x73.html b/doc/html/functions_vars_0x73.html new file mode 100644 index 0000000..17aa13a --- /dev/null +++ b/doc/html/functions_vars_0x73.html @@ -0,0 +1,108 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- s -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/functions_vars_0x74.html b/doc/html/functions_vars_0x74.html new file mode 100644 index 0000000..cbf711a --- /dev/null +++ b/doc/html/functions_vars_0x74.html @@ -0,0 +1,105 @@ + + +kshowmail.kdevelop: Class Members - Variables + + + + +
+
+
+
+
+ +
+
+ +
+ +

+  +

+

- t -

+
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html new file mode 100644 index 0000000..43c60a5 --- /dev/null +++ b/doc/html/hierarchy.html @@ -0,0 +1,72 @@ + + +kshowmail.kdevelop: Hierarchical Index + + + + +
+
+
+
+

kshowmail.kdevelop Class Hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically: +
Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/index.html b/doc/html/index.html new file mode 100644 index 0000000..09d5e23 --- /dev/null +++ b/doc/html/index.html @@ -0,0 +1,22 @@ + + +kshowmail.kdevelop: Main Page + + + + +
+
+

kshowmail.kdevelop Documentation

+

+

3.3


Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kfeedback_8cpp-source.html b/doc/html/kfeedback_8cpp-source.html new file mode 100644 index 0000000..32b9007 --- /dev/null +++ b/doc/html/kfeedback_8cpp-source.html @@ -0,0 +1,515 @@ + + +kshowmail: kshowmail/kfeedback.cpp Source File + + + + +
+
+ +

kfeedback.cpp

00001 
+00002 /*
+00003  *   File name:      kfeedback.cpp
+00004  *   Summary: User feedback form
+00005  *   License: LGPL - See file COPYING.LIB for details.
+00006  *   Author:  Stefan Hundhammer <sh@suse.de>
+00007  *   modified by Eggert Ehmke <eggert.ehmke@berlin.de>
+00008  *
+00009  *   Updated: 2002-02-24
+00010  *
+00011  *   $Id: kfeedback_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $
+00012  *
+00013  */
+00014 
+00015 
+00016 #include <qheader.h>
+00017 #include <qlayout.h>
+00018 #include <qlabel.h>
+00019 #include <qmultilineedit.h>
+00020 #include <qhbox.h>
+00021 
+00022 #include <kglobal.h>
+00023 #include <kapplication.h>
+00024 #include <klocale.h>
+00025 #include <kdebug.h>
+00026 #include <kaboutdata.h>
+00027 #include <kiconloader.h>
+00028 #include <kurl.h>
+00029 #include <kdeversion.h>
+00030 
+00031 #include "kfeedback.h"
+00032 
+00033 
+00034 KFeedbackDialog::KFeedbackDialog( const QString & feedbackMailAddress, const QString & helpTopic )
+00035      : KDialogBase( Plain, i18n( "Feedback" ), Apply | ( helpTopic.isEmpty() ? Cancel : Cancel | Help ), Apply )
+00036 {
+00037     QVBoxLayout * layout = new QVBoxLayout( plainPage(), 0, spacingHint() );
+00038     // setButtonApplyText( i18n( "&Mail this..." ) ); deprecated
+00039     setButtonApply(KGuiItem (i18n( "&Mail this..." )));
+00040 
+00041     if ( ! helpTopic.isEmpty() )
+00042        setHelp( helpTopic );
+00043 
+00044     _form = new KFeedbackForm( feedbackMailAddress, plainPage() );
+00045     CHECK_PTR( _form );
+00046 
+00047     layout->addWidget( _form );
+00048     checkSendButton();
+00049 
+00050     connect( this,  SIGNAL( applyClicked() ),
+00051             _form, SLOT  ( sendMail()  ) );
+00052 
+00053     connect( _form, SIGNAL( mailSent()    ),
+00054             this,  SLOT  ( hide()  ) );
+00055 
+00056     connect( _form, SIGNAL( mailSent()    ),
+00057             this,  SIGNAL( mailSent()  ) );
+00058 
+00059     connect( _form, SIGNAL( checkComplete()   ),
+00060             this,  SLOT  ( checkSendButton() ) );
+00061 }
+00062 
+00063 
+00064 KFeedbackDialog::~KFeedbackDialog()
+00065 {
+00066     // NOP
+00067 }
+00068 
+00069 
+00070 void
+00071 KFeedbackDialog::checkSendButton()
+00072 {
+00073     enableButtonApply( _form->readyToSend() );
+00074 }
+00075 
+00076 
+00077 
+00078 
+00079 
+00080 KFeedbackForm::KFeedbackForm( const QString &    feedbackMailAddress,
+00081                            QWidget *             parent )
+00082     : QVBox( parent )
+00083     , _feedbackMailAddress( feedbackMailAddress )
+00084 {
+00085     //
+00086     // Explanation above the question list
+00087     //
+00088 
+00089     QLabel * label = new QLabel( i18n( "<p><b>Please tell us your opinion about this program.</b></p>"
+00090                                    "<p>You will be able to review everything in your mailer "
+00091                                    "before any mail is sent.<br>"
+00092                                    "Nothing will be sent behind your back.</p>"
+00093                                    ), this );
+00094     //
+00095     // Question list
+00096     //
+00097 
+00098     _questionList = new KFeedbackQuestionList( this );
+00099     CHECK_PTR( _questionList );
+00100 
+00101     connect( _questionList, SIGNAL( checkComplete()     ),
+00102             this,        SLOT  ( slotCheckComplete() ) );
+00103 
+00104 
+00105     //
+00106     // Explanation below the question list
+00107     //
+00108 
+00109     QHBox * hbox = new QHBox( this );
+00110     CHECK_PTR( hbox );
+00111 
+00112     QSizePolicy pol( QSizePolicy::Fixed, QSizePolicy::Fixed ); // hor / vert
+00113 
+00114     label = new QLabel( i18n( "Questions marked with " ), hbox );
+00115     CHECK_PTR( label );
+00116     label->setSizePolicy( pol );
+00117 
+00118     label = new QLabel( hbox );
+00119     CHECK_PTR( label );
+00120     label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
+00121     label->setSizePolicy( pol );
+00122 
+00123     label = new QLabel( i18n( " must be answered before a mail can be sent.") , hbox );
+00124     CHECK_PTR( label );
+00125     label->setSizePolicy( pol );
+00126 
+00127     new QWidget( hbox );    // Fill any leftover space to the right.
+00128 
+00129 
+00130     //
+00131     // Free-text comment field
+00132     //
+00133 
+00134     label = new QLabel( "\n" + i18n( "&Additional comments:" ), this );      CHECK_PTR( label );
+00135     _comment = new QMultiLineEdit( this );                            CHECK_PTR( _comment );
+00136 
+00137     label->setBuddy( _comment );
+00138 #if (QT_VERSION < 300)
+00139     _comment->setFixedVisibleLines( 5 );
+00140 #endif
+00141     _comment->setWordWrap( QMultiLineEdit::FixedColumnWidth );
+00142     _comment->setWrapColumnOrWidth( 70 );
+00143 }
+00144 
+00145 
+00146 KFeedbackForm::~KFeedbackForm()
+00147 {
+00148     // NOP
+00149 }
+00150 
+00151 
+00152 void
+00153 KFeedbackForm::sendMail()
+00154 {
+00155     //
+00156     // Build mail subject
+00157     //
+00158 
+00159     QString subject;
+00160 
+00161     const KAboutData * aboutData = KGlobal::instance()->aboutData();
+00162 
+00163     if ( aboutData )
+00164       subject = aboutData->programName() + "-" + aboutData->version();
+00165     else
+00166       subject = kapp->name();
+00167 
+00168     subject += " user feedback";
+00169 
+00170 
+00171     //
+00172     // Build mail body
+00173     //
+00174 
+00175     QString body = subject + "\n\n"
+00176        + formatComment()
+00177        + _questionList->result();
+00178 
+00179 
+00180     //
+00181     // Build "mailto:" URL from all this
+00182     //
+00183 
+00184     KURL mail;
+00185     mail.setProtocol( "mailto" );
+00186     mail.setPath( _feedbackMailAddress );
+00187     mail.setQuery( "?subject="     + KURL::encode_string( subject ) +
+00188                  "&body="   + KURL::encode_string( body ) );
+00189 
+00190     // TODO: Check for maximum command line length.
+00191     //
+00192     // The hard part with this is how to get this from all that 'autoconf'
+00193     // stuff into 'config.h' or some other include file without hardcoding
+00194     // anything - this is too system dependent.
+00195 
+00196 
+00197     //
+00198     // Actually send mail
+00199     //
+00200 
+00201     kapp->invokeMailer( mail );
+00202 
+00203     emit mailSent();
+00204 }
+00205 
+00206 
+00207 void
+00208 KFeedbackForm::slotCheckComplete()
+00209 {
+00210     emit checkComplete();
+00211 }
+00212 
+00213 
+00214 QString
+00215 KFeedbackForm::formatComment()
+00216 {
+00217     QString result = _comment->text();
+00218 
+00219     if ( ! result.isEmpty() )
+00220     {
+00221        result = "<comment>\n" + result + "\n</comment>\n\n";
+00222     }
+00223 
+00224     return result;
+00225 }
+00226 
+00227 
+00228 bool
+00229 KFeedbackForm::readyToSend()
+00230 {
+00231     return _questionList->isComplete();
+00232 }
+00233 
+00234 
+00235 
+00236 
+00237 
+00238 
+00239 KFeedbackQuestionList::KFeedbackQuestionList( QWidget *parent )
+00240     : QListView( parent )
+00241 {
+00242     addColumn( "" );
+00243     header()->hide();
+00244 }
+00245 
+00246 
+00247 KFeedbackQuestionList::~KFeedbackQuestionList()
+00248 {
+00249     // NOP
+00250 }
+00251 
+00252 
+00253 bool
+00254 KFeedbackQuestionList::isComplete()
+00255 {
+00256     KFeedbackQuestion * question = firstQuestion();
+00257 
+00258     while ( question )
+00259     {
+00260        if ( question->isRequired() && ! question->isAnswered() )
+00261            return false;
+00262 
+00263        question = question->nextQuestion();
+00264     }
+00265 
+00266     return true;
+00267 }
+00268 
+00269 
+00270 QString KFeedbackQuestionList::result()
+00271 {
+00272     QString res;
+00273     KFeedbackQuestion * question = firstQuestion();
+00274 
+00275     while ( question )
+00276     {
+00277       res += question->result();
+00278 
+00279       question = question->nextQuestion();
+00280     }
+00281     res += "Compiled on KDE version: ";
+00282     res += KDE_VERSION_STRING;
+00283 
+00284     return res;
+00285 }
+00286 
+00287 
+00288 KFeedbackQuestion* KFeedbackQuestionList::addQuestion( const QString &       text,
+00289                                 const QString &  id,
+00290                                 bool             exclusiveAnswer,
+00291                                 bool             required )
+00292 {
+00293     KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
+00294                                                    exclusiveAnswer,
+00295                                                    required );
+00296     CHECK_PTR( question );
+00297 
+00298     return question;
+00299 }
+00300 
+00301 
+00302 void
+00303 KFeedbackQuestionList::addYesNoQuestion( const QString &       text,
+00304                                     const QString &     id,
+00305                                     bool                required )
+00306 {
+00307 
+00308     KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
+00309                                                    true,       // exclusive
+00310                                                    required );
+00311     CHECK_PTR( question );
+00312     question->addAnswer( i18n( "yes" ), "yes" );
+00313     question->addAnswer( i18n( "no"  ), "no"  );
+00314 }
+00315 
+00316 
+00317 void
+00318 KFeedbackQuestionList::questionAnswered()
+00319 {
+00320     emit checkComplete();
+00321 }
+00322 
+00323 void
+00324 KFeedbackQuestionList::questionAdded( KFeedbackQuestion * question)
+00325 {
+00326     if ( question->isRequired() )
+00327        emit checkComplete();
+00328 }
+00329 
+00330 
+00331 
+00332 
+00333 
+00334 static int nextNo = 0;
+00335 
+00336 KFeedbackQuestion::KFeedbackQuestion( KFeedbackQuestionList *  parent,
+00337                                   const QString &              text,
+00338                                   const QString &              id,
+00339                                   bool                  exclusiveAnswer,
+00340                                   bool                  required,
+00341                                   bool                  open   )
+00342     : QCheckListItem( parent, text )
+00343     , _id( id )
+00344     , _exclusiveAnswer( exclusiveAnswer )
+00345     , _required( required )
+00346 {
+00347     if ( required )
+00348     {
+00349        setPixmap( 0, KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
+00350     }
+00351 
+00352     setOpen( open );
+00353     _no = nextNo++;
+00354 
+00355     parent->questionAdded( this );
+00356 }
+00357 
+00358 
+00359 void
+00360 KFeedbackQuestion::addAnswer( const QString & text,
+00361                            const QString & id   )
+00362 {
+00363     new KFeedbackAnswer( this, text, id, _exclusiveAnswer );
+00364 }
+00365 
+00366 
+00367 bool
+00368 KFeedbackQuestion::isAnswered()
+00369 {
+00370     if ( ! _exclusiveAnswer )
+00371     {
+00377        return true;
+00378     }
+00379 
+00380 
+00387     KFeedbackAnswer *answer = firstAnswer();
+00388 
+00389     while ( answer )
+00390     {
+00391        if ( answer->isChecked() )
+00392            return true;
+00393 
+00394        answer = answer->nextAnswer();
+00395     }
+00396 
+00397     return false;
+00398 }
+00399 
+00400 
+00401 QString
+00402 KFeedbackQuestion::result()
+00403 {
+00404     QString res;
+00405     int answers = 0;
+00406 
+00407     KFeedbackAnswer *answer = firstAnswer();
+00408 
+00409     while ( answer )
+00410     {
+00411        if ( answer->isChecked() )
+00412        {
+00413            res += _id + "=\"" + answer->id() + "\"\n";
+00414            answers++;
+00415        }
+00416 
+00417        answer = answer->nextAnswer();
+00418     }
+00419 
+00420     if ( answers > 1 )
+00421     {
+00422        res = "\n" + res + "\n";
+00423     }
+00424 
+00425     return res;
+00426 }
+00427 
+00428 
+00429 QString
+00430 KFeedbackQuestion::text()
+00431 {
+00432     return QCheckListItem::text(0);
+00433 }
+00434 
+00435 
+00436 QString
+00437 KFeedbackQuestion::key( int, bool ) const
+00438 {
+00439     QString no;
+00440     no.sprintf( "%08d", _no );
+00441 
+00442     return no;
+00443 }
+00444 
+00445 
+00446 KFeedbackQuestionList *
+00447 KFeedbackQuestion::questionList() const
+00448 {
+00449     return dynamic_cast<KFeedbackQuestionList *>( listView() );
+00450 }
+00451 
+00452 
+00453 
+00454 
+00455 
+00456 
+00457 
+00458 KFeedbackAnswer::KFeedbackAnswer( KFeedbackQuestion *   parent,
+00459                               const QString &    text,
+00460                               const QString &    id,
+00461                               bool               exclusive )
+00462     : QCheckListItem( parent,
+00463                     text,
+00464                     exclusive
+00465                     ? QCheckListItem::RadioButton
+00466                     : QCheckListItem::CheckBox )
+00467     , _id( id )
+00468 {
+00469     _no = nextNo++;
+00470 }
+00471 
+00472 
+00473 QString
+00474 KFeedbackAnswer::text()
+00475 {
+00476     return QCheckListItem::text(0);
+00477 }
+00478 
+00479 
+00480 QString
+00481 KFeedbackAnswer::key( int, bool ) const
+00482 {
+00483     QString no;
+00484     no.sprintf( "%08d", _no );
+00485 
+00486     return no;
+00487 }
+00488 
+00489 
+00490 void
+00491 KFeedbackAnswer::stateChange( bool newState )
+00492 {
+00493     if ( newState && question()->isRequired() )
+00494     {
+00495        KFeedbackQuestionList * list = question()->questionList();
+00496 
+00497        if ( list )
+00498            list->questionAnswered();
+00499     }
+00500 }
+00501 
+00502 
+00503 
+00504 // EOF
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kfeedback_8h-source.html b/doc/html/kfeedback_8h-source.html new file mode 100644 index 0000000..c33797e --- /dev/null +++ b/doc/html/kfeedback_8h-source.html @@ -0,0 +1,257 @@ + + +kshowmail: kshowmail/kfeedback.h Source File + + + + +
+
+ +

kfeedback.h

00001 /*
+00002  *   File name:      kfeedback.h
+00003  *   Summary: User feedback form and mailing utilities
+00004  *   License: LGPL - See file COPYING.LIB for details.
+00005  *   Author:  Stefan Hundhammer <sh@suse.de>
+00006  *
+00007  *   Updated: 2002-02-24
+00008  *
+00009  *   $Id: kfeedback_8h-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $
+00010  *
+00011  */
+00012 
+00013 
+00014 #ifndef KFeedback_h
+00015 #define KFeedback_h
+00016 
+00017 #ifdef HAVE_CONFIG_H
+00018 #include <config.h>
+00019 #endif
+00020 
+00021 #include <qlistview.h>
+00022 #include <qvbox.h>
+00023 #include <kdialogbase.h>
+00024 
+00025 
+00026 #ifndef NOT_USED
+00027 #    define NOT_USED(PARAM) ( (void) (PARAM) )
+00028 #endif
+00029 
+00030 
+00031 class KFeedbackForm;
+00032 class KFeedbackQuestionList;
+00033 class KFeedbackQuestion;
+00034 class KFeedbackAnswer;
+00035 class QMultiLineEdit;
+00036 
+00037 
+00042 class KFeedbackDialog: public KDialogBase
+00043 {
+00044     Q_OBJECT
+00045 
+00046 public:
+00047 
+00051     KFeedbackDialog( const QString & feedbackMailAddress,
+00052                    const QString & helpTopic = QString::null );
+00053 
+00054 
+00058     virtual ~KFeedbackDialog();
+00059 
+00060 
+00064     KFeedbackForm *form() { return _form; }
+00065 
+00066 
+00067 public slots:
+00068 
+00073     void checkSendButton();
+00074 
+00075 
+00076 signals:
+00083     void mailSent();
+00084 
+00085 
+00086 protected:
+00087 
+00088     KFeedbackForm *  _form;
+00089 };
+00090 
+00091 
+00098 class KFeedbackForm: public QVBox
+00099 {
+00100     Q_OBJECT
+00101 
+00102 public:
+00106     KFeedbackForm( const QString & feedbackMailAddress,
+00107                  QWidget *         parent );
+00108 
+00112     virtual ~KFeedbackForm();
+00113 
+00114 
+00115 public slots:
+00116 
+00128      virtual void sendMail();
+00129 
+00130 
+00131 public:
+00132 
+00137     virtual bool readyToSend();
+00138 
+00142     KFeedbackQuestionList * questionList() { return _questionList; }
+00143 
+00144 
+00145 signals:
+00152     void mailSent();
+00153 
+00159     void checkComplete();
+00160 
+00161 
+00162 protected slots:
+00166     void slotCheckComplete();
+00167 
+00168 
+00169 protected:
+00170 
+00174     QString formatComment();
+00175 
+00176 
+00177     QString                 _feedbackMailAddress;
+00178     KFeedbackQuestionList * _questionList;
+00179     QMultiLineEdit *        _comment;
+00180 };
+00181 
+00182 
+00183 
+00187 class KFeedbackQuestionList: public QListView
+00188 {
+00189     Q_OBJECT
+00190 
+00191 public:
+00192 
+00196     KFeedbackQuestionList( QWidget *parent );
+00197 
+00201     virtual ~KFeedbackQuestionList();
+00202 
+00207     virtual bool isComplete();
+00208 
+00212     QString result();
+00213 
+00231     KFeedbackQuestion * addQuestion( const QString &    text,
+00232                                  const QString & id,
+00233                                  bool            exclusiveAnswer      = true,
+00234                                  bool            required      = false );
+00235 
+00239     void addYesNoQuestion( const QString &       text,
+00240                         const QString &   id,
+00241                         bool              required = false );
+00242 
+00247     KFeedbackQuestion * firstQuestion() const
+00248        { return (KFeedbackQuestion *) QListView::firstChild(); }
+00249 
+00255     void questionAnswered();
+00256 
+00262     void questionAdded( KFeedbackQuestion * question );
+00263 
+00264 signals:
+00268     void checkComplete();
+00269 };
+00270 
+00271 
+00275 class KFeedbackQuestion: public QCheckListItem
+00276 {
+00277 public:
+00278 
+00300     KFeedbackQuestion( KFeedbackQuestionList *   parent,
+00301                      const QString &             text,
+00302                      const QString &             id,
+00303                      bool                 exclusiveAnswer      = true,
+00304                      bool                 required      = false,
+00305                      bool                 open          = true );
+00306 
+00313     void addAnswer( const QString & text,
+00314                   const QString & id   );
+00315 
+00319     bool isRequired() { return _required; }
+00320 
+00324     bool isAnswered();
+00325 
+00334     QString result();
+00335 
+00339     QString id() { return _id; }
+00340 
+00344     QString text();
+00345 
+00349     bool exclusiveAnswer() { return _exclusiveAnswer; }
+00350 
+00351 
+00357     virtual QString key( int column, bool ascending ) const;
+00358 
+00362     KFeedbackQuestion * nextQuestion() const
+00363        { return (KFeedbackQuestion *) QListViewItem::nextSibling(); }
+00364 
+00369     KFeedbackAnswer * firstAnswer() const
+00370        { return (KFeedbackAnswer *) QListViewItem::firstChild(); }
+00371 
+00376     KFeedbackQuestionList * questionList() const;
+00377 
+00378 
+00379 protected:
+00380 
+00381     QString   _id;
+00382     bool      _exclusiveAnswer;
+00383     bool      _required;
+00384     int              _no;
+00385 };
+00386 
+00387 
+00388 class KFeedbackAnswer: public QCheckListItem
+00389 {
+00390 public:
+00397     KFeedbackAnswer( KFeedbackQuestion *  parent,
+00398                    const QString &        text,
+00399                    const QString &        id,
+00400                    bool                   exclusive = true );
+00401 
+00405     QString id() { return _id; }
+00406 
+00410     QString text();
+00411 
+00415     bool isExclusive() { return _exclusive; }
+00416 
+00420     bool isChecked() { return QCheckListItem::isOn(); }
+00421 
+00425     KFeedbackAnswer * nextAnswer() const
+00426        { return (KFeedbackAnswer *) QListViewItem::nextSibling(); }
+00427 
+00431     KFeedbackQuestion * question() const
+00432        { return (KFeedbackQuestion *) QListViewItem::parent(); }
+00433 
+00439     virtual QString key( int column, bool ascending ) const;
+00440 
+00441 
+00449     virtual void stateChange( bool newState );
+00450 
+00451 protected:
+00452 
+00453     QString   _id;
+00454     bool      _exclusive;
+00455     int              _no;
+00456 };
+00457 
+00458 
+00459 
+00460 #endif // KFeedback_h
+00461 
+00462 
+00463 // EOF
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kfeedback_8moc_8cpp-source.html b/doc/html/kfeedback_8moc_8cpp-source.html new file mode 100644 index 0000000..044b36f --- /dev/null +++ b/doc/html/kfeedback_8moc_8cpp-source.html @@ -0,0 +1,335 @@ + + +kshowmail: kshowmail/kfeedback.moc.cpp Source File + + + + +
+
+ +

kfeedback.moc.cpp

00001 /****************************************************************************
+00002 ** KFeedbackDialog meta object code from reading C++ file 'kfeedback.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:09:00 2007
+00005 **      by: The Qt MOC ($Id: kfeedback_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "kfeedback.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *KFeedbackDialog::className() const
+00023 {
+00024     return "KFeedbackDialog";
+00025 }
+00026 
+00027 QMetaObject *KFeedbackDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_KFeedbackDialog( "KFeedbackDialog", &KFeedbackDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString KFeedbackDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "KFeedbackDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString KFeedbackDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "KFeedbackDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* KFeedbackDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = KDialogBase::staticMetaObject();
+00055     static const QUMethod slot_0 = {"checkSendButton", 0, 0 };
+00056     static const QMetaData slot_tbl[] = {
+00057        { "checkSendButton()", &slot_0, QMetaData::Public }
+00058     };
+00059     static const QUMethod signal_0 = {"mailSent", 0, 0 };
+00060     static const QMetaData signal_tbl[] = {
+00061        { "mailSent()", &signal_0, QMetaData::Public }
+00062     };
+00063     metaObj = QMetaObject::new_metaobject(
+00064        "KFeedbackDialog", parentObject,
+00065        slot_tbl, 1,
+00066        signal_tbl, 1,
+00067 #ifndef QT_NO_PROPERTIES
+00068        0, 0,
+00069        0, 0,
+00070 #endif // QT_NO_PROPERTIES
+00071        0, 0 );
+00072     cleanUp_KFeedbackDialog.setMetaObject( metaObj );
+00073     return metaObj;
+00074 }
+00075 
+00076 void* KFeedbackDialog::qt_cast( const char* clname )
+00077 {
+00078     if ( !qstrcmp( clname, "KFeedbackDialog" ) )
+00079        return this;
+00080     return KDialogBase::qt_cast( clname );
+00081 }
+00082 
+00083 // SIGNAL mailSent
+00084 void KFeedbackDialog::mailSent()
+00085 {
+00086     activate_signal( staticMetaObject()->signalOffset() + 0 );
+00087 }
+00088 
+00089 bool KFeedbackDialog::qt_invoke( int _id, QUObject* _o )
+00090 {
+00091     switch ( _id - staticMetaObject()->slotOffset() ) {
+00092     case 0: checkSendButton(); break;
+00093     default:
+00094        return KDialogBase::qt_invoke( _id, _o );
+00095     }
+00096     return TRUE;
+00097 }
+00098 
+00099 bool KFeedbackDialog::qt_emit( int _id, QUObject* _o )
+00100 {
+00101     switch ( _id - staticMetaObject()->signalOffset() ) {
+00102     case 0: mailSent(); break;
+00103     default:
+00104        return KDialogBase::qt_emit(_id,_o);
+00105     }
+00106     return TRUE;
+00107 }
+00108 #ifndef QT_NO_PROPERTIES
+00109 
+00110 bool KFeedbackDialog::qt_property( int id, int f, QVariant* v)
+00111 {
+00112     return KDialogBase::qt_property( id, f, v);
+00113 }
+00114 
+00115 bool KFeedbackDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00116 #endif // QT_NO_PROPERTIES
+00117 
+00118 
+00119 const char *KFeedbackForm::className() const
+00120 {
+00121     return "KFeedbackForm";
+00122 }
+00123 
+00124 QMetaObject *KFeedbackForm::metaObj = 0;
+00125 static QMetaObjectCleanUp cleanUp_KFeedbackForm( "KFeedbackForm", &KFeedbackForm::staticMetaObject );
+00126 
+00127 #ifndef QT_NO_TRANSLATION
+00128 QString KFeedbackForm::tr( const char *s, const char *c )
+00129 {
+00130     if ( qApp )
+00131        return qApp->translate( "KFeedbackForm", s, c, QApplication::DefaultCodec );
+00132     else
+00133        return QString::fromLatin1( s );
+00134 }
+00135 #ifndef QT_NO_TRANSLATION_UTF8
+00136 QString KFeedbackForm::trUtf8( const char *s, const char *c )
+00137 {
+00138     if ( qApp )
+00139        return qApp->translate( "KFeedbackForm", s, c, QApplication::UnicodeUTF8 );
+00140     else
+00141        return QString::fromUtf8( s );
+00142 }
+00143 #endif // QT_NO_TRANSLATION_UTF8
+00144 
+00145 #endif // QT_NO_TRANSLATION
+00146 
+00147 QMetaObject* KFeedbackForm::staticMetaObject()
+00148 {
+00149     if ( metaObj )
+00150        return metaObj;
+00151     QMetaObject* parentObject = QVBox::staticMetaObject();
+00152     static const QUMethod slot_0 = {"sendMail", 0, 0 };
+00153     static const QUMethod slot_1 = {"slotCheckComplete", 0, 0 };
+00154     static const QMetaData slot_tbl[] = {
+00155        { "sendMail()", &slot_0, QMetaData::Public },
+00156        { "slotCheckComplete()", &slot_1, QMetaData::Protected }
+00157     };
+00158     static const QUMethod signal_0 = {"mailSent", 0, 0 };
+00159     static const QUMethod signal_1 = {"checkComplete", 0, 0 };
+00160     static const QMetaData signal_tbl[] = {
+00161        { "mailSent()", &signal_0, QMetaData::Public },
+00162        { "checkComplete()", &signal_1, QMetaData::Public }
+00163     };
+00164     metaObj = QMetaObject::new_metaobject(
+00165        "KFeedbackForm", parentObject,
+00166        slot_tbl, 2,
+00167        signal_tbl, 2,
+00168 #ifndef QT_NO_PROPERTIES
+00169        0, 0,
+00170        0, 0,
+00171 #endif // QT_NO_PROPERTIES
+00172        0, 0 );
+00173     cleanUp_KFeedbackForm.setMetaObject( metaObj );
+00174     return metaObj;
+00175 }
+00176 
+00177 void* KFeedbackForm::qt_cast( const char* clname )
+00178 {
+00179     if ( !qstrcmp( clname, "KFeedbackForm" ) )
+00180        return this;
+00181     return QVBox::qt_cast( clname );
+00182 }
+00183 
+00184 // SIGNAL mailSent
+00185 void KFeedbackForm::mailSent()
+00186 {
+00187     activate_signal( staticMetaObject()->signalOffset() + 0 );
+00188 }
+00189 
+00190 // SIGNAL checkComplete
+00191 void KFeedbackForm::checkComplete()
+00192 {
+00193     activate_signal( staticMetaObject()->signalOffset() + 1 );
+00194 }
+00195 
+00196 bool KFeedbackForm::qt_invoke( int _id, QUObject* _o )
+00197 {
+00198     switch ( _id - staticMetaObject()->slotOffset() ) {
+00199     case 0: sendMail(); break;
+00200     case 1: slotCheckComplete(); break;
+00201     default:
+00202        return QVBox::qt_invoke( _id, _o );
+00203     }
+00204     return TRUE;
+00205 }
+00206 
+00207 bool KFeedbackForm::qt_emit( int _id, QUObject* _o )
+00208 {
+00209     switch ( _id - staticMetaObject()->signalOffset() ) {
+00210     case 0: mailSent(); break;
+00211     case 1: checkComplete(); break;
+00212     default:
+00213        return QVBox::qt_emit(_id,_o);
+00214     }
+00215     return TRUE;
+00216 }
+00217 #ifndef QT_NO_PROPERTIES
+00218 
+00219 bool KFeedbackForm::qt_property( int id, int f, QVariant* v)
+00220 {
+00221     return QVBox::qt_property( id, f, v);
+00222 }
+00223 
+00224 bool KFeedbackForm::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00225 #endif // QT_NO_PROPERTIES
+00226 
+00227 
+00228 const char *KFeedbackQuestionList::className() const
+00229 {
+00230     return "KFeedbackQuestionList";
+00231 }
+00232 
+00233 QMetaObject *KFeedbackQuestionList::metaObj = 0;
+00234 static QMetaObjectCleanUp cleanUp_KFeedbackQuestionList( "KFeedbackQuestionList", &KFeedbackQuestionList::staticMetaObject );
+00235 
+00236 #ifndef QT_NO_TRANSLATION
+00237 QString KFeedbackQuestionList::tr( const char *s, const char *c )
+00238 {
+00239     if ( qApp )
+00240        return qApp->translate( "KFeedbackQuestionList", s, c, QApplication::DefaultCodec );
+00241     else
+00242        return QString::fromLatin1( s );
+00243 }
+00244 #ifndef QT_NO_TRANSLATION_UTF8
+00245 QString KFeedbackQuestionList::trUtf8( const char *s, const char *c )
+00246 {
+00247     if ( qApp )
+00248        return qApp->translate( "KFeedbackQuestionList", s, c, QApplication::UnicodeUTF8 );
+00249     else
+00250        return QString::fromUtf8( s );
+00251 }
+00252 #endif // QT_NO_TRANSLATION_UTF8
+00253 
+00254 #endif // QT_NO_TRANSLATION
+00255 
+00256 QMetaObject* KFeedbackQuestionList::staticMetaObject()
+00257 {
+00258     if ( metaObj )
+00259        return metaObj;
+00260     QMetaObject* parentObject = QListView::staticMetaObject();
+00261     static const QUMethod signal_0 = {"checkComplete", 0, 0 };
+00262     static const QMetaData signal_tbl[] = {
+00263        { "checkComplete()", &signal_0, QMetaData::Public }
+00264     };
+00265     metaObj = QMetaObject::new_metaobject(
+00266        "KFeedbackQuestionList", parentObject,
+00267        0, 0,
+00268        signal_tbl, 1,
+00269 #ifndef QT_NO_PROPERTIES
+00270        0, 0,
+00271        0, 0,
+00272 #endif // QT_NO_PROPERTIES
+00273        0, 0 );
+00274     cleanUp_KFeedbackQuestionList.setMetaObject( metaObj );
+00275     return metaObj;
+00276 }
+00277 
+00278 void* KFeedbackQuestionList::qt_cast( const char* clname )
+00279 {
+00280     if ( !qstrcmp( clname, "KFeedbackQuestionList" ) )
+00281        return this;
+00282     return QListView::qt_cast( clname );
+00283 }
+00284 
+00285 // SIGNAL checkComplete
+00286 void KFeedbackQuestionList::checkComplete()
+00287 {
+00288     activate_signal( staticMetaObject()->signalOffset() + 0 );
+00289 }
+00290 
+00291 bool KFeedbackQuestionList::qt_invoke( int _id, QUObject* _o )
+00292 {
+00293     return QListView::qt_invoke(_id,_o);
+00294 }
+00295 
+00296 bool KFeedbackQuestionList::qt_emit( int _id, QUObject* _o )
+00297 {
+00298     switch ( _id - staticMetaObject()->signalOffset() ) {
+00299     case 0: checkComplete(); break;
+00300     default:
+00301        return QListView::qt_emit(_id,_o);
+00302     }
+00303     return TRUE;
+00304 }
+00305 #ifndef QT_NO_PROPERTIES
+00306 
+00307 bool KFeedbackQuestionList::qt_property( int id, int f, QVariant* v)
+00308 {
+00309     return QListView::qt_property( id, f, v);
+00310 }
+00311 
+00312 bool KFeedbackQuestionList::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00313 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmail_8cpp-source.html b/doc/html/kshowmail_8cpp-source.html new file mode 100644 index 0000000..3e71b49 --- /dev/null +++ b/doc/html/kshowmail_8cpp-source.html @@ -0,0 +1,822 @@ + + +kshowmail: kshowmail/kshowmail.cpp Source File + + + + +
+
+ +

kshowmail.cpp

00001 /***************************************************************************
+00002                           kshowmail.cpp  -  description
+00003                              -------------------
+00004     begin                : Sat May  6 12:13:57 MEST 2000
+00005     copyright            : (C) 2000-2002 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007 
+00008     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
+00009  ***************************************************************************/
+00010 
+00011 /***************************************************************************
+00012  *                                                                         *
+00013  *   This program is free software; you can redistribute it and/or modify  *
+00014  *   it under the terms of the GNU General Public License as published by  *
+00015  *   the Free Software Foundation; either version 2 of the License, or     *
+00016  *   (at your option) any later version.                                   *
+00017  *                                                                         *
+00018  ***************************************************************************/
+00019 
+00020 #include "kshowmail.h"
+00021 
+00022 using namespace KIO;
+00023 
+00024 KAboutData* KShowMailApp::m_pAbout;
+00025 
+00026 KShowMailApp::KShowMailApp()
+00027 {
+00028   //set up actions
+00029   initActions();
+00030 
+00031   // create GUI from ui resource file
+00032   setXMLFile( "kshowmailui.rc" );
+00033   createGUI();
+00034 
+00035   //the main window settings will be saved automatically
+00036   setAutoSaveSettings();
+00037 
+00038   //initiate GUI parts
+00039   initStatusBar();
+00040   initDocument();
+00041   initView();
+00042 
+00043   //the application is idle at beginning
+00044   m_state = idle;
+00045 
+00046   //the setup dialog will be created in slotSetup() at first use
+00047   SetupDialog = NULL;
+00048 
+00049   m_pTimer = new QTimer (this);
+00050   m_pAlertDialog = NULL;
+00051   m_pDockWindow = new KShowMailDock (this, m_actionRefresh);
+00052   m_bForceClose = false;
+00053 
+00054 
+00055   //read the setup
+00056   m_ConfigList.refreshSetup( m_pView->m_pListAccounts );
+00057 
+00058   readOptions();
+00059 
+00060   //load stored mails
+00061   m_ConfigList.readStoredMails();
+00062 
+00063   //connect signals with slots
+00064 
+00065   connect (m_pDockWindow, SIGNAL (quitSelected ()), SLOT (slotForceClose ()));
+00066   connect (m_pTimer, SIGNAL (timeout ()), SLOT (slotRefresh ()));
+00067   connect (m_pView->m_pListAccounts, SIGNAL (currentChanged(QListViewItem*)), SLOT(slotAccountActivated(QListViewItem*)));
+00068   connect (m_pView, SIGNAL (signalActiveChanged()), SLOT (slotRefreshView()));
+00069 
+00070   connect( &m_ConfigList, SIGNAL( sigDeleteReady() ), this, SLOT( slotDeletionReady() ) );
+00071   connect( &m_ConfigList, SIGNAL( sigShowBodiesReady() ), this, SLOT( slotShowMessageReady() ) );
+00072   connect( &m_ConfigList, SIGNAL( sigMessageWindowOpened() ), this, SLOT( slotNormalCursor() ) );
+00073   connect( &m_ConfigList, SIGNAL( sigAllMessageWindowsClosed() ), this, SLOT( slotWaitingCursor() ) );
+00074   connect( &m_ConfigList, SIGNAL( sigRefreshReady() ), this, SLOT( slotRefreshReady() ) );
+00075 
+00076   // this starts the one-second-interval timer
+00077   // this is a QObject method
+00078   startTimer (1000);
+00079 
+00080 
+00081   //we are ready to take off! Lets initiate the first refresh (if desired)
+00082   initFirstRefresh();
+00083 }
+00084 
+00085 KShowMailApp::~KShowMailApp()
+00086 {
+00087   kdDebug() << "cleaning up" << endl;
+00088   delete m_pTimer;
+00089   delete m_pDockWindow;
+00090   kdDebug() << "cleanup finished" << endl;
+00091 }
+00092 
+00096 void KShowMailApp::timerEvent (QTimerEvent *)
+00097 {
+00098   if (m_nSecondsToGo)
+00099   {
+00100     QTime time;
+00101     time = time.addSecs (m_nSecondsToGo--);
+00102     QCString msg (i18n("Autorefresh: %1").arg (time.toString()));
+00103     statusBar()->changeItem(msg, 3);
+00104   }
+00105   else
+00106     statusBar()->changeItem("", 3);
+00107 
+00108   // if busy, animate the traybar
+00109   if ( m_state == refreshing || m_state == deleting )
+00110   {
+00111     static int color = 0;
+00112     color = (color+1)%2;
+00113     switch (color)
+00114     {
+00115       case 0:
+00116         m_pDockWindow->clear ();
+00117         break;
+00118       default:
+00119         m_pDockWindow->drawText ("?", Qt::red);
+00120     }
+00121   }
+00122 }
+00123 
+00124 
+00125 
+00126 void KShowMailApp::initActions ()
+00127 {
+00128   // file menu
+00129   m_actionSave = KStdAction::saveOptions( this, SLOT( slotSaveOptions() ), actionCollection() );
+00130   KStdAction::quit( this, SLOT( slotFileQuit() ), actionCollection() );
+00131 
+00132   // action menu
+00133   m_actionRefresh = new KAction( i18n( "&Refresh messages" ), "reload", Key_F5, this, SLOT( slotRefresh() ), actionCollection(), "refresh" );
+00134   new KAction( i18n( "Show &header of highlighted messages" ), "letter-closed", Key_F2, this, SLOT( slotShowHeader() ), actionCollection(), "show_header" );
+00135   new KAction( i18n( "Show &complete highlighted messages" ), "letter-open", Key_F3, this, SLOT( slotShowMessage() ), actionCollection(), "show_complete" );
+00136   new KAction( i18n( "&Delete highlighted messages" ), "eraser", Key_Delete, this, SLOT( slotDelete() ), actionCollection(), "delete" );
+00137   new KAction( i18n( "S&top current transfer" ), "stop", 0, this, SLOT( slotStop() ), actionCollection(), "stop" );
+00138 
+00139   // setup menu
+00140   KStdAction::preferences( this, SLOT( slotSetup() ), actionCollection() );
+00141   new KAction( i18n( "Setup &filters" ), "filter", 0, this, SLOT( slotSetupFilters() ), actionCollection(), "filters" );
+00142   KStdAction::configureToolbars( this, SLOT( slotEditToolbars() ), actionCollection() );
+00143 
+00144   //create menu items for toggle tool and status bar
+00145   setStandardToolBarMenuEnabled( true );
+00146   createStandardStatusBarAction();
+00147 
+00148   //help menu
+00149   new KAction( i18n( "Send &Feedback Mail" ), "email", 0, this, SLOT( slotSendFeedbackMail() ),actionCollection(), "sendFeedback" );
+00150 
+00151   //for account context menu
+00152   new KAction(i18n( "Setup &account" ), "tool", 0, this, SLOT( slotSetupAccount() ), actionCollection(), "setupAccount" );
+00153 }
+00154 
+00155 void KShowMailApp::initStatusBar()
+00156 {
+00158   // STATUSBAR
+00159   QCString user = getenv( "LOGNAME" );
+00160   QCString server = getenv( "HOSTNAME" );
+00161   QCString  mesg (QString ("%1@%2").arg(user).arg(server));
+00162 
+00163   statusBar()->insertItem(i18n("Ready."), 1);
+00164   statusBar()->insertItem(mesg, 2, 1);
+00165   statusBar()->insertItem("", 3);
+00166   statusBar()->insertItem("", 4);
+00167 }
+00168 
+00169 void KShowMailApp::initDocument()
+00170 {
+00171   m_pDoc = new KshowmailDoc(this);
+00172   m_pDoc->newDocument();
+00173 }
+00174 
+00175 void KShowMailApp::initView()
+00176 {
+00178   // create the main widget here that is managed by KMainWindow's view-region and
+00179   // connect the widget to your document to display document contents.
+00180 
+00181   m_pView = new KshowmailView(this);
+00182   m_pDoc->addView(m_pView);
+00183   setCentralWidget(m_pView);
+00184 }
+00185 
+00186 void KShowMailApp::slotSaveOptions()
+00187 {
+00188   KConfig* config = KGlobal::config();
+00189 
+00190   //order application parts to save their setup
+00191   m_pView->saveOptions( config );
+00192   Filter::saveOptions( config );
+00193   m_ConfigList.saveOptions ();
+00194 
+00195   //save config to file
+00196   config->sync ();
+00197 
+00198   //disable save action
+00199   m_actionSave->setEnabled( false );
+00200 }
+00201 
+00202 void KShowMailApp::readOptions()
+00203 {
+00204   KConfig* config = KGlobal::config();
+00205 
+00206   Filter::readOptions (config);
+00207   m_actionSave->setEnabled (false);
+00208 }
+00209 
+00210 bool KShowMailApp::queryClose()
+00211 {
+00212     bool result;
+00213     kdDebug() << "KShowMailApp::queryClose()" << endl;
+00214 
+00215     if (m_bForceClose) {
+00216         // We are forced to close app - so just do it
+00217         kdDebug() << "forced exit" << endl;
+00218         result = true;
+00219     } else if( m_ConfigList.closeToTray() ) {
+00220         // Don't close - close button must minimize the window
+00221         result = false;
+00222         kdDebug() << "ignoring close request and minimizing the window" << endl;
+00223         KMainWindow* w = memberList->first();
+00224         w->hide();
+00225     } else {
+00226         // Need to ask user first
+00227         result = askCloseConfirmation();
+00228     }
+00229     return result;
+00230 }
+00231 
+00232 bool KShowMailApp::queryExit()
+00233 {
+00234   kdDebug() << "KShowMailApp::queryExit()" << endl;
+00235   slotSaveOptions ();
+00236 
+00237   return true;
+00238 }
+00239 
+00241 // SLOT IMPLEMENTATION
+00243 
+00244 void KShowMailApp::slotFileQuit()
+00245 {
+00246   kdDebug () << "KShowMailApp::slotFileQuit()" << endl;
+00247   if(memberList && askCloseConfirmation())
+00248   {
+00249     m_bForceClose = true;   // Forcing the closing
+00250     KMainWindow* w = memberList->first();
+00251     w->close();
+00252   }
+00253 }
+00254 
+00255 
+00256 void KShowMailApp::slotSetupAccount()
+00257 {
+00258   //just open the dialog, if the app is idle
+00259   if (m_state != idle)
+00260   {
+00261     kapp->beep();
+00262     return;
+00263   }
+00264 
+00265   //set application state
+00266   m_state = configure;
+00267 
+00268   //stop the refresh timer
+00269   stopRefreshTimer();
+00270 
+00271   //get account to configure
+00272   ConfigElem* pConfig = m_ConfigList.getSelectedAccount();
+00273 
+00274   if( pConfig != NULL )
+00275   {
+00276     //open dialog
+00277     //the dialog sets the new options directly in the account
+00278     ServerDialog dlg( this, pConfig );
+00279 
+00280     if( dlg.exec() == QDialog::Accepted )
+00281     {
+00282       //if OK was clicked, refresh the account list view
+00283       slotConfChanged();
+00284     }
+00285   }
+00286 
+00287   //we are ready, set application state to idle and initiate next refresh
+00288   m_state = idle;
+00289   initNextRefresh();
+00290 }
+00291 
+00292 void KShowMailApp::slotAccountActivated (QListViewItem* pItem)
+00293 {
+00294   QPtrListIterator<ConfigElem> it(m_ConfigList);
+00295   // this is = not == !!!
+00296   while (ConfigElem* pConfig = it())
+00297   {
+00298     if (pConfig->getListViewItem() == pItem)
+00299     {
+00300       setCaption (pConfig->getAccountName());
+00301       return;
+00302     }
+00303   }
+00304 }
+00305 
+00306 void KShowMailApp::slotAlertDestroyed()
+00307 {
+00308   m_pAlertDialog = NULL;
+00309 }
+00310 
+00311 void KShowMailApp::slotAlertOk ()
+00312 {
+00313   //switch main window to normal view
+00314   showNormal();
+00315   raise();
+00316 }
+00317 
+00318 void KShowMailApp::slotRefresh()
+00319 {
+00320   //return, if the app is not idle
+00321   if ( m_state != idle )
+00322   {
+00323     kapp->beep();
+00324     initNextRefresh();
+00325     return;
+00326   }
+00327 
+00328   //stop the refresh timer
+00329   stopRefreshTimer();
+00330 
+00331   //set the state
+00332   m_state = refreshing;
+00333 
+00334   //show status message
+00335   slotStatusMsg( i18n( "Refreshing ..." ) );
+00336 
+00337   //set waiting cursor
+00338   QApplication::setOverrideCursor( Qt::waitCursor );
+00339 
+00340   //order the account list to refresh its mail lists
+00341   m_ConfigList.refreshMailLists();
+00342 
+00343   return;
+00344 }
+00345 
+00346 void KShowMailApp::slotStop ()
+00347 {
+00348   if (m_state == idle)
+00349   {
+00350     kapp->beep ();
+00351     return;
+00352   }
+00353   kdDebug() << "KShowMailApp::slotStop" << endl;
+00354 
+00355   //kill all running pop3 jobs
+00356   m_ConfigList.killPOP3Jobs();
+00357 
+00358   slotRefreshView ();
+00359 
+00360   // make sure the view is refreshed before the state gets idle again
+00361   // bug #853651
+00362 
+00363   //set state to idle
+00364   m_state = idle;
+00365 
+00366   //set normal cursor
+00367   //might be more than one override cursor ...
+00368   while (QApplication::overrideCursor())
+00369     QApplication::restoreOverrideCursor ();
+00370 
+00371   //print status message
+00372   slotStatusMsg(i18n("Job was stopped"));
+00373 }
+00374 
+00375 void KShowMailApp::slotRefreshView ()
+00376 {
+00377 
+00378   //clear mail list view
+00379   m_pView->clearMailListView();
+00380 
+00381   //fill mail list view
+00382   m_ConfigList.fillMailListView( m_pView );
+00383 
+00384   //refresh account list
+00385   m_ConfigList.refreshAccountList();
+00386 
+00387   //get some informations
+00388   int numberMails = m_ConfigList.getNumberMails();
+00389   bool hasNewMails = m_ConfigList.getNumberNewMails() > 0;
+00390 
+00391   //draw number of mails into dock
+00392   if( hasNewMails )
+00393     //draw red number, because we have new mails
+00394      m_pDockWindow->drawNumber( numberMails, Qt::red );
+00395   else
+00396     //we haven't new mails, draw black
+00397     m_pDockWindow->drawNumber( numberMails, Qt::black );
+00398 
+00399   //show message in status bar
+00400   long totalSize = m_ConfigList.getTotalSize();
+00401   slotStatusMsg( i18n( "%1 message(s) with a total of %2 bytes are waiting" ).arg( numberMails ).arg( totalSize ) );
+00402 }
+00403 
+00404 void KShowMailApp::slotDelete()
+00405 {
+00406   //just delete, if no operation is running
+00407   if( m_state != idle )
+00408   {
+00409     kapp->beep();
+00410     return;
+00411   }
+00412 
+00413   //return, if no mails are selected
+00414   if( !m_ConfigList.hasSelectedMails() )
+00415     return;
+00416 
+00417   //confirm deletion if required
+00418   if( m_ConfigList.confirmDeletion() )
+00419   {
+00420     //get subjects off all selected mails
+00421     QStringList subjects = m_ConfigList.getSelectedSubjects();
+00422 
+00423     //show question
+00424     int answer = KMessageBox::questionYesNoList( this, i18n( "Do you want to delete these mails?"), subjects, i18n( "Delete?" ) );
+00425 
+00426     if( answer == KMessageBox::No )
+00427       return;
+00428   }
+00429 
+00430   //set the state
+00431   m_state = deleting;
+00432 
+00433   //show status message
+00434   slotStatusMsg( i18n( "Deleting Mail(s) ..." ) );
+00435 
+00436   //set waiting cursor
+00437   QApplication::setOverrideCursor( Qt::waitCursor );
+00438 
+00439   //order the account list to delete the selected mails
+00440   //test!
+00441   m_ConfigList.deleteSelectedMails();
+00442 }
+00443 
+00444 void KShowMailApp::slotShowHeader ()
+00445 {
+00446   //only show headers, if the app is idle
+00447   if( m_state != idle )
+00448   {
+00449     kapp->beep ();
+00450     return;
+00451   }
+00452 
+00453   //show the headers
+00454   m_ConfigList.showSelectedHeaders();
+00455 
+00456 }
+00457 
+00458 void KShowMailApp::slotShowMessage ()
+00459 {
+00460   //return, if application is not idle
+00461   if( m_state != idle )
+00462   {
+00463     kapp->beep ();
+00464     return;
+00465   }
+00466 
+00467   //return, if no mails are selected
+00468   if( !m_ConfigList.hasSelectedMails() )
+00469     return;
+00470 
+00471   //set the state
+00472   m_state = showing;
+00473 
+00474   //show status message
+00475   slotStatusMsg( i18n( "Downloading ..." ) );
+00476 
+00477   //set waiting cursor
+00478   QApplication::setOverrideCursor( Qt::waitCursor );
+00479 
+00480   //order the account list to show the selected mails
+00481   m_ConfigList.showSelectedMails();
+00482 }
+00483 
+00484 void KShowMailApp::slotStatusMsg(const QString& text)
+00485 {
+00486   //get current time
+00487   // added by Gustavo Zamorano to include time
+00488   QString sTime = QTime::currentTime ().toString ();
+00489 
+00490   //clear status bar
+00491   statusBar()->clear();
+00492 
+00493   //set given text
+00494   statusBar()->changeItem(text, 1);
+00495 
+00496   //set current time
+00497   statusBar()->changeItem(sTime, 4);
+00498 }
+00499 
+00500 void KShowMailApp::slotStatusHelpMsg(const QString &text)
+00501 {
+00502   statusBar()->message(text, 2000);
+00503 }
+00504 
+00505 
+00506 
+00507 
+00508 bool KShowMailApp::event(QEvent *e)
+00509 {
+00510   // to hide the taskbar button; any better solution ??
+00511   if ((e->type() == QEvent::Hide) && m_ConfigList.minimizesToTray() ) {
+00512     hide ();
+00513   }
+00514 
+00515   return(KMainWindow::event(e));
+00516 }
+00517 
+00518 void KShowMailApp::slotSetupFilters ()
+00519 {
+00520   if (m_state != idle)
+00521   {
+00522     kapp->beep ();
+00523     return;
+00524   }
+00525   m_state = configure;
+00526   FilterDialog dlg (this, "Filters");
+00527   if (dlg.exec () == QDialog::Accepted)
+00528     m_actionSave->setEnabled (true);
+00529   m_state = idle;
+00530 }
+00531 
+00532 void KShowMailApp::slotForceClose()
+00533 {
+00534     m_bForceClose = true;
+00535 }
+00536 
+00537 bool KShowMailApp::askCloseConfirmation()
+00538 {
+00539     bool result;
+00540 
+00541     if( m_ConfigList.confirmClose() ) {
+00542         // Need to ask user
+00543         result = (KMessageBox::questionYesNo (this, i18n ("KShowmail will be closed.\n"
+00544                                     "Are you sure?")) == KMessageBox::Yes);
+00545     } else {
+00546         // User doesn't want to be asked - just close it
+00547         result = true;
+00548     }
+00549 
+00550     return result;
+00551 }
+00552 
+00553 void KShowMailApp::slotDeletionReady( )
+00554 {
+00555   //set state to idle
+00556   m_state = idle;
+00557 
+00558   //set normal cursor
+00559   while( QApplication::overrideCursor() )
+00560     QApplication::restoreOverrideCursor();
+00561 
+00562   //show status message
+00563   slotStatusMsg( i18n( "Ready." ) );
+00564 
+00565   //refresh mail list
+00566   slotRefresh();
+00567 }
+00568 
+00569 void KShowMailApp::slotShowMessageReady( )
+00570 {
+00571   //set state to idle
+00572   m_state = idle;
+00573 
+00574   //set normal cursor
+00575   while( QApplication::overrideCursor() )
+00576     QApplication::restoreOverrideCursor();
+00577 
+00578   //show status message
+00579   slotStatusMsg( i18n( "Ready." ) );
+00580 
+00581 
+00582 }
+00583 
+00584 void KShowMailApp::slotNormalCursor( )
+00585 {
+00586   //set normal cursor
+00587   while( QApplication::overrideCursor() )
+00588     QApplication::restoreOverrideCursor();
+00589 
+00590 }
+00591 
+00592 void KShowMailApp::slotWaitingCursor( )
+00593 {
+00594   //set waiting cursor
+00595   QApplication::setOverrideCursor( Qt::waitCursor );
+00596 }
+00597 
+00598 void KShowMailApp::slotRefreshReady( )
+00599 {
+00600   //set state to idle
+00601   m_state = idle;
+00602 
+00603   //set normal cursor
+00604   while( QApplication::overrideCursor() )
+00605     QApplication::restoreOverrideCursor();
+00606 
+00607   //refresh mail list view
+00608   slotRefreshView();
+00609 
+00610   //inform the user about new mails
+00611   bool hasNewMails = m_ConfigList.getNumberNewMails() > 0;
+00612   if ( hasNewMails )
+00613   {
+00614     //show main window if desired
+00615     if( m_ConfigList.showMainWindowForNewMails() )
+00616     {
+00617       showNormal();
+00618       raise();
+00619     }
+00620 
+00621     //get out some sounds
+00622     m_ConfigList.beep();
+00623     m_ConfigList.playSound();
+00624 
+00625     //execute a command
+00626     m_ConfigList.executeNewMailCommand();
+00627 
+00628     //show alert message if desired
+00629     if( m_ConfigList.showAlertMessageForNewMails() )
+00630     {
+00631       //have we created one already?
+00632       if( m_pAlertDialog != NULL )
+00633       {
+00634         //yes, we have one
+00635         m_pAlertDialog->show();
+00636         m_pAlertDialog->raise();
+00637       }
+00638       else
+00639       {
+00640         //create a message dialog
+00641         m_pAlertDialog = new AlertDialog( this );
+00642         connect( m_pAlertDialog, SIGNAL( destroyed() ), SLOT( slotAlertDestroyed() ) );
+00643         connect( m_pAlertDialog, SIGNAL( signalOk() ), SLOT( slotAlertOk() ) );
+00644       }
+00645     }
+00646 
+00647   }
+00648   else
+00649   {
+00650     //no new mails was received
+00651     //perform configured actions
+00652 
+00653     //terminate app if desired
+00654     if( m_ConfigList.quitNoNewMails() )
+00655       slotFileQuit();
+00656     else if( m_ConfigList.minimizeMainWindowNoNewMails() )
+00657     {
+00658       showMinimized();
+00659       hide();
+00660     }
+00661   }
+00662 
+00663   //show status message
+00664   slotStatusMsg( i18n( "Ready." ) );
+00665 
+00666 
+00667   //prepare next refresh cycle
+00668   initNextRefresh();
+00669 
+00670   //apply filters
+00671   m_ConfigList.applyFilters();
+00672 
+00673   //perform automatic delete if desired
+00674   if (Filter::_status == Filter::automatic)
+00675   {
+00676     slotDelete ();
+00677   }
+00678 }
+00679 
+00680 void KShowMailApp::initFirstRefresh( )
+00681 {
+00682   //is auto refresh on? if not, we do nothing
+00683   if( m_ConfigList.AutoRefreshOn() )
+00684   {
+00685     //is an initial time configured? if not, we refresh immediately
+00686     if( m_ConfigList.hasInitTime() )
+00687     {
+00688       //starts refresh timer with the configured initial time to first refresh
+00689       m_pTimer->start( m_ConfigList.getInitTime() * 1000, true );
+00690       m_nSecondsToGo = m_ConfigList.getInitTime();
+00691     }
+00692     else
+00693     {
+00694       //just to set a defined state
+00695       m_pTimer->stop();
+00696       m_nSecondsToGo = 0;
+00697 
+00698       //start refresh cycle
+00699       slotRefresh();
+00700     }
+00701   }
+00702   else
+00703   {
+00704     //set a defined state
+00705     m_pTimer->stop();
+00706     m_nSecondsToGo = 0;
+00707   }
+00708 }
+00709 
+00710 void KShowMailApp::stopRefreshTimer( )
+00711 {
+00712   m_pTimer->stop();
+00713   m_nSecondsToGo = 0;
+00714 }
+00715 
+00716 void KShowMailApp::initNextRefresh( )
+00717 {
+00718   if( m_ConfigList.AutoRefreshOn() )
+00719   {
+00720     //auto refresh is activated
+00721     //restart the refresh timer
+00722     m_pTimer->start( m_ConfigList.getRefreshTimeInterval() * 60000, true );
+00723     m_nSecondsToGo = m_ConfigList.getRefreshTimeInterval() * 60;
+00724   }
+00725   else
+00726   {
+00727     //auto refresh is not activated
+00728     //set a defined state of the refresh timer
+00729     m_pTimer->stop();
+00730     m_nSecondsToGo = 0;
+00731   }
+00732 }
+00733 
+00734 void KShowMailApp::delayNextRefresh( )
+00735 {
+00736   const unsigned long DELAY_TIME = 60;
+00737 
+00738   //delay only if the timer is active and the remaining time is less than one minute
+00739   if( m_pTimer->isActive() )
+00740   {
+00741     if( m_nSecondsToGo < DELAY_TIME )
+00742     {
+00743       m_pTimer->start( DELAY_TIME * 1000, true );
+00744       m_nSecondsToGo = DELAY_TIME;
+00745     }
+00746   }
+00747 }
+00748 
+00749 void KShowMailApp::slotEditToolbars()
+00750 {
+00751   //create the toolbar config dialog
+00752   KEditToolbar *dlg = new KEditToolbar(guiFactory());
+00753   if( dlg->exec() )
+00754   {
+00755     //if dialog closed by OK, create the GUI new
+00756     //the dialog has changed the kshowmailui.rc file
+00757     createGUI();
+00758   }
+00759 
+00760   //destruct dialog
+00761   delete dlg;
+00762 }
+00763 
+00764 void KShowMailApp::slotSetup( )
+00765 {
+00766   //just open the dialog, if the app is idle
+00767   if (m_state != idle)
+00768   {
+00769     kapp->beep();
+00770     return;
+00771   }
+00772 
+00773   //set application state
+00774   m_state = configure;
+00775 
+00776   //stop the refresh timer
+00777   stopRefreshTimer();
+00778 
+00779   if ( SetupDialog == NULL )
+00780   {
+00781     //if no preferences dialog was created as yet, create one
+00782     SetupDialog = new KCMultiDialog( KCMultiDialog::IconList, i18n( "Options" ), this, "SetupDialog" );
+00783     SetupDialog->addModule( "kshowmailconfigaccounts.desktop" );
+00784     SetupDialog->addModule( "kshowmailconfiggeneral.desktop" );
+00785     SetupDialog->addModule( "kshowmailconfigdisplay.desktop" );
+00786     SetupDialog->addModule( "kshowmailconfigactions.desktop" );
+00787 
+00788     //If the configuration was changed, it will call slotConfChanged
+00789     connect( SetupDialog, SIGNAL( configCommitted() ), this, SLOT( slotConfChanged() ) );
+00790   }
+00791 
+00792   //execute preferences dialog
+00793   SetupDialog->exec();
+00794 
+00795   //we are ready, set application state to idle and initiate next refresh
+00796   m_state = idle;
+00797   initNextRefresh();
+00798 
+00799 }
+00800 
+00801 void KShowMailApp::slotConfChanged( )
+00802 {
+00803   //read the new setup
+00804   m_ConfigList.refreshSetup( m_pView->m_pListAccounts );
+00805   m_pView->refreshSetup();
+00806 }
+00807 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmail_8h-source.html b/doc/html/kshowmail_8h-source.html new file mode 100644 index 0000000..d85b890 --- /dev/null +++ b/doc/html/kshowmail_8h-source.html @@ -0,0 +1,221 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmail.h Source File + + + + +
+
+
+
+ +

kshowmail.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           kshowmail.h  -  description
+00003                              -------------------
+00004     begin                : Sat May  6 12:13:57 MEST 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef KSHOWMAIL_H
+00019 #define KSHOWMAIL_H
+00020 
+00021 
+00022 #ifdef HAVE_CONFIG_H
+00023 #include <config.h>
+00024 #endif
+00025 
+00026 // include files for KDE
+00027 #include <kapplication.h>
+00028 #include <kmainwindow.h>
+00029 #include <kuniqueapplication.h>
+00030 #include <kaction.h>
+00031 #include <kstdaction.h>
+00032 #include <klocale.h>
+00033 #include <kstatusbar.h>
+00034 #include <krun.h>
+00035 #include <kpassdlg.h>
+00036 #include <kdebug.h>
+00037 #include <kedittoolbar.h>
+00038 #include <kcmultidialog.h>
+00039 
+00040 
+00041 //include files for KShowMail
+00042 #include "configlist.h"
+00043 #include "alertdialog.h"
+00044 #include "showrecord.h"
+00045 #include "showlistviewitem.h"
+00046 #include "kshowmaildock.h"
+00047 #include "kfeedback.h"
+00048 #include "types.h"
+00049 #include "kshowmailview.h"
+00050 #include "kshowmaildoc.h"
+00051 #include "serverdialog.h"
+00052 #include "filterlog.h"
+00053 #include "filterlogview.h"
+00054 
+00055 
+00056 // forward declaration of the Kshowmail classes
+00057 class KshowmailDoc;
+00058 class KshowmailView;
+00059 
+00060 using namespace Types;
+00061 
+00077 class KShowMailApp : public KMainWindow
+00078 {
+00079   Q_OBJECT
+00080 
+00081   friend class KshowmailView;
+00082   friend class KshowmailDock;
+00083   friend class UniqueApp;
+00084 
+00085 
+00086   private:
+00087 
+00091     KshowmailDoc* m_pDoc;
+00092 
+00096     KshowmailView *m_pView;
+00097 
+00101     KCMultiDialog* SetupDialog;
+00102 
+00106     KAction* m_actionRefresh;
+00107 
+00112     ConfigList m_ConfigList;
+00113 
+00117     AlertDialog* m_pAlertDialog;
+00118 
+00122     KShowMailDock* m_pDockWindow;
+00123 
+00127     QTimer* m_pTimer;
+00128 
+00132      Types::State_Type m_state;
+00133 
+00137      unsigned long m_nSecondsToGo;
+00138 
+00142      FilterLog fLog;
+00143 
+00144 
+00145   public:
+00150     KShowMailApp();
+00151 
+00155     ~KShowMailApp();
+00156 
+00161     static KAboutData* m_pAbout;
+00162 
+00166     void delayNextRefresh();
+00167 
+00168 
+00169   protected:
+00170 
+00174     void initStatusBar();
+00175 
+00179     void initActions();
+00180 
+00185     void initDocument();
+00186 
+00190     void initView();
+00191 
+00199     virtual bool queryClose();
+00200 
+00208     virtual bool queryExit();
+00209 
+00216     virtual void timerEvent( QTimerEvent * );
+00217 
+00222     virtual bool event(QEvent *e);
+00223 
+00228     void initFirstRefresh();
+00229 
+00233     void stopRefreshTimer();
+00234 
+00238     void initNextRefresh();
+00239 
+00240   protected slots:
+00241 
+00249     void slotStatusHelpMsg(const QString &text);
+00250 
+00257     void slotStatusMsg(const QString &text);
+00258 
+00263     void slotConfChanged();
+00264 
+00269     void slotDelete();
+00270 
+00278     void slotDeletionReady();
+00279 
+00284     void slotShowMessage();
+00285 
+00292     void slotShowMessageReady();
+00293 
+00300     void slotNormalCursor();
+00301 
+00308     void slotWaitingCursor();
+00309 
+00314     void slotRefresh();
+00315 
+00322     void slotRefreshReady();
+00323 
+00331     void slotAlertDestroyed();
+00332 
+00338     void slotAlertOk ();
+00339 
+00343     void slotRefreshView ();
+00344 
+00349     void slotStop ();
+00350 
+00355     void slotShowHeader();
+00356 
+00361     void slotEditToolbars();
+00362 
+00366     void slotSaveOptions();
+00367 
+00373     void slotFileQuit();
+00374 
+00378     void slotSetupAccount();
+00379 
+00384     void slotSetup();
+00385 
+00389     void slotShowFilterLog();
+00390 
+00391     void slotAccountActivated(QListViewItem*);
+00392     void slotSendFeedbackMail();
+00393     void slotForceClose();
+00394 
+00395 
+00396 
+00397 
+00398 private:
+00399 
+00400     bool m_bForceClose;
+00401 
+00402 
+00403   protected:
+00404     void addFeatureList(KFeedbackQuestion * question);
+00405     bool askCloseConfirmation();
+00406 
+00407 };
+00408 
+00409 #endif // KSHOWMAIL_H
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmail_8moc_8cpp-source.html b/doc/html/kshowmail_8moc_8cpp-source.html new file mode 100644 index 0000000..7904413 --- /dev/null +++ b/doc/html/kshowmail_8moc_8cpp-source.html @@ -0,0 +1,204 @@ + + +kshowmail: kshowmail/kshowmail.moc.cpp Source File + + + + +
+
+ +

kshowmail.moc.cpp

00001 /****************************************************************************
+00002 ** KShowMailApp meta object code from reading C++ file 'kshowmail.h'
+00003 **
+00004 ** Created: Thu Jul 5 19:14:17 2007
+00005 **      by: The Qt MOC ($Id: kshowmail_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "kshowmail.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *KShowMailApp::className() const
+00023 {
+00024     return "KShowMailApp";
+00025 }
+00026 
+00027 QMetaObject *KShowMailApp::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_KShowMailApp( "KShowMailApp", &KShowMailApp::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString KShowMailApp::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "KShowMailApp", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString KShowMailApp::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "KShowMailApp", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* KShowMailApp::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = KMainWindow::staticMetaObject();
+00055     static const QUParameter param_slot_0[] = {
+00056        { "text", &static_QUType_QString, 0, QUParameter::In }
+00057     };
+00058     static const QUMethod slot_0 = {"slotStatusHelpMsg", 1, param_slot_0 };
+00059     static const QUParameter param_slot_1[] = {
+00060        { "text", &static_QUType_QString, 0, QUParameter::In }
+00061     };
+00062     static const QUMethod slot_1 = {"slotStatusMsg", 1, param_slot_1 };
+00063     static const QUMethod slot_2 = {"slotConfChanged", 0, 0 };
+00064     static const QUMethod slot_3 = {"slotDelete", 0, 0 };
+00065     static const QUMethod slot_4 = {"slotDeletionReady", 0, 0 };
+00066     static const QUMethod slot_5 = {"slotShowMessage", 0, 0 };
+00067     static const QUMethod slot_6 = {"slotShowMessageReady", 0, 0 };
+00068     static const QUMethod slot_7 = {"slotNormalCursor", 0, 0 };
+00069     static const QUMethod slot_8 = {"slotWaitingCursor", 0, 0 };
+00070     static const QUMethod slot_9 = {"slotRefresh", 0, 0 };
+00071     static const QUMethod slot_10 = {"slotRefreshReady", 0, 0 };
+00072     static const QUMethod slot_11 = {"slotAlertDestroyed", 0, 0 };
+00073     static const QUMethod slot_12 = {"slotAlertOk", 0, 0 };
+00074     static const QUMethod slot_13 = {"slotRefreshView", 0, 0 };
+00075     static const QUMethod slot_14 = {"slotStop", 0, 0 };
+00076     static const QUMethod slot_15 = {"slotShowHeader", 0, 0 };
+00077     static const QUMethod slot_16 = {"slotEditToolbars", 0, 0 };
+00078     static const QUMethod slot_17 = {"slotSaveOptions", 0, 0 };
+00079     static const QUMethod slot_18 = {"slotFileQuit", 0, 0 };
+00080     static const QUMethod slot_19 = {"slotSetupAccount", 0, 0 };
+00081     static const QUMethod slot_20 = {"slotSetup", 0, 0 };
+00082     static const QUMethod slot_21 = {"slotSetupFilters", 0, 0 };
+00083     static const QUParameter param_slot_22[] = {
+00084        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
+00085     };
+00086     static const QUMethod slot_22 = {"slotAccountActivated", 1, param_slot_22 };
+00087     static const QUMethod slot_23 = {"slotSendFeedbackMail", 0, 0 };
+00088     static const QUMethod slot_24 = {"slotForceClose", 0, 0 };
+00089     static const QMetaData slot_tbl[] = {
+00090        { "slotStatusHelpMsg(const QString&)", &slot_0, QMetaData::Protected },
+00091        { "slotStatusMsg(const QString&)", &slot_1, QMetaData::Protected },
+00092        { "slotConfChanged()", &slot_2, QMetaData::Protected },
+00093        { "slotDelete()", &slot_3, QMetaData::Protected },
+00094        { "slotDeletionReady()", &slot_4, QMetaData::Protected },
+00095        { "slotShowMessage()", &slot_5, QMetaData::Protected },
+00096        { "slotShowMessageReady()", &slot_6, QMetaData::Protected },
+00097        { "slotNormalCursor()", &slot_7, QMetaData::Protected },
+00098        { "slotWaitingCursor()", &slot_8, QMetaData::Protected },
+00099        { "slotRefresh()", &slot_9, QMetaData::Protected },
+00100        { "slotRefreshReady()", &slot_10, QMetaData::Protected },
+00101        { "slotAlertDestroyed()", &slot_11, QMetaData::Protected },
+00102        { "slotAlertOk()", &slot_12, QMetaData::Protected },
+00103        { "slotRefreshView()", &slot_13, QMetaData::Protected },
+00104        { "slotStop()", &slot_14, QMetaData::Protected },
+00105        { "slotShowHeader()", &slot_15, QMetaData::Protected },
+00106        { "slotEditToolbars()", &slot_16, QMetaData::Protected },
+00107        { "slotSaveOptions()", &slot_17, QMetaData::Protected },
+00108        { "slotFileQuit()", &slot_18, QMetaData::Protected },
+00109        { "slotSetupAccount()", &slot_19, QMetaData::Protected },
+00110        { "slotSetup()", &slot_20, QMetaData::Protected },
+00111        { "slotSetupFilters()", &slot_21, QMetaData::Protected },
+00112        { "slotAccountActivated(QListViewItem*)", &slot_22, QMetaData::Protected },
+00113        { "slotSendFeedbackMail()", &slot_23, QMetaData::Protected },
+00114        { "slotForceClose()", &slot_24, QMetaData::Protected }
+00115     };
+00116     metaObj = QMetaObject::new_metaobject(
+00117        "KShowMailApp", parentObject,
+00118        slot_tbl, 25,
+00119        0, 0,
+00120 #ifndef QT_NO_PROPERTIES
+00121        0, 0,
+00122        0, 0,
+00123 #endif // QT_NO_PROPERTIES
+00124        0, 0 );
+00125     cleanUp_KShowMailApp.setMetaObject( metaObj );
+00126     return metaObj;
+00127 }
+00128 
+00129 void* KShowMailApp::qt_cast( const char* clname )
+00130 {
+00131     if ( !qstrcmp( clname, "KShowMailApp" ) )
+00132        return this;
+00133     return KMainWindow::qt_cast( clname );
+00134 }
+00135 
+00136 bool KShowMailApp::qt_invoke( int _id, QUObject* _o )
+00137 {
+00138     switch ( _id - staticMetaObject()->slotOffset() ) {
+00139     case 0: slotStatusHelpMsg((const QString&)static_QUType_QString.get(_o+1)); break;
+00140     case 1: slotStatusMsg((const QString&)static_QUType_QString.get(_o+1)); break;
+00141     case 2: slotConfChanged(); break;
+00142     case 3: slotDelete(); break;
+00143     case 4: slotDeletionReady(); break;
+00144     case 5: slotShowMessage(); break;
+00145     case 6: slotShowMessageReady(); break;
+00146     case 7: slotNormalCursor(); break;
+00147     case 8: slotWaitingCursor(); break;
+00148     case 9: slotRefresh(); break;
+00149     case 10: slotRefreshReady(); break;
+00150     case 11: slotAlertDestroyed(); break;
+00151     case 12: slotAlertOk(); break;
+00152     case 13: slotRefreshView(); break;
+00153     case 14: slotStop(); break;
+00154     case 15: slotShowHeader(); break;
+00155     case 16: slotEditToolbars(); break;
+00156     case 17: slotSaveOptions(); break;
+00157     case 18: slotFileQuit(); break;
+00158     case 19: slotSetupAccount(); break;
+00159     case 20: slotSetup(); break;
+00160     case 21: slotSetupFilters(); break;
+00161     case 22: slotAccountActivated((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
+00162     case 23: slotSendFeedbackMail(); break;
+00163     case 24: slotForceClose(); break;
+00164     default:
+00165        return KMainWindow::qt_invoke( _id, _o );
+00166     }
+00167     return TRUE;
+00168 }
+00169 
+00170 bool KShowMailApp::qt_emit( int _id, QUObject* _o )
+00171 {
+00172     return KMainWindow::qt_emit(_id,_o);
+00173 }
+00174 #ifndef QT_NO_PROPERTIES
+00175 
+00176 bool KShowMailApp::qt_property( int id, int f, QVariant* v)
+00177 {
+00178     return KMainWindow::qt_property( id, f, v);
+00179 }
+00180 
+00181 bool KShowMailApp::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00182 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmaildoc_8cpp-source.html b/doc/html/kshowmaildoc_8cpp-source.html new file mode 100644 index 0000000..abb6e1d --- /dev/null +++ b/doc/html/kshowmaildoc_8cpp-source.html @@ -0,0 +1,101 @@ + + +kshowmail: kshowmail/kshowmaildoc.cpp Source File + + + + +
+
+ +

kshowmaildoc.cpp

00001 /***************************************************************************
+00002                           kshowmaildoc.cpp  -  description
+00003                              -------------------
+00004     begin                : Fre Sep 28 23:29:54 CEST 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 // include files for Qt
+00019 #include <qdir.h>
+00020 #include <qwidget.h>
+00021 
+00022 // include files for KDE
+00023 #include <klocale.h>
+00024 #include <kmessagebox.h>
+00025 #include <kio/job.h>
+00026 #include <kio/netaccess.h>
+00027 
+00028 // application specific includes
+00029 #include "kshowmaildoc.h"
+00030 #include "kshowmail.h"
+00031 #include "kshowmailview.h"
+00032 
+00033 KshowmailView *KshowmailDoc::pView = 0L;
+00034 
+00035 KshowmailDoc::KshowmailDoc(QWidget *parent, const char *name) : QObject(parent, name)
+00036 {
+00037 }
+00038 
+00039 KshowmailDoc::~KshowmailDoc()
+00040 {
+00041 }
+00042 
+00043 void KshowmailDoc::addView(KshowmailView *view)
+00044 {
+00045   pView = view;
+00046 }
+00047 
+00048 void KshowmailDoc::removeView(KshowmailView*)
+00049 {
+00050   delete pView;
+00051 }
+00052 
+00053 void KshowmailDoc::setURL(const KURL &url)
+00054 {
+00055   doc_url=url;
+00056 }
+00057 
+00058 const KURL& KshowmailDoc::URL() const
+00059 {
+00060   return doc_url;
+00061 }
+00062 
+00063 // this could be deleted; perhaps we build a tree view sometime ?
+00064 void KshowmailDoc::slotUpdateAllViews(KshowmailView *sender)
+00065 {
+00066   if(pView)
+00067   {
+00068      if(pView!=sender)
+00069         pView->repaint();
+00070   }
+00071 }
+00072 
+00073 bool KshowmailDoc::newDocument()
+00074 {
+00076   // TODO: Add your document initialization code here
+00078   doc_url.setFileName(i18n("Untitled"));
+00079 
+00080   return true;
+00081 }
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmaildoc_8h-source.html b/doc/html/kshowmaildoc_8h-source.html new file mode 100644 index 0000000..3f9574a --- /dev/null +++ b/doc/html/kshowmaildoc_8h-source.html @@ -0,0 +1,86 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmaildoc.h Source File + + + + +
+
+
+
+ +

kshowmaildoc.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           kshowmaildoc.h  -  description
+00003                              -------------------
+00004     begin                : Fre Sep 28 23:29:54 CEST 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef KSHOWMAILDOC_H
+00019 #define KSHOWMAILDOC_H
+00020 
+00021 #ifdef HAVE_CONFIG_H
+00022 #include <config.h>
+00023 #endif 
+00024 
+00025 // include files for QT
+00026 #include <qobject.h>
+00027 #include <qstring.h>
+00028 
+00029 // include files for KDE
+00030 #include <kurl.h>
+00031 
+00032 // forward declaration of the Kshowmail classes
+00033 class KshowmailView;
+00034 
+00045 class KshowmailDoc : public QObject
+00046 {
+00047   Q_OBJECT
+00048   public:
+00050     KshowmailDoc(QWidget *parent, const char *name=0);
+00052     ~KshowmailDoc();
+00053 
+00055     void addView(KshowmailView *view);
+00057     void removeView(KshowmailView *view);
+00059     bool newDocument();
+00061     const KURL& URL() const;
+00063           void setURL(const KURL& url);
+00064         
+00065   public slots:
+00069     void slotUpdateAllViews(KshowmailView *sender);
+00070         
+00071   public:       
+00073     // no List; just one view
+00074     static KshowmailView *pView;        
+00075 
+00076   private:
+00078     KURL doc_url;
+00079 };
+00080 
+00081 #endif // KSHOWMAILDOC_H
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmaildoc_8moc_8cpp-source.html b/doc/html/kshowmaildoc_8moc_8cpp-source.html new file mode 100644 index 0000000..04876b3 --- /dev/null +++ b/doc/html/kshowmaildoc_8moc_8cpp-source.html @@ -0,0 +1,126 @@ + + +kshowmail: kshowmail/kshowmaildoc.moc.cpp Source File + + + + +
+
+ +

kshowmaildoc.moc.cpp

00001 /****************************************************************************
+00002 ** KshowmailDoc meta object code from reading C++ file 'kshowmaildoc.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:08:59 2007
+00005 **      by: The Qt MOC ($Id: kshowmaildoc_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "kshowmaildoc.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *KshowmailDoc::className() const
+00023 {
+00024     return "KshowmailDoc";
+00025 }
+00026 
+00027 QMetaObject *KshowmailDoc::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_KshowmailDoc( "KshowmailDoc", &KshowmailDoc::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString KshowmailDoc::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "KshowmailDoc", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString KshowmailDoc::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "KshowmailDoc", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* KshowmailDoc::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QObject::staticMetaObject();
+00055     static const QUParameter param_slot_0[] = {
+00056        { "sender", &static_QUType_ptr, "KshowmailView", QUParameter::In }
+00057     };
+00058     static const QUMethod slot_0 = {"slotUpdateAllViews", 1, param_slot_0 };
+00059     static const QMetaData slot_tbl[] = {
+00060        { "slotUpdateAllViews(KshowmailView*)", &slot_0, QMetaData::Public }
+00061     };
+00062     metaObj = QMetaObject::new_metaobject(
+00063        "KshowmailDoc", parentObject,
+00064        slot_tbl, 1,
+00065        0, 0,
+00066 #ifndef QT_NO_PROPERTIES
+00067        0, 0,
+00068        0, 0,
+00069 #endif // QT_NO_PROPERTIES
+00070        0, 0 );
+00071     cleanUp_KshowmailDoc.setMetaObject( metaObj );
+00072     return metaObj;
+00073 }
+00074 
+00075 void* KshowmailDoc::qt_cast( const char* clname )
+00076 {
+00077     if ( !qstrcmp( clname, "KshowmailDoc" ) )
+00078        return this;
+00079     return QObject::qt_cast( clname );
+00080 }
+00081 
+00082 bool KshowmailDoc::qt_invoke( int _id, QUObject* _o )
+00083 {
+00084     switch ( _id - staticMetaObject()->slotOffset() ) {
+00085     case 0: slotUpdateAllViews((KshowmailView*)static_QUType_ptr.get(_o+1)); break;
+00086     default:
+00087        return QObject::qt_invoke( _id, _o );
+00088     }
+00089     return TRUE;
+00090 }
+00091 
+00092 bool KshowmailDoc::qt_emit( int _id, QUObject* _o )
+00093 {
+00094     return QObject::qt_emit(_id,_o);
+00095 }
+00096 #ifndef QT_NO_PROPERTIES
+00097 
+00098 bool KshowmailDoc::qt_property( int id, int f, QVariant* v)
+00099 {
+00100     return QObject::qt_property( id, f, v);
+00101 }
+00102 
+00103 bool KshowmailDoc::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00104 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmaildock_8cpp-source.html b/doc/html/kshowmaildock_8cpp-source.html new file mode 100644 index 0000000..26d1bb2 --- /dev/null +++ b/doc/html/kshowmaildock_8cpp-source.html @@ -0,0 +1,105 @@ + + +kshowmail: kshowmail/kshowmaildock.cpp Source File + + + + +
+
+ +

kshowmaildock.cpp

00001 /***************************************************************************
+00002                           kshowmaildock.cpp  -  description
+00003                              -------------------
+00004     begin                : Wed Jan 3 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <qpixmap.h>
+00019 #include <qpainter.h>
+00020 #include <qtooltip.h>
+00021 
+00022 #include <kpopupmenu.h>
+00023 #include <kstandarddirs.h>
+00024 #include <kglobalsettings.h>
+00025 #include <klocale.h>
+00026 #include <kdebug.h>
+00027 
+00028 #include "kshowmail.h"
+00029 #include "kshowmaildock.h"
+00030 
+00031 KShowMailDock::KShowMailDock(QWidget* parent, KAction *actionRefresh )
+00032 : KSystemTray (parent, 0),
+00033       m_background (QPixmap(::locate ("data", "kshowmail/pics/kshowmail24.png")))
+00034 {
+00035 //  kdDebug () << "KShowMailDock::KShowMailDock" << endl;
+00036   drawText ("?", Qt::red);
+00037   QToolTip::add (this, i18n("KShowmail: a powerful pop3 email checker"));
+00038 
+00039   show();
+00040 
+00041   actionRefresh->plug( contextMenu() );
+00042   //((KShowMailApp*)parent)->m_actionRefresh->plug (contextMenu());
+00043   connect (contextMenu(),SIGNAL(activated(int)),this, SIGNAL(sigActivated(int)));
+00044   connect (contextMenu(),SIGNAL(highlighted(int)),this, SIGNAL(sigHighlighted(int)));
+00045 }
+00046 
+00047 void KShowMailDock::drawText (const QString str, const QColor& color)
+00048 {
+00049   setPixmap (m_background);
+00050   QPixmap* pix = pixmap ();
+00051    if (pix && !pix->isNull ())
+00052   {
+00053     QPainter p (pix);
+00054 //     p.setFont (KGlobalSettings::toolBarFont());
+00055      p.setFont (KGlobalSettings::windowTitleFont());
+00056     p.setPen (color);
+00057      p.drawText  (0,0,24,24,QPainter::AlignCenter,str,str.length());
+00058   }
+00059   else
+00060     kdError () << "No pixmap for traybar !" << endl;
+00061 }
+00062 
+00063 void KShowMailDock::drawNumber (int n, const QColor& color)
+00064 {
+00065   setPixmap (m_background);
+00066   QPixmap* pix = pixmap ();
+00067    if (pix && !pix->isNull ())
+00068   {
+00069     QString num (QString::number(n));
+00070     QPainter p (pix);
+00071      p.setFont (KGlobalSettings::toolBarFont());
+00072     p.setPen (color);
+00073      p.drawText  (0,0,24,24,QPainter::AlignCenter,num,num.length());
+00074   }
+00075   else
+00076     kdError () << "No pixmap for traybar !" << endl;
+00077 }
+00078 
+00079 void KShowMailDock::clear ()
+00080 {
+00081   setPixmap (m_background);
+00082 }
+00083 
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmaildock_8h-source.html b/doc/html/kshowmaildock_8h-source.html new file mode 100644 index 0000000..14e37a0 --- /dev/null +++ b/doc/html/kshowmaildock_8h-source.html @@ -0,0 +1,69 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmaildock.h Source File + + + + +
+
+
+
+ +

kshowmaildock.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           kshowmaildock.h  -  description
+00003                              -------------------
+00004     begin                : Wed Jan 3 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef KSHOWMAILDOCK_H
+00019 #define KSHOWMAILDOCK_H
+00020 
+00021 #include <qwidget.h>
+00022 #include <qpixmap.h>
+00023 #include <ksystemtray.h>
+00024 #include <kaction.h>
+00025 
+00030 class KShowMailDock : public KSystemTray
+00031 {
+00032   Q_OBJECT
+00033 public:
+00034         KShowMailDock(QWidget*, KAction *actionRefresh );
+00035         ~KShowMailDock() {};
+00036   void drawText (const QString str, const QColor& color);
+00037   void drawNumber (int n, const QColor& color);
+00038   void clear ();
+00039 signals:
+00040         void sigActivated(int);
+00041         void sigHighlighted(int);
+00042 private:
+00043   QPixmap m_background;
+00044 };
+00045 
+00046 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmaildock_8moc_8cpp-source.html b/doc/html/kshowmaildock_8moc_8cpp-source.html new file mode 100644 index 0000000..6624577 --- /dev/null +++ b/doc/html/kshowmaildock_8moc_8cpp-source.html @@ -0,0 +1,144 @@ + + +kshowmail: kshowmail/kshowmaildock.moc.cpp Source File + + + + +
+
+ +

kshowmaildock.moc.cpp

00001 /****************************************************************************
+00002 ** KShowMailDock meta object code from reading C++ file 'kshowmaildock.h'
+00003 **
+00004 ** Created: Fri Jun 29 22:09:01 2007
+00005 **      by: The Qt MOC ($Id: kshowmaildock_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "kshowmaildock.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *KShowMailDock::className() const
+00023 {
+00024     return "KShowMailDock";
+00025 }
+00026 
+00027 QMetaObject *KShowMailDock::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_KShowMailDock( "KShowMailDock", &KShowMailDock::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString KShowMailDock::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "KShowMailDock", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString KShowMailDock::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "KShowMailDock", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* KShowMailDock::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = KSystemTray::staticMetaObject();
+00055     static const QUParameter param_signal_0[] = {
+00056        { 0, &static_QUType_int, 0, QUParameter::In }
+00057     };
+00058     static const QUMethod signal_0 = {"sigActivated", 1, param_signal_0 };
+00059     static const QUParameter param_signal_1[] = {
+00060        { 0, &static_QUType_int, 0, QUParameter::In }
+00061     };
+00062     static const QUMethod signal_1 = {"sigHighlighted", 1, param_signal_1 };
+00063     static const QMetaData signal_tbl[] = {
+00064        { "sigActivated(int)", &signal_0, QMetaData::Public },
+00065        { "sigHighlighted(int)", &signal_1, QMetaData::Public }
+00066     };
+00067     metaObj = QMetaObject::new_metaobject(
+00068        "KShowMailDock", parentObject,
+00069        0, 0,
+00070        signal_tbl, 2,
+00071 #ifndef QT_NO_PROPERTIES
+00072        0, 0,
+00073        0, 0,
+00074 #endif // QT_NO_PROPERTIES
+00075        0, 0 );
+00076     cleanUp_KShowMailDock.setMetaObject( metaObj );
+00077     return metaObj;
+00078 }
+00079 
+00080 void* KShowMailDock::qt_cast( const char* clname )
+00081 {
+00082     if ( !qstrcmp( clname, "KShowMailDock" ) )
+00083        return this;
+00084     return KSystemTray::qt_cast( clname );
+00085 }
+00086 
+00087 // SIGNAL sigActivated
+00088 void KShowMailDock::sigActivated( int t0 )
+00089 {
+00090     activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
+00091 }
+00092 
+00093 // SIGNAL sigHighlighted
+00094 void KShowMailDock::sigHighlighted( int t0 )
+00095 {
+00096     activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
+00097 }
+00098 
+00099 bool KShowMailDock::qt_invoke( int _id, QUObject* _o )
+00100 {
+00101     return KSystemTray::qt_invoke(_id,_o);
+00102 }
+00103 
+00104 bool KShowMailDock::qt_emit( int _id, QUObject* _o )
+00105 {
+00106     switch ( _id - staticMetaObject()->signalOffset() ) {
+00107     case 0: sigActivated((int)static_QUType_int.get(_o+1)); break;
+00108     case 1: sigHighlighted((int)static_QUType_int.get(_o+1)); break;
+00109     default:
+00110        return KSystemTray::qt_emit(_id,_o);
+00111     }
+00112     return TRUE;
+00113 }
+00114 #ifndef QT_NO_PROPERTIES
+00115 
+00116 bool KShowMailDock::qt_property( int id, int f, QVariant* v)
+00117 {
+00118     return KSystemTray::qt_property( id, f, v);
+00119 }
+00120 
+00121 bool KShowMailDock::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00122 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmailfeedback_8cpp-source.html b/doc/html/kshowmailfeedback_8cpp-source.html new file mode 100644 index 0000000..b7f457e --- /dev/null +++ b/doc/html/kshowmailfeedback_8cpp-source.html @@ -0,0 +1,176 @@ + + +kshowmail: kshowmail/kshowmailfeedback.cpp Source File + + + + +
+
+ +

kshowmailfeedback.cpp

00001 /*
+00002  *   File name:      kshowmailfeedback.cpp
+00003  *   Summary: User feedback questions for KShowmail
+00004  *   License: GPL - See file COPYING for details.
+00005  *
+00006  *   Author:  Stefan Hundhammer <sh@suse.de>
+00007  *            Eggert Ehmke <eggert.ehmke@berlin.de>
+00008  *
+00009  *   Updated: 2002-05-30
+00010  *
+00011  *   $Id: kshowmailfeedback_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $
+00012  *
+00013  */
+00014 
+00015 
+00016 #include <klocale.h>
+00017 
+00018 #include "kshowmail.h"
+00019 #include "kfeedback.h"
+00020 
+00021 
+00022 
+00023 void KShowMailApp::slotSendFeedbackMail()
+00024 {
+00025   KFeedbackDialog* feedbackDialog = new KFeedbackDialog( "eggert.ehmke@berlin.de", "feedback_mail" );
+00026        CHECK_PTR( feedbackDialog );
+00027 
+00028        KFeedbackQuestionList * list = feedbackDialog->form()->questionList();
+00029 
+00030        KFeedbackQuestion * question =
+00031            list->addQuestion( i18n( "What is your general opinion about this program?" ), "general_opinion", true, true );
+00032 
+00033        question->addAnswer( i18n( "It's one of my favourites"),                "1/8_favourite");
+00034        question->addAnswer( i18n( "I like it"),                                "2/8_like_it");
+00035        question->addAnswer( i18n( "It's sometimes useful"),                    "3/8_sometimes_useful");
+00036        question->addAnswer( i18n( "It's average"),                             "4/8_average");
+00037        question->addAnswer( i18n( "Nice try, but this could be done better"),  "5/8_nice_try");
+00038        question->addAnswer( i18n( "It's poor"),                                "6/8_poor");
+00039        question->addAnswer( i18n( "It's useless"),                             "7/8_useless");
+00040        question->addAnswer( i18n( "It's crap"),                                "8/8_crap");
+00041 
+00042        question = list->addQuestion( i18n( "Which features of this program do you like?" ), "features_liked", false );
+00043        addFeatureList( question );
+00044 
+00045        question = list->addQuestion( i18n( "What is your favourite feature?" ),     "favourite_feature", true );
+00046        addFeatureList( question );
+00047 
+00048        question = list->addQuestion( i18n( "Which features don't you like?" ),      "features_not_liked",       false );
+00049        addFeatureList( question );
+00050 
+00051        question = list->addQuestion( i18n( "Which features do you never use?" ),    "features_never_used",      false );
+00052        addFeatureList( question );
+00053 
+00054        question = list->addQuestion( i18n( "Are there features you are missing?" ), "features_missing",  true );
+00055        question->addAnswer( i18n( "Yes, a lot! (please add comment below)"   ),     "1/4_lots"           );
+00056        question->addAnswer( i18n( "Some (please add comment below)"          ),     "2/4_some"           );
+00057        question->addAnswer( i18n( "None"                              ),     "3/4_none"           );
+00058        question->addAnswer( i18n( "It has too many features already!"        ),     "4/4_too_many_already"      );
+00059 
+00060        question = list->addQuestion( i18n( "How do you rate the stability of this program?" ),    "stability",  true, true );
+00061        question->addAnswer( i18n( "Rock solid"),                     "1/5_rock_solid"             );
+00062        question->addAnswer( i18n( "Good"),                           "2/5_good");
+00063        question->addAnswer( i18n( "Average"),                        "3/5_average");
+00064        question->addAnswer( i18n( "Poor"),                           "4/5_poor"            );
+00065        question->addAnswer( i18n( "It keeps crashing all the time"), "5/5_keeps_crashing"  );
+00066 
+00067        question = list->addQuestion( i18n( "How do you rate the performance of this program?" ), "performance", true );
+00068        question->addAnswer( i18n( "Great"),                          "1/5_great");
+00069        question->addAnswer( i18n( "Good"),                           "2/5_good");
+00070        question->addAnswer( i18n( "Average"),                        "3/5_average");
+00071        question->addAnswer( i18n( "Poor"),                           "4/5_poor");
+00072        question->addAnswer( i18n( "It's so slow it drives me nuts"), "5/5_drives_me_nuts");
+00073 
+00074        question = list->addQuestion( i18n( "What is your experience with computers in general?" ), "computer_experience", true );
+00075        question->addAnswer( i18n( "Expert"                                   ),     "1/5_expert"         );
+00076        question->addAnswer( i18n( "Fair"                              ),     "2/5_fair"           );
+00077        question->addAnswer( i18n( "Average"                                  ),     "3/5_average"        );
+00078        question->addAnswer( i18n( "Learning"                                 ),     "4/5_learning"       );
+00079        question->addAnswer( i18n( "Newbie"                                   ),     "5/5_newbie"         );
+00080 
+00081        question = list->addQuestion( i18n( "What is your experience with Unix/Linux systems?" ), "unix_experience", true );
+00082        question->addAnswer( i18n( "Expert"                                   ),     "1/5_expert"         );
+00083        question->addAnswer( i18n( "Fair"                              ),     "2/5_fair"           );
+00084        question->addAnswer( i18n( "Average"                                  ),     "3/5_average"        );
+00085        question->addAnswer( i18n( "Learning"                                 ),     "4/5_learning"       );
+00086        question->addAnswer( i18n( "Newbie"                                   ),     "5/5_newbie"         );
+00087 
+00088        question = list->addQuestion( i18n( "Did you have trouble figuring out how to work with this program?" ),
+00089                                   "learning_curve", true, true );
+00090        question->addAnswer( i18n( "No problem"                               ),     "1/5_no_problem"     );
+00091        question->addAnswer( i18n( "Some"                              ),     "2/5_some_problems"  );
+00092        question->addAnswer( i18n( "I'm still learning"                       ),     "3/5_still_learing"  );
+00093        question->addAnswer( i18n( "I didn't have a clue what to do at first" ),     "4/5_no_clue_at_first"      );
+00094        question->addAnswer( i18n( "I still don't have a clue what to do"     ),     "5/5_still_no_clue"  );
+00095 
+00096        question = list->addQuestion( i18n( "Where do you use this program most?" ), "usage_where",              true );
+00097        question->addAnswer( i18n( "At work"                                  ),     "at_work"            );
+00098        question->addAnswer( i18n( "At home"                                  ),     "at_home"            );
+00099        question->addAnswer( i18n( "At university / school"                   ),     "university"         );
+00100 
+00101        question = list->addQuestion( i18n( "What is your primary role there?"       ),     "primary_role",             true );
+00102        question->addAnswer( i18n( "Home user"                                ),     "home_user"          );
+00103        question->addAnswer( i18n( "Student"                                  ),     "student"            );
+00104        question->addAnswer( i18n( "Educational (teacher / professor)"        ),     "educational"        );
+00105        question->addAnswer( i18n( "Non-computer related work"                ),     "non_computer"              );
+00106        question->addAnswer( i18n( "Developer"                                ),     "developer"          );
+00107        question->addAnswer( i18n( "System administrator"                     ),     "sysadmin"           );
+00108 
+00109        question = list->addQuestion( i18n( "Do you have any other roles there?" ),  "other_roles",              false );
+00110        question->addAnswer( i18n( "Home user"                                ),     "home_user"          );
+00111        question->addAnswer( i18n( "Student"                                  ),     "student"            );
+00112        question->addAnswer( i18n( "Educational (teacher / professor)"        ),     "educational"        );
+00113        question->addAnswer( i18n( "Non-computer related work"                ),     "non_computer"              );
+00114        question->addAnswer( i18n( "Developer"                                ),     "developer"          );
+00115        question->addAnswer( i18n( "System administrator"                     ),     "sysadmin"           );
+00116 
+00117        question = list->addQuestion( i18n( "How did you get to know this program?" ),      "first_contact",     true );
+00118        question->addAnswer( i18n( "In a menu on my machine"                  ),     "menu"               );
+00119        question->addAnswer( i18n( "Somebody told me about it"                ),     "told"               );
+00120        question->addAnswer( i18n( "On the internet"                          ),     "internet"           );
+00121        question->addAnswer( i18n( "Printed magazine / book"                  ),     "print_media"        );
+00122        question->addAnswer( i18n( "Other (please add comment below)"         ),     "other"                     );
+00123 
+00124        list->addYesNoQuestion( i18n( "Would you recommend this program to a friend?" ), "recommend", true );
+00125 
+00126   feedbackDialog->show();
+00127 }
+00128 
+00129 
+00130 void KShowMailApp::addFeatureList( KFeedbackQuestion * question )
+00131 {
+00132     question->addAnswer( i18n( "The message list display in general"),       "message_list"              );
+00133     question->addAnswer( i18n( "Display of message headers" ),          "message_header"   );
+00134     question->addAnswer( i18n( "Display of complete messages"),         "complete_message"        );
+00135 
+00136     question->addAnswer( i18n( "Manual delete of unwanted messages"),     "manual_delete_messages"       );
+00137     question->addAnswer( i18n( "Manual delete of filtered messages"),     "manual_delete_filtered_messages"     );
+00138     question->addAnswer( i18n( "Automatic delete of filtered messages"),  "automatic_delete_filtered_messages"  );
+00139     question->addAnswer( i18n( "Filter messages by regular expressions"), "filter_messages_by regular_expression"      );
+00140 
+00141     question->addAnswer( i18n( "Execute user commands"),    "user_commands"  );
+00142 
+00143     question->addAnswer( i18n( "Sorting of messages by size, date etc."             ),     "sorting"     );
+00144 
+00145     question->addAnswer( i18n( "Play sound"),               "play_sound"            );
+00146     question->addAnswer( i18n( "Play beep"),                "play_beep"      );
+00147     question->addAnswer( i18n( "Initial timer"),            "initial_timer"  );
+00148     question->addAnswer( i18n( "Interval timer"),           "interval_timer"        );
+00149     question->addAnswer( i18n( "This feedback survey :-)"), "feedback"              );
+00150 }
+00151 
+00152 
+00153 
+00154 // EOF
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmailview_8cpp-source.html b/doc/html/kshowmailview_8cpp-source.html new file mode 100644 index 0000000..3888583 --- /dev/null +++ b/doc/html/kshowmailview_8cpp-source.html @@ -0,0 +1,450 @@ + + +kshowmail: kshowmail/kshowmailview.cpp Source File + + + + +
+
+ +

kshowmailview.cpp

00001 /***************************************************************************
+00002                           kshowmailview.cpp  -  description
+00003                              -------------------
+00004     begin                : Sat May  6 12:13:57 MEST 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007 
+00008      26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
+00009  ***************************************************************************/
+00010 
+00011 /***************************************************************************
+00012  *                                                                         *
+00013  *   This program is free software; you can redistribute it and/or modify  *
+00014  *   it under the terms of the GNU General Public License as published by  *
+00015  *   the Free Software Foundation; either version 2 of the License, or     *
+00016  *   (at your option) any later version.                                   *
+00017  *                                                                         *
+00018  ***************************************************************************/
+00019 
+00020 // include files for Qt
+00021 #include <qprinter.h>
+00022 #include <qpainter.h>
+00023 #include <qmessagebox.h>
+00024 #include <qkeycode.h>
+00025 #include <qvaluelist.h>
+00026 
+00027 #include <kstandarddirs.h>
+00028 #include <klocale.h>
+00029 #include <kdebug.h>
+00030 
+00031 // application specific includes
+00032 #include "kshowmailview.h"
+00033 #include "kshowmaildoc.h"
+00034 #include "kshowmail.h"
+00035 
+00036 KshowmailView::KshowmailView(QWidget *parent, const char *name):
+00037        QSplitter(Vertical, parent, name)
+00038 {
+00039   //get application config object (kshowmailrc)
+00040   config = KApplication::kApplication()->config();
+00041 
+00042        m_pixOk = new QPixmap (::locate ("data", "kshowmail/pics/ok.png"));
+00043 
+00044        m_pListAccounts = new KListView (this, "accounts");
+00045        m_pListMessages = new KListView (this, "messages");
+00046   setBackgroundMode(PaletteBase);
+00047 
+00048   m_pListAccounts->setSelectionMode (QListView::Extended);
+00049        m_pListAccounts->setAllColumnsShowFocus (true);
+00050   // sort account column
+00051   m_pListAccounts->setSorting (1);
+00052   m_pListAccounts->setShowSortIndicator (true);
+00053        m_pListAccounts->addColumn (i18n("Active"), DEFAULT_WIDTH_ACCOUNT_ACTIVE );
+00054        m_pListAccounts->addColumn (i18n("Account"), DEFAULT_WIDTH_ACCOUNT_ACCOUNT );
+00055        m_pListAccounts->addColumn (i18n("Server"), DEFAULT_WIDTH_ACCOUNT_SERVER );
+00056        m_pListAccounts->addColumn (i18n("User"), DEFAULT_WIDTH_ACCOUNT_USER );
+00057        m_pListAccounts->addColumn (i18n("Messages"), DEFAULT_WIDTH_ACCOUNT_MESSAGES );
+00058        m_pListAccounts->addColumn (i18n("Size"), DEFAULT_WIDTH_ACCOUNT_SIZE );
+00059 
+00060   m_pListMessages->setSelectionMode (QListView::Extended);
+00061        m_pListMessages->setAllColumnsShowFocus (true);
+00062   // sort number column
+00063        m_pListMessages->setSorting (ShowListViewItem::_colNumber);
+00064   m_pListMessages->setShowSortIndicator (true);
+00065        setFocusPolicy (QWidget::StrongFocus);
+00066 
+00067        m_pListMessages->addColumn (i18n("Number"), DEFAULT_WIDTH_MESSAGE_NUMBER );
+00068        m_pListMessages->addColumn (i18n("Account"), DEFAULT_WIDTH_MESSAGE_ACCOUNT );
+00069        m_pListMessages->addColumn (i18n("From"), DEFAULT_WIDTH_MESSAGE_FROM );
+00070        m_pListMessages->addColumn (i18n("To"),  DEFAULT_WIDTH_MESSAGE_TO );
+00071        m_pListMessages->addColumn (i18n("Subject"), DEFAULT_WIDTH_MESSAGE_SUBJECT );
+00072        m_pListMessages->addColumn (i18n("Date"), DEFAULT_WIDTH_MESSAGE_DATE );
+00073        m_pListMessages->addColumn (i18n("Size"), DEFAULT_WIDTH_MESSAGE_SIZE );
+00074        m_pListMessages->addColumn (i18n("Content"), DEFAULT_WIDTH_MESSAGE_CONTENT );
+00075        m_pListMessages->addColumn (i18n("State"),  DEFAULT_WIDTH_MESSAGE_STATE );
+00076 
+00077        connect (m_pListAccounts, SIGNAL (rightButtonClicked (QListViewItem*, const QPoint &, int)),
+00078                                                         SLOT (slotAccountContext(QListViewItem*, const QPoint &, int)));
+00079        connect (m_pListAccounts, SIGNAL (clicked (QListViewItem*, const QPoint &, int)),
+00080                                                         SLOT (slotAccountClicked(QListViewItem*, const QPoint &, int)));
+00081        connect (m_pListMessages, SIGNAL (rightButtonClicked (QListViewItem*, const QPoint &, int)),
+00082                                                         SLOT (slotMessageContext(QListViewItem*, const QPoint &, int)));
+00083        connect (m_pListMessages, SIGNAL (doubleClicked (QListViewItem*)),
+00084                                                         SLOT (slotMessageDoubleClicked (QListViewItem*)));
+00085        connect (m_pListMessages, SIGNAL (clicked (QListViewItem*)),
+00086                                                         SLOT (slotMessageClicked (QListViewItem*)));
+00087 
+00088   //read the geometry from the application config file
+00089   readOptions();
+00090 
+00091 
+00092 }
+00093 
+00094 KshowmailView::~KshowmailView()
+00095 {
+00096        delete m_pListAccounts;
+00097        delete m_pListMessages;
+00098 }
+00099 
+00100 void KshowmailView::readOptions()
+00101 {
+00102   //read splitter geometry
+00103   config->setGroup ("Display Options");
+00104   QValueList<int> size;
+00105   size.append (config->readNumEntry ("sizeaccounts", 40));
+00106   size.append (config->readNumEntry ("sizemessages", 50));
+00107   setSizes (size);
+00108 
+00109   // read layout of the list views
+00110   m_pListAccounts->restoreLayout( config, CONFIG_GROUP_ACCOUNT_LIST );
+00111   m_pListMessages->restoreLayout( config, CONFIG_GROUP_MESSAGE_LIST );
+00112 }
+00113 
+00114 void KshowmailView::saveOptions (KConfig* config)
+00115 {
+00116 //     kdDebug () << "KshowmailView::saveOptions" << endl;
+00117        config->setGroup("Display Options");
+00118        //splitter
+00119        QValueList<int> size = sizes ();
+00120        config->writeEntry ("sizeaccounts",  size [0]);
+00121        config->writeEntry ("sizemessages",  size [1]);
+00122        // layout
+00123   m_pListAccounts->saveLayout ( config, CONFIG_GROUP_ACCOUNT_LIST );
+00124   m_pListMessages->saveLayout (config, CONFIG_GROUP_MESSAGE_LIST );
+00125 }
+00126 
+00127 
+00128 void KshowmailView::slotMessageContext( QListViewItem* pItem, const QPoint&, int )
+00129 {
+00130   if( pItem != NULL )
+00131   {
+00132     //get pointer to the main widget
+00133     KShowMailApp* theApp = ( KShowMailApp * )parentWidget();
+00134 
+00135     //create and show popup menu
+00136     QWidget* w = theApp->factory()->container( "mail_context_popup", theApp );
+00137     QPopupMenu* popup = static_cast<QPopupMenu*>( w );
+00138     popup->exec( QCursor::pos() );
+00139 
+00140     //select clicked item
+00141     m_pListMessages->setSelected (pItem, true);
+00142   }
+00143 }
+00144 
+00145 void KshowmailView::slotAccountContext( QListViewItem* pItem, const QPoint&, int )
+00146 {
+00147   if ( pItem != NULL )
+00148   {
+00149     //get pointer to the main widget
+00150     KShowMailApp* theApp = ( KShowMailApp * )parentWidget();
+00151 
+00152     //create and show popup menu
+00153     QWidget* w = theApp->factory()->container( "account_context_popup", theApp );
+00154     QPopupMenu* popup = static_cast<QPopupMenu*>( w );
+00155     popup->exec( QCursor::pos() );
+00156 
+00157     //select clicked item
+00158     m_pListAccounts->setSelected( pItem, true );
+00159   }
+00160 }
+00161 
+00162 void KshowmailView::slotAccountClicked (QListViewItem* pItem, const QPoint&, int col)
+00163 {
+00164        if (col == 0)
+00165        {
+00166               KShowMailApp *theApp=(KShowMailApp *) parentWidget();
+00167         ConfigElem* pElem = theApp->m_ConfigList.getSelectedAccount();
+00168         if( pElem != NULL )
+00169         {
+00170           pElem->setActive( !pElem->isActive() );
+00171           if (pElem->isActive() )
+00172             pItem->setPixmap (0, *m_pixOk);
+00173           else
+00174             pItem->setPixmap (0, 0);
+00175           emit signalActiveChanged ();
+00176         }
+00177        }
+00178 }
+00179 
+00180 void KshowmailView::slotMessageDoubleClicked (QListViewItem* pItem)
+00181 {
+00182        if (pItem)
+00183        {
+00184 //            m_pListMessages->setSelected (pItem, true);
+00185 
+00186        KShowMailApp *theApp=(KShowMailApp *) parentWidget();
+00187               theApp->slotShowHeader ();
+00188        }
+00189 }
+00190 
+00191 void KshowmailView::slotMessageClicked (QListViewItem* pItem)
+00192 {
+00193   kdDebug () << "slotMessageClicked" << endl;
+00194   if (pItem)
+00195        {
+00196 //            m_pListMessages->setSelected (pItem, true);
+00197 
+00198        KShowMailApp *theApp=(KShowMailApp *) parentWidget();
+00199               theApp->delayNextRefresh();
+00200        }
+00201 }
+00202 
+00203 void KshowmailView::clearMailListView( )
+00204 {
+00205   m_pListMessages->clear();
+00206 }
+00207 
+00208 ShowListViewItem* KshowmailView::insertMail( QString& number, QString& account, QString& from, QString& to, QString& subject, QString& date, QString& size, QString& content, QString& state, QString& time )
+00209 {
+00210   //create item
+00211   ShowListViewItem* item = new ShowListViewItem( m_pListMessages );
+00212 
+00213   //set content
+00214   item->setNumber( number );
+00215   item->setAccount( account );
+00216   item->setFrom( from );
+00217   item->setTo( to );
+00218   item->setSubject( subject );
+00219   item->setDate( date );
+00220   item->setSize( size );
+00221   item->setContent( content );
+00222   item->setState( state );
+00223   item->setTime( time );
+00224 
+00225   return item;
+00226 }
+00227 
+00228 void KshowmailView::refreshSetup( )
+00229 {
+00230   QString ConfigEntryDisplay;     //entry of the config about show or hide column
+00231   QString ConfigEntrySavedWidth;  //entry of the config about saved width
+00232   int DefaultWidth = 100;         //default width of the proceeded column
+00233   bool DefaultDisplay = true;     //default show or hide of the proceeded column
+00234 
+00235   //set columns of the account list
+00236   config->setGroup( CONFIG_GROUP_ACCOUNT_LIST );
+00237   for( int column = 0; column <= 5; column++ )  //iterate over all columns
+00238   {
+00239     //get config entries and defaults of the proceeded column from the constants header
+00240     switch( column )
+00241     {
+00242       case 0: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_ACCOUNT_ACTIVE;
+00243               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_ACTIVE;
+00244               DefaultWidth = DEFAULT_WIDTH_ACCOUNT_ACTIVE;
+00245               DefaultDisplay = DEFAULT_DISPLAY_ACCOUNT_ACTIVE;
+00246               break;
+00247 
+00248       case 1: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_ACCOUNT_ACCOUNT;
+00249               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_ACCOUNT;
+00250               DefaultWidth = DEFAULT_WIDTH_ACCOUNT_ACCOUNT;
+00251               DefaultDisplay = DEFAULT_DISPLAY_ACCOUNT_ACCOUNT;
+00252               break;
+00253 
+00254       case 2: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_ACCOUNT_SERVER;
+00255               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_SERVER;
+00256               DefaultWidth = DEFAULT_WIDTH_ACCOUNT_SERVER;
+00257               DefaultDisplay = DEFAULT_DISPLAY_ACCOUNT_SERVER;
+00258               break;
+00259 
+00260       case 3: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_ACCOUNT_USER;
+00261               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_USER;
+00262               DefaultWidth = DEFAULT_WIDTH_ACCOUNT_USER;
+00263               DefaultDisplay = DEFAULT_DISPLAY_ACCOUNT_USER;
+00264               break;
+00265 
+00266       case 4: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_ACCOUNT_MESSAGES;
+00267               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_MESSAGES;
+00268               DefaultWidth = DEFAULT_WIDTH_ACCOUNT_MESSAGES;
+00269               DefaultDisplay = DEFAULT_DISPLAY_ACCOUNT_MESSAGES;
+00270               break;
+00271 
+00272       case 5: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_ACCOUNT_SIZE;
+00273               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_ACCOUNT_SIZE;
+00274               DefaultWidth = DEFAULT_WIDTH_ACCOUNT_SIZE;
+00275               DefaultDisplay = DEFAULT_DISPLAY_ACCOUNT_SIZE;
+00276               break;
+00277     } //end select
+00278 
+00279     //get desired column state
+00280     bool showColumn = config->readBoolEntry( ConfigEntryDisplay, DefaultDisplay );
+00281 
+00282     //get currently column state
+00283     bool curShowed = m_pListAccounts->columnWidth( column ) > 0;
+00284 
+00285     if( showColumn )
+00286     {
+00287       //column will be shown
+00288 
+00289       if( !curShowed )
+00290       {
+00291         //the column is currently not be shown
+00292 
+00293         //get saved width or take default width
+00294         int savedWidth = config->readNumEntry( ConfigEntrySavedWidth, DefaultWidth );
+00295 
+00296         //set column width
+00297         m_pListAccounts->setColumnWidth( column, savedWidth );
+00298       }
+00299         //else: the column is currently shown; do nothing
+00300     }
+00301     else
+00302     {
+00303       //column will not be shown
+00304 
+00305       if( curShowed )
+00306       {
+00307         //the column is currently shown
+00308 
+00309         //save current width
+00310         config->writeEntry( ConfigEntrySavedWidth, m_pListAccounts->columnWidth( column ) );
+00311 
+00312         //hide column
+00313         m_pListAccounts->hideColumn( column );
+00314       }
+00315         //else: the column is already hidden; do nothing
+00316     }
+00317 
+00318   } //end column loop
+00319 
+00320   //set columns of the message list
+00321   config->setGroup( CONFIG_GROUP_MESSAGE_LIST );
+00322   for( int column = 0; column <= 8; column++ )  //iterate over all columns
+00323   {
+00324     //get config entries and defaults of the proceeded column from the constants header
+00325     switch( column )
+00326     {
+00327       case 0: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_NUMBER;
+00328               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_NUMBER;
+00329               DefaultWidth = DEFAULT_WIDTH_MESSAGE_NUMBER;
+00330               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_NUMBER;
+00331               break;
+00332 
+00333       case 1: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_ACCOUNT;
+00334               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_ACCOUNT;
+00335               DefaultWidth = DEFAULT_WIDTH_MESSAGE_ACCOUNT;
+00336               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_ACCOUNT;
+00337               break;
+00338 
+00339       case 2: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_FROM;
+00340               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_FROM;
+00341               DefaultWidth = DEFAULT_WIDTH_MESSAGE_FROM;
+00342               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_FROM;
+00343               break;
+00344 
+00345       case 3: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_TO;
+00346               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_TO;
+00347               DefaultWidth = DEFAULT_WIDTH_MESSAGE_TO;
+00348               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_TO;
+00349               break;
+00350 
+00351       case 4: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_SUBJECT;
+00352               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_SUBJECT;
+00353               DefaultWidth = DEFAULT_WIDTH_MESSAGE_SUBJECT;
+00354               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_SUBJECT;
+00355               break;
+00356 
+00357       case 5: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_DATE;
+00358               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_DATE;
+00359               DefaultWidth = DEFAULT_WIDTH_MESSAGE_DATE;
+00360               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_DATE;
+00361               break;
+00362 
+00363       case 6: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_SIZE;
+00364               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_SIZE;
+00365               DefaultWidth = DEFAULT_WIDTH_MESSAGE_SIZE;
+00366               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_SIZE;
+00367               break;
+00368 
+00369       case 7: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_CONTENT;
+00370               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_CONTENT;
+00371               DefaultWidth = DEFAULT_WIDTH_MESSAGE_CONTENT;
+00372               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_CONTENT;
+00373               break;
+00374 
+00375       case 8: ConfigEntryDisplay = CONFIG_ENTRY_DISPLAY_MESSAGE_STATE;
+00376               ConfigEntrySavedWidth = CONFIG_ENTRY_OLD_WIDTH_MESSAGE_STATE;
+00377               DefaultWidth = DEFAULT_WIDTH_MESSAGE_STATE;
+00378               DefaultDisplay = DEFAULT_DISPLAY_MESSAGE_STATE;
+00379               break;
+00380 
+00381     } //end select
+00382 
+00383     //get desired column state
+00384     bool showColumn = config->readBoolEntry( ConfigEntryDisplay, DefaultDisplay );
+00385 
+00386     //get currently column state
+00387     bool curShowed = m_pListMessages->columnWidth( column ) > 0;
+00388 
+00389     if( showColumn )
+00390     {
+00391       //column will be shown
+00392 
+00393       if( !curShowed )
+00394       {
+00395         //the column is currently not be shown
+00396 
+00397         //get saved width or take default width
+00398         int savedWidth = config->readNumEntry( ConfigEntrySavedWidth, DefaultWidth );
+00399 
+00400         //set column width
+00401         m_pListMessages->setColumnWidth( column, savedWidth );
+00402       }
+00403         //else: the column is currently shown; do nothing
+00404     }
+00405     else
+00406     {
+00407       //column will not be shown
+00408 
+00409       if( curShowed )
+00410       {
+00411         //the column is currently shown
+00412 
+00413         //save current width
+00414         config->writeEntry( ConfigEntrySavedWidth, m_pListMessages->columnWidth( column ) );
+00415 
+00416         //hide column
+00417         m_pListMessages->hideColumn( column );
+00418       }
+00419         //else: the column is already hidden; do nothing
+00420     }
+00421 
+00422   } //end column loop
+00423 
+00424   //save current layout
+00425   m_pListAccounts->saveLayout( config, CONFIG_GROUP_ACCOUNT_LIST );
+00426   m_pListMessages->saveLayout( config, CONFIG_GROUP_MESSAGE_LIST );
+00427   config->sync();
+00428 }
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmailview_8h-source.html b/doc/html/kshowmailview_8h-source.html new file mode 100644 index 0000000..e298f0a --- /dev/null +++ b/doc/html/kshowmailview_8h-source.html @@ -0,0 +1,114 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmailview.h Source File + + + + +
+
+
+
+ +

kshowmailview.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           kshowmailview.h  -  description
+00003                              -------------------
+00004     begin                : Sat May  6 12:13:57 MEST 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007 
+00008     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
+00009  ***************************************************************************/
+00010 
+00011 /***************************************************************************
+00012  *                                                                         *
+00013  *   This program is free software; you can redistribute it and/or modify  *
+00014  *   it under the terms of the GNU General Public License as published by  *
+00015  *   the Free Software Foundation; either version 2 of the License, or     *
+00016  *   (at your option) any later version.                                   *
+00017  *                                                                         *
+00018  ***************************************************************************/
+00019 
+00020 #ifndef KSHOWMAILVIEW_H
+00021 #define KSHOWMAILVIEW_H
+00022 
+00023 #ifdef HAVE_CONFIG_H
+00024 #include <config.h>
+00025 #endif
+00026 
+00027 //Qt headers
+00028 #include <qwidget.h>
+00029 #include <qsplitter.h>
+00030 #include <qcursor.h>
+00031 #include <qpopupmenu.h>
+00032 
+00033 //KDE headers
+00034 #include <klistview.h>
+00035 #include <kconfig.h>
+00036 #include <kapplication.h>
+00037 
+00038 //KShowmail headers
+00039 #include "configlist.h"
+00040 #include "showlistviewitem.h"
+00041 
+00042 
+00043 
+00044 class ConfigList;
+00045 class KshowmailDoc;
+00046 
+00057 class KshowmailView : public QSplitter
+00058 {
+00059   Q_OBJECT
+00060   public:
+00062     KshowmailView(QWidget *parent = 0, const char *name=0);
+00064     ~KshowmailView();
+00065                 void saveOptions (KConfig* config);
+00066 
+00067                 KListView* m_pListAccounts;
+00068                 KListView* m_pListMessages;
+00069 
+00073     void clearMailListView();
+00074 
+00090     ShowListViewItem* insertMail( QString& number, QString& account, QString& from, QString& to, QString& subject, QString& date, QString& size, QString& content, QString& state, QString& time );
+00091 
+00098     void refreshSetup();
+00099 
+00100   private:
+00101 
+00102     QPixmap* m_pixOk;
+00103 
+00107     KConfig* config;
+00108 
+00112     void readOptions();
+00113 
+00114 private slots:
+00115 
+00122   void slotMessageContext( QListViewItem*, const QPoint&, int );
+00123 
+00124         void slotMessageDoubleClicked (QListViewItem*);
+00125         void slotMessageClicked (QListViewItem*);
+00126 
+00133   void slotAccountContext( QListViewItem*, const QPoint &, int );
+00134 
+00139   void slotAccountClicked( QListViewItem*, const QPoint& point, int col );
+00140 
+00141 signals:
+00142         void signalActiveChanged ();
+00143 };
+00144 
+00145 #endif // KSHOWMAILVIEW_H
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/kshowmailview_8moc_8cpp-source.html b/doc/html/kshowmailview_8moc_8cpp-source.html new file mode 100644 index 0000000..f31ef29 --- /dev/null +++ b/doc/html/kshowmailview_8moc_8cpp-source.html @@ -0,0 +1,171 @@ + + +kshowmail: kshowmail/kshowmailview.moc.cpp Source File + + + + +
+
+ +

kshowmailview.moc.cpp

00001 /****************************************************************************
+00002 ** KshowmailView meta object code from reading C++ file 'kshowmailview.h'
+00003 **
+00004 ** Created: Thu Jul 5 19:14:18 2007
+00005 **      by: The Qt MOC ($Id: kshowmailview_8moc_8cpp-source.html,v 1.10 2007/07/05 17:37:51 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "kshowmailview.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *KshowmailView::className() const
+00023 {
+00024     return "KshowmailView";
+00025 }
+00026 
+00027 QMetaObject *KshowmailView::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_KshowmailView( "KshowmailView", &KshowmailView::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString KshowmailView::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "KshowmailView", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString KshowmailView::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "KshowmailView", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* KshowmailView::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = QSplitter::staticMetaObject();
+00055     static const QUParameter param_slot_0[] = {
+00056        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
+00057        { 0, &static_QUType_varptr, "\x0e", QUParameter::In },
+00058        { 0, &static_QUType_int, 0, QUParameter::In }
+00059     };
+00060     static const QUMethod slot_0 = {"slotMessageContext", 3, param_slot_0 };
+00061     static const QUParameter param_slot_1[] = {
+00062        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
+00063     };
+00064     static const QUMethod slot_1 = {"slotMessageDoubleClicked", 1, param_slot_1 };
+00065     static const QUParameter param_slot_2[] = {
+00066        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
+00067     };
+00068     static const QUMethod slot_2 = {"slotMessageClicked", 1, param_slot_2 };
+00069     static const QUParameter param_slot_3[] = {
+00070        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
+00071        { 0, &static_QUType_varptr, "\x0e", QUParameter::In },
+00072        { 0, &static_QUType_int, 0, QUParameter::In }
+00073     };
+00074     static const QUMethod slot_3 = {"slotAccountContext", 3, param_slot_3 };
+00075     static const QUParameter param_slot_4[] = {
+00076        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
+00077        { "point", &static_QUType_varptr, "\x0e", QUParameter::In },
+00078        { "col", &static_QUType_int, 0, QUParameter::In }
+00079     };
+00080     static const QUMethod slot_4 = {"slotAccountClicked", 3, param_slot_4 };
+00081     static const QMetaData slot_tbl[] = {
+00082        { "slotMessageContext(QListViewItem*,const QPoint&,int)", &slot_0, QMetaData::Private },
+00083        { "slotMessageDoubleClicked(QListViewItem*)", &slot_1, QMetaData::Private },
+00084        { "slotMessageClicked(QListViewItem*)", &slot_2, QMetaData::Private },
+00085        { "slotAccountContext(QListViewItem*,const QPoint&,int)", &slot_3, QMetaData::Private },
+00086        { "slotAccountClicked(QListViewItem*,const QPoint&,int)", &slot_4, QMetaData::Private }
+00087     };
+00088     static const QUMethod signal_0 = {"signalActiveChanged", 0, 0 };
+00089     static const QMetaData signal_tbl[] = {
+00090        { "signalActiveChanged()", &signal_0, QMetaData::Private }
+00091     };
+00092     metaObj = QMetaObject::new_metaobject(
+00093        "KshowmailView", parentObject,
+00094        slot_tbl, 5,
+00095        signal_tbl, 1,
+00096 #ifndef QT_NO_PROPERTIES
+00097        0, 0,
+00098        0, 0,
+00099 #endif // QT_NO_PROPERTIES
+00100        0, 0 );
+00101     cleanUp_KshowmailView.setMetaObject( metaObj );
+00102     return metaObj;
+00103 }
+00104 
+00105 void* KshowmailView::qt_cast( const char* clname )
+00106 {
+00107     if ( !qstrcmp( clname, "KshowmailView" ) )
+00108        return this;
+00109     return QSplitter::qt_cast( clname );
+00110 }
+00111 
+00112 // SIGNAL signalActiveChanged
+00113 void KshowmailView::signalActiveChanged()
+00114 {
+00115     activate_signal( staticMetaObject()->signalOffset() + 0 );
+00116 }
+00117 
+00118 bool KshowmailView::qt_invoke( int _id, QUObject* _o )
+00119 {
+00120     switch ( _id - staticMetaObject()->slotOffset() ) {
+00121     case 0: slotMessageContext((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
+00122     case 1: slotMessageDoubleClicked((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
+00123     case 2: slotMessageClicked((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
+00124     case 3: slotAccountContext((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
+00125     case 4: slotAccountClicked((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
+00126     default:
+00127        return QSplitter::qt_invoke( _id, _o );
+00128     }
+00129     return TRUE;
+00130 }
+00131 
+00132 bool KshowmailView::qt_emit( int _id, QUObject* _o )
+00133 {
+00134     switch ( _id - staticMetaObject()->signalOffset() ) {
+00135     case 0: signalActiveChanged(); break;
+00136     default:
+00137        return QSplitter::qt_emit(_id,_o);
+00138     }
+00139     return TRUE;
+00140 }
+00141 #ifndef QT_NO_PROPERTIES
+00142 
+00143 bool KshowmailView::qt_property( int id, int f, QVariant* v)
+00144 {
+00145     return QSplitter::qt_property( id, f, v);
+00146 }
+00147 
+00148 bool KshowmailView::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00149 #endif // QT_NO_PROPERTIES
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/logger_8cpp-source.html b/doc/html/logger_8cpp-source.html new file mode 100644 index 0000000..d38f4a6 --- /dev/null +++ b/doc/html/logger_8cpp-source.html @@ -0,0 +1,68 @@ + + +kshowmail: kshowmail/logger.cpp Source File + + + + +
+
+ +

logger.cpp

00001 /***************************************************************************
+00002                           logger.cpp  -  description
+00003                              -------------------
+00004     begin                : Son Okt 19 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <kstandarddirs.h>
+00019 // #include <kdebug.h>
+00020 #include "logger.h"
+00021 
+00022 QTextStream* Logger::logstream = NULL;
+00023 QFile Logger::logfile;
+00024 
+00025 Logger::~Logger()
+00026 {
+00027   delete logstream;
+00028 }
+00029 
+00030 QTextStream& Logger ()
+00031 {
+00032   if (Logger::logstream == NULL)
+00033   {
+00034     QString logfilename = locateLocal ("data", "kshowmail/kshowmail.log");
+00035     Logger::logfile.setName (logfilename);
+00036     Logger::logfile.open (IO_WriteOnly | IO_Append);
+00037     Logger::logstream = new QTextStream (&Logger::logfile);
+00038   }
+00039   return *Logger::logstream;  
+00040 }
+00041 
+00042 void Logger::flush()
+00043 {
+00044   logfile.flush();
+00045 }
+00046 
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/logger_8h-source.html b/doc/html/logger_8h-source.html new file mode 100644 index 0000000..b2b263c --- /dev/null +++ b/doc/html/logger_8h-source.html @@ -0,0 +1,59 @@ + + +kshowmail: kshowmail/logger.h Source File + + + + +
+
+ +

logger.h

00001 /***************************************************************************
+00002                           logger.h  -  description
+00003                              -------------------
+00004     begin                : Son Okt 19 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef LOGGER_H
+00019 #define LOGGER_H
+00020 
+00021 #include <qstring.h>
+00022 #include <qfile.h>
+00023 #include <qtextstream.h>
+00024 
+00029 class Logger
+00030 {
+00031 public:
+00032   Logger () {};
+00033   ~Logger ();
+00034   static QTextStream* logstream;
+00035   static QFile logfile;
+00036   static void flush();
+00037 };
+00038   
+00039 QTextStream& Logger ();
+00040 
+00041 #endif
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/main_8cpp-source.html b/doc/html/main_8cpp-source.html new file mode 100644 index 0000000..51439ae --- /dev/null +++ b/doc/html/main_8cpp-source.html @@ -0,0 +1,136 @@ + + +kshowmail: kshowmail/main.cpp Source File + + + + +
+
+ +

main.cpp

00001 /***************************************************************************
+00002                           main.cpp  -  description
+00003                              -------------------
+00004     begin                : Fre Sep 28 23:29:54 CEST 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 //KDE-Header
+00019 #include <kcmdlineargs.h>
+00020 #include <kaboutdata.h>
+00021 #include <kuniqueapplication.h>
+00022 #include <klocale.h>
+00023 #include <kdebug.h>
+00024 
+00025 //KShowmail-Header
+00026 #include "uniqueapp.h"
+00027 #include "kshowmail.h"
+00028 #include "constants.h"
+00029 
+00030 using namespace Constants;
+00031 
+00032 //description of the application
+00033 static const char *description = I18N_NOOP("A powerful pop3 mail checker");
+00034 
+00035 //the command line options
+00036 //see constants.h
+00037 static KCmdLineOptions kshowmailOptions[] =
+00038   {
+00039     { CMDLINE_REFRESH_SHORT, 0, 0},
+00040     { CMDLINE_REFRESH, I18N_NOOP("Refresh messages now"), 0 },
+00041     { CMDLINE_CONFIG_SHORT, 0, 0},
+00042     { CMDLINE_CONFIG, I18N_NOOP("Launch configure dialog"), 0 },
+00043     KCmdLineLastOption
+00044   };
+00045 
+00046 int main(int argc, char *argv[])
+00047 {
+00048   //create datas for the about box
+00049   KShowMailApp::m_pAbout = new KAboutData (
+00050                              /*appName    */ "kshowmail",
+00051                              /*programName*/ "KShowmail",
+00052                              /*version    */ VERSION,
+00053                              /*description*/ description,
+00054                              /*license    */ KAboutData::License_GPL_V2,
+00055                              /*copyright  */ "(C) 2000-2005, Eggert Ehmke",
+00056                              /*text       */ 0,
+00057                              /*homepage   */ "http://sourceforge.net/projects/kshowmail",
+00058                              /*bug email  */ "eggert.ehmke@berlin.de");
+00059 
+00060   //add authors
+00061   KShowMailApp::m_pAbout->addAuthor ("Eggert Ehmke", 0, "eggert.ehmke@berlin.de", "http://kshowmail.sourceforge.net");
+00062   KShowMailApp::m_pAbout->addAuthor ("Allistar Melville", 0, "allistar@silvermoon.co.nz", 0);
+00063   KShowMailApp::m_pAbout->addAuthor ("Oleg Ivanov", 0, "saruman@unigsm.com", 0);
+00064   KShowMailApp::m_pAbout->addAuthor( "Ulrich Weigelt", 0, "ulrich.weigelt@gmx.de", 0 );
+00065   KShowMailApp::m_pAbout->setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names") ,I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
+00066 
+00067   //Initialize command line arguments
+00068   KCmdLineArgs::init(argc, argv, KShowMailApp::m_pAbout);
+00069   //add the special command line options of kshowmail which was specified above
+00070   KCmdLineArgs::addCmdLineOptions(kshowmailOptions);
+00071 
+00072   // when released, this must be 0!
+00073 #if 0
+00074 
+00075   kdDebug () << "KShowmail running in debug mode" << endl;
+00076   KApplication::addCmdLineOptions();
+00077 
+00078   KApplication app;
+00079   KShowMailApp* kshow = new KShowMailApp ();
+00080   kshow->show();
+00081   app.exec();
+00082 
+00083 #else
+00084 
+00085   //print debug message about run mode
+00086   kdDebug () << "KShowmail running in normal mode" << endl;
+00087 
+00088   //add special command line options for unique KDE applications
+00089   KUniqueApplication::addCmdLineOptions();
+00090 
+00091   //test whether the new application to start is unique
+00092   if (KUniqueApplication::start())
+00093   {
+00094     //yes, wa can start a unique kshowmail instance
+00095 
+00096     //create a new unique appliction
+00097     //UniqueApp is a inherited class of KUniqueApplication
+00098     //see uniqueapp.h
+00099     UniqueApp* app = new UniqueApp ();
+00100 
+00101     //start the application
+00102     app->exec ();
+00103   }
+00104   else
+00105   {
+00106     //kshowmail is already running
+00107     kdWarning() << I18N_NOOP ("Kshowmail is already running!") << endl;
+00108   }
+00109 
+00110 #endif
+00111 
+00112   return 0;
+00113 }
+00114 
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/namespaceConstants.html b/doc/html/namespaceConstants.html new file mode 100644 index 0000000..129d518 --- /dev/null +++ b/doc/html/namespaceConstants.html @@ -0,0 +1,33 @@ + + +kshowmail.kdevelop: Constants Namespace Reference + + + + +
+
+
+
+

Constants Namespace Reference

+

+ + +
+


Detailed Description

+Contains all constants. +

+


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/namespaceTypes.html b/doc/html/namespaceTypes.html new file mode 100644 index 0000000..c4c4460 --- /dev/null +++ b/doc/html/namespaceTypes.html @@ -0,0 +1,230 @@ + + +kshowmail.kdevelop: Types Namespace Reference + + + + +
+
+
+
+

Types Namespace Reference

+

+ + + + + + + + + + + + + + + + + + + + + + + +

Classes

struct  DownloadActionParams_Type
struct  FilterCriteria_Type

Typedefs

typedef QValueList< int > MailNumberList_Type
typedef QMap< QString, bool > AccountTaskMap_Type
typedef QMap< int, DownloadActionParams_TypeMailToDownloadMap_Type
typedef list< FilterCriteria_TypeFilterCriteriaList_Type

Enumerations

enum  State_Type {
+  idle, +deleting, +configure, +executing, +
+  showing, +refreshing +
+ }
enum  AccountState_Type { AccountIdle, +AccountDeleting, +AccountDownloading, +AccountRefreshing + }
enum  FilterAction_Type {
+  FActPass, +FActDelete, +FActMark, +FActMove, +
+  FActSpamcheck, +FActIgnore, +FActNone +
+ }
+


Detailed Description

+All special types for KShowMail. +

+


Typedef Documentation

+ +
+
+ + + + +
typedef QMap<QString, bool> Types::AccountTaskMap_Type
+
+
+ +

+Map to notice which accounts need to get an order to do a task. The Key is the account name and the data a boolean. TRUE means the task was ordered, FALSE the task was ended. +

+

+ +

+ +
+ +

+List of filter criterias. +

+

+ +

+
+ + + + +
typedef QValueList<int> Types::MailNumberList_Type
+
+
+ +

+List of mail numbers. It is a QValueList of integers. +

+

+ +

+ +
+ +

+This map is used by ConfigElem and ShowRecord to hold a list of mail numbers which shall be downloaded for some filter actions; at time for moving and spam check +

+

+


Enumeration Type Documentation

+ +
+
+ + + + +
enum Types::AccountState_Type
+
+
+ +

+State of an account.

Enumerator:
+ + + + + +
AccountIdle  +it's doing nothing
AccountDeleting  +a deletion is running
AccountDownloading  +the account is downloading mail bodies
AccountRefreshing  +the account is refreshing its mail list
+
+ +
+

+ +

+
+ + + + +
enum Types::FilterAction_Type
+
+
+ +

+Actions returned by filters.

Enumerator:
+ + + + + + + + +
FActPass  +Mail has passed the filter check. It can showed in the list.
FActDelete  +Undesirable mail. Delete it.
FActMark  +Probably undesirable mail. Mark it in the mail list.
FActMove  +Move the mail to a certain mail box. The name of the box will returned by a further parameter.
FActSpamcheck  +This mail shall be forwared to a spam filter, which checks the whole mail including body.
FActIgnore  +This mail shall not be shown.
FActNone  +The mail doesn't match up with the filter. Perform the next one.
+
+ +
+

+ +

+
+ + + + +
enum Types::State_Type
+
+
+ +

+State of the application during running time.

Enumerator:
+ + + + + + + +
idle  +it's doing nothing
deleting  +it's deleting a message on the server
configure  +the user is configuring the application or the mail or just the header of the mail is being shown
executing  +a command on the command list is being executed
showing  +it's downloading and showing a mail
refreshing  +it's refreshing the mail lists
+
+ +
+

+


Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/namespacemembers.html b/doc/html/namespacemembers.html new file mode 100644 index 0000000..1057d67 --- /dev/null +++ b/doc/html/namespacemembers.html @@ -0,0 +1,135 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+
+ +
+ +

+Here is a list of all namespace members with links to the namespace documentation for each member: +

+

- a -

+

- c -

+

- d -

+

- e -

+

- f -

+

- g -

+

- h -

+

- i -

+

- m -

+

- r -

+

- s -

+
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/namespacemembers_enum.html b/doc/html/namespacemembers_enum.html new file mode 100644 index 0000000..be8e04e --- /dev/null +++ b/doc/html/namespacemembers_enum.html @@ -0,0 +1,44 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+  +

+

+
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/namespacemembers_eval.html b/doc/html/namespacemembers_eval.html new file mode 100644 index 0000000..dfa9f5c --- /dev/null +++ b/doc/html/namespacemembers_eval.html @@ -0,0 +1,72 @@ + + +kshowmail.kdevelop: Class Members + + + + +
+
+
+
+
+ +
+  +

+

+
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/namespaces.html b/doc/html/namespaces.html new file mode 100644 index 0000000..9da54a7 --- /dev/null +++ b/doc/html/namespaces.html @@ -0,0 +1,34 @@ + + +kshowmail.kdevelop: Namespace Index + + + + +
+
+
+
+

kshowmail.kdevelop Namespace List

Here is a list of all namespaces with brief descriptions: + + + + + + + +
Codecs
Constants
EncryptionProvides functions to crypt and decrypt a password
KIO
KWalletAccessProvides routines to save and read passwords using KWallet
std
Types
+
Generated on Tue Apr 1 21:59:50 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/optiondialog_8cpp-source.html b/doc/html/optiondialog_8cpp-source.html new file mode 100644 index 0000000..5b4c828 --- /dev/null +++ b/doc/html/optiondialog_8cpp-source.html @@ -0,0 +1,290 @@ + + +kshowmail: kshowmail/optiondialog.cpp Source File + + + + +
+
+ +

optiondialog.cpp

00001 /***************************************************************************
+00002                           optiondialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Fri Oct 26 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007 
+00008     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
+00009  ***************************************************************************/
+00010 
+00011 /***************************************************************************
+00012  *                                                                         *
+00013  *   This program is free software; you can redistribute it and/or modify  *
+00014  *   it under the terms of the GNU General Public License as published by  *
+00015  *   the Free Software Foundation; either version 2 of the License, or     *
+00016  *   (at your option) any later version.                                   *
+00017  *                                                                         *
+00018  ***************************************************************************/
+00019 
+00020 #include <qcheckbox.h>
+00021 #include <qspinbox.h>
+00022 #include <qlabel.h>
+00023 #include <qfileinfo.h>
+00024 #include <qfiledialog.h>
+00025 #include <qpushbutton.h>
+00026 
+00027 #include <kmessagebox.h>
+00028 #include <klocale.h>
+00029 #include <knuminput.h>
+00030 #include <kdebug.h>
+00031 
+00032 #include "optiondialog.h"
+00033 #include "serverdialog.h"
+00034 #include "configlist.h"
+00035 #include "configelem.h"
+00036 #include "commandlist.h"
+00037 
+00038 OptionDialog::OptionDialog(QWidget *parent, const char *name, ConfigList* config, CommandList* cmd):
+00039        OptionDlg (parent,name,true),
+00040        m_ConfigList (*config),
+00041        m_pConfigList (config),
+00042        m_pCmdList (cmd)
+00043 {
+00044        m_CheckSavePassword->setChecked (m_pConfigList->m_bSavePassword);
+00045        m_CheckConfirmDelete->setChecked (m_pConfigList->confirmDeletion() );
+00046        m_SpinInitTimer->setValue( m_pConfigList->getInitTime() );
+00047        m_SpinIntervalTimer->setValue (m_pConfigList->getRefreshTimeInterval());
+00048     m_SpinPop3Timer->setValue (m_pConfigList->getTimeoutTime() );
+00049     m_CheckBeep->setChecked (m_pConfigList->m_bBeep);
+00050     m_CheckSound->setChecked (m_pConfigList->m_bSound);
+00051        m_ButtonSelectSoundFile->setEnabled (m_pConfigList->m_bSound);
+00052        m_EditSoundFile->setEnabled (m_pConfigList->m_bSound);
+00053        m_ButtonSoundTest->setEnabled (m_pConfigList->m_bSound);
+00054     m_EditSoundFile->setText (m_pConfigList->m_strSoundFile);
+00055     m_CheckStartMinimized->setChecked (m_pConfigList->m_bStartMinimized);
+00056     m_CheckTerminateNoMail->setChecked (m_pConfigList->m_bTerminate);
+00057     m_CheckMinimizeNoMail->setChecked (m_pConfigList->m_bMinimize);
+00058     m_CheckKeepNewMail->setChecked (m_pConfigList->m_bKeepNew);
+00059     m_CheckShowMessagebox->setChecked (m_pConfigList->m_bShowMessage);
+00060     m_CheckShowMainWindow->setChecked (m_pConfigList->m_bShowMainWindow);
+00061     m_CheckExternalProg->setChecked (m_pConfigList->m_bExternalProg);
+00062        m_ButtonExternalProgTest->setEnabled (m_pConfigList->m_bExternalProg);
+00063        m_ComboExternalProg->setEnabled (m_pConfigList->m_bExternalProg);
+00064        QLabel_5->setEnabled (m_pConfigList->m_bExternalProg);
+00065     m_SpinMaxSize->setValue (m_pConfigList->m_nMaxMailSize);
+00066        m_ConfigList.setCombo (m_ComboAccount);
+00067        m_pCmdList->setCombo (m_ComboExternalProg, m_pConfigList->m_nExternalProg);
+00068        //Modifications made by AM (account columns)
+00069        m_CheckActive->setChecked(m_pConfigList->m_shownAccountColumns[0]);
+00070        m_CheckAccount1->setChecked(m_pConfigList->m_shownAccountColumns[1]);
+00071        m_CheckServer->setChecked(m_pConfigList->m_shownAccountColumns[2]);
+00072        m_CheckUser->setChecked(m_pConfigList->m_shownAccountColumns[3]);
+00073        m_CheckMessages->setChecked(m_pConfigList->m_shownAccountColumns[4]);
+00074        m_CheckSize1->setChecked(m_pConfigList->m_shownAccountColumns[5]);
+00075        //Modifications made by AM (email columns)
+00076        m_CheckNumber->setChecked(m_pConfigList->m_shownMailColumns[0]);
+00077        m_CheckAccount2->setChecked(m_pConfigList->m_shownMailColumns[1]);
+00078        m_CheckFrom->setChecked(m_pConfigList->m_shownMailColumns[2]);
+00079        m_CheckTo->setChecked(m_pConfigList->m_shownMailColumns[3]);
+00080        m_CheckSubject->setChecked(m_pConfigList->m_shownMailColumns[4]);
+00081        m_CheckDate->setChecked(m_pConfigList->m_shownMailColumns[5]);
+00082        m_CheckSize2->setChecked(m_pConfigList->m_shownMailColumns[6]);
+00083        m_CheckContent->setChecked(m_pConfigList->m_shownMailColumns[7]);
+00084        m_CheckState->setChecked(m_pConfigList->m_shownMailColumns[8]);
+00085     // add HTML formatting
+00086     m_checkHTML->setChecked(m_pConfigList->allowHTML() );
+00087     _checkConfirmClose->setChecked(m_pConfigList->m_bConfirmClose);
+00088     // added by morhekil
+00089     // minimize on close
+00090     m_CheckCloseMinimizes->setChecked(m_pConfigList->m_bCloseMinimizes);
+00091     m_CheckMinimizeToTray->setChecked(m_pConfigList->m_bMinimizeToTray);
+00092 }
+00093 
+00094 OptionDialog::~OptionDialog(){
+00095 }
+00096 
+00097 void OptionDialog::slotButtonAddClicked()
+00098 {
+00099        ConfigElem* pElem = new ConfigElem ( &m_ConfigList );
+00100        ServerDialog dlg (this, "Server Options", pElem, &m_ConfigList);
+00101        if (dlg.exec () == Accepted)
+00102        {
+00103               m_ConfigList.inSort (pElem);
+00104         //connect the signals of the new account
+00105         m_ConfigList.connectAccounts();
+00106 
+00107               m_ComboAccount->insertItem (pElem->getAccountName(), m_ConfigList.at ());
+00108               m_ComboAccount->setCurrentItem (m_ConfigList.at ());
+00109        }
+00110        else
+00111               delete pElem;
+00112 }
+00113 
+00114 void OptionDialog::slotButtonEditClicked()
+00115 {
+00116        ConfigElem* pElem = m_ConfigList.current ();
+00117        if (pElem)
+00118        {
+00119               ServerDialog dlg (this, "Server Options", pElem, NULL);
+00120               dlg.exec ();
+00121        }
+00122 }
+00123 
+00124 void OptionDialog::slotButtonCopyClicked()
+00125 {
+00126        if (m_ConfigList.current())
+00127        {
+00128               ConfigElem* pElem = new ConfigElem (m_ConfigList.current ());
+00129               ServerDialog dlg (this, "Server Options", pElem, &m_ConfigList);
+00130               if (dlg.exec () == Accepted)
+00131               {
+00132                      pElem->clearMailList();
+00133                      m_ConfigList.inSort (pElem);
+00134             m_ConfigList.connectAccounts();
+00135 
+00136                      m_ComboAccount->insertItem (pElem->getAccountName(), m_ConfigList.at ());
+00137                      m_ComboAccount->setCurrentItem (m_ConfigList.at ());
+00138               }
+00139               else
+00140                      delete pElem;
+00141        }
+00142 }
+00143 
+00144 void OptionDialog::slotButtonDeleteClicked()
+00145 {
+00146        if (m_ConfigList.current())
+00147        {
+00148               if (KMessageBox::warningYesNo (this, i18n("Account %1 will be deleted.\nAre you sure ?").arg(m_ConfigList.current()->getAccountName())) == KMessageBox::Yes)
+00149               {
+00150                      int index = m_ConfigList.at ();
+00151                      m_ConfigList.remove (index);
+00152             m_ConfigList.connectAccounts();
+00153                      m_ComboAccount->removeItem (index);
+00154                      m_ComboAccount->setCurrentItem (m_ConfigList.at ());
+00155               }
+00156        }
+00157 }
+00158 
+00159 void OptionDialog::slotButtonOkClicked()
+00160 {
+00161        m_ConfigList.m_bSavePassword = m_CheckSavePassword->isChecked ();
+00162        m_ConfigList.setConfirmDeletion( m_CheckConfirmDelete->isChecked () );
+00163        m_ConfigList.setInitTime( m_SpinInitTimer->value() );
+00164        m_ConfigList.setRefreshTimeInterval( m_SpinIntervalTimer->value () );
+00165     m_ConfigList.setTimeoutTime( m_SpinPop3Timer->value () );
+00166        m_ConfigList.m_nMaxMailSize = m_SpinMaxSize->value ();
+00167        m_ConfigList.m_bBeep = m_CheckBeep->isChecked ();
+00168        m_ConfigList.m_bSound = m_CheckSound->isChecked ();
+00169        m_ConfigList.m_strSoundFile = m_EditSoundFile->text ();
+00170        m_ConfigList.m_bStartMinimized = m_CheckStartMinimized->isChecked ();
+00171        m_ConfigList.m_bTerminate = m_CheckTerminateNoMail->isChecked ();
+00172        m_ConfigList.m_bMinimize = m_CheckMinimizeNoMail->isChecked ();
+00173        m_ConfigList.m_bKeepNew = m_CheckKeepNewMail->isChecked ();
+00174        m_ConfigList.m_bShowMessage = m_CheckShowMessagebox->isChecked ();
+00175        m_ConfigList.m_bShowMainWindow = m_CheckShowMainWindow->isChecked ();
+00176        m_ConfigList.m_nExternalProg = m_ComboExternalProg->currentItem ();
+00177        kdDebug () << "ext prog = " << m_ConfigList.m_nExternalProg << endl;
+00178        kdDebug () << "count = " << m_ConfigList.count() << endl;
+00179        if ((m_ConfigList.m_nExternalProg >= 0) && (m_ConfigList.count() > 0))
+00180               m_ConfigList.m_bExternalProg = m_CheckExternalProg->isChecked ();
+00181        else
+00182               m_ConfigList.m_bExternalProg = false;
+00183        //modifications by AM (hiding columns)
+00184        m_ConfigList.m_shownAccountColumns[0] = m_CheckActive->isChecked();
+00185        m_ConfigList.m_shownAccountColumns[1] = m_CheckAccount1->isChecked();
+00186        m_ConfigList.m_shownAccountColumns[2] = m_CheckServer->isChecked();
+00187        m_ConfigList.m_shownAccountColumns[3] = m_CheckUser->isChecked();
+00188        m_ConfigList.m_shownAccountColumns[4] = m_CheckMessages->isChecked();
+00189        m_ConfigList.m_shownAccountColumns[5] = m_CheckSize1->isChecked();
+00190        m_ConfigList.m_shownMailColumns[0] = m_CheckNumber->isChecked();
+00191        m_ConfigList.m_shownMailColumns[1] = m_CheckAccount2->isChecked();
+00192        m_ConfigList.m_shownMailColumns[2] = m_CheckFrom->isChecked();
+00193        m_ConfigList.m_shownMailColumns[3] = m_CheckTo->isChecked();
+00194        m_ConfigList.m_shownMailColumns[4] = m_CheckSubject->isChecked();
+00195        m_ConfigList.m_shownMailColumns[5] = m_CheckDate->isChecked();
+00196        m_ConfigList.m_shownMailColumns[6] = m_CheckSize2->isChecked();
+00197        m_ConfigList.m_shownMailColumns[7] = m_CheckContent->isChecked();
+00198        m_ConfigList.m_shownMailColumns[8] = m_CheckState->isChecked();
+00199     m_ConfigList.setAllowHTML(  m_checkHTML->isChecked() );
+00200     m_ConfigList.m_bConfirmClose = _checkConfirmClose->isChecked();
+00201 
+00202     // added by morhekil
+00203     m_ConfigList.m_bCloseMinimizes = m_CheckCloseMinimizes->isChecked();
+00204     m_ConfigList.m_bMinimizeToTray = m_CheckMinimizeToTray->isChecked();
+00205 
+00206     m_ConfigList.saveOptions();
+00207     *m_pConfigList = m_ConfigList;
+00208 }
+00209 
+00210 void OptionDialog::slotAccountActivated (int index)
+00211 {
+00212        m_ConfigList.at (index); // will set current item
+00213 }
+00214 
+00215 void OptionDialog::slotSavePasswordToggled ()
+00216 {
+00217        if (m_CheckSavePassword->isChecked ())
+00218        {
+00219               if (KMessageBox::warningYesNo (this, i18n("Password will be stored as scrambled text.\n"
+00220                                                    "It might be possible to decipher it.\n"
+00221                                                    "Are you sure ?\n"),
+00222                                          QString::null,
+00223                                          KStdGuiItem::yes(),
+00224                                          KStdGuiItem::no(),
+00225                                          "savepasswdaskagain") != KMessageBox::Yes)
+00226                      m_CheckSavePassword->setChecked (false);
+00227        }
+00228 }
+00229 
+00230 void OptionDialog::slotButtonSelectSoundFile ()
+00231 {
+00232        QStringList filters;
+00233        filters.append (i18n("Wave files (*.wav)"));
+00234        filters.append (i18n("All files (*)"));
+00235        QFileInfo info (m_EditSoundFile->text ());
+00236        QString dir = info.dirPath ();
+00237        QFileDialog dlg (this, "Sound File", TRUE);
+00238        dlg.setCaption (i18n("Select Sound File"));
+00239        dlg.setDir (dir);
+00240        dlg.setFilters (filters);
+00241        dlg.setMode (QFileDialog::ExistingFile);
+00242   if (dlg.exec () == QDialog::Accepted)
+00243               m_EditSoundFile->setText (dlg.selectedFile());
+00244 }
+00245 
+00246 void OptionDialog::slotMinimizeNoMailClicked ()
+00247 {
+00248        if (m_CheckMinimizeNoMail->isChecked ())
+00249               m_CheckTerminateNoMail->setChecked (false);
+00250 }
+00251 
+00252 void OptionDialog::slotTerminateNoMailClicked ()
+00253 {
+00254        if (m_CheckTerminateNoMail->isChecked ())
+00255               m_CheckMinimizeNoMail->setChecked (false);
+00256 }
+00257 
+00258 void OptionDialog::slotSoundTest ()
+00259 {
+00260        m_pConfigList->playSound (m_EditSoundFile->text ());
+00261 }
+00262 
+00263 void OptionDialog::slotExternalProgTest ()
+00264 {
+00265        m_pCmdList->exec (m_ComboExternalProg->currentItem (), m_pConfigList->current ());
+00266 }
+00267 
+00268 
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/optiondialog_8h-source.html b/doc/html/optiondialog_8h-source.html new file mode 100644 index 0000000..4d1bf22 --- /dev/null +++ b/doc/html/optiondialog_8h-source.html @@ -0,0 +1,77 @@ + + +kshowmail: kshowmail/optiondialog.h Source File + + + + +
+
+ +

optiondialog.h

00001 /***************************************************************************
+00002                           optiondialog.h  -  description
+00003                              -------------------
+00004     begin                : Fri Oct 26 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef OPTIONDIALOG_H
+00019 #define OPTIONDIALOG_H
+00020 
+00021 #include <qwidget.h>
+00022 #include "OptionDlg.h"
+00023 #include "configlist.h"
+00024 #include "commandlist.h"
+00025 
+00030 class OptionDialog : public OptionDlg  {
+00031    Q_OBJECT
+00032 //TODO: nachdem der Einstellungsdialog aufgerufen wurde, vergessen die Accounts sämtlich Mails
+00033        //Grund ist, dass in dieser Klasse eine Kopie von ConfigList angelegt wird und der
+00034        //Kopierconstruktor von ConfigElem eine neue Mailliste anlegt.
+00035        //diese Klasse müsste ausschließlich mit der Original-ConfigList arbeiten
+00036        //Workaround derzeit: Mails werden nach Aufruf dieser Klasse neu vom Server gelesen
+00037 public:
+00038        OptionDialog(QWidget *parent, const char *name, ConfigList* config, CommandList* cmd);
+00039        ~OptionDialog();
+00040 public slots:
+00041   virtual void slotButtonAddClicked();
+00042   virtual void slotButtonEditClicked();
+00043   virtual void slotButtonCopyClicked();
+00044   virtual void slotButtonDeleteClicked();
+00045   virtual void slotButtonOkClicked();
+00046        virtual void slotAccountActivated (int index);
+00047        virtual void slotSavePasswordToggled ();
+00048        virtual void slotButtonSelectSoundFile ();
+00049        virtual void slotMinimizeNoMailClicked ();
+00050        virtual void slotTerminateNoMailClicked ();
+00051        virtual void slotSoundTest ();
+00052        virtual void slotExternalProgTest ();
+00053 private:
+00054        ConfigList m_ConfigList;
+00055        ConfigList* m_pConfigList;
+00056        CommandList* m_pCmdList;
+00057 };
+00058 
+00059 #endif
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/optiondialog_8moc_8cpp-source.html b/doc/html/optiondialog_8moc_8cpp-source.html new file mode 100644 index 0000000..c4720f9 --- /dev/null +++ b/doc/html/optiondialog_8moc_8cpp-source.html @@ -0,0 +1,159 @@ + + +kshowmail: kshowmail/optiondialog.moc.cpp Source File + + + + +
+
+ +

optiondialog.moc.cpp

00001 /****************************************************************************
+00002 ** OptionDialog meta object code from reading C++ file 'optiondialog.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: optiondialog_8moc_8cpp-source.html,v 1.8 2007/05/16 20:12:02 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "optiondialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *OptionDialog::className() const
+00023 {
+00024     return "OptionDialog";
+00025 }
+00026 
+00027 QMetaObject *OptionDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_OptionDialog( "OptionDialog", &OptionDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString OptionDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "OptionDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString OptionDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "OptionDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* OptionDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = OptionDlg::staticMetaObject();
+00055     static const QUMethod slot_0 = {"slotButtonAddClicked", 0, 0 };
+00056     static const QUMethod slot_1 = {"slotButtonEditClicked", 0, 0 };
+00057     static const QUMethod slot_2 = {"slotButtonCopyClicked", 0, 0 };
+00058     static const QUMethod slot_3 = {"slotButtonDeleteClicked", 0, 0 };
+00059     static const QUMethod slot_4 = {"slotButtonOkClicked", 0, 0 };
+00060     static const QUParameter param_slot_5[] = {
+00061        { "index", &static_QUType_int, 0, QUParameter::In }
+00062     };
+00063     static const QUMethod slot_5 = {"slotAccountActivated", 1, param_slot_5 };
+00064     static const QUMethod slot_6 = {"slotSavePasswordToggled", 0, 0 };
+00065     static const QUMethod slot_7 = {"slotButtonSelectSoundFile", 0, 0 };
+00066     static const QUMethod slot_8 = {"slotMinimizeNoMailClicked", 0, 0 };
+00067     static const QUMethod slot_9 = {"slotTerminateNoMailClicked", 0, 0 };
+00068     static const QUMethod slot_10 = {"slotSoundTest", 0, 0 };
+00069     static const QUMethod slot_11 = {"slotExternalProgTest", 0, 0 };
+00070     static const QMetaData slot_tbl[] = {
+00071        { "slotButtonAddClicked()", &slot_0, QMetaData::Public },
+00072        { "slotButtonEditClicked()", &slot_1, QMetaData::Public },
+00073        { "slotButtonCopyClicked()", &slot_2, QMetaData::Public },
+00074        { "slotButtonDeleteClicked()", &slot_3, QMetaData::Public },
+00075        { "slotButtonOkClicked()", &slot_4, QMetaData::Public },
+00076        { "slotAccountActivated(int)", &slot_5, QMetaData::Public },
+00077        { "slotSavePasswordToggled()", &slot_6, QMetaData::Public },
+00078        { "slotButtonSelectSoundFile()", &slot_7, QMetaData::Public },
+00079        { "slotMinimizeNoMailClicked()", &slot_8, QMetaData::Public },
+00080        { "slotTerminateNoMailClicked()", &slot_9, QMetaData::Public },
+00081        { "slotSoundTest()", &slot_10, QMetaData::Public },
+00082        { "slotExternalProgTest()", &slot_11, QMetaData::Public }
+00083     };
+00084     metaObj = QMetaObject::new_metaobject(
+00085        "OptionDialog", parentObject,
+00086        slot_tbl, 12,
+00087        0, 0,
+00088 #ifndef QT_NO_PROPERTIES
+00089        0, 0,
+00090        0, 0,
+00091 #endif // QT_NO_PROPERTIES
+00092        0, 0 );
+00093     cleanUp_OptionDialog.setMetaObject( metaObj );
+00094     return metaObj;
+00095 }
+00096 
+00097 void* OptionDialog::qt_cast( const char* clname )
+00098 {
+00099     if ( !qstrcmp( clname, "OptionDialog" ) )
+00100        return this;
+00101     return OptionDlg::qt_cast( clname );
+00102 }
+00103 
+00104 bool OptionDialog::qt_invoke( int _id, QUObject* _o )
+00105 {
+00106     switch ( _id - staticMetaObject()->slotOffset() ) {
+00107     case 0: slotButtonAddClicked(); break;
+00108     case 1: slotButtonEditClicked(); break;
+00109     case 2: slotButtonCopyClicked(); break;
+00110     case 3: slotButtonDeleteClicked(); break;
+00111     case 4: slotButtonOkClicked(); break;
+00112     case 5: slotAccountActivated((int)static_QUType_int.get(_o+1)); break;
+00113     case 6: slotSavePasswordToggled(); break;
+00114     case 7: slotButtonSelectSoundFile(); break;
+00115     case 8: slotMinimizeNoMailClicked(); break;
+00116     case 9: slotTerminateNoMailClicked(); break;
+00117     case 10: slotSoundTest(); break;
+00118     case 11: slotExternalProgTest(); break;
+00119     default:
+00120        return OptionDlg::qt_invoke( _id, _o );
+00121     }
+00122     return TRUE;
+00123 }
+00124 
+00125 bool OptionDialog::qt_emit( int _id, QUObject* _o )
+00126 {
+00127     return OptionDlg::qt_emit(_id,_o);
+00128 }
+00129 #ifndef QT_NO_PROPERTIES
+00130 
+00131 bool OptionDialog::qt_property( int id, int f, QVariant* v)
+00132 {
+00133     return OptionDlg::qt_property( id, f, v);
+00134 }
+00135 
+00136 bool OptionDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00137 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/serverdialog_8cpp-source.html b/doc/html/serverdialog_8cpp-source.html new file mode 100644 index 0000000..2755b13 --- /dev/null +++ b/doc/html/serverdialog_8cpp-source.html @@ -0,0 +1,279 @@ + + +kshowmail: kshowmail/serverdialog.cpp Source File + + + + +
+
+ +

serverdialog.cpp

00001 /***************************************************************************
+00002                           serverdialog.cpp  -  description
+00003                              -------------------
+00004     begin                : Sun Oct 28 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "serverdialog.h"
+00019 
+00020 ServerDialog::ServerDialog( QWidget* parent, ConfigElem* item )
+00021   : KDialogBase( parent, "ServerDialog", true, QString::null, Ok|Cancel, Ok, true )
+00022 {
+00023   //save pointer to account and view
+00024   account = item;
+00025 
+00026   //main widget
+00027   QWidget* page = new QWidget( this );
+00028   setMainWidget( page );
+00029 
+00030   //layouts
+00031   QVBoxLayout* layMain = new QVBoxLayout( page, 0, spacingHint() );
+00032   QGridLayout* layTop = new QGridLayout( layMain, 5, 2 );
+00033 
+00034   //upper items
+00035   QLabel* lblAccount = new QLabel( i18n( "Account:" ), page, "lblAccount" );
+00036   txtAccount = new KLineEdit( page, "txtAccount" );
+00037   txtAccount->setEnabled( false );
+00038   QToolTip::add( lblAccount, i18n( "Unique Account Name" ) );
+00039   QToolTip::add( txtAccount, i18n( "Unique Account Name" ) );
+00040   layTop->addWidget( lblAccount, 0, 0 );
+00041   layTop->addWidget( txtAccount, 0, 1 );
+00042 
+00043   QLabel* lblServer = new QLabel( i18n( "Server:" ), page, "lblServer" );
+00044   txtServer = new KLineEdit( page, "txtServer" );
+00045   txtServer->setFocus();
+00046   QToolTip::add( lblServer, i18n( "Server Name" ) );
+00047   QToolTip::add( txtAccount, i18n( "Server Name" ) );
+00048   layTop->addWidget( lblServer, 1, 0 );
+00049   layTop->addWidget( txtServer, 1, 1 );
+00050 
+00051   QLabel* lblProtocol = new QLabel( i18n( "Protocol:" ), page, "lblProtocol" );
+00052   cboProtocol = new KComboBox( page, "cboProtocol" );
+00053   cboProtocol->insertItem( "POP3" );  //currently KShowmail just supports POP3
+00054   QToolTip::add( lblProtocol, i18n( "Protocol, which shall be used to get the mails from the server. Currently KShowmail just supports POP3.") );
+00055   QToolTip::add( cboProtocol, i18n( "Protocol, which shall be used to get the mails from the server. Currently KShowmail just supports POP3.") );
+00056   layTop->addWidget( lblProtocol, 2, 0 );
+00057   layTop->addWidget( cboProtocol, 2, 1 );
+00058 
+00059   QLabel* lblPort = new QLabel( i18n( "Port:" ), page, "lblPort" );
+00060   spbPort = new QSpinBox( 0, 65535, 1, page, "spbPort" );
+00061   spbPort->setValue( DEFAULT_PORT_POP3 );
+00062   QToolTip::add( lblPort, i18n( "Port Number. Normally POP3 uses port 110." ) );
+00063   QToolTip::add( spbPort, i18n( "Port Number. Normally POP3 uses port 110." ) );
+00064   layTop->addWidget( lblPort, 3, 0 );
+00065   layTop->addWidget( spbPort, 3, 1 );
+00066 
+00067   QLabel* lblUser = new QLabel( i18n( "User:" ), page, "lblUser" );
+00068   txtUser = new KLineEdit( page, "txtUser" );
+00069   QToolTip::add( lblUser, i18n( "To authenticate to the mail server you need an user name." ) );
+00070   QToolTip::add( txtUser, i18n( "To authenticate to the mail server you need an user name." ) );
+00071   layTop->addWidget( lblUser, 4, 0 );
+00072   layTop->addWidget( txtUser, 4, 1 );
+00073 
+00074   //password groupbox and layouts
+00075   QGroupBox* gboxPassword = new QGroupBox( 0, Qt::Horizontal, i18n( "Password" ), page, "gboxPassword" );
+00076   layMain->addWidget( gboxPassword );
+00077 
+00078   QVBoxLayout* layPassword = new QVBoxLayout( gboxPassword->layout(), spacingHint() );
+00079   QGridLayout* layPasswordStorage = new QGridLayout( layPassword, 2, 2, spacingHint() );
+00080 
+00081 
+00082   //radio buttons to set storage of the password
+00083   grpPasswordStorage = new QButtonGroup( NULL, "grpPasswordStorage" );
+00084   connect( grpPasswordStorage, SIGNAL( clicked( int ) ), this, SLOT( slotPasswordStorageChanged( int ) ) );
+00085 
+00086   QRadioButton* btnPasswordDontSave = new QRadioButton( i18n( "Don't save" ), gboxPassword, "btnPasswordDontSave" );
+00087   QRadioButton* btnPasswordSaveFile = new QRadioButton( i18n( "Save password"), gboxPassword, "btnPasswordSaveFile" );
+00088   QRadioButton* btnPasswordSaveKWallet = new QRadioButton( i18n( "Use KWallet" ), gboxPassword, "btnPasswordSaveKWallet" );
+00089   grpPasswordStorage->insert( btnPasswordDontSave, ID_BUTTON_PASSWORD_DONT_SAVE );
+00090   grpPasswordStorage->insert( btnPasswordSaveFile, ID_BUTTON_PASSWORD_SAVE_FILE );
+00091   grpPasswordStorage->insert( btnPasswordSaveKWallet, ID_BUTTON_PASSWORD_SAVE_KWALLET );
+00092   QToolTip::add( btnPasswordDontSave, i18n( "Don't save password. KShowmail will ask you for it at first server connect." ) );
+00093   QToolTip::add( btnPasswordSaveFile, i18n( "Save password in the configuration file. Not recommended, because the password is just lightly encrypted" ) );
+00094   QToolTip::add( btnPasswordSaveKWallet, i18n( "Use KWallet to save the password. Maybe you have to type in the KWallet master password at first server connect." ) );
+00095   layPasswordStorage->addWidget( btnPasswordDontSave, 0, 0 );
+00096   layPasswordStorage->addWidget( btnPasswordSaveFile, 0, 1 );
+00097   layPasswordStorage->addWidget( btnPasswordSaveKWallet, 1, 0 );
+00098 
+00099   //password edit line
+00100   txtPassword = new KPasswordEdit( gboxPassword, "txtUser" );
+00101   layPassword->addWidget( txtPassword );
+00102 
+00103   //set password defaults
+00104   grpPasswordStorage->setButton( DEFAULT_ACCOUNT_PASSWORD_STORAGE );
+00105   slotPasswordStorageChanged( DEFAULT_ACCOUNT_PASSWORD_STORAGE );
+00106 
+00107   //active check box
+00108   QGridLayout* layActive = new QGridLayout( layMain, 1, 1 );
+00109   layActive->setAlignment( Qt::AlignCenter );
+00110   chkActive = new QCheckBox( i18n( "Active"), page, "chkActive" );
+00111   QToolTip::add( chkActive, i18n( "Select it to activate this account." ) );
+00112   layActive->addWidget( chkActive, 0, 0 );
+00113   chkActive->setChecked( DEFAULT_ACCOUNT_ACTIVE );
+00114 
+00115   //set caption
+00116   if( item == NULL )
+00117     setCaption( i18n( "New account" ) );
+00118   else
+00119     setCaption( i18n( "Edit account" ) );
+00120 
+00121   //write values of the given account into the dialog items
+00122   if( account != NULL )
+00123     fillDialog();
+00124 
+00125 
+00126 }
+00127 
+00128 
+00129 ServerDialog::~ServerDialog()
+00130 {
+00131 }
+00132 
+00133 void ServerDialog::slotPasswordStorageChanged( int id )
+00134 {
+00135   if( id == ID_BUTTON_PASSWORD_DONT_SAVE )
+00136   {
+00137     txtPassword->setEnabled( false );
+00138     txtPassword->clear();
+00139   }
+00140   else
+00141     txtPassword->setEnabled( true );
+00142 }
+00143 
+00144 void ServerDialog::slotOk( )
+00145 {
+00146   //check for necessary values
+00147   if( account == NULL )
+00148   {
+00149     kdError() << "ServerDialog::slotOk: Given account pointer is Null." << endl;
+00150     return;
+00151   }
+00152   if( txtServer->text() == "" )
+00153   {
+00154     KMessageBox::error( this, i18n( "Please enter an server." ) );
+00155     return;
+00156   }
+00157 
+00158   if( txtUser->text() == "" )
+00159   {
+00160     KMessageBox::error( this, i18n( "Please enter an user name." ) );
+00161     return;
+00162   }
+00163 
+00164   //get application config object (kshowmailrc)
+00165   KConfig* config = KApplication::kApplication()->config();
+00166 
+00167   config->setGroup( txtAccount->text() );
+00168 
+00169   config->writeEntry( CONFIG_ENTRY_ACCOUNT_SERVER, txtServer->text() );
+00170   config->writeEntry( CONFIG_ENTRY_ACCOUNT_PROTOCOL, cboProtocol->currentText().upper() );
+00171   config->writeEntry( CONFIG_ENTRY_ACCOUNT_PORT, spbPort->value() );
+00172   config->writeEntry( CONFIG_ENTRY_ACCOUNT_USER, txtUser->text() );
+00173 
+00174   //get the password
+00175   //the class KPasswordEdit doesn't have a method to set the password
+00176   //therefore we use setText(). But if we use this method, KPasswordEdit::password()
+00177   //will return an empty string. If the user has typed in a new password, KPasswordEdit::password()
+00178   //will return the correct password
+00179   QString pass;
+00180   if( txtPassword->password() == "" || txtPassword->password() == QString::null )
+00181     pass = txtPassword->text();
+00182   else
+00183     pass = txtPassword->password();
+00184 
+00185   //used to encrypt password
+00186   KURL url;
+00187   url.setUser( txtUser->text() );
+00188   url.setHost( txtServer->text() );
+00189   url.setPass( pass );
+00190 
+00191   //save password (or not)
+00192   switch( grpPasswordStorage->selectedId() )
+00193   {
+00194     case ID_BUTTON_PASSWORD_DONT_SAVE    : config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD_STORAGE, CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE );
+00195                                            config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, QString::null );
+00196                                            break;
+00197     case ID_BUTTON_PASSWORD_SAVE_FILE    : config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD_STORAGE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE );
+00198                                            config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, crypt( url ) );
+00199                                            break;
+00200     case ID_BUTTON_PASSWORD_SAVE_KWALLET : config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD_STORAGE, CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET );
+00201                                            config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, QString::null );
+00202                                            KWalletAccess::savePassword( txtAccount->text(), pass );
+00203                                            break;
+00204     default                              : config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD_STORAGE, CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE );
+00205                                            config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, QString::null );
+00206   }
+00207 
+00208   config->writeEntry( CONFIG_ENTRY_ACCOUNT_ACTIVE, chkActive->isChecked() );
+00209 
+00210   //save config to file
+00211   config->sync();
+00212 
+00213   //call slot of super class to close the dialog
+00214   KDialogBase::slotOk();
+00215 }
+00216 
+00217 void ServerDialog::fillDialog( )
+00218 {
+00219   //check for valid account pointer
+00220   if( account == NULL )
+00221   {
+00222     kdError() << "ServerDialog::fillDialog: invalid pointer to account item." << endl;
+00223     return;
+00224   }
+00225 
+00226   txtAccount->setText( account->getAccountName() );
+00227   txtServer->setText( account->getHost() );
+00228   cboProtocol->setCurrentText( account->getProtocol( true ) );
+00229   spbPort->setValue( account->getPort() );
+00230   txtUser->setText( account->getUser() );
+00231 
+00232   int type = account->getPasswordStorage();
+00233   if( type != CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE && type != CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE && type != CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET )
+00234     type = DEFAULT_ACCOUNT_PASSWORD_STORAGE;
+00235 
+00236   switch( type )
+00237   {
+00238     case CONFIG_VALUE_ACCOUNT_PASSWORD_DONT_SAVE    : grpPasswordStorage->setButton( ID_BUTTON_PASSWORD_DONT_SAVE );
+00239                                                       txtPassword->setEnabled( false );
+00240                                                       txtPassword->clear();
+00241                                                       break;
+00242     case CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE    : grpPasswordStorage->setButton( ID_BUTTON_PASSWORD_SAVE_FILE );
+00243                                                       txtPassword->setEnabled( true );
+00244                                                       txtPassword->setText( account->getPassword() );
+00245                                                       break;
+00246     case CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET : grpPasswordStorage->setButton( ID_BUTTON_PASSWORD_SAVE_KWALLET );
+00247                                                       txtPassword->setEnabled( true );
+00248                                                       txtPassword->setText( account->getPassword() );
+00249                                                       break;
+00250     default                                         : grpPasswordStorage->setButton( 1 );
+00251                                                       txtPassword->clear();
+00252   }
+00253 
+00254   chkActive->setChecked( account->isActive() );
+00255 }
+00256 
+00257 #include "serverdialog.moc"
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/serverdialog_8h-source.html b/doc/html/serverdialog_8h-source.html new file mode 100644 index 0000000..40e669c --- /dev/null +++ b/doc/html/serverdialog_8h-source.html @@ -0,0 +1,131 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/serverdialog.h Source File + + + + +
+
+
+
+ +

serverdialog.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           serverdialog.h  -  description
+00003                              -------------------
+00004     begin                : Sun Oct 28 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef SERVERDIALOG_H
+00019 #define SERVERDIALOG_H
+00020 
+00021 //Qt headers
+00022 #include <qlayout.h>
+00023 #include <qlabel.h>
+00024 #include <qtooltip.h>
+00025 #include <qspinbox.h>
+00026 #include <qgroupbox.h>
+00027 #include <qbuttongroup.h>
+00028 #include <qradiobutton.h>
+00029 #include <qcheckbox.h>
+00030 
+00031 //KDE headers
+00032 #include <kdialogbase.h>
+00033 #include <klocale.h>
+00034 #include <klineedit.h>
+00035 #include <kcombobox.h>
+00036 #include <kdebug.h>
+00037 #include <kmessagebox.h>
+00038 #include <kpassdlg.h>
+00039 
+00040 //KShowmail headers
+00041 #include "configelem.h"
+00042 #include "constants.h"
+00043 #include "encryption.h"
+00044 #include "kwalletaccess.h"
+00045 #include <ktabwidget.h>
+00046 
+00047 //radio button IDs
+00048 #define ID_BUTTON_PASSWORD_DONT_SAVE 1
+00049 #define ID_BUTTON_PASSWORD_SAVE_FILE 2
+00050 #define ID_BUTTON_PASSWORD_SAVE_KWALLET 3
+00051 #define ID_BUTTON_SECLOGIN_NONE 1
+00052 #define ID_BUTTON_SECLOGIN_APOP 2
+00053 #define ID_BUTTON_SECLOGIN_SASL 3
+00054 #define ID_BUTTON_SECTRANSFER_NONE 1
+00055 #define ID_BUTTON_SECTRANSFER_SSL 2
+00056 #define ID_BUTTON_SECTRANSFER_TLS 3
+00057 
+00064 class ServerDialog : public KDialogBase
+00065 {
+00066    Q_OBJECT
+00067   public:
+00068 
+00069   public:
+00070 
+00076     ServerDialog( QWidget* parent, ConfigElem* item = NULL );
+00077 
+00081     ~ServerDialog();
+00082 
+00083   private:
+00084 
+00088     ConfigElem* account;
+00089 
+00093     KLineEdit* txtAccount;
+00094 
+00098     KLineEdit* txtServer;
+00099 
+00103     KComboBox* cboProtocol;
+00104 
+00108     QSpinBox* spbPort;
+00109 
+00113     KLineEdit* txtUser;
+00114 
+00118     KPasswordEdit* txtPassword;
+00119 
+00123     QCheckBox* chkActive;
+00124 
+00128     QButtonGroup* grpPasswordStorage;
+00129 
+00133     QButtonGroup* grpSecureTransfer;
+00134 
+00135   protected slots:
+00136 
+00142     void slotPasswordStorageChanged( int id );
+00143 
+00149     void slotSecureTransferChanged( int id );
+00150 
+00158     void slotOk();
+00159 
+00160   protected:
+00161 
+00165     void fillDialog();
+00166 };
+00167 
+00168 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/serverdialog_8moc_8cpp-source.html b/doc/html/serverdialog_8moc_8cpp-source.html new file mode 100644 index 0000000..9759211 --- /dev/null +++ b/doc/html/serverdialog_8moc_8cpp-source.html @@ -0,0 +1,114 @@ + + +kshowmail: kshowmail/serverdialog.moc.cpp Source File + + + + +
+
+ +

serverdialog.moc.cpp

00001 /****************************************************************************
+00002 ** ServerDialog meta object code from reading C++ file 'serverdialog.h'
+00003 **
+00004 ** Created: Tue May 15 19:57:53 2007
+00005 **      by: The Qt MOC ($Id: serverdialog_8moc_8cpp-source.html,v 1.8 2007/05/16 20:12:04 kuddel-fl Exp $)
+00006 **
+00007 ** WARNING! All changes made in this file will be lost!
+00008 *****************************************************************************/
+00009 
+00010 #undef QT_NO_COMPAT
+00011 #include "serverdialog.h"
+00012 #include <qmetaobject.h>
+00013 #include <qapplication.h>
+00014 
+00015 #include <private/qucomextra_p.h>
+00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
+00017 #error "This file was generated using the moc from 3.3.7. It"
+00018 #error "cannot be used with the include files from this version of Qt."
+00019 #error "(The moc has changed too much.)"
+00020 #endif
+00021 
+00022 const char *ServerDialog::className() const
+00023 {
+00024     return "ServerDialog";
+00025 }
+00026 
+00027 QMetaObject *ServerDialog::metaObj = 0;
+00028 static QMetaObjectCleanUp cleanUp_ServerDialog( "ServerDialog", &ServerDialog::staticMetaObject );
+00029 
+00030 #ifndef QT_NO_TRANSLATION
+00031 QString ServerDialog::tr( const char *s, const char *c )
+00032 {
+00033     if ( qApp )
+00034        return qApp->translate( "ServerDialog", s, c, QApplication::DefaultCodec );
+00035     else
+00036        return QString::fromLatin1( s );
+00037 }
+00038 #ifndef QT_NO_TRANSLATION_UTF8
+00039 QString ServerDialog::trUtf8( const char *s, const char *c )
+00040 {
+00041     if ( qApp )
+00042        return qApp->translate( "ServerDialog", s, c, QApplication::UnicodeUTF8 );
+00043     else
+00044        return QString::fromUtf8( s );
+00045 }
+00046 #endif // QT_NO_TRANSLATION_UTF8
+00047 
+00048 #endif // QT_NO_TRANSLATION
+00049 
+00050 QMetaObject* ServerDialog::staticMetaObject()
+00051 {
+00052     if ( metaObj )
+00053        return metaObj;
+00054     QMetaObject* parentObject = ServerDlg::staticMetaObject();
+00055     metaObj = QMetaObject::new_metaobject(
+00056        "ServerDialog", parentObject,
+00057        0, 0,
+00058        0, 0,
+00059 #ifndef QT_NO_PROPERTIES
+00060        0, 0,
+00061        0, 0,
+00062 #endif // QT_NO_PROPERTIES
+00063        0, 0 );
+00064     cleanUp_ServerDialog.setMetaObject( metaObj );
+00065     return metaObj;
+00066 }
+00067 
+00068 void* ServerDialog::qt_cast( const char* clname )
+00069 {
+00070     if ( !qstrcmp( clname, "ServerDialog" ) )
+00071        return this;
+00072     return ServerDlg::qt_cast( clname );
+00073 }
+00074 
+00075 bool ServerDialog::qt_invoke( int _id, QUObject* _o )
+00076 {
+00077     return ServerDlg::qt_invoke(_id,_o);
+00078 }
+00079 
+00080 bool ServerDialog::qt_emit( int _id, QUObject* _o )
+00081 {
+00082     return ServerDlg::qt_emit(_id,_o);
+00083 }
+00084 #ifndef QT_NO_PROPERTIES
+00085 
+00086 bool ServerDialog::qt_property( int id, int f, QVariant* v)
+00087 {
+00088     return ServerDlg::qt_property( id, f, v);
+00089 }
+00090 
+00091 bool ServerDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
+00092 #endif // QT_NO_PROPERTIES
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/showlistviewitem_8cpp-source.html b/doc/html/showlistviewitem_8cpp-source.html new file mode 100644 index 0000000..49d4e5b --- /dev/null +++ b/doc/html/showlistviewitem_8cpp-source.html @@ -0,0 +1,123 @@ + + +kshowmail: kshowmail/showlistviewitem.cpp Source File + + + + +
+
+ +

showlistviewitem.cpp

00001 /***************************************************************************
+00002                           showlistviewitem.cpp  -  description
+00003                              -------------------
+00004     begin                : Son Apr 21 2002
+00005     copyright            : (C) 2002 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "showlistviewitem.h"
+00019 
+00020 ShowListViewItem::ShowListViewItem (QListView * parent,
+00021                   ShowListViewItem* after):
+00022 QListViewItem (parent, after)
+00023 {}
+00024 
+00025 ShowListViewItem::ShowListViewItem( QListView * parent ) :
+00026     QListViewItem( parent )
+00027 {
+00028 }
+00029 
+00030 ShowListViewItem::~ShowListViewItem()
+00031 {}
+00032 
+00033 QString ShowListViewItem::key (int column, bool /*ascending*/) const
+00034 {
+00035        switch (column)
+00036        {
+00037        case _colNumber:
+00038               return text (_colAccount) + text (_colNumber);
+00039        case _colDate:
+00040               return m_time;
+00041        default:
+00042               return text (column);
+00043        }
+00044 }
+00045 
+00050 int ShowListViewItem::compare( QListViewItem *i, int col,
+00051                                bool ascending ) const
+00052 {
+00053   return key( col, ascending ).compare( i->key( col, ascending) );
+00054 }
+00055 
+00056 void ShowListViewItem::setNumber (const QString& number)
+00057 {
+00058   setText (_colNumber, number);
+00059 }
+00060 
+00061 void ShowListViewItem::setAccount(const QString& account)
+00062 {
+00063   setText (_colAccount, account);
+00064 }
+00065 
+00066 void ShowListViewItem::setFrom(const QString& from)
+00067 {
+00068   setText (_colFrom, from);
+00069 }
+00070 
+00071 void ShowListViewItem::setTo(const QString& to)
+00072 {
+00073   setText (_colTo, to);
+00074 }
+00075 
+00076 void ShowListViewItem::setSubject(const QString& subject)
+00077 {
+00078   setText (_colSubject, subject);
+00079 }
+00080 
+00081 void ShowListViewItem::setDate(const QString& date)
+00082 {
+00083   setText (_colDate, date);
+00084 }
+00085 
+00086 void ShowListViewItem::setSize(const QString& size)
+00087 {
+00088   setText (_colSize, size);
+00089 }
+00090 
+00091 void ShowListViewItem::setContent(const QString& content)
+00092 {
+00093   setText (_colContent, content);
+00094 }
+00095 
+00096 void ShowListViewItem::setState(const QString& state)
+00097 {
+00098   setText (_colState, state);
+00099 }
+00100 
+00101 void ShowListViewItem::setTime (const QString& time)
+00102 {
+00103        m_time = time;
+00104 }
+00105 
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/showlistviewitem_8h-source.html b/doc/html/showlistviewitem_8h-source.html new file mode 100644 index 0000000..7c9b34f --- /dev/null +++ b/doc/html/showlistviewitem_8h-source.html @@ -0,0 +1,79 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showlistviewitem.h Source File + + + + +
+
+
+
+ +

showlistviewitem.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           showlistviewitem.h  -  description
+00003                              -------------------
+00004     begin                : Son Apr 21 2002
+00005     copyright            : (C) 2002 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef SHOWLISTVIEWITEM_H
+00019 #define SHOWLISTVIEWITEM_H
+00020 
+00021 #include <qlistview.h>
+00022 
+00027 class ShowListViewItem : public QListViewItem
+00028 {
+00029 public:
+00030 
+00036   ShowListViewItem (QListView * parent, ShowListViewItem * after);
+00037 
+00042   ShowListViewItem( QListView* parent );
+00043 
+00044 
+00045   virtual       ~ShowListViewItem();
+00046   virtual QString key (int column, bool ascending) const;
+00051   virtual int compare( QListViewItem *i, int col, bool ascending ) const;
+00052   void setNumber (const QString&);
+00053   void setAccount(const QString&);
+00054   void setFrom(const QString&);
+00055   void setTo(const QString&);
+00056   void setSubject(const QString&);
+00057   void setDate(const QString&);
+00058   void setSize(const QString&);
+00059   void setContent(const QString&);
+00060   void setState(const QString&);
+00061   void setTime (const QString&);
+00062   enum {_colNumber, _colAccount, _colFrom, _colTo, _colSubject, _colDate,
+00063         _colSize, _colContent, _colState};
+00064 private:
+00065         QString m_time;
+00066 };
+00067 
+00068 
+00069 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/showrecord_8cpp-source.html b/doc/html/showrecord_8cpp-source.html new file mode 100644 index 0000000..ed0fbe4 --- /dev/null +++ b/doc/html/showrecord_8cpp-source.html @@ -0,0 +1,580 @@ + + +kshowmail: kshowmail/showrecord.cpp Source File + + + + +
+
+ +

showrecord.cpp

00001 /***************************************************************************
+00002                           showrecord.cpp  -  description
+00003                              -------------------
+00004     begin                : Mon Dec 3 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "showrecord.h"
+00019 
+00020 int const ShowRecord::continueShowHeaders( 0 );
+00021 int const ShowRecord::cancelShowHeaders( 1 );
+00022 
+00023 ShowRecord::ShowRecord()
+00024 {
+00025   //set auto delete to true. This is a function of the parent class, which deletes
+00026   //all items when the list is deleted or cleared.
+00027   setAutoDelete( true );
+00028 }
+00029 
+00030 ShowRecord::~ShowRecord()
+00031 {
+00032 }
+00033 
+00034 void ShowRecord::saveOptions( QDomDocument& doc, QDomElement& parent )
+00035 {
+00036   //Loop over all mail items
+00037   for( ShowRecordElem* pElem = first(); pElem; pElem = next() )
+00038   {
+00039     //call the method of the mail to save it
+00040     pElem->saveOptions( doc, parent );
+00041   }
+00042 }
+00043 
+00044 void ShowRecord::readStoredMails( QDomElement& parent )
+00045 {
+00046   //clear the list
+00047   clear();
+00048 
+00049   //get first DOM node (mail)
+00050   QDomNode n = parent.firstChild();
+00051 
+00052   //iterate over all mail items stored in the given account
+00053   while( !n.isNull() )
+00054   {
+00055     //get element of the current node
+00056     QDomElement e = n.toElement();
+00057 
+00058     //create mail object
+00059     ShowRecordElem* pElem = new ShowRecordElem();
+00060 
+00061     //store the currently read mail data in the new object
+00062     pElem->readOptions( e );
+00063 
+00064     //store the new mail object in this list
+00065     append( pElem );
+00066 
+00067     //get next DOM node
+00068     n = n.nextSibling();
+00069   }
+00070 }
+00071 
+00072 void ShowRecord::applyFilters ()
+00073 {
+00074   //Loop over all mails in this list
+00075   for( ShowRecordElem* pElem = first(); pElem; pElem = next() )
+00076   {
+00077     //apply the filters to the current mail
+00078     pElem->applyFilters ();
+00079   }
+00080 }
+00081 
+00082 bool ShowRecord::hasSelectedMails( )
+00083 {
+00084   bool selected = false;    //TRUE when a selected mail was found
+00085   ShowRecordElem* mail;     //mail which we want to check
+00086 
+00087   //get first mail
+00088   mail = first();
+00089 
+00090   //iterate over all mails until we have found a selected mail
+00091   while( mail != NULL && !selected )
+00092   {
+00093     //check the current mail
+00094     selected = mail->isSelected();
+00095 
+00096     //get next mail
+00097     mail = next();
+00098   }
+00099 
+00100   return selected;
+00101 }
+00102 
+00103 MailNumberList_Type ShowRecord::getSelectedMails( )
+00104 {
+00105   MailNumberList_Type list;                     //contains the numbers of selected mails
+00106   ShowRecordElem* mail;                         //mail from which we want to get the number (if selected)
+00107   QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list
+00108 
+00109   //iterate over all mails
+00110   while( ( mail = it.current() ) != NULL )
+00111   {
+00112     //increment iterator to next mail
+00113     ++it;
+00114 
+00115     //if current mail is selected append its number to the mail number list
+00116     if( mail->isSelected() )
+00117       list.append( mail->number() );
+00118   }
+00119 
+00120   return list;
+00121 }
+00122 
+00123 void ShowRecord::removeMail( int number )
+00124 {
+00125   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00126   ShowRecordElem* mail;                           //current mail
+00127 
+00128   //looking for the mail with the number 'number'
+00129   while( ( mail = it.current() ) != NULL )
+00130   {
+00131     //increment iterator to next mail
+00132     ++it;
+00133 
+00134     //if the current mail has the given number, remove it
+00135     if( mail->number() == number )
+00136       remove( mail );
+00137   }
+00138 }
+00139 
+00140 QStringList ShowRecord::getSelectedSubjects( ) const
+00141 {
+00142   QStringList subjects;                           //contains the subjects
+00143   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00144   ShowRecordElem* mail;                           //current mail
+00145 
+00146   //iterate over all mails
+00147   while( ( mail = it.current() ) != NULL )
+00148   {
+00149     //increment iterator to next mail
+00150     ++it;
+00151 
+00152     //if the mail is selected, append subject to list
+00153     if( mail->isSelected() )
+00154       subjects.append( mail->subject() );
+00155   }
+00156 
+00157   return subjects;
+00158 }
+00159 
+00160 QString ShowRecord::getSenderOf( int number ) const
+00161 {
+00162   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00163   ShowRecordElem* mail;                           //current mail
+00164   bool found = false;                             //True, when the wanted mail was found
+00165   QString sender;                                 //sender of the wanted mail
+00166 
+00167   //looking for the mail with the number 'number'
+00168   while( ( mail = it.current() ) != NULL && !found )
+00169   {
+00170     //increment iterator to next mail
+00171     ++it;
+00172 
+00173     //if the current mail has the given number, remove it
+00174     if( mail->number() == number )
+00175     {
+00176       sender = mail->from();
+00177       found = true;
+00178     }
+00179   }
+00180   return sender;
+00181 }
+00182 
+00183 QString ShowRecord::getDateOf( int number ) const
+00184 {
+00185   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00186   ShowRecordElem* mail;                           //current mail
+00187   bool found = false;                             //True, when the wanted mail was found
+00188   QString date;                                   //sent date of the wanted mail
+00189 
+00190   //looking for the mail with the number 'number'
+00191   while( ( mail = it.current() ) != NULL && !found )
+00192   {
+00193     //increment iterator to next mail
+00194     ++it;
+00195 
+00196     //if the current mail has the given number, remove it
+00197     if( mail->number() == number )
+00198     {
+00199       date = mail->date();
+00200       found = true;
+00201     }
+00202   }
+00203   return date;
+00204 
+00205 }
+00206 
+00207 QString ShowRecord::getSizeOf( int number ) const
+00208 {
+00209   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00210   ShowRecordElem* mail;                           //current mail
+00211   bool found = false;                             //True, when the wanted mail was found
+00212   QString size;                                   //size of the wanted mail
+00213 
+00214   //looking for the mail with the number 'number'
+00215   while( ( mail = it.current() ) != NULL && !found )
+00216   {
+00217     //increment iterator to next mail
+00218     ++it;
+00219 
+00220     //if the current mail has the given number, remove it
+00221     if( mail->number() == number )
+00222     {
+00223       size = mail->strSizePrefix();
+00224       found = true;
+00225     }
+00226   }
+00227   return size;
+00228 
+00229 }
+00230 
+00231 QString ShowRecord::getSubjectOf( int number ) const
+00232 {
+00233   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00234   ShowRecordElem* mail;                           //current mail
+00235   bool found = false;                             //True, when the wanted mail was found
+00236   QString subject;                                //subject of the wanted mail
+00237 
+00238   //looking for the mail with the number 'number'
+00239   while( ( mail = it.current() ) != NULL && !found )
+00240   {
+00241     //increment iterator to next mail
+00242     ++it;
+00243 
+00244     //if the current mail has the given number, get the subject
+00245     if( mail->number() == number )
+00246     {
+00247       subject = mail->subject();
+00248       found = true;
+00249     }
+00250   }
+00251   return subject;
+00252 
+00253 }
+00254 
+00255 QString ShowRecord::decodeMailBody( QByteArray body, int number, bool preferHTML ) const
+00256 {
+00257   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00258   ShowRecordElem* mail;                           //current mail
+00259   bool found = false;                             //True, when the wanted mail was found
+00260   QString mailbody;                               //decoded mail
+00261 
+00262   //looking for the mail with the number 'number'
+00263   while( ( mail = it.current() ) != NULL && !found )
+00264   {
+00265     //increment iterator to next mail
+00266     ++it;
+00267 
+00268     //if the current mail has the given number, decode the mail
+00269     if( mail->number() == number )
+00270     {
+00271       mailbody = mail->decodeMailBody( body, preferHTML );
+00272       found = true;
+00273     }
+00274   }
+00275   return mailbody;
+00276 
+00277 }
+00278 
+00279 bool ShowRecord::hasMail( QString uid )
+00280 {
+00281   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00282   ShowRecordElem* mail;                           //current mail
+00283   bool found = false;                             //True, when the wanted mail was found
+00284 
+00285   while( ( mail = it.current() ) != NULL && !found )
+00286   {
+00287     //increment iterator to next mail
+00288     ++it;
+00289 
+00290     //compare the uid
+00291     if( mail->uidl() == uid )
+00292     {
+00293      found = true;
+00294     }
+00295   }
+00296   return found;
+00297 }
+00298 
+00299 void ShowRecord::appendNewMail( int number, QString uid, bool isNew )
+00300 {
+00301   //create new mail
+00302   ShowRecordElem* newMail = new ShowRecordElem( number, uid, isNew );
+00303 
+00304   //append new mail
+00305   if( newMail != NULL )
+00306     append( newMail );
+00307 }
+00308 
+00309 void ShowRecord::printMailList( )
+00310 {
+00311   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00312   ShowRecordElem* mail;                           //current mail
+00313 
+00314   while( ( mail = it.current() ) )
+00315   {
+00316     //increment iterator to next mail
+00317     ++it;
+00318 
+00319     //print mail
+00320     cout << mail->number() << " - UID: " << mail->uidl() << "; Size: " << mail->size() << "; Subject: " << mail->subject() << "; New: " << mail->isNew() << endl;
+00321   }
+00322 
+00323 }
+00324 
+00325 void ShowRecord::setSize( int number, long size )
+00326 {
+00327   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00328   ShowRecordElem* mail;                           //current mail
+00329   bool found = false;                             //True, when the wanted mail was found
+00330 
+00331   //looking for the mail with the number 'number'
+00332   while( ( mail = it.current() ) != NULL && !found )
+00333   {
+00334     //increment iterator to next mail
+00335     ++it;
+00336 
+00337     //if the current mail has the given number, decode the mail
+00338     if( mail->number() == number )
+00339     {
+00340       mail->setSize( size );
+00341       found = true;
+00342     }
+00343   }
+00344 }
+00345 
+00346 Types::MailNumberList_Type ShowRecord::getNewMails( )
+00347 {
+00348   MailNumberList_Type list;                     //contains the numbers of the new mails
+00349   ShowRecordElem* mail;                         //mail from which we want to get the number (if new)
+00350   QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list
+00351 
+00352   //iterate over all mails
+00353   while( ( mail = it.current() ) != NULL )
+00354   {
+00355     //increment iterator to next mail
+00356     ++it;
+00357 
+00358     //if current mail is new append its number to the mail number list
+00359     if( mail->isNew() )
+00360       list.append( mail->number() );
+00361   }
+00362 
+00363   return list;
+00364 }
+00365 
+00366 void ShowRecord::setHeader( int number, QString header )
+00367 {
+00368   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00369   ShowRecordElem* mail;                           //current mail
+00370   bool found = false;                             //True, when the wanted mail was found
+00371 
+00372   //looking for the mail with the number 'number'
+00373   while( ( mail = it.current() ) != NULL && !found )
+00374   {
+00375     //increment iterator to next mail
+00376     ++it;
+00377 
+00378     //if the current mail has the given number, set the header
+00379     if( mail->number() == number )
+00380     {
+00381       mail->setHeader( header );
+00382       found = true;
+00383     }
+00384   }
+00385 }
+00386 
+00387 QStringList ShowRecord::getUIDsOfOldMails( )
+00388 {
+00389   QStringList list;                             //contains the UIDs of the old mails
+00390   ShowRecordElem* mail;                         //mail from which we want to get the uid (if old)
+00391   QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list
+00392 
+00393   //iterate over all mails
+00394   while( ( mail = it.current() ) != NULL )
+00395   {
+00396     //increment iterator to next mail
+00397     ++it;
+00398 
+00399     //if current mail is new append its number to the mail number list
+00400     if( !mail->isNew() )
+00401       list.append( mail->uidl() );
+00402   }
+00403 
+00404   return list;
+00405 }
+00406 
+00407 QString ShowRecord::getHeaderOf( QString uid )
+00408 {
+00409   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00410   ShowRecordElem* mail;                           //current mail
+00411   bool found = false;                             //True, when the wanted mail was found
+00412   QString header;                                 //header of the wanted mail
+00413 
+00414   //looking for the mail with the UID 'uid'
+00415   while( ( mail = it.current() ) != NULL && !found )
+00416   {
+00417     //increment iterator to next mail
+00418     ++it;
+00419 
+00420     //if the current mail has the given uid, get the header
+00421     if( mail->uidl() == uid )
+00422     {
+00423       header = mail->header();
+00424       found = true;
+00425     }
+00426   }
+00427   return header;
+00428 }
+00429 
+00430 void ShowRecord::setHeader( QString uid, QString header )
+00431 {
+00432   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00433   ShowRecordElem* mail;                           //current mail
+00434   bool found = false;                             //True, when the wanted mail was found
+00435 
+00436   //looking for the mail with the UID 'uid'
+00437   while( ( mail = it.current() ) != NULL && !found )
+00438   {
+00439     //increment iterator to next mail
+00440     ++it;
+00441 
+00442     //if the current mail has the given UID, set the header
+00443     if( mail->uidl() == uid )
+00444     {
+00445       mail->setHeader( header );
+00446       found = true;
+00447     }
+00448   }
+00449 }
+00450 
+00451 int ShowRecord::getNumberNewMails( )
+00452 {
+00453   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00454   ShowRecordElem* mail;                           //current mail
+00455   int number = 0;                                 //number of new mails
+00456 
+00457   while( ( mail = it.current() ) )
+00458   {
+00459     //increment iterator to next mail
+00460     ++it;
+00461 
+00462     //increment number, if this mail is new
+00463     if( mail->isNew() )
+00464       number++;
+00465   }
+00466 
+00467   return number;
+00468 }
+00469 
+00470 int ShowRecord::getNumberMails( )
+00471 {
+00472   return count();
+00473 }
+00474 
+00475 long ShowRecord::getTotalSize( )
+00476 {
+00477   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00478   ShowRecordElem* mail;                           //current mail
+00479   long size = 0;                                   //total size of all mails
+00480 
+00481   while( ( mail = it.current() ) )
+00482   {
+00483     //increment iterator to next mail
+00484     ++it;
+00485 
+00486     size += mail->size();
+00487   }
+00488 
+00489   return size;
+00490 }
+00491 
+00492 void ShowRecord::fillMailListView( KshowmailView * view, QString & account )
+00493 {
+00494   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00495   ShowRecordElem* mail;                           //current mail
+00496 
+00497   //iterate over all mails and order the mail to create a list view item
+00498   while( ( mail = it.current() ) )
+00499   {
+00500     //increment iterator to next mail
+00501     ++it;
+00502 
+00503     //insert list view item
+00504     QString number = QString( "%1" ).arg( mail->number() );
+00505     QString from = mail->from();
+00506     QString to = mail->to();
+00507     QString subject = mail->subject();
+00508     QString date = mail->date();
+00509     QString size = QString( "%1" ).arg( mail->size() );
+00510     QString content = mail->content();
+00511     QString state = mail->state();
+00512     QString time = mail->strUnixTime();
+00513     mail->setViewItem( view->insertMail( number, account, from, to, subject, date, size, content, state, time ) );
+00514   }
+00515 
+00516 }
+00517 
+00518 int ShowRecord::showSelectedHeaders( QString& account )
+00519 {
+00520   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00521   ShowRecordElem* mail;                           //current mail
+00522   int showNextHeader = ShowRecordElem::continueShowHeaders; //return value of ShowRecordElem::showHeader()
+00523 
+00524   while( ( mail = it.current() ) && showNextHeader == ShowRecordElem::continueShowHeaders )
+00525   {
+00526     //increment iterator to next mail
+00527     ++it;
+00528 
+00529     //order the mail to show its header
+00530     if( mail->isSelected() )
+00531       showNextHeader = mail->showHeader( account );
+00532   }
+00533 
+00534   return showNextHeader == ShowRecordElem::continueShowHeaders ? ShowRecord::continueShowHeaders : ShowRecord::cancelShowHeaders;
+00535 }
+00536 
+00537 bool ShowRecord::isNew( QString uid ) const
+00538 {
+00539   QPtrListIterator<ShowRecordElem> it( *this );   //iterator for the mail list
+00540   ShowRecordElem* mail;                           //current mail
+00541   bool found = false;                             //True, when the wanted mail was found
+00542   bool newMail = false;                           //at time we have not found it, therefore the return value is false
+00543 
+00544   while( ( mail = it.current() ) != NULL && !found )
+00545   {
+00546     //increment iterator to next mail
+00547     ++it;
+00548 
+00549     //compare the uid
+00550     if( mail->uidl() == uid )
+00551     {
+00552       found = true;
+00553       newMail = mail->isNew();
+00554     }
+00555   }
+00556 
+00557   return newMail;
+00558 }
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/showrecord_8h-source.html b/doc/html/showrecord_8h-source.html new file mode 100644 index 0000000..9a29a3f --- /dev/null +++ b/doc/html/showrecord_8h-source.html @@ -0,0 +1,150 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showrecord.h Source File + + + + +
+
+
+
+ +

showrecord.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           showrecord.h  -  description
+00003                              -------------------
+00004     begin                : Mon Dec 3 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef SHOWRECORD_H
+00019 #define SHOWRECORD_H
+00020 
+00021 //C++ header
+00022 #include <iostream>
+00023 
+00024 //Qt headers
+00025 #include <qdom.h>
+00026 #include <qptrlist.h>
+00027 
+00028 //KDE headers
+00029 #include <kstandarddirs.h>
+00030 #include <kdebug.h>
+00031 
+00032 //KShowmail headers
+00033 #include "kshowmailview.h"
+00034 #include "showrecordelem.h"
+00035 #include "types.h"
+00036 #include "headerfilter.h"
+00037 #include "filterlog.h"
+00038 
+00039 using namespace Types;
+00040 using namespace std;
+00041 
+00042 //forward class declarations
+00043 class ShowRecordElem;
+00044 class KshowmailView;
+00045 
+00056 class ShowRecord: public QPtrList<ShowRecordElem>
+00057 {
+00058 
+00059   public:
+00060 
+00065     static const int continueShowHeaders;
+00066 
+00071     static const int cancelShowHeaders;
+00072 
+00076     ShowRecord();
+00077 
+00082     ~ShowRecord();
+00083 
+00090     void saveOptions( QDomDocument& doc, QDomElement& parent );
+00091 
+00098     void readStoredMails( QDomElement& parent );
+00099 
+00108     void applyHeaderFilter( HeaderFilter* filter, QString account, MailNumberList_Type& deleteList, MailToDownloadMap_Type& downloadList, FilterLog* log = NULL );
+00109 
+00110 
+00117     bool hasSelectedMails();
+00118 
+00123     Types::MailNumberList_Type getSelectedMails();
+00124 
+00129     void removeMail( int number );
+00130 
+00135     QStringList getSelectedSubjects() const;
+00136 
+00142     QString getSenderOf( int number ) const;
+00143 
+00149     QString getDateOf( int number ) const;
+00150 
+00156     QString getSizeOf( int number ) const;
+00157 
+00163     QString getSubjectOf( int number ) const;
+00164 
+00177     QString decodeMailBody( QByteArray body, int number, bool preferHTML ) const;
+00178 
+00185     bool hasMail( QString uid );
+00186 
+00193     bool isNew( QString uid ) const;
+00194 
+00201     void appendNewMail( int number, QString uid, bool isNew );
+00202 
+00207     void printMailList();
+00208 
+00214     void setSize( int number, long size );
+00215 
+00220     Types::MailNumberList_Type getNewMails();
+00221 
+00227     void setHeader( int number, QString header );
+00228 
+00233     QStringList getUIDsOfOldMails();
+00234 
+00240     QString getHeaderOf( QString uid );
+00241 
+00247     void setHeader( QString uid, QString header );
+00248 
+00253     int getNumberNewMails();
+00254 
+00259     int getNumberMails();
+00260 
+00265     long getTotalSize();
+00266 
+00273     void fillMailListView( KshowmailView* view, QString& account );
+00274 
+00281     int showSelectedHeaders( QString& account );
+00282 
+00290     void writeToMoveLog( FilterLog* log, int number, QString account, QString mailbox );
+00291 
+00298     void writeToDeleteLog( FilterLog* log, int number, QString account );
+00299 
+00304     void setMarkAtNextViewRefresh( int number );
+00305 
+00306 
+00307 };
+00308 
+00309 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/showrecordelem_8cpp-source.html b/doc/html/showrecordelem_8cpp-source.html new file mode 100644 index 0000000..da795be --- /dev/null +++ b/doc/html/showrecordelem_8cpp-source.html @@ -0,0 +1,622 @@ + + +kshowmail: kshowmail/showrecordelem.cpp Source File + + + + +
+
+ +

showrecordelem.cpp

00001 /***************************************************************************
+00002                           showrecord.cpp  -  description
+00003                              -------------------
+00004     begin                : Thu Dec 28 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 
+00019 
+00020 
+00021 #include "showrecordelem.h"
+00022 
+00023 int const ShowRecordElem::continueShowHeaders( 0 );
+00024 int const ShowRecordElem::cancelShowHeaders( 1 );
+00025 
+00026 ShowRecordElem::ShowRecordElem ()
+00027 {
+00028   //set default values
+00029   m_from = "???";
+00030   m_subject = "???";
+00031   m_size = 0;
+00032   m_pItem = NULL;
+00033   m_new = false;
+00034   m_pFilter = NULL;
+00035 }
+00036 
+00037 ShowRecordElem::ShowRecordElem( int number, QString& uid, bool isNew )
+00038 {
+00039   //set default values
+00040   m_from = "???";
+00041   m_subject = "???";
+00042   m_size = 0;
+00043   m_pItem = NULL;
+00044   m_pFilter = NULL;
+00045 
+00046   //set given values
+00047   m_nNumber = number;
+00048   m_uid = uid;
+00049   m_new = isNew;
+00050 }
+00051 
+00052 
+00053 QCString ShowRecordElem::scanHeader( const QString& item ) const
+00054 {
+00055   QCString headerline( "" );      //found header line
+00056 
+00057   //get e.g. the "From:" line, starting with cr,lf,"From:" and ending
+00058   //with a carriage return
+00059 
+00060   //build the search string
+00061   QString searchstring( QString( "\r\n%1:" ).arg( item ) );
+00062 
+00063   //searching...
+00064   int pos1 = m_header.find( searchstring, 0, FALSE );
+00065   int pos2 = m_header.find( '\r', pos1 + 2 );
+00066 
+00067   //cut out the interesting content, if we have found a matching line
+00068   //if we have found nothing, the returned string will be ""
+00069   if( pos1 >= 0 )
+00070   {
+00071     headerline = m_header.mid( pos1 + searchstring.length(), pos2 - pos1 - searchstring.length() );
+00072   }
+00073 
+00074   return headerline;
+00075 }
+00076 
+00077 void ShowRecordElem::setHeader( const QString& header )
+00078 {
+00079   //store given header
+00080   m_header = header.ascii();
+00081 
+00082   //extract sender and store it
+00083   QCString from = scanHeader( "From" );
+00084   from = from.simplifyWhiteSpace();
+00085   setFrom( from );
+00086 
+00087   //extract addressee and store it
+00088   QCString to = scanHeader( "To" );
+00089   to = to.simplifyWhiteSpace();
+00090   setTo (to);
+00091 
+00092   //extract subject and store it
+00093   QCString subject = scanHeader( "Subject" );
+00094   subject = subject.simplifyWhiteSpace();
+00095   setSubject( subject );
+00096 
+00097   //extract date and store it
+00098   QCString date = scanHeader( "Date" );
+00099   setDate( date );
+00100 
+00101   //extract content type
+00102   QCString content = scanHeader( "Content-Type" );
+00103   content = content.simplifyWhiteSpace ();
+00104 
+00105   //remove the stuff after the content type; see RFC 2045
+00106   int posSemicolon = content.find( ';' );
+00107   if( posSemicolon != -1 )
+00108   {
+00109     content.remove( posSemicolon, content.length() - posSemicolon );
+00110   }
+00111 
+00112   //store content type
+00113   setContent (content);
+00114 }
+00115 
+00116 void ShowRecordElem::setDate( const QCString& date )
+00117 {
+00118   DwDateTime dwDate;      //this class represents an RFC-822 date-time;
+00119                           //see mimelib/datetime.h
+00120 
+00121   //convert and store the date-time
+00122   dwDate.FromString( date );
+00123   dwDate.Parse();
+00124   m_unixDate.setTime_t( dwDate.AsUnixTime() );
+00125 }
+00126 
+00127 QString ShowRecordElem::from() const
+00128 {
+00129   return Codecs::decodeRFC2047( m_from );
+00130 }
+00131 
+00132 QString ShowRecordElem::to() const
+00133 {
+00134   return Codecs::decodeRFC2047( m_to );
+00135 }
+00136 
+00137 QString ShowRecordElem::subject() const
+00138 {
+00139   return Codecs::decodeRFC2047( m_subject );
+00140 }
+00141 
+00142 QString ShowRecordElem::date() const
+00143 {
+00144   return KGlobal::locale()->formatDateTime( m_unixDate, true, true );
+00145 }
+00146 
+00147 QString ShowRecordElem::strUnixTime() const
+00148 {
+00149   return m_unixDate.toString( Qt::ISODate );
+00150 }
+00151 
+00152 QString ShowRecordElem::strSize() const
+00153 {
+00154   return QString( "%1" ).arg( m_size, 8 );
+00155 }
+00156 
+00157 QString ShowRecordElem::state() const
+00158 {
+00159   if( m_new )
+00160     return i18n( "new" );
+00161   else
+00162     return i18n( "old" );
+00163 }
+00164 
+00165 void ShowRecordElem::saveOptions( QDomDocument& doc, QDomElement& parent )
+00166 {
+00167   //build item tag of this mail( with mail number)
+00168   QString hdr = QString( ITEM_MESSAGE );
+00169   hdr.append( "%1" );
+00170   hdr = hdr.arg( m_nNumber );
+00171 
+00172   //create a new element and store the mail meta data in it
+00173   QDomElement elem = doc.createElement( hdr );
+00174   elem.setAttribute( ATTRIBUTE_MAIL_NUMBER, m_nNumber );
+00175   elem.setAttribute( ATTRIBUTE_MAIL_SIZE, m_size );
+00176   elem.setAttribute( ATTRIBUTE_MAIL_UID, m_uid );
+00177 
+00178   //create a sub element for the mail header in store the header in it
+00179   QDomElement subelem = doc.createElement( ITEM_MAIL_HEADER );
+00180   subelem.appendChild( doc.createTextNode( m_header ) );
+00181 
+00182   //add header element to the mail element
+00183   elem.appendChild( subelem );
+00184 
+00185   //add mail element to the account (parent) element
+00186   parent.appendChild( elem );
+00187 }
+00188 
+00189 void ShowRecordElem::readOptions( QDomElement& elem )
+00190 {
+00191   //get number, size and uid
+00192   setNumber( elem.attribute( ATTRIBUTE_MAIL_NUMBER ).toInt() );
+00193   setSize( elem.attribute( ATTRIBUTE_MAIL_SIZE ).toInt() );
+00194   setUIDL( elem.attribute( ATTRIBUTE_MAIL_UID ) );
+00195 
+00196   //search for the header item and read it
+00197   QDomElement subelem = elem.namedItem( ITEM_MAIL_HEADER ).toElement();
+00198   setHeader( subelem.text() );
+00199 
+00200   //the mail is not new
+00201   setNew( false );
+00202 }
+00203 
+00204 void ShowRecordElem::applyFilters ()
+00205 {
+00206   //search for a matching filter
+00207   FilterElem* filter = Filter::matches( this );
+00208 
+00209   if( filter != NULL )
+00210   {
+00211     //if we have found a matching filter, highlight the corresponding
+00212     //list view entry
+00213     m_pItem->setSelected (true);
+00214 
+00215     //store a pointer to the filter
+00216     setFilter( filter );
+00217   }
+00218 }
+00219 
+00220 void ShowRecordElem::setFrom( const QCString & from )
+00221 {
+00222   m_from = from;
+00223 }
+00224 
+00225 void ShowRecordElem::setTo( const QCString & to )
+00226 {
+00227   m_to = to;
+00228 }
+00229 
+00230 void ShowRecordElem::setSubject( const QCString & subject )
+00231 {
+00232   m_subject = subject;
+00233 }
+00234 
+00235 void ShowRecordElem::setContent( const QCString& content )
+00236 {
+00237   m_content = content;
+00238 }
+00239 
+00240 QString ShowRecordElem::header( ) const
+00241 {
+00242   return QString( m_header );
+00243 }
+00244 
+00245 void ShowRecordElem::setUIDL( const QString & uid )
+00246 {
+00247   m_uid = uid;
+00248 }
+00249 
+00250 QString ShowRecordElem::uidl( ) const
+00251 {
+00252   return m_uid;
+00253 }
+00254 
+00255 void ShowRecordElem::setSize( int size )
+00256 {
+00257   m_size = size;
+00258 }
+00259 
+00260 int ShowRecordElem::size( ) const
+00261 {
+00262   return m_size;
+00263 }
+00264 
+00265 void ShowRecordElem::setNew( bool isnew )
+00266 {
+00267   m_new = isnew;
+00268 }
+00269 
+00270 bool ShowRecordElem::isNew( ) const
+00271 {
+00272   return m_new;
+00273 }
+00274 
+00275 void ShowRecordElem::setNumber( int n )
+00276 {
+00277   m_nNumber = n;
+00278 }
+00279 
+00280 int ShowRecordElem::number( ) const
+00281 {
+00282   return m_nNumber;
+00283 }
+00284 
+00285 QString ShowRecordElem::content( ) const
+00286 {
+00287   return m_content;
+00288 }
+00289 
+00290 void ShowRecordElem::setViewItem( ShowListViewItem* item )
+00291 {
+00292   m_pItem = item;
+00293 }
+00294 
+00295 ShowListViewItem * ShowRecordElem::viewItem( ) const
+00296 {
+00297   return m_pItem;
+00298 }
+00299 
+00300 void ShowRecordElem::setFilter( FilterElem* filter )
+00301 {
+00302   m_pFilter = filter;
+00303 }
+00304 
+00305 bool ShowRecordElem::isSelected( ) const
+00306 {
+00307   if( m_pItem != NULL )
+00308     return m_pItem->isSelected();
+00309   else
+00310     return false;
+00311 }
+00312 
+00313 QString ShowRecordElem::strSizePrefix( ) const
+00314 {
+00315   QString size;
+00316 
+00317   if( m_size >= 1024 * 1024 )
+00318   {
+00319     //prefix is mega
+00320     size = QString( "%L1M" ).arg( ( (double)m_size / ( 1024 * 1024 ) ), 0, 'f', 1 );
+00321   }
+00322   else if( m_size >= 1024 )
+00323   {
+00324     //prefix is kilo
+00325     size = QString( "%L1K" ).arg( ( (double)m_size / 1024 ), 0, 'f', 1 );
+00326   }
+00327   else
+00328     //no prefix
+00329     size = QString( "%L1" ).arg( m_size );
+00330 
+00331   return size;
+00332 }
+00333 
+00334 QString ShowRecordElem::decodeMailBody( QByteArray body, bool preferHTML ) const
+00335 {
+00336   QString charset;    //charset of the content
+00337   QString encoding;   //content transfer encoding
+00338 
+00339   //cast given body to a QCString
+00340   //class QCString needs a null terminated char array to create
+00341   //an object. Therefore we append an null byte to the given mail body
+00342   body.resize( body.size() + 1 );
+00343   body[ body.size() - 1 ] = '\0';
+00344   QCString strBody( (char *)body.data() );
+00345 
+00346   //normalize line ends; remove all \r characters
+00347   for( uint i = 0; i < strBody.size(); i++ )
+00348     if( strBody[ i ] == '\r' )
+00349       strBody.remove( i, 1 );
+00350 
+00351   //get boundary that is separating the parts of a multipart message
+00352   //if the header doesn't contain a boundary attribute, this messsage
+00353   //has just one part
+00354   QString boundary = getBoundary();
+00355 
+00356   //process body subject to it is a multipart messsage or not
+00357   if( boundary == "" )
+00358   {
+00359     //the message has just one body part
+00360 
+00361     //get the position of the first blank line
+00362     int posBlankLine = strBody.find( "\n\n" );
+00363 
+00364     //truncate body; the found blank line is separating the
+00365     //header from the message
+00366     strBody = strBody.mid( posBlankLine + 2 );
+00367     while( strBody[ 0 ] == '\n')
+00368       strBody.remove( 0, 1 );
+00369 
+00370     //get charset of the message; it is behind the
+00371     //content type attribute in the header
+00372     charset = getCharset();
+00373 
+00374     //get transfer encoding type from the header
+00375     encoding = getTransferEncoding();
+00376   }
+00377   else
+00378   {
+00379     //the message has multiple parts
+00380 
+00381     //get positions of a plain text and html flag (value of the content type attribute)
+00382     int posPlainFlag = strBody.find( "text/plain", 0, false );
+00383     int posHTMLFlag = strBody.find( "text/html", 0, false );
+00384 
+00385     //just decode the body, if a plain text or a HTML part is available
+00386     if( posPlainFlag != -1 || posHTMLFlag != -1 )
+00387     {
+00388       //do we want to take the HTML part?
+00389       bool hasHTML = posHTMLFlag != -1;
+00390       bool takeHTML = ( hasHTML && preferHTML ) || posPlainFlag == -1;
+00391 
+00392       //now we want to extract the designated part
+00393       //While the (truncated) mail text (or the header at the first pass)
+00394       //contains a boundary attribute we will extract the designated part
+00395       //between the boundaries
+00396       int posInside;    //a position inside the designated part
+00397       while( boundary != "" )
+00398       {
+00399         //get a position inside the designated part
+00400         if( takeHTML )
+00401           posInside = strBody.find( "text/html", 0, false );
+00402         else
+00403           posInside = strBody.find( "text/plain", 0, false );
+00404 
+00405         //get length of the boundary
+00406         int lengthBoundary = boundary.length();
+00407 
+00408         //calculate the begin and end of the part to extract
+00409         int beginPart = strBody.findRev( boundary.ascii(), posInside ) + lengthBoundary + 1;
+00410         int lengthPart = strBody.findRev( '\n', strBody.find( boundary.ascii(), posInside ) ) - beginPart;
+00411 
+00412         strBody = strBody.mid( beginPart, lengthPart );
+00413 
+00414         //looking for a further boundary attribute
+00415         //get the position of the first occurance of "boundary="
+00416         int posBoundary = strBody.find( "boundary=", 0, false );
+00417 
+00418         if( posBoundary >= 0 )
+00419         {
+00420           //calculate positon of the first quote
+00421           int posFirstQuote = posBoundary + 9;
+00422 
+00423           //get the position of closing quote
+00424           int posSecondQuote = strBody.find( '"', posFirstQuote + 1 );
+00425 
+00426           //get boundary string
+00427           boundary.append( strBody.mid( posFirstQuote + 1, posSecondQuote - posFirstQuote - 1 ) );
+00428         }
+00429         else
+00430           boundary = "";
+00431       }
+00432 
+00433       //now we get charset and transfer encoding if available in the extracted
+00434       //part
+00435 
+00436       //get the position of the first occurance of "charset="
+00437       int posCharset = strBody.find( "charset=", 0, false );
+00438 
+00439       //continue, if a charset attribute was found
+00440       if( posCharset >= 0 )
+00441       {
+00442         //calculate positon of the value
+00443         int posBeginValue = posCharset + 8;
+00444 
+00445         //get end of the value
+00446         int posEndValue = strBody.find( '\n', posBeginValue ) - 1;
+00447 
+00448         //get charset
+00449         charset.append( strBody.mid( posBeginValue, posEndValue - posBeginValue + 1 ) );
+00450 
+00451         //remove quotes
+00452         charset.remove( '"' );
+00453         //remove all content after the first semicolon (inclusive)
+00454         int posSemicolon = charset.find( ';' );
+00455         charset = charset.left( posSemicolon );
+00456       }
+00457 
+00458       //get the position of the first occurance of "charset="
+00459       int posEncoding = strBody.find( "Content-Transfer-Encoding:", 0, false );
+00460 
+00461       //continue, if a charset attribute was found
+00462       if( posEncoding >= 0 )
+00463       {
+00464         //calculate positon of the value
+00465         int posBeginValue = posEncoding + 26;
+00466 
+00467         //get end of the value
+00468         int posEndValue = strBody.find( '\n', posBeginValue ) - 1;
+00469 
+00470         //get charset
+00471         encoding.append( strBody.mid( posBeginValue, posEndValue - posBeginValue + 1 ) );
+00472 
+00473         //remove quotes and spaces
+00474         encoding = encoding.stripWhiteSpace();
+00475         encoding.remove( '"' );
+00476       }
+00477 
+00478       //cut off the part header; the found blank line is separating the
+00479       //part header from the message
+00480       if( posCharset != -1 || posEncoding != -1 )
+00481       {
+00482         int posBlankLine = strBody.find( "\n\n" );
+00483         strBody = strBody.mid( posBlankLine + 2 );
+00484         while( strBody[ 0 ] == '\n')
+00485           strBody.remove( 0, 1 );
+00486       }
+00487     }
+00488   }
+00489 
+00490   //Good things come to those who wait. We have extract the message.
+00491   //Now we have to decode the message, if it is encoded
+00492   if( encoding == "quoted-printable" )
+00493   {
+00494     strBody = KCodecs::quotedPrintableDecode( strBody );
+00495   }
+00496 
+00497   return QString( strBody );
+00498 }
+00499 
+00500 QString ShowRecordElem::getBoundary( ) const
+00501 {
+00502   QString boundary;
+00503 
+00504   //check, whether it is a multipart message
+00505   if( m_content.contains( "multipart", false ) )
+00506   {
+00507     //it is a multipart message
+00508 
+00509     //get the position of the first occurance of "boundary="
+00510     int posBoundary = m_header.find( "boundary=", 0, false );
+00511 
+00512     //continue, if a boundary attribute was found
+00513     if( posBoundary >= 0 )
+00514     {
+00515       //calculate positon of the first quote
+00516       int posFirstQuote = posBoundary + 9;
+00517 
+00518       //get the position of closing quote
+00519       int posSecondQuote = m_header.find( '"', posFirstQuote + 1 );
+00520 
+00521       //get boundary string
+00522       boundary.append( m_header.mid( posFirstQuote + 1, posSecondQuote - posFirstQuote - 1 ) );
+00523     }
+00524   }
+00525 
+00526   return boundary;
+00527 }
+00528 
+00529 QString ShowRecordElem::getCharset( ) const
+00530 {
+00531   QString charset;
+00532 
+00533   //get the position of the first occurance of "charset="
+00534   int posCharset = m_header.find( "charset=", 0, false );
+00535 
+00536   //continue, if a charset attribute was found
+00537   if( posCharset >= 0 )
+00538   {
+00539     //calculate positon of the value
+00540     int posBeginValue = posCharset + 8;
+00541 
+00542     //get end of the value
+00543     int posEndValue = m_header.find( '\r', posBeginValue ) - 1;
+00544 
+00545     //get charset
+00546     charset.append( m_header.mid( posBeginValue, posEndValue - posBeginValue + 1 ) );
+00547 
+00548     //remove quotes
+00549     charset.remove( '"' );
+00550     //remove all content after the first semicolon (inclusive)
+00551     int posSemicolon = charset.find( ';' );
+00552     charset = charset.left( posSemicolon );
+00553   }
+00554 
+00555   return QString( charset );
+00556 }
+00557 
+00558 QString ShowRecordElem::getTransferEncoding( ) const
+00559 {
+00560   QString encoding;
+00561 
+00562   //get the position of the first occurance of "charset="
+00563   int posEncoding = m_header.find( "Content-Transfer-Encoding:", 0, false );
+00564 
+00565   //continue, if a charset attribute was found
+00566   if( posEncoding >= 0 )
+00567   {
+00568     //calculate positon of the value
+00569     int posBeginValue = posEncoding + 26;
+00570 
+00571     //get end of the value
+00572     int posEndValue = m_header.find( '\r', posBeginValue ) - 1;
+00573 
+00574     //get charset
+00575     encoding.append( m_header.mid( posBeginValue, posEndValue - posBeginValue + 1 ) );
+00576 
+00577     //remove quotes and spaces
+00578     encoding = encoding.stripWhiteSpace();
+00579     encoding.remove( '"' );
+00580   }
+00581 
+00582   return QString( encoding );
+00583 
+00584 }
+00585 
+00586 int ShowRecordElem::showHeader( QString& account )
+00587 {
+00588   //show header
+00589   QString tsubject = subject();
+00590   QString tmailheader = header();
+00591 
+00592   //create and open the window
+00593   ShowHeaderDialog dlg( kapp->mainWidget(), account, tsubject, tmailheader );
+00594   int ret = dlg.exec();
+00595 
+00596   //returns the matching value
+00597   return ret == QDialog::Accepted ? ShowRecordElem::continueShowHeaders : ShowRecordElem::cancelShowHeaders;
+00598 }
+00599 
+00600 
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/showrecordelem_8h-source.html b/doc/html/showrecordelem_8h-source.html new file mode 100644 index 0000000..fdce890 --- /dev/null +++ b/doc/html/showrecordelem_8h-source.html @@ -0,0 +1,202 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/showrecordelem.h Source File + + + + +
+
+
+
+ +

showrecordelem.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           showrecord.h  -  description
+00003                              -------------------
+00004     begin                : Thu Dec 28 2000
+00005     copyright            : (C) 2000-2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef SHOWRECORDELEM_H
+00019 #define SHOWRECORDELEM_H
+00020 
+00021 //Qt headers
+00022 #include <qdom.h>
+00023 #include <qstring.h>
+00024 #include <qlistview.h>
+00025 #include <qdatetime.h>
+00026 
+00027 //KDE headers
+00028 #include <klocale.h>
+00029 #include <kglobal.h>
+00030 #include <kdebug.h>
+00031 #include <mimelib/datetime.h>
+00032 #include <kmdcodec.h>
+00033 
+00034 //KShowmail headers
+00035 #include "showlistviewitem.h"
+00036 #include "decodeRFC2047.h"
+00037 #include "constants.h"
+00038 #include "kshowmailview.h"
+00039 #include "showheaderdialog.h"
+00040 #include "headerfilter.h"
+00041 #include "filterlog.h"
+00042 
+00043 using namespace Constants;
+00044 
+00045 //forward class declarations
+00046 class KshowmailView;
+00047 class FilterElem;
+00048 
+00061 class ShowRecordElem
+00062 {
+00063 
+00064   public:
+00065 
+00070     static const int continueShowHeaders;
+00071 
+00076     static const int cancelShowHeaders;
+00077 
+00081         ShowRecordElem ();
+00082 
+00089     ShowRecordElem( int number, QString& uid, bool isNew );
+00090 
+00096     void setHeader( const QString& header );
+00097 
+00102     QString header() const;
+00103 
+00108     QString from() const;
+00109 
+00114     QString to() const;
+00115 
+00120     QString subject() const;
+00121 
+00126     QString content() const;
+00127 
+00128 
+00134     QString date() const;
+00135 
+00142     QString strUnixTime () const;
+00143 
+00148     QDateTime sentDateTime() const;
+00149 
+00154     void setUIDL( const QString& uid );
+00155 
+00160     QString uidl() const;
+00161 
+00166     void setSize( int size );
+00167 
+00172     int size() const;
+00173 
+00178     QString strSize () const;
+00179 
+00183     QString strSizePrefix() const;
+00184 
+00189     void setNew( bool isnew );
+00190 
+00196     bool isNew() const;
+00197 
+00203     QString state() const;
+00204 
+00209     void setNumber( int n );
+00210 
+00215     int number() const;
+00216 
+00223     void setViewItem( ShowListViewItem* item );
+00224 
+00231     ShowListViewItem* viewItem() const;
+00232 
+00246     FilterAction_Type applyHeaderFilter( HeaderFilter* filter, QString account, QString& mailbox, FilterLog* log = NULL );
+00247 
+00255     void readOptions( QDomElement& elem );
+00256 
+00263     void saveOptions( QDomDocument& doc, QDomElement& parent );
+00264 
+00270     bool isSelected() const;
+00271 
+00283     QString decodeMailBody( QByteArray body, bool preferHTML ) const;
+00284 
+00291     int showHeader( QString& account );
+00292 
+00299     void writeToMoveLog( FilterLog* log, QString account, QString mailbox );
+00300 
+00306     void writeToDeleteLog( FilterLog* log, QString account );
+00307 
+00311     void setMarkAtNextViewRefresh();
+00312 
+00313   private:
+00314 
+00318     QCString m_header;
+00319 
+00323     QCString m_from;
+00324 
+00328     QCString m_to;
+00329 
+00333     QCString m_subject;
+00334 
+00338     QDateTime m_unixDate;
+00339 
+00343     QCString m_content;
+00344 
+00348     QString m_uid;
+00349 
+00353     int m_size;
+00354 
+00358     bool m_new;
+00359 
+00363     int m_nNumber;
+00364 
+00371     bool markAtViewRefresh;
+00372 
+00378     ShowListViewItem* m_pItem;
+00379 
+00386     FilterElem* m_pFilter;
+00387 
+00399     QCString scanHeader( const QString& item ) const;
+00400 
+00405     void setFrom( const QCString& from );
+00406 
+00411     void setTo( const QCString& to );
+00412 
+00417     void setSubject( const QCString& subject );
+00418 
+00423     void setDate( const QCString& date );
+00424 
+00429     void setContent( const QCString& content );
+00430 
+00436     void setFilter( FilterElem* filter );
+00437 
+00443     QString getBoundary() const;
+00444 
+00450     QString getCharset() const;
+00451 
+00458     QString getTransferEncoding() const;
+00459 
+00460 };
+00461 
+00462 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/tab_b.gif b/doc/html/tab_b.gif new file mode 100644 index 0000000..0d62348 Binary files /dev/null and b/doc/html/tab_b.gif differ diff --git a/doc/html/tab_l.gif b/doc/html/tab_l.gif new file mode 100644 index 0000000..9b1e633 Binary files /dev/null and b/doc/html/tab_l.gif differ diff --git a/doc/html/tab_r.gif b/doc/html/tab_r.gif new file mode 100644 index 0000000..ce9dd9f Binary files /dev/null and b/doc/html/tab_r.gif differ diff --git a/doc/html/tabs.css b/doc/html/tabs.css new file mode 100644 index 0000000..a61552a --- /dev/null +++ b/doc/html/tabs.css @@ -0,0 +1,102 @@ +/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ + +DIV.tabs +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs LI, DIV.tabs FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs FORM +{ + float : right; +} + +DIV.tabs A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : x-small; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs A:link, DIV.tabs A:visited, +DIV.tabs A:active, DIV.tabs A:hover +{ + color: #1A419D; +} + +DIV.tabs SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs TD +{ + font-size : x-small; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs LI#current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs LI#current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} + +DIV.nav +{ + background : none; + border : none; + border-bottom : 1px solid #84B0C7; +} diff --git a/doc/html/types_8h-source.html b/doc/html/types_8h-source.html new file mode 100644 index 0000000..1577e33 --- /dev/null +++ b/doc/html/types_8h-source.html @@ -0,0 +1,105 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/types.h Source File + + + + +
+
+
+
+ +

types.h

Go to the documentation of this file.
00001 //
+00002 // C++ Interface: types
+00003 //
+00004 // Description:
+00005 // All specail types for KShowMail
+00006 //
+00007 //
+00008 // Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2007
+00009 //
+00010 // Copyright: See COPYING file that comes with this distribution
+00011 //
+00012 //
+00013 
+00014 #ifndef TYPES_H
+00015 #define TYPES_H
+00016 
+00017 //Qt headers
+00018 #include <qvaluelist.h>
+00019 #include <qmap.h>
+00020 #include <qstring.h>
+00021 
+00022 using namespace std;
+00023 
+00027 namespace Types
+00028 {
+00032      enum State_Type {idle,                  
+00034                       deleting,              
+00036                       configure,             
+00040                       executing,             
+00042                       showing,               
+00044                       refreshing             
+00045      };
+00046 
+00050      enum AccountState_Type
+00051      {
+00052        AccountIdle,         
+00054        AccountDeleting,     
+00056        AccountDownloading,  
+00058        AccountRefreshing    
+00059      };
+00060 
+00064      typedef QValueList<int> MailNumberList_Type;
+00065 
+00071      typedef QMap<QString, bool> AccountTaskMap_Type;
+00072 
+00076      enum FilterAction_Type
+00077      {
+00078        FActPass,           
+00079        FActDelete,         
+00080        FActMark,           
+00081        FActMove,           
+00082        FActSpamcheck,      
+00083        FActIgnore,         
+00084        FActNone            
+00085      };
+00086 
+00091      struct DownloadActionParams_Type
+00092      {
+00093        FilterAction_Type action;  
+00094        QString mailbox;            
+00095      };
+00096 
+00101      typedef QMap<int, DownloadActionParams_Type> MailToDownloadMap_Type;
+00102 
+00106      struct FilterCriteria_Type
+00107      {
+00108        int source;       
+00109        int condition;    
+00110        uint numValue;    
+00111        QString txtValue; 
+00112        bool cs;          
+00113      };
+00114 
+00118     typedef list<FilterCriteria_Type> FilterCriteriaList_Type;
+00119 
+00120 }
+00121 
+00122 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/html/uniqueapp_8cpp-source.html b/doc/html/uniqueapp_8cpp-source.html new file mode 100644 index 0000000..841c2e5 --- /dev/null +++ b/doc/html/uniqueapp_8cpp-source.html @@ -0,0 +1,99 @@ + + +kshowmail: kshowmail/uniqueapp.cpp Source File + + + + +
+
+ +

uniqueapp.cpp

00001 /***************************************************************************
+00002                           uniqueapp.cpp  -  description
+00003                              -------------------
+00004     begin                : Mon Nov 19 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include "uniqueapp.h"
+00019 #include <iostream>
+00020 
+00021 
+00022 UniqueApp::UniqueApp()
+00023 {
+00024        m_pApp = NULL;
+00025 }
+00026 
+00027 UniqueApp::~UniqueApp()
+00028 {}
+00029 
+00030 int UniqueApp::newInstance ()
+00031 {
+00032   //start our application
+00033   //---------------------
+00034 
+00035   //at the first invoke of newInstance() create a new instance of kshowmail
+00036   if (m_pApp == NULL)
+00037   {
+00038     m_pApp = new KShowMailApp ();
+00039   }
+00040 
+00041   //frage das ConfigList-Objekt, ob die KShowMail beim Starten
+00042   //normal oder nur in der Taskleiste gezeigt werden soll
+00043   if( m_pApp->m_ConfigList.startMinimized() )
+00044   {
+00045     //lege die App auf die Taskleiste
+00046     m_pApp->showMinimized ();
+00047     m_pApp->hide();
+00048   }
+00049   else
+00050   {
+00051     //zeige das Hauptfenster
+00052     m_pApp->showNormal ();
+00053     m_pApp->raise();
+00054   }
+00055 
+00056   //Kommandozeile-Argumente auswerten
+00057   //---------------------------------
+00058 
+00059   //die in main() eingelesenen Kommandozeile-Argumente in ein
+00060   //KCmdLineArgs-Objekt ablegen
+00061   KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+00062 
+00063   //wenn als Kommandozeilen-Argument "config" übergeben wurde,
+00064   //starte jetzt den Konfigurationsdialog
+00065   if ( args->isSet( CMDLINE_CONFIG ) )
+00066     m_pApp->slotSetup();
+00067 
+00068   //wenn als Kommandozeile-Argument "refresh" übergeben wurde,
+00069   //schaue sofort nach neue Mails
+00070   if ( args->isSet ( CMDLINE_REFRESH ) )
+00071     m_pApp->slotRefresh();
+00072 
+00073   //lösche alle Kommandozeilen-Argumente im Objekt
+00074   args->clear ();
+00075 
+00076   return 0;
+00077 }
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + diff --git a/doc/html/uniqueapp_8h-source.html b/doc/html/uniqueapp_8h-source.html new file mode 100644 index 0000000..5a26d9b --- /dev/null +++ b/doc/html/uniqueapp_8h-source.html @@ -0,0 +1,75 @@ + + +kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/uniqueapp.h Source File + + + + +
+
+
+
+ +

uniqueapp.h

Go to the documentation of this file.
00001 /***************************************************************************
+00002                           uniqueapp.h  -  description
+00003                              -------------------
+00004     begin                : Mon Nov 19 2001
+00005     copyright            : (C) 2001 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef UNIQUEAPP_H
+00019 #define UNIQUEAPP_H
+00020 
+00021 //KDE-Header
+00022 #include <kwin.h>
+00023 #include <kcmdlineargs.h>
+00024 #include <kuniqueapplication.h>
+00025 
+00026 //KShowMail-Header
+00027 #include "kshowmail.h"
+00028 #include "constants.h"
+00029 
+00030 using namespace Constants;
+00031 
+00037 class UniqueApp : public KUniqueApplication  {
+00038 
+00039 public: 
+00040   
+00044   UniqueApp();
+00045   
+00049   ~UniqueApp();
+00050   
+00054   virtual int newInstance ();
+00055   
+00056   
+00057 private:
+00058   
+00062   KShowMailApp* m_pApp;
+00063 };
+00064 
+00065 #endif
+

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  + +doxygen 1.5.0
+ + diff --git a/doc/hu/Makefile.am b/doc/hu/Makefile.am new file mode 100644 index 0000000..857fbfb --- /dev/null +++ b/doc/hu/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = hu +KDE_DOCS = kshowmail + diff --git a/doc/hu/index.docbook b/doc/hu/index.docbook new file mode 100644 index 0000000..7bca91e --- /dev/null +++ b/doc/hu/index.docbook @@ -0,0 +1,481 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +A Kshowmail Kézikönyv + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +2004 +Eggert Ehmke + + + +&FDLNotice; + + + +09/10/2003 +3.0.6 + + + + + +Ez a kézikönyv a Kshowmail 3.0.6 verzióját írja le + + + + + + +KDE +kshowmail +kmail +pop3 +üzenet ellenôrzô + + +
+ + + + +Bevezetés + + + + +Kshowmail egy KDE eszköz amely a POP3 szerverre beérkezô üzeneteket figyeli. +Az üzenetek fejléce és az üzenet teljes tartalma megtekinthetô anélkül, hogy letöltenénk +ôket a helyi levelezôrendszerbe. +A nemkívánatos üzenetek törölhetôk a szerverrôl. +Az üzenetek listája idôkapcsolók beállítával frissíthetô. +Szûrôk hozhatók létre az ismert reklámüzenetek és egyéb más nemkívánatos üzenetek kijelölésére. +A szûrôk által kijelölt üzenetek automatikusan törölhetôk. +Új üzenetek érkezésekor hangjelzés játszható. +Felhasználói parancsok, mint például fetchmail vagy sendmail konfigurálható a parancs menü segítségével. +Speciális parancs definiálható reklamáló levelek küldésére nemkívánatos reklámüzenetekre válaszul. +A program támogatja több póstaláda egyidejû figyelését. + + + + +A Kshowmail használata + + + + +A Kshowmail asználata általánosságbanban + +Adj meg néhány póstaláda bejelentkezést az "Beállítások" dialógus segítségével. Kapcsolódj rá az internetre. +Az "Üzenetek frissítése" gomb megnyomásával listázhatod a POP3 póstaládákban található üzeneteket. +Minden más menüpont és menü elem magétól értetôdô. + +Jó szórakozást ! + + + + Gyorsbillentyûk + + A program a következô gyorsbillentyûket használja: + + F2 + + A kiválasztott üzenet fejlécének megjelenítése + + + + F3 + + A kiválasztott üzenet teljes tartalmának megjelenítése + + + + F5 + + Üzenetek frissítése + + + + Shift-F5 + + Az üsszes üzenet frissítése + + + + F10 + + Póstaláda bejelentkezések beállítása + + + + Del + + A kijelölt üzenetek törlése a szerverrôl + + + + Ctrl-C + + Üzenetlista tisztítása. + (Az üzenete nem keülnek törlésre a szerverrôl) + + + + + + + Szûrôk + + A reklámüzenetek és egyéb nemkívánatos üzenetek kiválasztására szûrôket használhatunk. + Tetszôleges számú szûrô definiálására van lehetôség a programban. + A szûrôk az üzenetlista frissítésekor kerülnek alkalmazásra minden bejövô üzeneten. + + + A "Szûrôk beállítása" párbeszédablakban kiválaszthatsz egy szûrôállapotot. + "Ki"-kapcsolt jelöli, ha minden szûrô ki van kapcsolva. + "Be"-kapcsolt jelöli, ha minden szûrô be van kapcsolva. + A kiszûrt levelek kiválaszthatók az üzenetlistáról és kézzel törölhetôk. + "Automatikus törlés" állapotban az összes kiszûrt üzenet azonnal törlésre kerül. + Nagyon óvatosan bánjunk ezzel az állapottal! + Ajánlatos az új szûrôket egy ideig a "be"-kapcsolt állapotban tesztelni. + Az automatikusan törlésre került üzeneteket a ~/.kde/share/apps/kshowmail/kshowmail.log állományban kísérhetjük figyelemmel. + + + + A szûrôk egy vagy két egyeztetési mintát tartalmaznak, amelyek összekapcsolhatók. + Különösen hatékony minták definiálhatók szabványos kifejezések segítségével. + Ebben a programban a Qt-könyvtár szabványos kifejezéseit használjuk; + részletes leírást a KRegExpEditor dokumentációjában vagy az interneten + elérhetô, szabványos kifejezésekrôl szóló dokumentumokban találhatsz. + + Mi az, hogy Szabványos Kifejezés? + + + + + Példák Szabványos Kifejezésekre + + MS Corporation|Microsoft: Egyezik "MS Corporation"-nal vagy "Microsoft"-tal. + + + (mail|message) delivery: Egyezik "mail delivery"-vel vagy "message delivery"-vel. + + + ms (program )?security: Egyezik "ms security"-val vagy "ms program security"-val. + + + [\x0100-\xffff]: Egeyzik minden karakterrel az ami az ASCII karakterkészleten kívül esik. (Kínai és Koreai karakterek) + + + Ezek a minták tetszôlegesen kombinálhatók. + + + + + +Parancsértelmezô paraméterek + +A lekérdezendô póstaláda megadható a program indításakor mint paraméter. +Amennyiben a -config kapcsóló szerepel a paraméterként, a "Beállítások" párbeszédablak azonnal megnyílik a programindítás után. +Ez akkor lehet hasznos, ha a "Lépj ki a programból, ha nincs új üzenet" módot állítottuk be elôzôleg. +A -refresh kapcsoló megadása esetén a program indítása után azonnal elindul a frissítési eljárás. + + + +Külsô programok + +Ha külsô programot - mint például a fetchmail - akarunk indítani, adjunk egy bejegyzést a parancs menühöz. +A így megadott parancsok nevei a "Tevékenységek" menüpontban jelennek meg. Amennyiben a parancs neve tartalmazza a '&' karaktert, +az azt követô betû használható a parancshoz mint gyorsbillentyû. + +A következô hivatkozások használhatók a parancs megadásokor. Ezek a futtatás során az aktuális értékekre fognak cserálôdni: + <user> A felhasználó neve + <passwd> Jelszó + <server> Szerver + <header> Az üzenetfejléc egy átmeneti állományban kerül tárolásra. Ennek az állománynak a neve kerül ide behelyettesítésre. + <body> Az üzenet tartalma egy átmeneti állományban kerül tárolásra. Ennek az állománynak a neve kerül ide behelyettesítésre. + + + Reklamálólevél küldése + +A reklamálólevél küldése egy nagyon speciális parancs. +Hogy a maximális rugalmasságot biztosítsuk, szintén külsô parancsként került megvalósításra. +Javasolnám hogy Daniel Stenberg spam.pl nevû perl programjának 0.20 vagy késôbbi verzióját használjuk. +Innen tölthetô le: http://spam.sourceforge.net. +Összekapcsolása a Kshowmail-lel a következô módon történik: + +1. Installáljuk a spam.pl-t egy megfelelô könyvtárban, pl. a /usr/local/bin-ben. +Hozzunklétre két állományt a ~/.spam/friends -t és a ~/.spam/from -t. +Részleteket a spam.pl dokumentációjában találhatsz. +Hozzunk létre egy bejegyzést a kshowmail "parancs" menüjében. +A bejegyzés nevének "complain"-nek kell lennie, egyébként nem fogja megfelelôen felismerni a parancsot! +Adjuk meg a következô szöveget, mint parancssort: + spam.pl -d < <body> + Ez elküldi az üzenet tartalmát a spam.pl programnak. + +A nyomkövetés -d kapcsoló késôbb kitörölhetô, ha a dolgok jól mûködnek. +A reklamálólevelek ténylegesen csak ezután kerülnek elküldésre. + +Szükség szerint egyéb kapcsolók is használhatók. +Körültekintôen válsszuk meg a bejegyzéseket ~/.spam/friends állományban. +Legalább a helyi domain-nek szerepelnie kell benne. + +Ennek a lehetôségnek a használata a saját felelôsséged! +A "Reklamáció küldése" gomb megnyomásakor minden kijelölt üzenetre válaszul +egy reklamáló levél készül és kerül azonnal elküldésre. +A reklamálólevél címzettjét a spam.pl program határozza meg. +Ameddig a -d kapcsoló aktív, csak egy üzenet jelenik meg ami leírja, hogy mi történne a valójában ebben az esetben. +A szolgáltatás bekapcsolásához töröljük a nyomkövetés kapcsolót. + Más reklámlevél azonosító program beállítása is hasonlóan történik. +Üzenjetek, ha valami gond van! + + + + +Kérdések és Válaszok + + + +&reporting.bugs; +&updating.documentation; + + + + +Fejlesztés alatt. + + +Fejlesztés alatt. + + + + + + + + + +Szerzôk és Licnec + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +További szerzôtársak: + + + +Nicolas Vignal nicolas.vignal@fnac.net Aki RedHat RPM-eket és a +Francia fordítást adta. + + + + +Edgardo Garcia edyx@mindless.com aki a spanyol fordítást adta + + + + +Mattias Newzella newzella@swipnet.se aki a svéd fordítást adta + + + + +Sok felhasználó segített a program tesztelésében +és adott rengeteg ötletet, amelyek most már a kshowmail részei. + +Köszönet Mindannyiuknak! + + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Telepítés + + +Honnan szerezhetjük meg a Kshowmail-t? + + +The actual version is to be found on + +http://sourceforge.net/projects/kshowmail +or on +http://freshmeat.net + + + + + +Futtatási feltételek + + + + + A fejlesztés és tesztelés SuSE 8.2 disztribúció alatt történik. + A kshowmail használatához KDE 3.1.x and Qt 3.1.x.-re van szükséged. + + + + +A változások listáját itt találhatod meg: + +http://sourceforge.net/projects/kshowmail + + + + +Fordítás és telepítés + + + A kshowmak fordításához és telepítéséhez gépeld be a következô parancsokat a kshowmail alapkönyvtárában: + + % ./configure + vagy akár: + % ./configure --prefix=$KDEDIR + + % make + + root-ként: + % make install + + Hasznos lehet a KDEDIR körneyzeti változó beállítása, mielôtt nekikezdenénk ezeknek a lépéseknek. + + + + Mivel Kshowmail az autoconf-ot és az automake-t használja, nem valószínû hogy gond lesz a fordítással. + Amennyiben mégis elôfordulna, kérlek írjatok. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am new file mode 100644 index 0000000..6e84e23 --- /dev/null +++ b/doc/it/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = it +KDE_DOCS = kshowmail + diff --git a/doc/it/index.docbook b/doc/it/index.docbook new file mode 100644 index 0000000..a4145b4 --- /dev/null +++ b/doc/it/index.docbook @@ -0,0 +1,523 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +Il Manuale di KShowmail + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +2004 +Eggert Ehmke + + + +&FDLNotice; + + + +31/01/2004 +3.1.1 + + + + + + Questo manuale descrive l'utilizzo di KShowmail 3.1.1 + + + + + + +KDE +kshowmail +kmail +pop3 +mail checker + + +
+ + + + +Introduzione + + + + + KShowmail è uno strumento di KDE per monitorare le email su un server POP3. + Possono essere visualizzate sia solo le intestazioni che le email complete senza il bisogno + di scaricarle con il programma di posta. + Le email indesiderate possono essere cancellate direttamente dal server. + La lista delle email visualizzate può essere aggiornata automaticamente + attraverso dei timer configurabili. + I filtri possono essere impostati per segnalare spam e messaggi indesiderati. + I messaggi segnalati dai filtri possono essere eliminati dal server automaticamente . + Puòessere eseguito un suono all'arrivo di nuovi messaggi. + Un menu dei comandi permette di eseguire comandi definiti dall'utente come ad esempio + i comandi dcop per lanciare kmail. + Può essere definito un comando speciale per inviare un email di lamentele contro lo spam. + Sono supportati account multipli. + + + + +Utilizzo di Kshowmail + + + + +Utilizzo generale + + Aggiungi alcuni account nel dialogo di configurazione "Opzioni". Connettiti ad internet. + Ora puoi visualizzare la lista dei messaggi presenti sui server pop2 cliccando sul bottone "Aggiorna". + Tutti gli altri bottoni ed elementi dei menu dovrebbero essere autoesplicativi. + Divertiti! + + + + Scorciatoie da tastiera + + Sono predefinite queste scorciatoie da tastiera: + + F2 + + Visualizza le intestazioni dei messaggi selezionati + + + + F3 + + Visualizza completamente i messaggi selezionati + + + + F5 + + Aggiorna la lista dei messaggi presenti sul server + + + + Shift-F5 + + Forza l'aggiornamento + + + + F10 + + Configura gli account + + + + Del + + Elimina dal server la posta selezionata + + + + Ctrl-C + + Cancella la lista dei messaggi. + (Non verrà cancellato alcun messaggio.) + + + + + + + Filtri + + I filtri possono essere usati per selezionare lo spam conosciuto e altri messaggi indesiderati. + Puoi definire quanti filtri ti pare. + Tali filtri verranno applicati a tutte le email ogni volta che aggiornerai la lista dei messaggi. + + + Nel Dialogo "Filtri" puoi selezionarne lo stato. + Nello stato "Non attivi" tutti i filtri sono disattivati. + Nello stato "Attivi" tutti i filtri sono in funzione. + I messaggi filtrati sono selezionati nella lista dei messaggi e possono essere eliminati manualmente. + Nello stato "Elimina Automaticamente" tutti i messaggi filtrati sono eliminati immediatamente. + Sii prudente quando selezioni questo stato! + Potrebbe essere utile testare prima i nuovi filtri alcune volte nello stato "Attivi". + Nel file ~/.kde/share/apps/kshowmail/kshowmail.log puoi controllare i messaggi che sono stati eliminati automaticamente. + + + + Ogni filtro contiene una o due condizioni che possono essere collegate insieme. + Usando le espressioni regolari è possibile creare delle condizioni estremamente potenti. + In questo programma vengono utilizzate le espressioni regolari delle librerie Qt, + per informazioni dettagliate si può guardare la documentazione della classe KRegExpEditor, + o uno dei numerosi testi presenti su internet riguardanti le espressioni regolari. + + Che cos'è un'espressione regolare? + + + + + Esempi di Espressioni Regolari: + + MS Corporation|Microsoft: sia "MS Corporation" che "Microsoft" saranno riconosciute. + + + (mail|message) delivery: sia "mail delivery" che "message delivery" saranno riconosciute. + + + ms (program )?security: sia "ms security" che "ms program security" saranno riconosciute. + + + [\x0100-\xffff]: tutti i caratteri al di fuori del set di caratteri ASCII saranno riconosciuti (caratteri cinesi e koreani). + + + Questi esempi possono essere combinati a piacere. + + + + + +Parametri da linea di comando + + Puoi fornire attraverso la linea di comando l'account da selezionare. + Se è settata l'opzione -config sulla linea di comando, il dialogo di configurazione partirà immediatamente all'avvio del programma. + Questo può essere utile se è attivata la funzione "Termina in caso di nessun nuovo messaggio". + L'opzione -refresh può essere utilizzata per avviare l'aggiornamento immediatamente all'avvio del programma. + + + + +Programmi esterni + +Per avviare programmi esterni tipo kmail, aggiungi un elemento al menu dei comandi. +I nomi dei comandi sono presenti nel menu Azioni. Se contengono il carattere '&', la lettera seguente +sarà utilizzata come scorciatoia da tastiera. + +I seguenti parametri sono segnaposto e saranno sostituiti dai valori reali: + <user> Nome utente + <passwd> Password + <server> Server + <header> L'intestazione del messaggio sarà copiata in un file temporaneo, qui verrà sostituito il nome del file. + <body> Il corpo del messaggio sarà copiato in un file temporanea, qui verrà sostituito il nome del file. + + Un utilizzo veramente interessante è rappresentato dal comando dcop che premette di richiamare + le funzioni selezionate di altri programmi KDE. + È possibile creare un comando che richiama KMail e scarica i messaggi dal server: + + + dcop kmail KMailIface checkMail + + + Il programma di KDE kdcop è utile per provare le funzioni di altri programmi KDE. + + + +Mandare messaggi di lamentele + + Il comando per invare messaggi di lamentele, è, un comando speciale. + Per mantenere una certa flessibilità, è stato implementato anch'esso come comando esterno. + Suggerisco di usare il programma perl "spam.pl" versione 0.20 o successive di Danel Stenberg. + Può essere scaricato all'indirizzo http://spam.sourceforge.net. + Per farlo partire seguite questi passi: + + + 1. Installate spam.pl in una directory opportuna, diciamo /usr/local/bin. + + + 2. Create i files ~/.spam/friends e ~/.spam/from. + Sono disponibili maggiori dettagli nella documentazione di spam.pl. + + + 3. Create un elemento nel menu dei comandi di kshowmail. + Il nome dell'elemento deve essere "complain" ! + Altrimenti il comando non verrà riconosciuto correttamente. + Inserite questo testo come linea di comando: + + + + spam.pl -d < <body> + + + Ciò provoca che il corpo del messaggio venga rediretto a spam.pl. + + + L'opzione di debug -d dovrebbe essere rimossa successivamente, se sei soddisfatto dei risultati. + Solo dopo verranno effettivamente inviati i messaggi di protesta. + Aggiungi altre opzioni a piacimento. + + + Scegli attentamente gli elementi giusti nel file ~/.spam/friends. + Come minimo dovrebbe essere inserito almeno il dominio locale. + Usate questa funzione a vostro rischio e pericolo ! + + + + Quando clicchi il tasto "Invia email di lamentele", per ogni messaggio + selezionato verranno generati ed inviati immediatamente uno o più messaggi. + Il destinatario di questi messaggi è determinato automaticamente da spam.pl. + Quando l'opzione -d è attivata, verrà visualizzato solo un messaggio di quello che succederebbe. + Per attivare la funzione, rimuovere il flag di debug. + + + Se preferisci un altro programma anti spam, prova a configurarlo in una maniera simile. + Contattami se c'è qualche problema. + + + + + + +Domande e risposte + + + +&reporting.bugs; +&updating.documentation; + + + + +Da aggiungere + + +Da aggiungere. + + + + + + + + + +Riconoscimenti e Licenza + + +&kapp; + + +Copyright del programma 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Hanno contribuito: + + + +Nicolas Vignal nicolas.vignal@fnac.net che ha fornito l'RPM per RedHat +e la traduzione in francese. + + + + +Edgardo Garcia edyx@mindless.com che ha fornito la traduzione in spagnolo. + + + + +Mattias Newzella newzella@swipnet.se che ha fornito la traduzione in svedese. + + + + +Sandor Laza slaza@xs4all.nl who provided the hungarian translation + + + + +Gabriele Postorino g.posto@tin.it who provided the italian translation + + + + +Molti utenti hanno portato avanti molti test e proposto nuove idee +che ora sono parte di kshowmail. +Voglio dire "Grazie" a tutti voi ! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installazione + + +Come ottenere KShowmail + + +L'ultima versione può essere scaricata da: + +http://sourceforge.net/projects/kshowmail +o da +http://freshmeat.net + + + + + +Requisiti + + + + + Sviluppato e testato su SuSE 8.2. + Per usare con successo KShowmail hai bisono di KDE 3.1.x e di Qt 3.1.x + + + + +Puoi trovare la lista dei cambiamenti qui: + +http://sourceforge.net/projects/kshowmail + + + + +Compilazione ed installazione + + +Per compilare ed installare KShwomail sul tuo sistema, digita i seguenti comandi nella cartella +dei sorgenti di KShowmail: + + % ./configure + oppure: + % ./configure --prefix=$KDEDIR + + % make + + come root: + % make install + + Potrebbe essere utile settare la variabile d'ambiende KDEDIR prima di questi passi. + + + + + Dato che KShowmail utilizza autoconf e automake, non dovresti avere problemi nel compilarlo. + Se incappi in qualche problema, per favore fammelo sapere. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/ru/Makefile.am b/doc/ru/Makefile.am new file mode 100644 index 0000000..c8b53ac --- /dev/null +++ b/doc/ru/Makefile.am @@ -0,0 +1,10 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = ru +KDE_DOCS = kshowmail + diff --git a/doc/ru/index.docbook b/doc/ru/index.docbook new file mode 100644 index 0000000..ae32c1f --- /dev/null +++ b/doc/ru/index.docbook @@ -0,0 +1,517 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +Руководство по Kshowmail + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +2004 +2005 +Eggert Ehmke + + + +&FDLNotice; + + + +01/02/2004 +3.1.1 + + + + + +Это руководство описывает использование Kshowmail версии 3.1.1 + + + + + + +KDE +kshowmail +kmail +pop3 +mail checker + + +
+ + + + +Введение + + + + +Kshowmail - KDE-программа для мониторинга почты на POP3-сервере. +Просмотр заголовка и сообщений целиком возможен без загрузки их в почтовый клиент. +Нежелательная почта может быть удалена с сервера. +Интервал опроса серверов может быть изменен в настройках. +Фильтры используеются для пометки спама и нежелательных сообщений. +Помеченные фильтрами сообщения могут быть автоматически удалены. +При получении новой почты возможно воспроизведение звукового сигнала. +A command menu allows user configurable commands like dcop commands to launch kmail. +Командное меню позволяет использовать пользовательские команды (например, вызов kmail через dcop). +Возможно определение специальной команды для отправки жалоб на спам-письма. +Поддерживаются множественные почтовые ящики. + + + + +Использование Kshowmail + + + + +Общие принципы + +Добавьте несколько почтовых ящиков в диалоге "Настройки". Подключитесь к интернету. Теперь вы +можете просмотреть почту, имеющуюся на заданных pop3-серверах, нажатием кнопки "Обновить". +Действие остальных кнопок и пунктов меню должно быть понятно из их названий :) . +Приятной работы! + + + + Клавиатурные комбинации + + Используются следующие клавиатурные комбинации: + + F2 + + Показать заголовки выбранных писем + + + + F3 + + Показать полностью выбранные письма + + + + F5 + + Обновить список писем + + + + Shift-F5 + + Принудительное обновление списка писем + + + + F10 + + Настройки почтовых ящиков + + + + Del + + Удалить выбранные сообщения с сервера + + + + Ctrl-C + + Очистить список сообщений. + (Письма не будут удалены с сервера) + + + + + + + Фильтры + + Фильтры используются для пометки спама и нежелательных сообщений. + Вы можете задать любое количество фильтров, + они будут применены ко всем письмам при каждом обновлении списка сообщений. + + + В диалоге "Фильтры" вы можете указать состояние фильтров - включены, выключены или + настроены на "автоматическое удаление". В последнем режиме все помеченные фильтрами сообщения + будут автоматически удалены с сервера. Пожалуйства, проверяйте свои фильтры перед активацией + данного режима! Возможно, полезным будет предварительное тестирование фильтров во "включенном" + состоянии без непосредственного удаление писем. + В файле ~/.kde/share/apps/kshowmail/kshowmail.log вы можете найти информацию обо всех автоматически + удаленных сообщениях. + + + + Каждый фильтр состоит из одного или двух условий, которые могут быть связаны + друг с другом. Наиболее широкие возможности предоставляет использование регулярных + выражений. Для работы с регулярными выражениями используется библиотека Qt, для их подробного + описания смотрите документацию класса KRegExpEditor или одно из многочисленных руководств по + регулярным выражениям в интернете. + + Что такое регулярное выражение? + + + + + Примеры регулярных выражений + + MS Corporation|Microsoft: соответствует "MS Corporation" и "Microsoft" + + + (mail|message) delivery: соответствует "mail delivery" и "message delivery" + + + ms (program )?security: соответствует "ms security" и "ms program security" + + + [\x0100-\xffff]: соответствует всем символам за пределами ASCII (китайские, корейские символы) + + + Также приведенные шаблоны могут совмещены друг с другом.. + + + + + +Параметры командной строки + +Вы можете указать в командной строке требуемый почтовый ящик. +При указании опции -config в командной строке, будет немедленно запущен конфигурационный диалог.. +Это может быть полезно, если выбрана функция "Выход, если нет новой почты". +Параметр -refresh может быть использовать для немедленного начала проверки почты после старта. + + + +Внешние программы + +Для запуска внешней программы (например, kmail), добавьте пункт в командное меню. +Названия команд показываются в меню "Действия". Если название содержит символ '&', следующая за ним буква будет +использована как горячая клавиша для данного пункта. + + Следующие параметры заменяются на их действительные значения: + <user> Имя пользователя + <passwd> Пароль + <server> Сервер + <header> Заголовки сообщения будут скопированы во временный файл, имя которого будет передано в данном параметре. + <body> Тело сообщения будет скопировано во временный файл, имя которого будет передано в данном параметре. + + Очень эффективным является использование DCOP-команд, которые позволяет вызывать выбранные функции + других KDE-программ. + Вы можете создать команду, которая вызовет KMail для получения почты с сервера: + + + dcop kmail KMailIface checkMail + + + Программа kdcop полезна для исследования функций другий KDE-программ. + + + + Отправка писем-жалоб на спам + + Команда для отправки писем-жалоб является особенной командой. + Для большей гибкости, она была реализована как внешняя команда. + Рекомендуется использовать программу на perl "spam.pl" версии 0.20 или выше, ее автор - Daniel Stenberg. + Загрузить ее можно со страницы http://spam.sourceforge.net. + Чтобы настроить spam.pl для работы с kshowmail, следуйте инструкциям: + + + 1. Установите spam.pl в соответствующий каталог, например /usr/local/bin. + + + 2. Создайте файлы ~/.spam/friends и ~/.spam/from. + Подробности - в документации spam.pl. + + + 3. Создайте пункт в командном меню kshowmail. + Название пункта должно быть указано в виде "complain"! + В противном случае команда не будет распознана. + Введите данный текст как командную строку: + + + spam.pl -d < <body> + + + В результате тело сообщения будет передано spam.pl. + + + Отладочный параметр -d может быть удален впоследствие, когда вы будет удовлетворены полученными результатами. + Только после этого письма со спам-жалобами будет реально отправляться. + Также вы можете добавить прочие необходимые вам опции. + + + Внимательное заполняйте файл ~/.spam/friends. + Как минимум, в нем должен быть указан ваш локальный домен. + + + После нажатия кнопки "Отправить спам-жалобы", для каждого выделенного сообщения будут созданы и немедленно отправлены + одно или несколько писем со спам-жалобами. + Получатель писем определяется spam.pl. + Пока опция -d присутствует, будет только показано сообщение с описанием предполагаемых действий. + Чтобы активировать отправку, удалите отладочный флаг. + + + Если вы предпочитаете использовать другие анти-спам программы, попытайтесь настроить их аналогичным образом. Вы можете + связаться с разработчиками, если у вас возникнул какие-либо затруднения. + + + + + +Вопросы и ответы + + + +&reporting.bugs; +&updating.documentation; + + + + +в следующей версии + + +в следующей версии + + + + + + + + + +Авторы и лицензия + + +&kapp; + + +Program copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Contributors: + + + +Nicolas Vignal nicolas.vignal@fnac.net who provided RPMs for RedHat, +and the french translation. + + + + +Edgardo Garcia edyx@mindless.com who provided the spanish translation + + + + +Mattias Newzella newzella@swipnet.se who provided the swedish translation + + + + +Sandor Laza slaza@xs4all.nl who provided the hungarian translation + + + + +Gabriele Postorino g.posto@tin.it who provided the italian translation + + + + +Oleg Ivanov saruman@unigsm.com who provided the russian translation + + + + +Много пользователей тестировали программу и предлагали различные идеи, которые +теперь вошли в kshowmail. Авторы благодарят их всех! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Установка + + +Как загрузить Kshowmail + + +Последнюю версию можно найти на странице + +http://sourceforge.net/projects/kshowmail + + + + + +Системные требования + + + + + Разработавалась и тестировалась на SuSE 8.2 и Gentoo Linux. + Для использования KShowMail необходим KDE 3.4.x. + + + + +Список изменений можно найти на странице + +http://sourceforge.net/projects/kshowmail + + + + +Компиляция и установка + + + Чтобы скомпилировать и установить Kshowmail на вашей системе, зайдите в каталог с распакованным + исходным кодом и наберите: + + % ./configure + или: + % ./configure --prefix=$KDEDIR + + % make + + как пользователь root: + % make install + + Может оказать полезным установить переменную окружения KDEDIR перед этим. + + + + Поскольку Kshowmail использует autoconf и automake, компиляция не должна вызвать проблем на вашей системе. + При их возникновении, пожалуйства, свяжитесь с разработчиками. + + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + diff --git a/doc/sv/Makefile.am b/doc/sv/Makefile.am new file mode 100644 index 0000000..d2baa55 --- /dev/null +++ b/doc/sv/Makefile.am @@ -0,0 +1,9 @@ +####### kdevelop will overwrite this part!!! (begin)########## + + +EXTRA_DIST = index.docbook + +####### kdevelop will overwrite this part!!! (end)############ + +KDE_LANG = sv +KDE_DOCS = kshowmail diff --git a/doc/sv/index.docbook b/doc/sv/index.docbook new file mode 100644 index 0000000..1925365 --- /dev/null +++ b/doc/sv/index.docbook @@ -0,0 +1,370 @@ + +Kshowmail'> + + + + + + +]> + + + + + + + + + + + +Användarmanual för Kshowmail + + + +Eggert +Ehmke + +
eggert.ehmke@berlin.de
+
+
+ +Allistar +Melville + +
allistar@silvermoon.co.nz
+
+
+
+ + + + +2000 +2001 +2002 +2003 +Eggert Ehmke + + + +&FDLNotice; + + + +02/20/2003 +3.0.4 + + + + + +Den här användarmanualen behandlar Kshowmail version 3.0.4 + + + + + + +KDE +kshowmail +kmail +pop3 +brevkontrollant + + +
+ + + + +Introduktion + + + + +Kshowmail är ett KDE-verktyg för att bevaka brev på en POP3-server. +Brevhuvuden och hela brev kan visas utan att ladda ned dem till den lokala e-postklienten. +Otrevliga brev kan direkt tas bort från servern. +Listan på breven som visas kan uppdateras med inställningsbara tidtagare(timers). +Ett ljud kan spelas upp om nya brev anländer. +En kommandomeny tillåter användaranpassade kommandon som till exempel fetchmail eller sendmail. +Ett specialkommando kan definieras för att skicka klagomålsbrev mot oönskad e-post(spam). +Flera konton stöds. + + + + +Att använda Kshowmail + + + + +Generell användning + +Lägg till några konton i konfigurationsdialogrutan "Inställningar". Anslut till Internet. Nu kan du lista breven på +pop3-servern genom att trycka på knappen "Uppdatera". Alla andra knappar och menyposter är +självförklarande. +Delete-tangenten kan användas för att ta bort brev. +Ha så kul! + + + +Kommandoradsparametrar + +Du kan tillhandahålla det valda kontot på kommandoraden. +Om alternativet -config anges på kommandoraden så startas omedelbart konfigurationsdialogrutan. +Det här kan vara användbart om funktionen "Avsluta Kshowmail om inga nya brev" är aktiverad. +Alternativet -refresh kan användas för att omedelbart starta uppdateringsprocessen. + + + +Externa program + +För att starta externa program som till exempel fetchmail, lägg till en post i Kommandon-menyn. +Kommandonamn visas i menyn Åtgärder. Om de innehåller tecknet "&", kommer följande tecken att +användas som tangentbordsgenväg. + + +Följande parametrar är alias och kommer att ersättas med de faktiska värdena: + <user> Användarnamn + <passwd> Lösenord + <server> Server + <header> Brevhuvudet kommer att kopieras till en temporär fil, namnet på den här filen kommer att ersättas här. + <body> Brevkroppen kommer att kopieras till en temporär fil, namnet på den här filen kommer att ersättas här. + + + Att skicka klagomålsbrev + +Kommandot för att skicka klagomålsbrev är ett speciellt kommando. +För att behålla flexibilitet så har också det blivit implementerat som ett externt kommando. +Jag föreslår att perl-programmet "spam.pl" version 0.20 eller högre av Daniel Stenberg används. +Det kan hämtas på http://spam.sourceforge.net. +För att används det med Kshowmail, följ dessa steg: + +1. Installera spam.pl i en passande katalog, t ex /usr/local/bin. +2. Skapa filerna ~/.spam/friends och ~/.spam/from. +Fler detaljer finns i dokumentationen till spam.pl. +3. Skapa en post i Kshowmails kommandomeny. +Namnet på psoten måste vara "complain"! +Annars kommer inte kommandot att kännas igen. +Ange denna text som en kommandorad: + spam.pl -d < <body> + Det här får brevkroppen att skickas till spam.pl. + + Felsökningsalternativet -d kan senare tas bort om du är nöjd med resultatet. +Endast då kommer klagomålsbrev att skickas. +Lägg till fler alternativ om du så önskar. + +Var försiktig så att du väljer rätt poster i ~/.spam/friends-filen. +Åtminstone ska den lokala domänen skrivas in här. +Använd den här funktionen på egen risk! + + +När du trycker på knappen "Skicka klagomål" kommer det att för varje valt brev genereras +ett eller flera klagomålsbrev som omedelbart kommer att skickas iväg. +Mottagaren av de här breven bestäms av spam.pl. +Så länge som alternativet -d är aktiverat, kommer endast ett meddelande att visas för att visa vad som +egentligen skulle ha hänt. För att aktivera funktionen måste du först ta bort felsökningsalternativet. + + Om du föredrar att använda andra program för att hantera oönskad e-post, försök då att ställa in +dem på ett liknande sätt. Kontakta mig om du stöter på problem. + + + + + +Frågor och Svar + + + +&reporting.bugs; +&updating.documentation; + + + + +Finns ej för tillfället + + +Finns ej för tillfället + + + + + + + + + +Tack till och licens + + +&kapp; + + +Programmet copyright 2000-2003 Eggert Ehmke eggert.ehmke@berlin.de + + +Personer som bidragit: + + + +Nicolas Vignal nicolas.vignal@fnac.net som tillhandahöll RPM:er för RedHat +och den franska översättningen. + + + + +Edgardo Garcia edyx@mindless.com som tillhandahöll den spanska översättningen + + + + +Mattias Newzella newzella@swipnet.se som tillhandahöll den svenska översättningen + + + + +Många användare som gjorde tester och kom med många idèer som nu är implementerade i Kshowmail. +Tack till alla er! + + + + + + + +&underFDL; + + + + +&underGPL; + + + +Installation + + +Att erhålla Kshowmail + + +Den aktuella versionen kan hittas på + +http://sourceforge.net/projects/kshowmail eller på +http://freshmeat.net + + + + + +Krav + + + + +För att kunna använda Kshowmail måste du ha KDE 3.1.x. + + + + +Du kan hitta en lista över ändringar på + +http://sourceforge.net/projects/kshowmail + + + + +Kompilering och installation + + +För att kompilera och installera Kshowmail på ditt system, ange följande i baskatalogen på Kshowmail-distributionen: + +% ./configure +% make +% make install + + + +Eftersom Kshowmail använder autoconf och automake bör du inte ha några problem med att kompilera det. +Om du skulle stöta på problem var då vänlig och rapportera det till mig. + + + + + +&documentation.index; +
+ + + + + + + + + + + + + + -- cgit v1.2.3