File indexing completed on 2024-11-17 04:40:40
0001 /* 0002 SPDX-FileCopyrightText: 2010 KDAB 0003 SPDX-FileContributor: Tobias Koenig <tokoe@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #include "emailaddressselectiondialog.h" 0009 0010 #include <QApplication> 0011 0012 int main(int argc, char **argv) 0013 { 0014 QApplication app(argc, argv); 0015 0016 Akonadi::EmailAddressSelectionDialog dlg; 0017 if (dlg.exec()) { 0018 const auto selectedAddress = dlg.selectedAddresses(); 0019 0020 for (const Akonadi::EmailAddressSelection &selection : selectedAddress) { 0021 qDebug("%s: %s", qPrintable(selection.name()), qPrintable(selection.email())); 0022 } 0023 } 0024 return 0; 0025 }