00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MAILTRANSPORT_DISPATCHMODEATTRIBUTE_H
00021 #define MAILTRANSPORT_DISPATCHMODEATTRIBUTE_H
00022
00023 #include <mailtransport/mailtransport_export.h>
00024
00025 #include <QtCore/QDateTime>
00026
00027 #include <akonadi/attribute.h>
00028
00029 namespace MailTransport {
00030
00039 class MAILTRANSPORT_EXPORT DispatchModeAttribute : public Akonadi::Attribute
00040 {
00041 public:
00045 enum DispatchMode {
00046 Automatic,
00047
00048 Manual
00049 };
00050
00054 explicit DispatchModeAttribute( DispatchMode mode = Automatic );
00055
00059 virtual ~DispatchModeAttribute();
00060
00061
00062 virtual DispatchModeAttribute *clone() const;
00063 virtual QByteArray type() const;
00064 virtual QByteArray serialized() const;
00065 virtual void deserialize( const QByteArray &data );
00066
00071 DispatchMode dispatchMode() const;
00072
00077 void setDispatchMode( DispatchMode mode );
00078
00083 QDateTime sendAfter() const;
00084
00089 void setSendAfter( const QDateTime &date );
00090
00091 private:
00092 class Private;
00093 Private *const d;
00094
00095 };
00096
00097 }
00098
00099 #endif // MAILTRANSPORT_DISPATCHMODEATTRIBUTE_H