Logo Search packages:      
Sourcecode: kdemultimedia version File versions

CollectionList Class Reference

#include <collectionlist.h>

Inheritance diagram for CollectionList:

Playlist PlaylistInterface Watched

List of all members.


Detailed Description

This is the "collection", or all of the music files that have been opened in any playlist and not explicitly removed from the collection.

It is being implemented as a "semi-singleton" because I need universal access to just one instance. However, because the collection needs initialization parameters (that will not always be available when an instance is needed). Hence there will be the familiar singleton "instance()" method allong with an "initialize()" method.

Definition at line 61 of file collectionlist.h.


Public Types

enum  UniqueSetType { Artists = 0, Albums = 1, Genres = 2 }

Public Slots

virtual void clear ()
virtual void copy ()
virtual void cut ()
virtual void hideList ()=0
virtual void paste ()
virtual void selectAll ()
virtual void showList ()=0
void slotCheckCache ()
void slotGuessTagInfo (TagGuesser::Type type)
virtual void slotRefresh ()
void slotRefreshItem (const QString &file)
virtual void slotReload ()
void slotRemoveItem (const QString &file)
void slotRemoveSelectedItems ()
void slotRenameFile ()
void slotSetNext ()
void slotShowPlaying ()
void slotWeightDirty (int column=-1)
virtual void toggleList ()

Signals

void listHidden ()
void listShown ()
void playCurrent ()
void signalAboutToRemove (PlaylistItem *item)
void signalCollectionChanged ()
void signalEnableDirWatch (bool enable)
void signalNameChanged (const QString &name)
void signalNewTag (const QString &, unsigned)
void signalRemovedTag (const QString &, unsigned)
void signalVisibleColumnsChanged ()

Public Member Functions

virtual void addFile (const KURL &, bool play=false)=0
void addFiles (const QStringList &files, bool importPlaylists, PlaylistItem *after=0)
void addObserver (PlaylistObserver *observer)
void applySharedSettings ()
virtual void clearItem (PlaylistItem *item, bool emitChanged=true)
virtual void clearItems (const PlaylistItemList &items)
virtual int columnOffset () const
KActionMenu * columnVisibleAction () const
virtual int count () const
virtual PlaylistItemcreateItem (const FileHandle &file, QListViewItem *=0, bool=false)
virtual void createItems (const PlaylistItemList &siblings)
virtual PlaylistItem current ()=0
virtual void currentChanged ()
virtual FileHandle currentFile () const
virtual void dataChanged ()
void emitVisibleColumnsChanged ()
QString fileName () const
QStringList files ()
virtual PlaylistItem getAfter (const PlaylistItem &item) const =0
virtual PlaylistItem getFirst () const =0
int handleArguments ()
void hideColumn (int c, bool updateSearch=true)
bool isColumnVisible (int c) const
virtual PlaylistItemList items ()
virtual bool listVisible () const =0
CollectionListItem * lookup (const QString &file)
void markItemSelected (PlaylistItem *item, bool selected)
virtual QString name () const
virtual PlaylistItem next ()=0
virtual PlaylistItem nextSection ()
void playFirst ()
bool playing () const
virtual void playNext ()
virtual void playPrevious ()
virtual PlaylistItem previous ()=0
virtual PlaylistItem previousSection ()
void read (QDataStream &s)
virtual bool readOnly () const
void removeObserver (PlaylistObserver *observer)
virtual void reset ()=0
virtual void save ()
virtual void saveAs ()
PlaylistSearch search () const
QValueList< PlaylistItemselect (const char *key, const char *value, int limit=-1, bool exact=false, bool caseSensitive=false)
virtual QValueList< PlaylistItemselect (const QString &key, const QString &value, int limit=-1, bool exact=false, bool caseSensitive=false)
virtual QValueList< PlaylistItemselect (const QStringList &keys, const QStringList &values, int limit=-1, bool exact=false, bool caseSensitive=false)
PlaylistItemList selectedItems ()
void setAllowDuplicates (bool allow)
void setColumnWidthUpdatesDisabled (bool disabled)
virtual void setCurrent (const PlaylistItem &)=0
void setFileName (const QString &n)
void setName (const QString &n)
void setSearch (const PlaylistSearch &s)
void setSearchEnabled (bool searchEnabled)
void setupTreeViewEntries (ViewMode *viewMode) const
void showColumn (int c, bool updateSearch=true)
virtual void stop ()
virtual int time () const
QStringList uniqueSet (UniqueSetType t) const
void updateLeftColumn ()
PlaylistItemList visibleItems ()

Static Public Member Functions

static void initialize (PlaylistCollection *collection)
static CollectionListinstance ()
static PlaylistItemplayingItem ()
static void setItemsVisible (const PlaylistItemList &items, bool visible=true)
static void setPlaying (PlaylistItem *item, bool addToHistory=true)

Protected Slots

void slotPlayFromBackMenu (int number) const
void slotPopulateBackMenu () const

Protected Member Functions

virtual bool acceptDrag (QDropEvent *e) const
void addColumn (const QString &label)
QString addStringToDict (const QString &value, unsigned column)
void addToDict (const QString &file, CollectionListItem *item)
void addWatched (const QString &file)
virtual bool canDecode (QMimeSource *s)
 CollectionList (PlaylistCollection *collection)
virtual void contentsDragMoveEvent (QDragMoveEvent *e)
virtual void contentsDropEvent (QDropEvent *e)
template<class CollectionItemType, class ItemType, class SiblingType>
void createItems (const QValueList< SiblingType * > &siblings)
virtual void decode (QMimeSource *s, PlaylistItem *after=0)
virtual QDragObject * dragObject ()
virtual QDragObject * dragObject (QWidget *parent)
virtual bool eventFilter (QObject *watched, QEvent *e)
virtual void polish ()
void removeFromDict (const QString &file)
void removeFromDisk (const PlaylistItemList &items)
void removeStringFromDict (const QString &value, unsigned column)
void removeWatched (const QString &file)
void setCanDeletePlaylist (bool canDelete)
void setupItem (PlaylistItem *item)
virtual void showEvent (QShowEvent *e)
virtual void viewportPaintEvent (QPaintEvent *pe)
virtual void viewportResizeEvent (QResizeEvent *re)

Private Attributes

TagCountDicts m_columnTags
KDirWatch * m_dirWatch
QDict< CollectionListItem > m_itemsDict

Static Private Attributes

static CollectionListm_list = 0
static const int m_uniqueSetCount = 3

Friends

class CollectionListItem

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

Generated by  Doxygen 1.6.0   Back to index