kwave
18.07.70
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
f
h
i
l
m
o
p
r
s
t
u
w
y
z
Functions
Typedefs
Enumerations
+
Enumerator
a
b
c
f
i
l
o
p
r
s
u
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
i
l
m
p
q
r
s
t
x
z
Variables
Typedefs
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
VorbisCommentMap.cpp
Go to the documentation of this file.
1
/*************************************************************************
2
VorbisCommentMap.cpp - map for translating properties to vorbis comments
3
-------------------
4
begin : Sun May 23 2004
5
copyright : (C) 2004 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
#include "config.h"
19
20
#include "
libkwave/String.h
"
21
#include "
libkwave/VorbisCommentMap.h
"
22
24
#define INS(p,d) insert(_(p), d)
25
26
//***************************************************************************
27
Kwave::VorbisCommentMap::VorbisCommentMap
()
28
{
29
INS
(
"DATE"
,
Kwave::INF_CREATION_DATE
);
// creation date (iso)
30
INS
(
"TITLE"
,
Kwave::INF_NAME
);
// name
31
INS
(
"VERSION"
,
Kwave::INF_VERSION
);
// version of the song
32
INS
(
"ALBUM"
,
Kwave::INF_ALBUM
);
// name of the album
33
INS
(
"TRACKNUMBER"
,
Kwave::INF_TRACK
);
// index of the track
34
INS
(
"ARTIST"
,
Kwave::INF_AUTHOR
);
// author's name
35
INS
(
"PERFORMER"
,
Kwave::INF_PERFORMER
);
// performer
36
INS
(
"COPYRIGHT"
,
Kwave::INF_COPYRIGHT
);
// copyright
37
INS
(
"LICENSE"
,
Kwave::INF_LICENSE
);
// name of the license
38
INS
(
"ORGANIZATION"
,
Kwave::INF_ORGANIZATION
);
// producing organization
39
INS
(
"DESCRIPTION"
,
Kwave::INF_SUBJECT
);
// subject
40
INS
(
"GENRE"
,
Kwave::INF_GENRE
);
// genre
41
INS
(
"LOCATION"
,
Kwave::INF_SOURCE
);
// source
42
INS
(
"CONTACT"
,
Kwave::INF_CONTACT
);
// contact address(es)
43
INS
(
"ISRC"
,
Kwave::INF_ISRC
);
// ISRC code
44
INS
(
"ENCODER"
,
Kwave::INF_SOFTWARE
);
// software
45
INS
(
"ENCODED_BY"
,
Kwave::INF_ENGINEER
);
// name of the encoder
46
INS
(
"VBR_QUALITY"
,
Kwave::INF_VBR_QUALITY
);
// VBR quality
47
}
48
49
//***************************************************************************
50
QString
Kwave::VorbisCommentMap::findProperty
(
51
const
Kwave::FileProperty
property)
52
{
53
QMap<QString, Kwave::FileProperty>::Iterator it;
54
for
(it = begin(); it != end(); ++it) {
55
if
(it.value() == property)
return
it.key();
56
}
57
return
QString();
58
}
59
60
//***************************************************************************
61
bool
Kwave::VorbisCommentMap::containsProperty
(
62
const
Kwave::FileProperty
property)
63
{
64
return
(
findProperty
(property).length() != 0);
65
}
66
67
//***************************************************************************
68
//***************************************************************************
Kwave::VorbisCommentMap::VorbisCommentMap
VorbisCommentMap()
Definition:
VorbisCommentMap.cpp:27
Kwave::INF_NAME
Definition:
FileInfo.h:83
Kwave::INF_TRACK
Definition:
FileInfo.h:97
Kwave::INF_GENRE
Definition:
FileInfo.h:71
Kwave::INF_VERSION
Definition:
FileInfo.h:100
INS
#define INS(p, d)
Definition:
VorbisCommentMap.cpp:24
Kwave::INF_SOFTWARE
Definition:
FileInfo.h:92
Kwave::VorbisCommentMap::findProperty
QString findProperty(const Kwave::FileProperty property)
Definition:
VorbisCommentMap.cpp:50
Kwave::INF_COPYRIGHT
Definition:
FileInfo.h:64
Kwave::INF_ENGINEER
Definition:
FileInfo.h:67
Kwave::INF_PERFORMER
Definition:
FileInfo.h:87
Kwave::VorbisCommentMap::containsProperty
bool containsProperty(const Kwave::FileProperty property)
Definition:
VorbisCommentMap.cpp:61
Kwave::INF_SOURCE
Definition:
FileInfo.h:93
Kwave::INF_ORGANIZATION
Definition:
FileInfo.h:85
VorbisCommentMap.h
Kwave::INF_CONTACT
Definition:
FileInfo.h:63
Kwave::INF_SUBJECT
Definition:
FileInfo.h:95
Kwave::INF_ALBUM
Definition:
FileInfo.h:48
Kwave::INF_AUTHOR
Definition:
FileInfo.h:51
Kwave::INF_ISRC
Definition:
FileInfo.h:72
Kwave::INF_CREATION_DATE
Definition:
FileInfo.h:66
Kwave::INF_LICENSE
Definition:
FileInfo.h:76
Kwave::FileProperty
FileProperty
Definition:
FileInfo.h:45
String.h
Kwave::INF_VBR_QUALITY
Definition:
FileInfo.h:99
libkwave
VorbisCommentMap.cpp
Generated on Sat Mar 24 2018 09:10:26 for kwave by
1.8.13