You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
/* -*- mode: C++; c-file-style: "gnu" -*- |
|
* kmail: KDE mail client |
|
* Copyright (C) 2000 Espen Sand, espen@kde.org |
|
* Copyright (C) 2001-2003 Marc Mutz, mutz@kde.org |
|
* Contains code segments and ideas from earlier kmail dialog code. |
|
* Copyright (C) 2010 Volker Krause <vkrause@kde.org> |
|
* |
|
* This program is free software; you can redistribute it and/or modify |
|
* it under the terms of the GNU General Public License as published by |
|
* the Free Software Foundation; either version 2 of the License, or |
|
* (at your option) any later version. |
|
* |
|
* This program is distributed in the hope that it will be useful, |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
* GNU General Public License for more details. |
|
* |
|
* You should have received a copy of the GNU General Public License along |
|
* with this program; if not, write to the Free Software Foundation, Inc., |
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
* |
|
*/ |
|
|
|
#ifndef NEWIDENTITYDIALOG_H |
|
#define NEWIDENTITYDIALOG_H |
|
|
|
#include <KDialog> |
|
|
|
class KComboBox; |
|
class KLineEdit; |
|
class QButtonGroup; |
|
|
|
namespace KPIMIdentities { |
|
class IdentityManager; |
|
} |
|
|
|
namespace KMail { |
|
|
|
class NewIdentityDialog : public KDialog |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
enum DuplicateMode { Empty, ControlCenter, ExistingEntry }; |
|
|
|
explicit NewIdentityDialog( KPIMIdentities::IdentityManager *manager, QWidget *parent = 0 ); |
|
|
|
QString identityName() const; |
|
QString duplicateIdentity() const; |
|
DuplicateMode duplicateMode() const; |
|
|
|
protected slots: |
|
void slotEnableOK( const QString & ); |
|
|
|
private: |
|
KLineEdit *mLineEdit; |
|
KComboBox *mComboBox; |
|
QButtonGroup *mButtonGroup; |
|
KPIMIdentities::IdentityManager *mIdentityManager; |
|
}; |
|
|
|
} |
|
|
|
#endif
|
|
|