19 #ifndef KMAIL_FOLDERTREEBASE_H
20 #define KMAIL_FOLDERTREEBASE_H
22 #include <libtdepim/kfoldertree.h>
29 class FolderTreeBase : public KFolderTree
34 FolderTreeBase( KMMainWidget *mainWidget, TQWidget *parent = 0, const char *name = 0 );
37 KMMainWidget* mainWidget() const { return mMainWidget; }
40 virtual TQListViewItem* indexOfFolder( const KMFolder* folder ) const
42 if ( mFolderToItem.contains( folder ) )
43 return mFolderToItem[ folder ];
48 void insertIntoFolderToItemMap( const KMFolder *folder, TQListViewItem* item )
50 mFolderToItem.insert( folder, item );
53 void removeFromFolderToItemMap( const KMFolder *folder )
55 mFolderToItem.remove( folder );
65 void triggerRefresh();
69 void slotUpdateCounts( KMFolder * folder, bool force = false );
77 int dndMode( bool alwaysAsk = false );
78 void contentsDropEvent( TQDropEvent *e );
81 virtual bool event(TQEvent *e);
84 virtual void readColorConfig();
87 bool hideLocalInbox() const;
90 void handleMailListDrop( TQDropEvent *event, KMFolder *destination );
93 KMMainWidget *mMainWidget;
94 TQMap<const KMFolder*, TQListViewItem*> mFolderToItem;
|