distributionlisteditor.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef KABC_DISTRIBUTIONLISTEDITOR_H
00021
#define KABC_DISTRIBUTIONLISTEDITOR_H
00022
00023
#include <qwidget.h>
00024
00025
#include <kdialogbase.h>
00026
00027
class QListView;
00028
class QComboBox;
00029
class QButtonGroup;
00030
00031
namespace KABC {
00032
00033
class AddressBook;
00034
class DistributionListManager;
00035
00036
class EmailSelectDialog :
public KDialogBase
00037 {
00038
public:
00039 EmailSelectDialog(
const QStringList &emails,
const QString ¤t,
00040
QWidget *parent );
00041
00042
QString selected();
00043
00044
static QString getEmail(
const QStringList &emails,
const QString ¤t,
00045
QWidget *parent );
00046
00047
private:
00048
QButtonGroup *mButtonGroup;
00049 };
00050
00054 class DistributionListEditor :
public QWidget
00055 {
00056 Q_OBJECT
00057
public:
00058
DistributionListEditor(
AddressBook *,
QWidget *parent );
00059
virtual ~
DistributionListEditor();
00060
00061
private slots:
00062
void newList();
00063
void removeList();
00064
void addEntry();
00065
void removeEntry();
00066
void changeEmail();
00067
void updateEntryView();
00068
void updateAddresseeView();
00069
void updateNameCombo();
00070
void slotSelectionEntryViewChanged();
00071
void slotSelectionAddresseeViewChanged();
00072
00073
private:
00074
QComboBox *mNameCombo;
00075
QListView *mEntryView;
00076
QListView *mAddresseeView;
00077
00078
AddressBook *mAddressBook;
00079
DistributionListManager *mManager;
00080
QPushButton *newButton, *removeButton;
00081
QPushButton *changeEmailButton,*removeEntryButton,*addEntryButton;
00082 };
00083
00084 }
00085
00086
#endif
This file is part of the documentation for kabc Library Version 3.3.0.