actions: split ShowSearchEngine into ShowSearchEngine and ResetSearchEngine

This commit is contained in:
Andrzej Rybczak
2012-09-15 23:20:18 +02:00
parent 3d2e5adae8
commit b4ab065b2d
7 changed files with 51 additions and 29 deletions

View File

@@ -47,7 +47,7 @@ enum ActionType
aRefetchLyrics, aRefetchArtistInfo, aSetSelectedItemsPriority, aFilterPlaylistOnPriorities,
aShowSongInfo, aShowArtistInfo,
aShowLyrics, aQuit, aNextScreen, aPreviousScreen, aShowHelp, aShowPlaylist, aShowBrowser, aChangeBrowseMode,
aShowSearchEngine, aShowMediaLibrary, aShowPlaylistEditor, aShowTagEditor, aShowOutputs,
aShowSearchEngine, aResetSearchEngine, aShowMediaLibrary, aShowPlaylistEditor, aShowTagEditor, aShowOutputs,
aShowVisualizer, aShowClock, aShowServerInfo
};
@@ -1015,9 +1015,16 @@ struct ShowSearchEngine : public Action
ShowSearchEngine() : Action(aShowSearchEngine, "show_search_engine") { }
protected:
# ifdef HAVE_TAGLIB_H
virtual bool canBeRun() const;
# endif // HAVE_TAGLIB_H
virtual void Run();
};
struct ResetSearchEngine : public Action
{
ResetSearchEngine() : Action(aResetSearchEngine, "reset_search_engine") { }
protected:
virtual bool canBeRun() const;
virtual void Run();
};