31 #ifndef FOLDERDIAACL_H
32 #define FOLDERDIAACL_H
34 #include "kmfolderdia.h"
36 #include "kmfoldertype.h"
44 namespace TDEIO {
class Job; }
48 enum IMAPUserIdFormat { FullEmail, UserName };
51 typedef TQValueVector<KMail::ACLListEntry> ACLList;
53 class ImapAccountBase;
64 ACLEntryDialog( IMAPUserIdFormat userIdFormat,
const TQString& caption, TQWidget* parent,
const char* name = 0 );
66 void setValues(
const TQString& userId,
unsigned int permissions );
68 TQString userId()
const;
69 TQStringList userIds()
const;
70 unsigned int permissions()
const;
73 void slotSelectAddresses();
77 TQVButtonGroup* mButtonGroup;
78 KLineEdit* mUserIdLineEdit;
79 IMAPUserIdFormat mUserIdFormat;
96 virtual AccepStatus
accept();
98 static bool supports(
KMFolder* refFolder );
102 void slotConnectionResult(
int,
const TQString& );
103 void slotReceivedACL(
KMFolder*, TDEIO::Job*,
const KMail::ACLList& );
104 void slotMultiSetACLResult(TDEIO::Job *);
105 void slotACLChanged(
const TQString&,
int );
106 void slotReceivedUserRights(
KMFolder* folder );
107 void slotDirectoryListingFinished(KMFolderImap*);
110 void slotEditACL(TQListViewItem*);
111 void slotSelectionChanged(TQListViewItem*);
116 void slotRemoveACL();
118 void slotChanged(
bool b );
121 KURL imapURL()
const;
122 void initializeWithValuesFromFolder(
KMFolder* folder );
124 void loadListView(
const KMail::ACLList& aclList );
125 void loadFinished(
const KMail::ACLList& aclList );
126 void addACLs(
const TQStringList& userIds,
unsigned int permissions );
133 TDEListView* mListView;
134 KPushButton* mAddACL;
135 KPushButton* mEditACL;
136 KPushButton* mRemoveACL;
138 TQStringList mRemovedACLs;
140 ImapAccountBase* mImapAccount;
143 KMFolderType mFolderType;
144 ACLList mInitialACLList;
146 IMAPUserIdFormat mUserIdFormat;
149 TQWidgetStack* mStack;
Dialog for handling the properties of a mail folder.
"New Access Control Entry" dialog.
"Access Control" tab in the folder dialog Internal class, only used by KMFolderDialog
virtual bool save()
Unlike ConfigModuleTab, we return a bool from save.
virtual AccepStatus accept()
Called when clicking OK.
This is the base class for tabs in the folder dialog.