kmail
subscriptiondialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __SUBSCRIPTIONDIALOG
00033 #define __SUBSCRIPTIONDIALOG
00034
00035 #include <qdict.h>
00036 #include <ksubscription.h>
00037 #include "imapaccountbase.h"
00038
00039 class KMMessage;
00040 class FolderStorage;
00041
00042 namespace KMail {
00043
00044 class SubscriptionDialog : public KSubscription
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 SubscriptionDialog( QWidget *parent, const QString &caption, KAccount* acct,
00050 QString startPath = QString::null );
00051
00052 void show();
00053
00054 protected:
00058 void findParentItem ( QString &name, QString &path, QString &compare,
00059 GroupItem **parent, GroupItem **oldItem );
00060
00064 void processNext();
00065
00069 void initPrefixList();
00070
00071 public slots:
00075 void slotListDirectory(const QStringList&, const QStringList&,
00076 const QStringList&, const QStringList&, const ImapAccountBase::jobData &);
00077
00081 void slotSave();
00082
00086 void slotConnectionResult( int errorCode, const QString& errorMsg );
00087
00088 protected slots:
00092 void slotLoadFolders();
00093
00097 void createItems();
00098
00099 private:
00100 QString mDelimiter;
00101 QStringList mFolderNames, mFolderPaths,
00102 mFolderMimeTypes, mFolderAttributes;
00103 ImapAccountBase::jobData mJobData;
00104 uint mCount;
00105 QDict<GroupItem> mItemDict;
00106 QString mStartPath;
00107 bool mSubscribed, mForceSubscriptionEnable;
00108 QStringList mPrefixList;
00109 QString mCurrentNamespace;
00110 };
00111
00112 }
00113
00114 #endif
|