24 #ifndef RESOURCESELECTION_H
25 #define RESOURCESELECTION_H
27 #include <tdelistview.h>
29 #include "extensionwidget.h"
34 namespace KPIM { class ResourceABC; }
38 class ResourceSelection : public KAB::ExtensionWidget
44 ResourceSelection( KAB::Core*, TQWidget *parent, const char *name );
45 virtual ~ResourceSelection();
47 TQString title() const;
48 TQString identifier() const;
50 void contactsSelectionChanged() {};
56 void currentChanged( TQListViewItem* );
60 void slotSubresourceAdded( KPIM::ResourceABC *resource,
62 const TQString& subResource );
63 void slotSubresourceRemoved( KPIM::ResourceABC* ,
65 const TQString& subResource );
66 void slotSubresourceChanged( KPIM::ResourceABC* ,
68 const TQString& subResource );
70 void contextMenuRequested ( TQListViewItem *i, const TQPoint &pos, int );
74 void reloadResource();
80 ResourceItem* selectedItem() const;
81 ResourceItem* findSubResourceItem( KPIM::ResourceABC *resource, const TQString &subResource );
83 TDEListView *mListView;
84 TQPushButton *mAddButton;
85 TQPushButton *mEditButton;
86 TQPushButton *mRemoveButton;
88 TQString mLastResource;
90 KRES::Manager<TDEABC::Resource> *mManager;
|