kwave  18.07.70
WavPropertyMap.h
Go to the documentation of this file.
1 /*************************************************************************
2  WavPropertyMap.h - map for translating properties to chunk names
3  -------------------
4  begin : Sat Jul 06 2002
5  copyright : (C) 2002 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.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 WAV_PROPERTY_MAP_H
19 #define WAV_PROPERTY_MAP_H
20 
21 #include "config.h"
22 
23 #include <QByteArray>
24 #include <QList>
25 #include <QPair>
26 #include <QString>
27 
28 #include "libkwave/FileInfo.h"
29 
30 namespace Kwave
31 {
33  :protected QList< QPair<Kwave::FileProperty, QByteArray> >
34  {
35  public:
38 
40  virtual ~WavPropertyMap() {}
41 
46  QByteArray findProperty(const Kwave::FileProperty property) const;
47 
49  bool containsProperty(const Kwave::FileProperty property) const;
50 
57  void insert(const Kwave::FileProperty property, const QByteArray &chunk);
58 
65  bool containsChunk(const QByteArray &chunk) const;
66 
68  QList<QByteArray> chunks() const;
69 
76  Kwave::FileProperty property(const QByteArray &chunk) const;
77 
79  QList<Kwave::FileProperty> properties() const;
80 
81  private:
82 
83  typedef QPair<Kwave::FileProperty, QByteArray> Pair;
84 
85  };
86 }
87 
88 #endif /* WAV_PROPERTY_MAP_H */
89 
90 //***************************************************************************
91 //***************************************************************************
Definition: App.h:33
QByteArray findProperty(const Kwave::FileProperty property) const
Kwave::FileProperty property(const QByteArray &chunk) const
bool containsProperty(const Kwave::FileProperty property) const
void insert(const Kwave::FileProperty property, const QByteArray &chunk)
QList< Kwave::FileProperty > properties() const
QPair< Kwave::FileProperty, QByteArray > Pair
FileProperty
Definition: FileInfo.h:45
bool containsChunk(const QByteArray &chunk) const
QList< QByteArray > chunks() const