00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_ITEMMODIFYJOB_P_H
00021 #define AKONADI_ITEMMODIFYJOB_P_H
00022
00023 #include "job_p.h"
00024
00025 namespace Akonadi {
00026
00030 class ItemModifyJobPrivate : public JobPrivate
00031 {
00032 public:
00033 enum Operation
00034 {
00035 RemoteId,
00036 RemoteRevision,
00037 Dirty
00038 };
00039
00040 ItemModifyJobPrivate( ItemModifyJob *parent );
00041
00042 void setClean();
00043 QByteArray nextPartHeader();
00044
00045 void conflictResolved();
00046 void conflictResolveError( const QString& );
00047
00048 void doUpdateItemRevision( Entity::Id, int oldRevision, int newRevision );
00049
00050 Q_DECLARE_PUBLIC( ItemModifyJob )
00051
00052 QSet<int> mOperations;
00053 QByteArray mTag;
00054 Item::List mItems;
00055 bool mRevCheck;
00056 QSet<QByteArray> mParts;
00057 QByteArray mPendingData;
00058 bool mIgnorePayload;
00059 bool mAutomaticConflictHandlingEnabled;
00060 };
00061
00062 }
00063
00064 #endif