• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.9.3 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
  • contact
emailaddressselectiondialog.cpp
1 /*
2  This file is part of Akonadi Contact.
3 
4  Copyright (c) 2010 KDAB
5  Author: Tobias Koenig <tokoe@kde.org>
6 
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.
11 
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.
16 
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
20  02110-1301, USA.
21 */
22 
23 #include "emailaddressselectiondialog.h"
24 
25 using namespace Akonadi;
26 
27 class EmailAddressSelectionDialog::Private
28 {
29  public:
30  Private( EmailAddressSelectionDialog *qq, QAbstractItemModel *model )
31  : q( qq )
32  {
33  if ( model )
34  mView = new EmailAddressSelectionWidget( model, q );
35  else
36  mView = new EmailAddressSelectionWidget( q );
37 
38  q->setButtons( Ok | Cancel );
39  q->setMainWidget( mView );
40  }
41 
42  EmailAddressSelectionDialog *q;
43  EmailAddressSelectionWidget *mView;
44 };
45 
46 EmailAddressSelectionDialog::EmailAddressSelectionDialog( QWidget *parent )
47  : KDialog( parent ), d( new Private( this, 0 ) )
48 {
49 }
50 
51 EmailAddressSelectionDialog::EmailAddressSelectionDialog( QAbstractItemModel *model, QWidget *parent )
52  : KDialog( parent ), d( new Private( this, model ) )
53 {
54 }
55 
56 EmailAddressSelectionDialog::~EmailAddressSelectionDialog()
57 {
58  delete d;
59 }
60 
61 EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses() const
62 {
63  return d->mView->selectedAddresses();
64 }
65 
66 EmailAddressSelectionWidget* EmailAddressSelectionDialog::view() const
67 {
68  return d->mView;
69 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 21:51:29 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.9.3 API Reference

Skip menu "kdepimlibs-4.9.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal