/usr/include/kadu/plugins/mediaplayer/player-info.h is in kadu-dev 4.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | #ifndef MEDIA_PLAYER_INFO_H
#define MEDIA_PLAYER_INFO_H
#include <QtCore/QStringList>
#include "mediaplayer-exports.h"
class MEDIAPLAYERAPI PlayerInfo
{
public:
PlayerInfo() {}
virtual ~PlayerInfo() {}
/**
Returns name of player that this class is implemented for. For example:
if PlayerInfo class is implemented for XMMS player, the module should
return "XMMS" string, etc. This string is will be used on user interface.
*/
virtual QString getPlayerName() = 0;
/**
Returns version of player that this class is implemented for.
*/
virtual QString getPlayerVersion() = 0;
/**
Returns song title (author and title) as string.
Optional argument 'position' defines media player playlist
entry (if supported), which title should be returned of.
Value -1 of 'position' means current playing track.
*/
virtual QString getTitle() = 0;
/**
Returns album title as string.
*/
virtual QString getAlbum() = 0;
/**
Returns artist as string.
*/
virtual QString getArtist() = 0;
/**
Returns song file name as string.
Optional argument 'position' similar as in
getTitle() method.
*/
virtual QString getFile() = 0;
/**
Returns track length in miliseconds.
Optional argument 'position' similar as in
getTitle() method.
*/
virtual int getLength() = 0;
/**
Returns current position of played track in miliseconds.
*/
virtual int getCurrentPos() = 0;
/**
Returns true if media player is currently playing, or false otherwise.
*/
virtual bool isPlaying() = 0;
/**
Returns true if media player is active (run), or false otherwise.
*/
virtual bool isActive() = 0;
/**
Returns list of titles in playlist.
*/
virtual QStringList getPlayListTitles() = 0;
/**
Returns list of file names of entries in playlist.
*/
virtual QStringList getPlayListFiles() = 0;
};
#endif
|