KMIME Library
kmime_mdn.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00046 #ifndef __KMIME_MDN_H__
00047 #define __KMIME_MDN_H__
00048
00049 #include "kmime_export.h"
00050 #include <QtCore/QString>
00051 #include <QtCore/QList>
00052
00053 class QByteArray;
00054
00055 namespace KMime {
00056
00057 namespace MDN {
00058
00101 enum DispositionType {
00102 Displayed, Read = Displayed,
00103 Deleted,
00104 Dispatched, Forwarded = Dispatched,
00105 Processed,
00106 Denied,
00107 Failed
00108 };
00109
00131 enum DispositionModifier {
00132 Error,
00133 Warning,
00134 Superseded,
00135 Expired,
00136 MailboxTerminated
00137 };
00138
00154 enum ActionMode {
00155 ManualAction,
00156 AutomaticAction
00157 };
00158
00170 enum SendingMode {
00171 SentManually,
00172 SentAutomatically
00173 };
00174
00178 KMIME_EXPORT extern QByteArray dispositionNotificationBodyContent(
00179 const QString &finalRecipient,
00180 const QByteArray &originalRecipient,
00181 const QByteArray &originalMsgID,
00182 DispositionType disposition,
00183 ActionMode actionMode,
00184 SendingMode sendingMode,
00185 const QList<DispositionModifier> &dispositionModifers=QList<DispositionModifier>(),
00186 const QString &special=QString() );
00187
00188 KMIME_EXPORT extern QString descriptionFor(
00189 DispositionType d,
00190 const QList<DispositionModifier> &m=QList<DispositionModifier>() );
00191
00192 }
00193
00194 }
00195
00196 #endif // __KMIME_MDN_H__