kwave  18.07.70
Kwave::VorbisCommentMap Class Reference

#include <VorbisCommentMap.h>

Inheritance diagram for Kwave::VorbisCommentMap:
Inheritance graph
Collaboration diagram for Kwave::VorbisCommentMap:
Collaboration graph

Public Member Functions

 VorbisCommentMap ()
 
virtual ~VorbisCommentMap ()
 
QString findProperty (const Kwave::FileProperty property)
 
bool containsProperty (const Kwave::FileProperty property)
 

Detailed Description

Definition at line 31 of file VorbisCommentMap.h.

Constructor & Destructor Documentation

◆ VorbisCommentMap()

Kwave::VorbisCommentMap::VorbisCommentMap ( )

Default constructor, with initializing

Definition at line 27 of file VorbisCommentMap.cpp.

References Kwave::INF_ALBUM, Kwave::INF_AUTHOR, Kwave::INF_CONTACT, Kwave::INF_COPYRIGHT, Kwave::INF_CREATION_DATE, Kwave::INF_ENGINEER, Kwave::INF_GENRE, Kwave::INF_ISRC, Kwave::INF_LICENSE, Kwave::INF_NAME, Kwave::INF_ORGANIZATION, Kwave::INF_PERFORMER, Kwave::INF_SOFTWARE, Kwave::INF_SOURCE, Kwave::INF_SUBJECT, Kwave::INF_TRACK, Kwave::INF_VBR_QUALITY, Kwave::INF_VERSION, and INS.

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 }
#define INS(p, d)

◆ ~VorbisCommentMap()

virtual Kwave::VorbisCommentMap::~VorbisCommentMap ( )
inlinevirtual

Destructor

Definition at line 39 of file VorbisCommentMap.h.

39 {}

Member Function Documentation

◆ containsProperty()

bool Kwave::VorbisCommentMap::containsProperty ( const Kwave::FileProperty  property)

Returns true if the map contains a given property

Definition at line 61 of file VorbisCommentMap.cpp.

References findProperty().

63 {
64  return (findProperty(property).length() != 0);
65 }
QString findProperty(const Kwave::FileProperty property)
Here is the call graph for this function:

◆ findProperty()

QString Kwave::VorbisCommentMap::findProperty ( const Kwave::FileProperty  property)

Returns the vorbis comment name of a property or an empty string if nothing found (reverse lookup).

Definition at line 50 of file VorbisCommentMap.cpp.

Referenced by containsProperty().

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 }
Here is the caller graph for this function:

The documentation for this class was generated from the following files: