Sayonara Player
InfoDialogContainer.h
1 /* InfoDialogContainer.h */
2 
3 /* Copyright (C) 2011-2015 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 
23 #ifndef INFO_DIALOG_CONTAINER_H_
24 #define INFO_DIALOG_CONTAINER_H_
25 
26 #include "Helper/MetaData/MetaDataList.h"
27 
28 class GUI_InfoDialog;
29 
39 {
40  public:
42  virtual ~InfoDialogContainer();
43 
47  void show_info();
48 
52  void show_lyrics();
53 
57  void show_edit();
58 
63  void info_dialog_closed();
64 
65  private:
66  GUI_InfoDialog* _info_dialog=nullptr;
67 
68  private:
69  void check_info_dialog();
70  bool init_dialog();
71 
72  protected:
79  virtual MetaDataList::Interpretation get_metadata_interpretation() const=0;
80 
86  virtual MetaDataList get_data_for_info_dialog() const=0;
87 };
88 
89 #endif
The GUI_InfoDialog class.
Definition: GUI_InfoDialog.h:46
void show_lyrics()
Show the Info dialogs&#39; lyrics tab.
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:38
virtual MetaDataList::Interpretation get_metadata_interpretation() const =0
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
virtual MetaDataList get_data_for_info_dialog() const =0
get the metadata that should be used for the info dialog So for lists, the selected tracks are used h...
Definition: MetaDataList.h:44
void show_edit()
Show the tag editor.
void show_info()
Show the Info dialogs&#39; info tab.
void info_dialog_closed()
this function should not be called from outside. This function is triggered when the info dialog was ...