00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KIMAP_MYRIGHTSJOB_H
00021 #define KIMAP_MYRIGHTSJOB_H
00022
00023 #include "kimap_export.h"
00024
00025 #include "acljobbase.h"
00026
00027 namespace KIMAP {
00028
00029 class Session;
00030 struct Message;
00031 class MyRightsJobPrivate;
00032
00056 class KIMAP_EXPORT MyRightsJob : public AclJobBase
00057 {
00058 Q_OBJECT
00059 Q_DECLARE_PRIVATE(MyRightsJob)
00060
00061 friend class SessionPrivate;
00062
00063 public:
00064 explicit MyRightsJob( Session *session );
00065 virtual ~MyRightsJob();
00066
00076 bool hasRightEnabled(Acl::Right right);
00083 Acl::Rights rights();
00084
00085 protected:
00086 virtual void doStart();
00087 virtual void handleResponse(const Message &response);
00088
00089 };
00090
00091 }
00092
00093 #endif