32 #ifndef __SUBSCRIPTIONDIALOG
33 #define __SUBSCRIPTIONDIALOG
36 #include <ksubscription.h>
37 #include "imapaccountbase.h"
47 class SubscriptionDialogBase : public KSubscription
53 SubscriptionDialogBase( TQWidget *parent,
54 const TQString &caption,
56 TQString startPath = TQString() );
57 virtual ~SubscriptionDialogBase() {}
65 void findParentItem ( TQString &name, TQString &path, TQString &compare,
66 GroupItem **parent, GroupItem **oldItem );
76 void initPrefixList();
78 virtual void loadingComplete();
84 void slotListDirectory( const TQStringList&, const TQStringList&,
85 const TQStringList&, const TQStringList&, const ImapAccountBase::jobData &);
95 void slotConnectionResult( int errorCode, const TQString& errorMsg );
101 void slotLoadFolders();
104 virtual void listAllAvailableAndCreateItems() = 0;
105 virtual void processFolderListing() = 0;
106 virtual void doSave() = 0;
110 void moveChildrenToNewParent( GroupItem *oldItem, GroupItem *item );
114 void createListViewItem( int i );
117 TQStringList mFolderNames, mFolderPaths,
118 mFolderMimeTypes, mFolderAttributes;
119 ImapAccountBase::jobData mJobData;
121 TQDict<GroupItem> mItemDict;
123 bool mSubscribed, mForceSubscriptionEnable;
124 TQStringList mPrefixList;
125 TQString mCurrentNamespace;
128 class SubscriptionDialog : public SubscriptionDialogBase
134 SubscriptionDialog( TQWidget *parent,
135 const TQString &caption,
137 TQString startPath = TQString() );
138 virtual ~SubscriptionDialog();
141 virtual void listAllAvailableAndCreateItems();
143 virtual void processFolderListing();
145 virtual void doSave();
The FolderStorage class is the bass class for the storage related aspects of a collection of mail (a ...
|