kaddressbookcardview.h
00001 #ifndef KADDRESSBOOKCARDVIEW_H
00002 #define KADDRESSBOOKCARDVIEW_H
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 #include <qstring.h>
00028 #include <kiconview.h>
00029
00030 #include "cardview.h"
00031 #include "kaddressbookview.h"
00032
00033 class QDragEntryEvent;
00034 class QDropEvent;
00035 class KConfig;
00036 class AddresseeCardView;
00037
00043 class KAddressBookCardView : public KAddressBookView
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 KAddressBookCardView( KAB::Core *core, QWidget *parent,
00049 const char *name = 0 );
00050 virtual ~KAddressBookCardView();
00051
00052 virtual QStringList selectedUids();
00053 virtual QString type() const { return "Card"; }
00054 virtual KABC::Field *sortField() const;
00055
00056 virtual void readConfig(KConfig *config);
00057 virtual void writeConfig(KConfig *);
00058
00059 public slots:
00060 void refresh(QString uid = QString::null);
00061 void setSelected(QString uid = QString::null, bool selected = true);
00062
00063 protected slots:
00064 void addresseeExecuted(CardViewItem *item);
00065 void addresseeSelected();
00066 void rmbClicked( CardViewItem*, const QPoint& );
00067
00068 private:
00069 AddresseeCardView *mCardView;
00070 bool mShowEmptyFields;
00071 };
00072
00073 class AddresseeCardView : public CardView
00074 {
00075 Q_OBJECT
00076 public:
00077 AddresseeCardView(QWidget *parent, const char *name = 0);
00078 ~AddresseeCardView();
00079
00080 signals:
00081 void startAddresseeDrag();
00082 void addresseeDropped(QDropEvent *);
00083
00084 protected:
00085 virtual void dragEnterEvent(QDragEnterEvent *);
00086 virtual void dropEvent(QDropEvent *);
00087 virtual void startDrag();
00088 };
00089
00090 #endif
This file is part of the documentation for kaddressbook Library Version 3.2.2.