kradio4 r778
|
00001 /*************************************************************************** 00002 sound_metadata.h - description 00003 ------------------- 00004 begin : Sun May 15 2005 00005 copyright : (C) 2005 by Martin Witte 00006 email : emw-kradio@nocabal.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 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