sound_metadata.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KRADIO_SOUND_METADATA_H
00019 #define KRADIO_SOUND_METADATA_H
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025 #include <time.h>
00026 #include <endian.h>
00027 #include <QtCore/QString>
00028 #include <kconfig.h>
00029 #include <kurl.h>
00030
00031 class KDE_EXPORT SoundMetaData
00032 {
00033 public:
00034 SoundMetaData (quint64 pos, time_t rel_ts, time_t abs_ts, const KUrl &url = KUrl())
00035 : m_DataPosition(pos), m_relativeTimestamp(rel_ts), m_absoluteTimestamp(abs_ts), m_URL(url) {}
00036
00037 quint64 position() const { return m_DataPosition; }
00038 KUrl url() const { return m_URL; }
00039 time_t relativeTimestamp() const { return m_relativeTimestamp; }
00040 time_t absoluteTimestamp() const { return m_absoluteTimestamp; }
00041
00042 protected:
00043 quint64 m_DataPosition;
00044 time_t m_relativeTimestamp;
00045 time_t m_absoluteTimestamp;
00046 KUrl m_URL;
00047 };
00048
00049
00050 #endif