Sayonara Player
SomaFMLibraryContainer.h
1 #ifndef GUI_SOMAFMLIBRARY_CONTAINER_H
2 #define GUI_SOMAFMLIBRARY_CONTAINER_H
3 
4 #include "Interfaces/LibraryInterface/LibraryContainer/LibraryContainer.h"
5 
6 class GUI_SomaFM;
7 
10 {
11 
12  Q_OBJECT
13  Q_PLUGIN_METADATA(IID "com.sayonara-player.somafm_library")
14  Q_INTERFACES(LibraryContainerInterface)
15 
16 
17 private:
18  GUI_SomaFM* ui=nullptr;
19 
20 
21 public:
22 
23  SomaFMLibraryContainer(QObject* parent=nullptr);
24 
25  // override from LibraryViewInterface
26  QString get_name() const override;
27  QString get_display_name() const override;
28  QIcon get_icon() const override;
29  QWidget* get_ui() const override;
30  QComboBox* get_libchooser() override;
31  QMenu* get_menu() override;
32  void init_ui() override;
33 
34 };
35 
36 #endif
QString get_display_name() const override
Should return the translated name displayed in the library view combobox.
QString get_name() const override
Should return an untranslated name used for identifying this widget.
QWidget * get_ui() const override
Should return the UI for the library view.
Definition: SomaFMLibraryContainer.h:8
void init_ui() override
Should initialize the ui. The ui constructor should be called within this function.
Definition: GUI_SomaFM.h:13
An interface class needed when implementing a library plugin.
Definition: LibraryContainer.h:42
QMenu * get_menu() override
return actions menu (may be nullptr). The title does not have to be set
QComboBox * get_libchooser() override
Should return the library chooser combo box.
QIcon get_icon() const override
Should return the icon displayed in the library view combobox.