ncmpc  0.30
Public Member Functions | Protected Member Functions | Protected Attributes
FileListPage Class Reference

#include <FileListPage.hxx>

Inheritance diagram for FileListPage:
ListPage ListRenderer ListText Page

Public Member Functions

 FileListPage (ScreenManager &_screen, WINDOW *_w, Size size, const char *_song_format)
 
 ~FileListPage () override
 
void Paint () const override
 
bool OnCommand (struct mpdclient &c, command_t cmd) override
 
- Public Member Functions inherited from ListPage
 ListPage (WINDOW *w, Size size)
 
void OnResize (Size size) override
 
bool OnCommand (struct mpdclient &, command_t cmd) override
 
- Public Member Functions inherited from Page
virtual ~Page ()=default
 
bool IsDirty () const
 
void SetDirty (bool _dirty=true)
 
void Resize (Size new_size)
 
void AddPendingEvents (unsigned events)
 
void Update (struct mpdclient &c)
 
virtual void OnOpen (struct mpdclient &)
 
virtual void OnClose ()
 
virtual void Update (struct mpdclient &, unsigned)
 
virtual const char * GetTitle (char *s, size_t size) const =0
 

Protected Member Functions

gcc_pure FileListEntryGetSelectedEntry () const
 
gcc_pure const struct mpd_entity * GetSelectedEntity () const
 
gcc_pure const struct mpd_song * GetSelectedSong () const
 
FileListEntryGetIndex (unsigned i) const
 
- Protected Member Functions inherited from Page
const SizeGetLastSize () const
 

Protected Attributes

ScreenManagerscreen
 
FileListfilelist = nullptr
 
const char *const song_format
 
- Protected Attributes inherited from ListPage
ListWindow lw
 

Constructor & Destructor Documentation

◆ FileListPage()

FileListPage::FileListPage ( ScreenManager _screen,
WINDOW *  _w,
Size  size,
const char *  _song_format 
)
inline

◆ ~FileListPage()

FileListPage::~FileListPage ( )
override

Member Function Documentation

◆ GetSelectedEntry()

gcc_pure FileListEntry* FileListPage::GetSelectedEntry ( ) const
protected

◆ GetSelectedEntity()

gcc_pure const struct mpd_entity* FileListPage::GetSelectedEntity ( ) const
protected

◆ GetSelectedSong()

gcc_pure const struct mpd_song* FileListPage::GetSelectedSong ( ) const
protected

◆ GetIndex()

FileListEntry* FileListPage::GetIndex ( unsigned  i) const
protected

◆ Paint()

void FileListPage::Paint ( ) const
overridevirtual

Implements Page.

◆ OnCommand()

bool FileListPage::OnCommand ( struct mpdclient c,
command_t  cmd 
)
overridevirtual

Handle a command.

Returns
true if the command should not be handled by the ncmpc core

Implements Page.

Field Documentation

◆ screen

ScreenManager& FileListPage::screen
protected

◆ filelist

FileList* FileListPage::filelist = nullptr
protected

◆ song_format

const char* const FileListPage::song_format
protected

The documentation for this class was generated from the following file: