~ubuntu-branches/ubuntu/karmic/kid3/karmic

« back to all changes in this revision

Viewing changes to kid3/importtrackdata.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-05-20 16:12:30 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090520161230-qetp532r8ydujkz2
Tags: upstream-1.2
Import upstream version 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#define IMPORTTRACKDATA_H
29
29
 
30
30
#include "frame.h"
 
31
#include "taggedfile.h"
31
32
#include <qglobal.h>
32
33
#include "qtcompatmac.h"
33
34
#if QT_VERSION >= 0x040000
142
143
        void setTagFormatV2(const QString& tagFormatV2) { m_tagFormatV2 = tagFormatV2; }
143
144
 
144
145
        /**
 
146
         * Get detail info.
 
147
         * @return detail info.
 
148
         */
 
149
        const TaggedFile::DetailInfo& getDetailInfo() const { return m_detailInfo; }
 
150
 
 
151
        /**
 
152
         * Set detail info.
 
153
         * @param detailInfo detail info
 
154
         */
 
155
        void setDetailInfo(const TaggedFile::DetailInfo& detailInfo) { m_detailInfo = detailInfo; }
 
156
 
 
157
        /**
145
158
         * Format a string from track data.
146
159
         * Supported format fields:
147
160
         * Those supported by TrackDataFormatReplacer::getReplacement()
186
199
        QString m_fileExtension;
187
200
        QString m_tagFormatV1;
188
201
        QString m_tagFormatV2;
 
202
        TaggedFile::DetailInfo m_detailInfo;
189
203
};
190
204
 
191
205
/**
223
237
         */
224
238
        void setAlbum(const QString& album) { m_album = album; }
225
239
 
 
240
        /**
 
241
         * Get cover art URL.
 
242
         * @return cover art URL.
 
243
         */
 
244
        QString getCoverArtUrl() const { return m_coverArtUrl; }
 
245
 
 
246
        /**
 
247
         * Set cover art URL.
 
248
         * @param coverArtUrl cover art URL
 
249
         */
 
250
        void setCoverArtUrl(const QString& coverArtUrl) { m_coverArtUrl = coverArtUrl; }
 
251
 
226
252
private:
227
253
        QString m_artist;
228
254
        QString m_album;
 
255
        QString m_coverArtUrl;
229
256
};
230
257
 
231
258