kwave  18.07.70
Encoder.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  Encoder.cpp - abstract base class of all encoders
3  -------------------
4  begin : May 08 2007
5  copyright : (C) 2007 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <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 #include "libkwave/Encoder.h"
19 
20 //***************************************************************************
22  :QObject(), Kwave::CodecBase()
23 {
24 }
25 
26 //***************************************************************************
27 QList<Kwave::FileProperty> Kwave::Encoder::unsupportedProperties(
28  const QList<Kwave::FileProperty> &properties_to_check)
29 {
30  QList<Kwave::FileProperty> unsupported;
31  const QList<Kwave::FileProperty> supported(supportedProperties());
32  const Kwave::FileInfo info;
33 
34  foreach (const Kwave::FileProperty &s, properties_to_check) {
35  if (info.canLoadSave(s) && !supported.contains(s))
36  unsupported.append(s);
37  }
38 
39  return unsupported;
40 }
41 
42 //***************************************************************************
43 //***************************************************************************
Definition: App.h:33
bool canLoadSave(FileProperty key) const
Definition: FileInfo.h:220
virtual QList< Kwave::FileProperty > unsupportedProperties(const QList< Kwave::FileProperty > &properties_to_check)
Definition: Encoder.cpp:27
virtual QList< Kwave::FileProperty > supportedProperties()
Definition: Encoder.h:66
FileProperty
Definition: FileInfo.h:45