Astyle kdelibs
[kdepim.git] / kmail / dialog / addemailtoexistingcontactdialog.h
blob768ac527a675223ec9210e32286ae43aa3d0ef1e
1 /*
2 Copyright (c) 2013, 2014 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef ADDEMAILTOEXISTINGCONTACTDIALOG_H
19 #define ADDEMAILTOEXISTINGCONTACTDIALOG_H
21 #include <QDialog>
22 class QPushButton;
23 namespace Akonadi
25 class EmailAddressSelectionWidget;
26 class Item;
28 class AddEmailToExistingContactDialog : public QDialog
30 Q_OBJECT
31 public:
32 explicit AddEmailToExistingContactDialog(QWidget *parent);
33 ~AddEmailToExistingContactDialog();
35 Akonadi::Item selectedContact() const;
37 private slots:
38 void slotSelectionChanged();
40 private:
41 void readConfig();
42 void writeConfig();
43 Akonadi::EmailAddressSelectionWidget *mEmailSelectionWidget;
44 QPushButton *mOkButton;
47 #endif // ADDEMAILTOEXISTINGCONTACTDIALOG_H