1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
27 class AudioFileModel : public QObject
32 AudioFileModel(const QString &path = QString(), const QString &name = QString());
33 AudioFileModel(const AudioFileModel &model);
34 AudioFileModel &operator=(const AudioFileModel &model);
35 ~AudioFileModel(void);
37 //-----------------------
39 //-----------------------
41 const QString &filePath(void) const;
42 const QString &fileName(void) const;
43 const QString &fileArtist(void) const;
44 const QString &fileAlbum(void) const;
45 const QString &fileGenre(void) const;
46 const QString &fileComment(void) const;
47 unsigned int fileYear(void) const;
48 unsigned int filePosition(void) const;
49 unsigned int fileDuration(void) const;
51 const QString &formatContainerType(void) const;
52 const QString &formatContainerProfile(void) const;
53 const QString &formatAudioType(void) const;
54 const QString &formatAudioProfile(void) const;
55 const QString &formatAudioVersion(void) const;
56 unsigned int formatAudioSamplerate(void) const;
57 unsigned int formatAudioChannels(void) const;
58 unsigned int formatAudioBitdepth(void) const;
60 const QString fileDurationInfo(void) const;
61 const QString formatContainerInfo(void) const;
62 const QString formatAudioBaseInfo(void) const;
63 const QString formatAudioCompressInfo(void) const;
65 //-----------------------
67 //-----------------------
69 void setFilePath(const QString &path);
70 void setFileName(const QString &name);
71 void setFileArtist(const QString &artist);
72 void setFileAlbum(const QString &album);
73 void setFileGenre(const QString &genre);
74 void setFileComment(const QString &comment);
75 void setFileYear(unsigned int year);
76 void setFilePosition(unsigned int position);
77 void setFileDuration(unsigned int duration);
79 void setFormatContainerType(const QString &type);
80 void setFormatContainerProfile(const QString &profile);
81 void setFormatAudioType(const QString &type);
82 void setFormatAudioProfile(const QString &profile);
83 void setFormatAudioVersion(const QString &version);
84 void setFormatAudioSamplerate(unsigned int samplerate);
85 void setFormatAudioChannels(unsigned int channels);
86 void setFormatAudioBitdepth(unsigned int bitdepth);
94 QString m_fileComment;
95 unsigned int m_fileYear;
96 unsigned int m_filePosition;
97 unsigned int m_fileDuration;
99 QString m_formatContainerType;
100 QString m_formatContainerProfile;
101 QString m_formatAudioType;
102 QString m_formatAudioProfile;
103 QString m_formatAudioVersion;
104 unsigned int m_formatAudioSamplerate;
105 unsigned int m_formatAudioChannels;
106 unsigned int m_formatAudioBitdepth;