/* * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original * location: git://neueland.iserlohn-fortress.net/smolbote.git * * SPDX-License-Identifier: GPL-3.0 */ #ifndef MAINWINDOWMENUBAR_H #define MAINWINDOWMENUBAR_H #include #include class MainWindow; class Configuration; class MainWindowMenuBar : public QMenuBar { Q_OBJECT public: explicit MainWindowMenuBar(std::shared_ptr config, MainWindow *parent = nullptr); QAction *bookmarksAction(); void setProfileName(const QString &name); private slots: void handleLoadProfile(const QString &name, MainWindow *window); private: QAction *m_bookmarksAction; QAction *m_downloadsAction; QAction *m_profileAction; }; #endif // MAINWINDOWMENUBAR_H