File indexing completed on 2024-09-22 04:47:57

0001 /*
0002     SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "kmailtransport_private_export.h"
0010 #include <QDialog>
0011 
0012 #include <memory>
0013 
0014 namespace MailTransport
0015 {
0016 class AddTransportDialogNGPrivate;
0017 
0018 /**
0019   @internal
0020 
0021   A dialog for creating a new transport.  It asks the user for the transport
0022   type and name, and then proceeds to configure the new transport.
0023 
0024   To create a new transport from applications, use
0025   TransportManager::showNewTransportDialog().
0026 
0027   @author Constantin Berzan <exit3219@gmail.com>
0028   @since 4.4
0029 */
0030 class KMAILTRANSPORT_TESTS_EXPORT AddTransportDialogNG : public QDialog
0031 {
0032     Q_OBJECT
0033 
0034 public:
0035     /**
0036       Creates a new AddTransportDialogNG.
0037     */
0038     explicit AddTransportDialogNG(QWidget *parent = nullptr);
0039 
0040     /**
0041       Destroys the AddTransportDialogNG.
0042     */
0043     ~AddTransportDialogNG() override;
0044 
0045     /* reimpl */
0046     void accept() override;
0047 
0048 private:
0049     std::unique_ptr<AddTransportDialogNGPrivate> const d;
0050 };
0051 } // namespace MailTransport