2
This file is part of Akonadi Contact.
4
Copyright (c) 2010 KDAB
5
Author: Tobias Koenig <tokoe@kde.org>
7
This library is free software; you can redistribute it and/or modify it
8
under the terms of the GNU Library General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or (at your
10
option) any later version.
12
This library is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15
License for more details.
17
You should have received a copy of the GNU Library General Public License
18
along with this library; see the file COPYING.LIB. If not, write to the
19
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
#include "emailaddressselectiondialog.h"
25
using namespace Akonadi;
27
class EmailAddressSelectionDialog::Private
30
Private( EmailAddressSelectionDialog *qq, QAbstractItemModel *model )
34
mView = new EmailAddressSelectionWidget( model, q );
36
mView = new EmailAddressSelectionWidget( q );
38
q->setButtons( Ok | Cancel );
39
q->setMainWidget( mView );
42
EmailAddressSelectionDialog *q;
43
EmailAddressSelectionWidget *mView;
46
EmailAddressSelectionDialog::EmailAddressSelectionDialog( QWidget *parent )
47
: KDialog( parent ), d( new Private( this, 0 ) )
51
EmailAddressSelectionDialog::EmailAddressSelectionDialog( QAbstractItemModel *model, QWidget *parent )
52
: KDialog( parent ), d( new Private( this, model ) )
56
EmailAddressSelectionDialog::~EmailAddressSelectionDialog()
61
EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses() const
63
return d->mView->selectedAddresses();
66
EmailAddressSelectionWidget* EmailAddressSelectionDialog::view() const