[3e4acc]: libkwave / FileFormat.h Maximize Restore History

Download this file

FileFormat.h    69 lines (52 with data), 2.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************
FileFormat.h - information about a file format
-------------------
begin : Mar 05 2002
copyright : (C) 2002 by Thomas Eschenbacher
email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _FILE_FORMAT_H_
#define _FILE_FORMAT_H_
#include "config.h"
#include <QString>
#include <QStringList>
/**
* @class FileFormat
* Encapsulates all information for identifying a file format.
*/
class FileFormat
{
public:
/** Constructor */
FileFormat(const QString &mime_type, const QStringList &sub_types,
const QString &description,
const QStringList &extensions);
/** Destructor */
virtual ~FileFormat();
/** returns the mime type as String */
QString mimeType();
/** returns the list of subtypes (optional, might be empty) */
QStringList subTypes();
/** return the description of the format (no i18n) */
QString description();
/** returns the list of file extensions (optional, might be empty) */
QStringList extensions();
private:
/** name of the mime type */
QString m_mime_type;
/** list of subtypes, optional/can be empty */
QStringList m_sub_types;
/** user-readable description */
QString m_description;
/** list of associated file extensions */
QStringList m_extensions;
};
#endif /* _FILE_FORMAT_H_ */