summaryrefslogtreecommitdiffstats
path: root/libQtSpotify/qspotifysession.h
diff options
context:
space:
mode:
Diffstat (limited to 'libQtSpotify/qspotifysession.h')
-rw-r--r--libQtSpotify/qspotifysession.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libQtSpotify/qspotifysession.h b/libQtSpotify/qspotifysession.h
index b789263..d237827 100644
--- a/libQtSpotify/qspotifysession.h
+++ b/libQtSpotify/qspotifysession.h
@@ -5,22 +5,22 @@
** Contact: Yoann Lopes (yoann.lopes@nokia.com)
**
** This file is part of the MeeSpot project.
-**
+**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
-**
+**
** Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
-**
+**
** Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
-**
+**
** Neither the name of Nokia Corporation and its Subsidiary(-ies) nor the names of its
** contributors may be used to endorse or promote products derived from
** this software without specific prior written permission.
-**
+**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -142,6 +142,7 @@ public:
QSpotifyTrack *currentTrack() const { return m_currentTrack; }
bool hasCurrentTrack() const { return m_currentTrack != 0; }
int currentTrackPosition() const { return m_currentTrackPosition; }
+ int currentTrackPlayedDuration() const { return m_currentTrackPlayedDuration; }
StreamingQuality streamingQuality() const { return m_streamingQuality; }
void setStreamingQuality(StreamingQuality q);
@@ -260,6 +261,7 @@ private:
QSpotifyTrack *m_currentTrack;
bool m_isPlaying;
int m_currentTrackPosition;
+ int m_currentTrackPlayedDuration;
bool m_shuffle;
bool m_repeat;