2 Copyright (c) 2010 Volker Krause <vkrause@kde.org>
3 This file was part of KMail.
4 Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
21 #ifndef MESSAGECOMPOSER_RECIPIENTSPICKER_H
22 #define MESSAGECOMPOSER_RECIPIENTSPICKER_H
24 #include <messagecomposer/recipient.h>
26 #include <kabc/addressee.h>
30 class EmailAddressSelectionWidget
;
34 class LdapSearchDialog
;
37 namespace MessageComposer
{
39 // ### temporary export
40 class MESSAGECOMPOSER_EXPORT RecipientsPicker
: public KDialog
45 RecipientsPicker( QWidget
*parent
);
48 void setRecipients( const Recipient::List
& );
50 void setDefaultType( Recipient::Type
);
53 void pickedRecipient( const Recipient
& );
59 void pick( Recipient::Type
);
61 void keyPressEvent( QKeyEvent
* );
66 void slotBccClicked();
68 void slotSearchLDAP();
69 void ldapSearchResult();
70 void slotSelectionChanged();
73 Akonadi::EmailAddressSelectionWidget
*mView
;
75 QPushButton
*mToButton
;
76 QPushButton
*mCcButton
;
77 QPushButton
*mBccButton
;
79 QPushButton
*mSearchLDAPButton
;
80 KLDAP::LdapSearchDialog
*mLdapSearchDialog
;
82 Recipient::Type mDefaultType
;