summaryrefslogtreecommitdiff
path: root/lyrics.h
blob: e0f656a655fd9b42f1157f5ab9557e63b3420794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//								-*- c++ -*-

#ifndef __LYRICS_H
#define __LYRICS_H

#include "mg_menu.h"

enum LyricsState {
	lyricsNone,
	lyricsLoading,
	lyricsAsking,
	lyricsSaved
};

class mgLyrics : public mgMenu
{
	private:
		int RunCommand(string cmd);
		void LoadExternal();
		void SaveExternal();
		void ThrowTmpAway(const mgItemGd& item);
		bool HasMoreVersions();
		const mgItemGd *displayItem;
		mgItemGd *playItem;
		LyricsState state;
	public:
		mgLyrics(void);
		void BuildOsd();
		string Title() const;
		eOSState Process(eKeys key);
};
#endif							 // __LYRICS_H