File indexing completed on 2024-12-01 10:41:12
0001 /* 0002 smb4kprofilesmenu - The menu for the profiles 0003 0004 SPDX-FileCopyrightText: 2014-2022 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef SMB4KPROFILESMENU_H 0009 #define SMB4KPROFILESMENU_H 0010 0011 // Qt include 0012 #include <QString> 0013 #include <QStringList> 0014 0015 // KDE includes 0016 #include <KSelectAction> 0017 0018 class Smb4KProfilesMenu : public KSelectAction 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 /** 0024 * Constructor 0025 */ 0026 explicit Smb4KProfilesMenu(QObject *parent = nullptr); 0027 0028 /** 0029 * Destructor 0030 */ 0031 virtual ~Smb4KProfilesMenu(); 0032 0033 /** 0034 * Force the menu to be set up again. This should be called if 0035 * the settings changed and the handling of bookmarks might be 0036 * affected. 0037 */ 0038 void refreshMenu(); 0039 0040 protected Q_SLOTS: 0041 void slotActiveProfileChanged(const QString &newProfile); 0042 void slotProfilesListChanged(const QStringList &profiles); 0043 void slotProfileUsageChanged(bool use); 0044 void slotActionTriggered(const QString &name); 0045 }; 0046 0047 #endif