1 /*************************************************************************** 2 * Copyright (C) 2008-2021 by Andrzej Rybczak * 3 * andrzej@rybczak.net * 4 * * 5 * This program is free software; you can redistribute it and/or modify * 6 * it under the terms of the GNU General Public License as published by * 7 * the Free Software Foundation; either version 2 of the License, or * 8 * (at your option) any later version. * 9 * * 10 * This program is distributed in the hope that it will be useful, * 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 13 * GNU General Public License for more details. * 14 * * 15 * You should have received a copy of the GNU General Public License * 16 * along with this program; if not, write to the * 17 * Free Software Foundation, Inc., * 18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * 19 ***************************************************************************/ 20 21 #ifndef NCMPCPP_SCREEN_TYPE_H 22 #define NCMPCPP_SCREEN_TYPE_H 23 24 #include <string> 25 #include "config.h" 26 27 // forward declaration 28 struct BaseScreen; 29 30 enum class ScreenType { 31 Browser, 32 # ifdef ENABLE_CLOCK 33 Clock, 34 # endif // ENABLE_CLOCK 35 Help, 36 Lastfm, 37 Lyrics, 38 MediaLibrary, 39 # ifdef ENABLE_OUTPUTS 40 Outputs, 41 # endif // ENABLE_OUTPUTS 42 Playlist, 43 PlaylistEditor, 44 SearchEngine, 45 SelectedItemsAdder, 46 ServerInfo, 47 SongInfo, 48 SortPlaylistDialog, 49 # ifdef HAVE_TAGLIB_H 50 TagEditor, 51 TinyTagEditor, 52 # endif // HAVE_TAGLIB_H 53 Unknown, 54 # ifdef ENABLE_VISUALIZER 55 Visualizer, 56 # endif // ENABLE_VISUALIZER 57 }; 58 59 std::string screenTypeToString(ScreenType st); 60 61 ScreenType stringtoStartupScreenType(const std::string &s); 62 ScreenType stringToScreenType(const std::string &s); 63 64 BaseScreen *toScreen(ScreenType st); 65 66 #endif // NCMPCPP_SCREEN_TYPE_H 67