Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures | Public Member Functions
Browser::Database Class Reference

The Database Browser. More...

#include <Database.hh>

Inheritance diagram for Browser::Database:
[legend]
Collaboration diagram for Browser::Database:
[legend]

Data Structures

class  ModelColumns
 The column definition.

Public Member Functions

 Database (MPD::Client &client, Glib::RefPtr< Gtk::Builder > &builder)
 Builds itself after passing a builder reference.
virtual ~Database ()
Gtk::Widget * get_container ()
 Implemented from AbstractBrowser.
void add_item (MPD::AbstractComposite *pItem)
 Implemented from AbstractFilebrowser.

Detailed Description

The Database Browser.

In order to use the Client's fill_filelist function it inherits from AbstractFilebrowser, Since it is a Browser itself it also inherits from AbstractBrowser so it can be added to the Browserlist But instead from filling the data directly from the client DatabaseCache is used (over the Proxy pattern)

Definition at line 52 of file Database.hh.


Constructor & Destructor Documentation

Browser::Database::Database ( MPD::Client &  client,
Glib::RefPtr< Gtk::Builder > &  builder 
)

Builds itself after passing a builder reference.

Parameters:
client
builder
virtual Browser::Database::~Database ( ) [virtual]

Member Function Documentation

Implemented from AbstractFilebrowser.

You are not supposed to call this yourself.

Parameters:
pSongA dyn. allocated MPD::Song instance

Implements MPD::AbstractItemlist.

Gtk::Widget* Browser::Database::get_container ( ) [virtual]

Implemented from AbstractBrowser.

You are not supposed to call this yourself.

Returns:
The surrounding mainbox

Implements AbstractBrowser.


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