Whitespace cleanups and replaceing a functon from XMMSHandler by one in xplayback
This commit is contained in:
parent
8dc34b1759
commit
6af763a954
8 changed files with 33 additions and 19 deletions
|
@ -214,3 +214,14 @@ XCollection::playlistAddUrl (QUrl url, QString plsname)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
XCollection::playlistClear (QString name)
|
||||
{
|
||||
if (name == "") {
|
||||
name = d->m_activePlaylist;
|
||||
}
|
||||
m_client->playlist ()->clear (XClient::qToStd (name));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -34,10 +34,14 @@ class XCollection : public QObject
|
|||
bool remove (QString name, QString ns);
|
||||
|
||||
// idlist specific
|
||||
bool setActivePlaylist (QString name);
|
||||
QString activePlaylist ();
|
||||
|
||||
public slots:
|
||||
// idlist spesific
|
||||
bool setActivePlaylist (QString name);
|
||||
bool addIdlist (QString name);
|
||||
bool playlistAddUrl (QUrl url, QString plsname = "");
|
||||
bool playlistClear (QString name = "");
|
||||
|
||||
signals:
|
||||
void collectionModified (QString collection, QString ns, int type,
|
||||
|
|
|
@ -69,7 +69,9 @@ XPlayback::next ()
|
|||
m_client->playback ()->tickle ();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Seeking
|
||||
*/
|
||||
void
|
||||
XPlayback::seekMs (uint milliseconds)
|
||||
{
|
||||
|
@ -85,4 +87,3 @@ XPlayback::seekMsRel (int milliseconds)
|
|||
|
||||
m_client->playback ()->seekMsRel (milliseconds);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,17 +30,17 @@ class XPlayback : public QObject {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
XPlayback (XClient *);
|
||||
XPlayback (XClient *);
|
||||
|
||||
public slots:
|
||||
void play ();
|
||||
void pause ();
|
||||
void stop ();
|
||||
void prev ();
|
||||
void next ();
|
||||
void play ();
|
||||
void pause ();
|
||||
void stop ();
|
||||
void prev ();
|
||||
void next ();
|
||||
|
||||
void seekMs (uint milliseconds);
|
||||
void seekMsRel (int milliseconds);
|
||||
void seekMs (uint milliseconds);
|
||||
void seekMsRel (int milliseconds);
|
||||
|
||||
private:
|
||||
XClient *m_client;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue