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

akonadi

emailaddressselectiondialog.cpp
00001 /*
00002     This file is part of Akonadi Contact.
00003 
00004     Copyright (c) 2010 KDAB
00005     Author: Tobias Koenig <tokoe@kde.org>
00006 
00007     This library is free software; you can redistribute it and/or modify it
00008     under the terms of the GNU Library General Public License as published by
00009     the Free Software Foundation; either version 2 of the License, or (at your
00010     option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful, but WITHOUT
00013     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00015     License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to the
00019     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020     02110-1301, USA.
00021 */
00022 
00023 #include "emailaddressselectiondialog.h"
00024 
00025 using namespace Akonadi;
00026 
00027 class EmailAddressSelectionDialog::Private
00028 {
00029   public:
00030     Private( EmailAddressSelectionDialog *qq, QAbstractItemModel *model )
00031       : q( qq )
00032     {
00033       if ( model )
00034         mView = new EmailAddressSelectionWidget( model, q );
00035       else
00036         mView = new EmailAddressSelectionWidget( q );
00037 
00038       q->setButtons( Ok | Cancel );
00039       q->setMainWidget( mView );
00040     }
00041 
00042     EmailAddressSelectionDialog *q;
00043     EmailAddressSelectionWidget *mView;
00044 };
00045 
00046 EmailAddressSelectionDialog::EmailAddressSelectionDialog( QWidget *parent )
00047   : KDialog( parent ), d( new Private( this, 0 ) )
00048 {
00049 }
00050 
00051 EmailAddressSelectionDialog::EmailAddressSelectionDialog( QAbstractItemModel *model, QWidget *parent )
00052   : KDialog( parent ), d( new Private( this, model ) )
00053 {
00054 }
00055 
00056 EmailAddressSelectionDialog::~EmailAddressSelectionDialog()
00057 {
00058   delete d;
00059 }
00060 
00061 EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses() const
00062 {
00063   return d->mView->selectedAddresses();
00064 }
00065 
00066 EmailAddressSelectionWidget* EmailAddressSelectionDialog::view() const
00067 {
00068   return d->mView;
00069 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:52:54 by doxygen 1.7.5 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.8.3 API Reference

Skip menu "kdepimlibs-4.8.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