1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 * kmail: KDE mail client
3 * Copyright (C) 2000 Espen Sand, espen@kde.org
4 * Copyright (C) 2001-2003 Marc Mutz, mutz@kde.org
5 * Contains code segments and ideas from earlier kmail dialog code.
6 * Copyright (C) 2010 Volker Krause <vkrause@kde.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef NEWIDENTITYDIALOG_H
25 #define NEWIDENTITYDIALOG_H
27 #include <config-enterprise.h>
35 namespace KPIMIdentities
{
36 class IdentityManager
;
41 class NewIdentityDialog
: public KDialog
46 enum DuplicateMode
{ Empty
, ControlCenter
, ExistingEntry
};
48 explicit NewIdentityDialog( KPIMIdentities::IdentityManager
*manager
, QWidget
*parent
= 0 );
50 QString
identityName() const;
51 QString
duplicateIdentity() const;
52 DuplicateMode
duplicateMode() const;
55 virtual void slotEnableOK( const QString
& );
60 QButtonGroup
*mButtonGroup
;
61 KPIMIdentities::IdentityManager
*mIdentityManager
;