File indexing completed on 2024-10-27 04:51:11
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kmail_private_export.h" 0010 #include <KActionMenu> 0011 namespace MailTransport 0012 { 0013 class Transport; 0014 } 0015 0016 class KMAILTESTS_TESTS_EXPORT KActionMenuTransport : public KActionMenu 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit KActionMenuTransport(QObject *parent = nullptr); 0021 ~KActionMenuTransport() override; 0022 0023 Q_SIGNALS: 0024 void transportSelected(MailTransport::Transport *transport); 0025 0026 private: 0027 void updateTransportMenu(); 0028 void slotCheckTransportMenu(); 0029 void slotSelectTransport(QAction *act); 0030 0031 bool mInitialized = false; 0032 };