23#ifndef KAB_DISTRIBUTIONLISTNG_MAINWIDGET_H
24#define KAB_DISTRIBUTIONLISTNG_MAINWIDGET_H
26#include "extensionwidget.h"
28#include <tdeabc/addressee.h>
30#include <tdelistbox.h>
32#include <tqstringlist.h>
34class TQDragEnterEvent;
41 class DistributionListManager;
45namespace DistributionListNg {
47class ListBox : public TDEListBox
52 ListBox( TQWidget* parent = 0 );
56 void dropped( const TQString &listName, const TDEABC::Addressee::List &addressees );
60 void dragEnterEvent( TQDragEnterEvent *event );
62 void dragMoveEvent( TQDragMoveEvent *event );
64 void dropEvent( TQDropEvent *event );
67class MainWidget : public KAB::ExtensionWidget
73 explicit MainWidget( KAB::Core *core, TQWidget *parent = 0, const char *name = 0 );
76 TQString title() const;
79 TQString identifier() const;
83 void changed( const TDEABC::Addressee& );
87 void deleteSelectedDistributionList();
88 void editSelectedDistributionList();
90 void contextMenuRequested( TQListBoxItem *item, const TQPoint &point );
92 void itemSelected( int index );
93 void contactsDropped( const TQString &listName, const TDEABC::Addressee::List &addressees );
97 TQStringList mCurrentEntries;
98 TQPushButton *mAddButton;
99 TQPushButton *mEditButton;
100 TQPushButton *mRemoveButton;
|