aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobblercache.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-07-01 21:23:53 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-07-01 21:23:53 +0000
commit7e2066ba76299dbb8e51493740b6507fe949958a (patch)
treee304bc9403e38a60e5f22824efea74158a94fd01 /src/plugins/General/scrobbler/scrobblercache.h
parent17cadbfb95e9211e8685aed3466d4c22df732e92 (diff)
downloadqmmp-7e2066ba76299dbb8e51493740b6507fe949958a.tar.gz
qmmp-7e2066ba76299dbb8e51493740b6507fe949958a.tar.bz2
qmmp-7e2066ba76299dbb8e51493740b6507fe949958a.zip
scrobbler: using TrackInfo for cached song
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8979 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobblercache.h')
-rw-r--r--src/plugins/General/scrobbler/scrobblercache.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/plugins/General/scrobbler/scrobblercache.h b/src/plugins/General/scrobbler/scrobblercache.h
index f46939e43..819d1fa96 100644
--- a/src/plugins/General/scrobbler/scrobblercache.h
+++ b/src/plugins/General/scrobbler/scrobblercache.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2013-2016 by Ilya Kotov *
+ * Copyright (C) 2013-2019 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -24,16 +24,16 @@
#include <QMap>
#include <QList>
#include <qmmp/qmmp.h>
-
+#include <qmmp/trackinfo.h>
/**
@author Ilya Kotov <forkotov02@ya.ru>
*/
-class SongInfo
+class SongInfo : public TrackInfo
{
public:
SongInfo();
- SongInfo(const QMap <Qmmp::MetaData, QString> metadata, qint64 length = 0);
+ SongInfo(const TrackInfo &info);
SongInfo(const SongInfo &other);
~SongInfo();
@@ -41,22 +41,11 @@ public:
SongInfo & operator=(const SongInfo &info);
bool operator==(const SongInfo &info);
bool operator!=(const SongInfo &info);
-
- void setMetaData(const QMap <Qmmp::MetaData, QString> metadata);
- void setMetaData(Qmmp::MetaData key, const QString &value);
- void setLength(qint64 l);
- const QMap <Qmmp::MetaData, QString> metaData() const;
- const QString metaData(Qmmp::MetaData) const;
- qint64 length () const;
- void clear();
void setTimeStamp(uint ts);
uint timeStamp() const;
private:
- QMap <Qmmp::MetaData, QString> m_metadata;
- qint64 m_length;
- uint m_start_ts;
-
+ uint m_start_ts = 0;
};
/**