Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

PlaylistManager Class Reference

Manages the playlist. More...

#include <playlistmanager.h>

List of all members.

Static Public Methods

void showme (MpdCom *, bool=false)
 Creates or reuses a window. More...


Protected Slots

void slotReceiveDirectoryContent (const MpdCom::Filelist &)
 Handles retrieved directory contents from MPD. More...

void slotDirectoryDoubleClicked (QListViewItem *)
 Traverses through directories. More...

void slotFileDoubleClicked (QListViewItem *)
 Adds a file to the playlist. More...

void slotPlaylistDoubleClicked (QListViewItem *)
 Loads a playlist. More...

void slotPlaylistRightClick (QListViewItem *, const QPoint &, int)
 Shows a popup menu for the playlists. More...

void slotDirectoryRightClick (QListViewItem *, const QPoint &, int)
 Shows a popup menu for the directories. More...

void slotAddSelection (void)
 Adds multiple files to the playlist. More...


Protected Methods

 PlaylistManager (MpdCom *)
 Constructor, creates an instance of this class. More...

virtual void closeEvent (QCloseEvent *)
 Stores it's window geometry and closes the window. More...

virtual void resizeEvent (QResizeEvent *)
 Handles the resize events. More...


Detailed Description

Manages the playlist.

Allows to load/enqueue/remove playlists, load and traverse directory structures and add one or more files to the playlist.

Author:
ing. A.E. van Putten
Date:
01-01-2004


Constructor & Destructor Documentation

PlaylistManager MpdCom   mpdCom [protected]
 

Constructor, creates an instance of this class.

Parameters:
mpdCom  MPD connection


Member Function Documentation

void closeEvent QCloseEvent *    event [protected, virtual]
 

Stores it's window geometry and closes the window.

Parameters:
event  the close event

void resizeEvent QResizeEvent *    event [protected, virtual]
 

Handles the resize events.

Parameters:
event  the resize event

void showme MpdCom   mpdCom,
bool    directPlay = false
[static]
 

Creates or reuses a window.

Use this function to show the PlaylistManager. It constructs a window when used the first time. After the first time the window is reused for better performance.

Parameters:
mpdCom  the MpdCom class to use for communication
directPlay  if true the playlist is cleared, the selection is added and the window is closed.

void slotAddSelection void    [protected, slot]
 

Adds multiple files to the playlist.

void slotDirectoryDoubleClicked QListViewItem *    item [protected, slot]
 

Traverses through directories.

Parameters:
item  the item which is doubleclicked

void slotDirectoryRightClick QListViewItem *    item,
const QPoint &    pos,
int    outside
[protected, slot]
 

Shows a popup menu for the directories.

Parameters:
item  the item on which the right click accured
pos  the position of the click \outside is equal to -1 if the click didn't accured outside the viewport

void slotFileDoubleClicked QListViewItem *    item [protected, slot]
 

Adds a file to the playlist.

Parameters:
item  the item which is double clicked

void slotPlaylistDoubleClicked QListViewItem *    item [protected, slot]
 

Loads a playlist.

Parameters:
item  the item which is double clicked

void slotPlaylistRightClick QListViewItem *    item,
const QPoint &    pos,
int    outside
[protected, slot]
 

Shows a popup menu for the playlists.

Parameters:
item  the item on which the right click accured
pos  the position of the click \outside is equal to -1 if the click didn't accured outside the viewport

void slotReceiveDirectoryContent const MpdCom::Filelist   filelist [protected, slot]
 

Handles retrieved directory contents from MPD.

Parameters:
filelist  the filelist received from MPD.


The documentation for this class was generated from the following files:
Generated on Thu Mar 11 21:57:52 2004 for Music Playing Daemon client by doxygen1.2.15