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 <QTreeWidget>
0010 
0011 namespace MailTransport
0012 {
0013 /**
0014   @internal
0015   A QTreeWidget for transports.
0016 */
0017 class TransportListView : public QTreeWidget
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit TransportListView(QWidget *parent = nullptr);
0023 
0024     // overloaded from QTreeWidget
0025     void editItem(QTreeWidgetItem *item, int column = 0);
0026 
0027 protected Q_SLOTS:
0028     void commitData(QWidget *editor) override;
0029 
0030 private Q_SLOTS:
0031     void fillTransportList();
0032 };
0033 } // namespace MailTransport