kradio4  r778
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sound_metadata.h
Go to the documentation of this file.
1 /***************************************************************************
2  sound_metadata.h - description
3  -------------------
4  begin : Sun May 15 2005
5  copyright : (C) 2005 by Martin Witte
6  email : emw-kradio@nocabal.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KRADIO_SOUND_METADATA_H
19 #define KRADIO_SOUND_METADATA_H
20 
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24 
25 #include <time.h>
26 #include <endian.h>
27 #include <QtCore/QString>
28 #include <kconfig.h>
29 #include <kurl.h>
30 
31 class KDE_EXPORT SoundMetaData
32 {
33 public:
34  SoundMetaData (quint64 pos, time_t rel_ts, time_t abs_ts, const KUrl &url = KUrl())
35  : m_DataPosition(pos), m_relativeTimestamp(rel_ts), m_absoluteTimestamp(abs_ts), m_URL(url) {}
36 
37  quint64 position() const { return m_DataPosition; }
38  KUrl url() const { return m_URL; }
39  time_t relativeTimestamp() const { return m_relativeTimestamp; }
40  time_t absoluteTimestamp() const { return m_absoluteTimestamp; }
41 
42 protected:
43  quint64 m_DataPosition;
46  KUrl m_URL;
47 };
48 
49 
50 #endif