change version to 0.7.3
[ncmpcpp.git] / src / screen_type.h
blobf6f87faf420ab9867021068d3979ed7016619506
1 /***************************************************************************
2 * Copyright (C) 2008-2014 by Andrzej Rybczak *
3 * electricityispower@gmail.com *
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 ***************************************************************************/
21 #ifndef NCMPCPP_SCREEN_TYPE_H
22 #define NCMPCPP_SCREEN_TYPE_H
24 #include <string>
25 #include "config.h"
27 // forward declaration
28 struct BaseScreen;
30 enum class ScreenType {
31 Browser,
32 # ifdef ENABLE_CLOCK
33 Clock,
34 # endif // ENABLE_CLOCK
35 Help,
36 # ifdef HAVE_CURL_CURL_H
37 Lastfm,
38 # endif // HAVE_CURL_CURL_H
39 Lyrics,
40 MediaLibrary,
41 # ifdef ENABLE_OUTPUTS
42 Outputs,
43 # endif // ENABLE_OUTPUTS
44 Playlist,
45 PlaylistEditor,
46 SearchEngine,
47 SelectedItemsAdder,
48 ServerInfo,
49 SongInfo,
50 SortPlaylistDialog,
51 # ifdef HAVE_TAGLIB_H
52 TagEditor,
53 TinyTagEditor,
54 # endif // HAVE_TAGLIB_H
55 Unknown,
56 # ifdef ENABLE_VISUALIZER
57 Visualizer,
58 # endif // ENABLE_VISUALIZER
61 std::string screenTypeToString(ScreenType st);
63 ScreenType stringtoStartupScreenType(const std::string &s);
64 ScreenType stringToScreenType(const std::string &s);
66 BaseScreen *toScreen(ScreenType st);
68 #endif // NCMPCPP_SCREEN_TYPE_H