kwave  18.07.70
Kwave::FileInfo::PropertyTypesMap Class Reference
Inheritance diagram for Kwave::FileInfo::PropertyTypesMap:
Inheritance graph
Collaboration diagram for Kwave::FileInfo::PropertyTypesMap:
Collaboration graph

Public Member Functions

 PropertyTypesMap ()
 
virtual void fill () Q_DECL_OVERRIDE
 
virtual QList< FilePropertyall () const
 
- Public Member Functions inherited from Kwave::TypesMap< FileProperty, Flags >
 TypesMap ()
 
virtual ~TypesMap ()
 
virtual void append (FileProperty index, Flags data, const QString &name, const QString &description)
 
unsigned int count () const
 
FileProperty findFromData (const Flags &data) const
 
FileProperty findFromName (const QString &name) const
 
Flags data (FileProperty type) const
 
QString name (FileProperty type) const
 
QString description (FileProperty type, bool localized) const
 
QStringList allNames () const
 
QList< FilePropertykeys () const
 

Detailed Description

Pre-filled map with property names and descriptions

Definition at line 259 of file FileInfo.h.

Constructor & Destructor Documentation

◆ PropertyTypesMap()

Kwave::FileInfo::PropertyTypesMap::PropertyTypesMap ( )
inlineexplicit

constructor

Definition at line 263 of file FileInfo.h.

Member Function Documentation

◆ all()

QList< Kwave::FileProperty > Kwave::FileInfo::PropertyTypesMap::all ( ) const
virtual

returns a list of all properties

Definition at line 310 of file FileInfo.cpp.

References Kwave::TypesMap< FileProperty, Flags >::keys().

Referenced by Kwave::FileInfo::allKnownProperties().

311 {
312  return keys();
313 }
QList< FileProperty > keys() const
Definition: TypesMap.h:150
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill()

void Kwave::FileInfo::PropertyTypesMap::fill ( )
virtual

fills the list

Implements Kwave::TypesMap< FileProperty, Flags >.

Definition at line 29 of file FileInfo.cpp.

References _, Kwave::TypesMap< FileProperty, Flags >::append(), Kwave::FileInfo::FP_FORMAT_NUMERIC, Kwave::FileInfo::FP_INTERNAL, Kwave::FileInfo::FP_NO_LOAD_SAVE, Kwave::FileInfo::FP_NONE, Kwave::FileInfo::FP_READONLY, Kwave::INF_ALBUM, Kwave::INF_ANNOTATION, Kwave::INF_ARCHIVAL, Kwave::INF_AUTHOR, Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_MODE, Kwave::INF_BITRATE_NOMINAL, Kwave::INF_BITRATE_UPPER, Kwave::INF_BITS_PER_SAMPLE, Kwave::INF_CD, Kwave::INF_CDS, Kwave::INF_CHANNELS, Kwave::INF_COMMENTS, Kwave::INF_COMMISSIONED, Kwave::INF_COMPRESSION, Kwave::INF_CONTACT, Kwave::INF_COPYRIGHT, Kwave::INF_COPYRIGHTED, Kwave::INF_CREATION_DATE, Kwave::INF_ENGINEER, Kwave::INF_ESTIMATED_LENGTH, Kwave::INF_FILENAME, Kwave::INF_FILESIZE, Kwave::INF_GENRE, Kwave::INF_ISRC, Kwave::INF_KEYWORDS, Kwave::INF_LABELS, Kwave::INF_LENGTH, Kwave::INF_LICENSE, Kwave::INF_MEDIUM, Kwave::INF_MIMETYPE, Kwave::INF_MPEG_EMPHASIS, Kwave::INF_MPEG_LAYER, Kwave::INF_MPEG_MODEEXT, Kwave::INF_MPEG_VERSION, Kwave::INF_NAME, Kwave::INF_OPUS_FRAME_LEN, Kwave::INF_ORGANIZATION, Kwave::INF_ORIGINAL, Kwave::INF_PERFORMER, Kwave::INF_PRIVATE, Kwave::INF_PRODUCT, Kwave::INF_SAMPLE_FORMAT, Kwave::INF_SAMPLE_RATE, Kwave::INF_SOFTWARE, Kwave::INF_SOURCE, Kwave::INF_SOURCE_FORM, Kwave::INF_SUBJECT, Kwave::INF_TECHNICAN, Kwave::INF_TRACK, Kwave::INF_TRACKS, Kwave::INF_UNKNOWN, Kwave::INF_VBR_QUALITY, and Kwave::INF_VERSION.

30 {
33  QString(), QString());
34 
36  FP_NONE,
37  _(I18N_NOOP("Album")),
38  _(I18N_NOOP("Name of the album if the source is an album\n"
39  "that consist of more medias.")));
41  FP_NONE,
42  _(I18N_NOOP("Annotation")),
43  _(I18N_NOOP(
44  "Provides general comments about the file or the subject of\n"
45  "the file. If the comment is several sentences long, end\n"
46  "each sentence with a period. Do not include newline\n"
47  "characters!")));
49  FP_NONE,
50  _(I18N_NOOP("Archival location")),
51  _(I18N_NOOP("Indicates where the subject of the file is archived.")));
53  FP_NONE,
54  _(I18N_NOOP("Author")),
55  _(I18N_NOOP("Identifies the name of the author of the original\n"
56  "subject of the file."
57  "\nExample: 'van Beethoven, Ludwig'")));
60  _(I18N_NOOP("Lower Bitrate")),
61  _(I18N_NOOP("Specifies the lower limit in a VBR bitstream.")));
64  _(I18N_NOOP("Bitrate Mode")),
65  _(I18N_NOOP("Bitrate Mode (ABR, VBR, CBR, etc...)")));
68  _(I18N_NOOP("Bitrate")),
69  _(I18N_NOOP(
70  "Nominal bitrate of the audio stream in bits per second")));
73  _(I18N_NOOP("Upper Bitrate")),
74  _(I18N_NOOP("Specifies the upper limit in a VBR bitstream.")));
77  _(I18N_NOOP("Bits per Sample")),
78  _(I18N_NOOP("Specifies the number of bits per sample.")));
81  _(I18N_NOOP("CD")),
82  _(I18N_NOOP(
83  "Number of the CD, if the source is an album of more CDROMs")));
86  _(I18N_NOOP("CDS")),
87  _(I18N_NOOP(
88  "Number of CDs, if the source is an album of more CDROMs")));
90  FP_NONE,
91  _(I18N_NOOP("Commissioned")),
92  _(I18N_NOOP("Lists the name of the person or organization\n"
93  "that commissioned the subject of the file.")));
95  FP_NONE,
96  _(I18N_NOOP("Comments")),
97  _(I18N_NOOP(
98  "Provides general comments about the file or the subject of\n"
99  "the file. If the comment is several sentences long, end\n"
100  "each sentence with a period. Do not include newline\n"
101  "characters!")));
104  _(I18N_NOOP("Compression")),
105  _(I18N_NOOP("Sets a mode for compressing the audio\n"
106  "data to reduce disk space.")));
108  FP_NONE,
109  _(I18N_NOOP("Contact")),
110  _(I18N_NOOP("Contact information for the creators or distributors of\n"
111  "the track. This could be a URL, an email address, the\n"
112  "physical address of the producing label.")));
114  FP_NONE,
115  _(I18N_NOOP("Copyright")),
116  _(I18N_NOOP("Records the copyright information for the file. "
117  "If there are\n"
118  "multiple copyrights, separate them by a semicolon followed\n"
119  "by a space.\n"
120  "Example: 'Copyright Linux community 2002'")));
122  FP_NONE,
123  _(I18N_NOOP("Copyrighted")),
124  _(I18N_NOOP("Indicates whether the file is protected by "
125  "copyright or not.")));
127  FP_NONE,
128  _(I18N_NOOP("Date")),
129  _(I18N_NOOP("Specifies the date the subject of the file was created.\n"
130  "Example: '2001-12-24'")));
132  FP_NONE,
133  _(I18N_NOOP("Engineer")),
134  _(I18N_NOOP("Shows the name of the engineer who worked on the file.\n"
135  "If there are multiple engineers, separate the names by\n"
136  "a semicolon and a blank.")));
139  _(I18N_NOOP("Estimated Length")),
140  _(I18N_NOOP("Estimated length of the file in samples")));
143  _(I18N_NOOP("Filename")),
144  _(I18N_NOOP("Name of the opened file")));
147  _(I18N_NOOP("File Size")),
148  _(I18N_NOOP("Size of the file in bytes")));
150  FP_NONE,
151  _(I18N_NOOP("Genre")),
152  _(I18N_NOOP("Describes the genre or style of the original work.\n"
153  "Examples: 'classic', 'pop'")));
155  FP_READONLY,
156  _(I18N_NOOP("ISRC")),
157  _(I18N_NOOP("ISRC number for the track; see the ISRC intro page\n"
158  "for more information on ISRC numbers.\n"
159  "http://www.ifpi.org/site-content/online/isrc_intro.html")));
161  FP_NONE,
162  _(I18N_NOOP("Keywords")),
163  _(I18N_NOOP("Provides a list of keywords that refer to the\n"
164  "file or subject of the file.")));
166  FP_INTERNAL,
167  _(I18N_NOOP("Labels")),
168  _(I18N_NOOP("The list of labels/markers.")));
171  _(I18N_NOOP("Length")),
172  _(I18N_NOOP("Length of the file in samples.")));
174  FP_NONE,
175  _(I18N_NOOP("License")),
176  _(I18N_NOOP("License information, e.g., 'All Rights Reserved',\n"
177  "'Any Use Permitted', an URL to a license or the\n"
178  "EFF Open Audio License ('distributed under the\n"
179  "terms of the Open Audio License.\n"
180  "See http://www.eff.org/IP/Open_licenses/eff_oal.html\n"
181  "for details'), etc.")));
183  FP_NONE,
184  _(I18N_NOOP("Medium")),
185  _(I18N_NOOP("Describes the original subject of the file,\n"
186  "where it was first recorded.\n"
187  "Example: 'orchestra'")));
190  _(I18N_NOOP("Mime Type")),
191  _(I18N_NOOP("Mime type of the file format")));
194  _(I18N_NOOP("Emphasis")),
195  _(I18N_NOOP("Audio emphasis mode")));
198  _(I18N_NOOP("Layer")),
199  _(I18N_NOOP("MPEG Layer, I, II or III")));
202  _(I18N_NOOP("Mode Extension")),
203  _(I18N_NOOP("MPEG Mode Extension (only if Joint Stereo)")));
206  _(I18N_NOOP("Version")),
207  _(I18N_NOOP("MPEG Version, 1, 2 or 2.5")));
209  FP_NONE,
210  _(I18N_NOOP("Name")),
211  _(I18N_NOOP("Stores the title of the subject of the file.\n"
212  "Example: \"Symphony No.6, Op.68 'Pastoral'\"")));
215  _(I18N_NOOP("Opus Frame Length")),
216  _(I18N_NOOP("Opus Frame Length in ms (supported values are "
217  "2.5, 5, 10, 20, 40, or 60 ms)")));
219  FP_NONE,
220  _(I18N_NOOP("Organization")),
221  _(I18N_NOOP("Name of the organization producing the track\n"
222  "(i.e. the 'record label')")));
225  _(I18N_NOOP("Original")),
226  _(I18N_NOOP("Indicates whether the file is an original or a copy")));
228  FP_NONE,
229  _(I18N_NOOP("Performer")),
230  _(I18N_NOOP("The artist(s) who performed the work. In classical\n"
231  "music this would be the conductor, orchestra, soloists.\n"
232  "In an audio book it would be the actor who did the reading.")));
234  FP_NONE,
235  _(I18N_NOOP("Private")),
236  _(I18N_NOOP("Indicates whether the subject is private")));
238  FP_NONE,
239  _(I18N_NOOP("Product")),
240  _(I18N_NOOP("Specifies the name or the title the\n"
241  "file was originally intended for.\n"
242  "Example: 'Linux audio collection'")));
245  _(I18N_NOOP("Sample Format")),
246  _(I18N_NOOP("Format used for storing the digitized audio samples.\n"
247  "Example: '32-bit IEEE floating-point'")));
250  _(I18N_NOOP("Sample Rate")),
251  _(I18N_NOOP("Number of samples per second")));
253  FP_NONE,
254  _(I18N_NOOP("Software")),
255  _(I18N_NOOP("Identifies the name of the software package\n"
256  "used to create the file.\n"
257  "Example: 'Kwave v0.6.4-1'")));
259  FP_NONE,
260  _(I18N_NOOP("Source")),
261  _(I18N_NOOP("Identifies the name of the person or organization\n"
262  "who supplied the original subject of the file.\n"
263  "Example: 'Chaotic Sound Research'")));
265  FP_NONE,
266  _(I18N_NOOP("Source form")),
267  _(I18N_NOOP("Identifies the original form of\n"
268  "the material that was digitized.\n"
269  "Examples: 'Record/Vinyl/90RPM', 'Audio DAT', "
270  "'tape/CrO2/60min'")));
272  FP_NONE,
273  _(I18N_NOOP("Subject")),
274  _(I18N_NOOP("Describes the subject of the file.\n"
275  "Example: 'Bird voices at early morning'")));
277  FP_NONE,
278  _(I18N_NOOP("Technician")),
279  _(I18N_NOOP(
280  "Identifies the technician who digitized the subject file.\n"
281  "Example: 'Torvalds, Linus'")));
284  _(I18N_NOOP("Track")),
285  _(I18N_NOOP("Track of the CD if the source was a CDROM.")));
288  _(I18N_NOOP("Tracks")),
289  _(I18N_NOOP("Number of tracks of the CD if the source was a CDROM.")));
292  _(I18N_NOOP("Channels")),
293  _(I18N_NOOP("Specifies the number of channels of the signal.")));
296  _(I18N_NOOP("Base Quality")),
297  _(I18N_NOOP("Base quality of the compression in VBR mode")));
299  FP_NONE,
300  _(I18N_NOOP("Version")),
301  _(I18N_NOOP("May be used to differentiate multiple versions\n"
302  "of the same track title in a single collection.\n"
303  "(e.g. remix info)")));
304 
305  // please do not simply extend here, sort in alphabetically instead...
306 
307 }
virtual void append(FileProperty index, Flags data, const QString &name, const QString &description)
Definition: TypesMap.h:72
#define _(m)
Definition: memcpy.c:66
Here is the call graph for this function:

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