File: listmanager.h

package info (click to toggle)
qbble 1.2-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 108 kB
  • ctags: 146
  • sloc: cpp: 732; ansic: 138; makefile: 51
file content (37 lines) | stat: -rw-r--r-- 776 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
#ifndef LISTMANAGER_H
#define LISTMANAGER_H

#include "dialog.h"
#include "playlistwrapper.h"
#include <string>

class playlistDialog;

QString formatTime(unsigned int time);

class playlistManager
{
public:
	static playlistManager & self();

	void searchTextUpdated(playlistDialog &dialog, const std::string &text);
	void doubleClickOnList(playlistDialog &dialog, unsigned int id);
	QString getStatusBarText() const;
	bool getRandomStatus() const;
	void stopPressed() const;
	void playPressed() const;
	void nextPressed() const;
	void prevPressed() const;
	void pausePressed() const;
	int getPlayingId() const;
	void randomToggle() const;
	void updatePlaylist() const;

private:
	static playlistManager * m_self;
	playlistManager();

	playlistWrapper & m_wrapper;
};

#endif