Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 339d324a authored by Scott Wheeler's avatar Scott Wheeler

*) Remove a couple more unused methods from the PlaylistSplitter API

*) Start preparing Playlist to actually implement PlaylistInterface

svn path=/trunk/kdemultimedia/juk/; revision=311126
parent a895d1ad
......@@ -486,13 +486,7 @@ QString Playlist::name() const
return m_playlistName;
}
void Playlist::setName(const QString &n)
{
m_playlistName = n;
emit signalNameChanged(m_playlistName);
}
int Playlist::totalTime()
int Playlist::time()
{
int time = 0;
QListViewItemIterator it(this);
......@@ -505,6 +499,12 @@ int Playlist::totalTime()
return time;
}
void Playlist::setName(const QString &n)
{
m_playlistName = n;
emit signalNameChanged(m_playlistName);
}
void Playlist::updateLeftColumn()
{
int newLeftColumn = leftMostVisibleColumn();
......
......@@ -29,6 +29,7 @@
#include "stringhash.h"
#include "playlistsearch.h"
#include "tagguesser.h"
#include "playlistinterface.h"
class KPopupMenu;
class KActionMenu;
......@@ -42,7 +43,7 @@ typedef QValueList<PlaylistItem *> PlaylistItemList;
typedef QValueList<Playlist *> PlaylistList;
class Playlist : public KListView
class Playlist : public KListView /*, PlaylistInterface */
{
Q_OBJECT
......@@ -181,22 +182,22 @@ public:
* something other than the filename, this returns the filename less the
* extension. If m_playlistName does have a value, this returns that.
*/
QString name() const;
/**
* This sets a name for the playlist that is \e different from the file name.
*/
void setName(const QString &n);
virtual QString name() const;
/**
* Returns the number of items in the playlist.
*/
int count() const { return childCount(); }
virtual int count() const { return childCount(); }
/**
* Returns the combined time of all the itens.
*/
int totalTime();
virtual int time();
/**
* This sets a name for the playlist that is \e different from the file name.
*/
void setName(const QString &n);
/**
* Returns the next item to be played. If random is false this is just
......
......@@ -65,7 +65,7 @@ public:
virtual FileHandle currentFile();
virtual FileHandle previousFile();
virtual int count() const { return visiblePlaylist()->childCount(); }
virtual int time() const { return visiblePlaylist()->totalTime(); }
virtual int time() const { return visiblePlaylist()->time(); }
/**
* Fills the menu passed in with the recently played history
......@@ -83,10 +83,6 @@ public:
*/
void open(const QString &file);
QStringList columnNames() const { return m_columnNames; }
KActionMenu *columnVisibleAction() const { return m_collection->columnVisibleAction(); }
/**
* Create a playlist with the name \a name. If \a raise is true then the
* Playlist will be made the current playlist.
......@@ -94,6 +90,8 @@ public:
Playlist *createPlaylist(const QString &name, bool raise = true);
/**
* TODO -- REMOVE THIS -- MASSIVE HACK
*
* This can be used to turn on or off scanning for new files. This is
* presently used so that the file renamer can temporariy disable searching
* for new files while it performs the rename.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment