~ubuntu-branches/ubuntu/vivid/guayadeque/vivid

« back to all changes in this revision

Viewing changes to src/.svn/text-base/TagInfo.h.svn-base

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-02-25 11:59:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225115910-13phl46pz0rgqg0a
Tags: 0.2.9-1
* Imported Upstream version 0.2.9
* Drop 02-google_cover_search_engine_crash.patch patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <id3v2framefactory.h>
32
32
#include <textidentificationframe.h>
33
33
#include <unsynchronizedlyricsframe.h>
 
34
#include <asffile.h>
34
35
#include <mpegfile.h>
35
36
#include <flacfile.h>
36
37
#include <mp4file.h>
37
38
#include <mpcfile.h>
38
39
#include <oggfile.h>
39
40
#include <vorbisfile.h>
 
41
#include <wavpackfile.h>
 
42
#include <trueaudiofile.h>
40
43
 
41
44
#include <xiphcomment.h>
42
45
 
43
46
#include <mp4tag.h>
44
47
#include <apetag.h>
45
48
#include <id3v2tag.h>
 
49
#include <asftag.h>
46
50
 
47
51
// FLAC Dev files
48
52
#include <FLAC/metadata.h>
234
238
    virtual bool        SetImage( const wxImage * image );
235
239
};
236
240
 
 
241
// -------------------------------------------------------------------------------- //
 
242
class guWavPackTagInfo : public guTagInfo
 
243
{
 
244
  protected :
 
245
    TagLib::APE::Tag * m_ApeTag;
 
246
 
 
247
  public :
 
248
    guWavPackTagInfo( const wxString &filename = wxEmptyString );
 
249
    ~guWavPackTagInfo();
 
250
 
 
251
    virtual bool        Read( void );
 
252
    virtual bool        Write( void );
 
253
 
 
254
    virtual bool        CanHandleImages( void );
 
255
    virtual wxImage *   GetImage( void );
 
256
    virtual bool        SetImage( const wxImage * image );
 
257
    virtual bool        CanHandleLyrics( void );
 
258
    virtual wxString    GetLyrics( void );
 
259
    virtual bool        SetLyrics( const wxString &lyrics );
 
260
};
 
261
 
 
262
// -------------------------------------------------------------------------------- //
 
263
class guTrueAudioTagInfo : public guTagInfo
 
264
{
 
265
  protected :
 
266
    ID3v2::Tag *        m_TagId3v2;
 
267
 
 
268
  public :
 
269
    guTrueAudioTagInfo( const wxString &filename = wxEmptyString );
 
270
    ~guTrueAudioTagInfo();
 
271
 
 
272
    virtual bool        Read( void );
 
273
    virtual bool        Write( void );
 
274
 
 
275
    virtual bool        CanHandleImages( void );
 
276
    virtual wxImage *   GetImage( void );
 
277
    virtual bool        SetImage( const wxImage * image );
 
278
    virtual bool        CanHandleLyrics( void );
 
279
    virtual wxString    GetLyrics( void );
 
280
    virtual bool        SetLyrics( const wxString &lyrics );
 
281
};
 
282
 
 
283
// -------------------------------------------------------------------------------- //
 
284
class guASFTagInfo : public guTagInfo
 
285
{
 
286
  protected :
 
287
    ASF::Tag *        m_ASFTag;
 
288
 
 
289
  public :
 
290
    guASFTagInfo( const wxString &filename = wxEmptyString );
 
291
    ~guASFTagInfo();
 
292
 
 
293
    virtual bool        Read( void );
 
294
    virtual bool        Write( void );
 
295
 
 
296
    virtual bool        CanHandleImages( void );
 
297
    virtual wxImage *   GetImage( void );
 
298
    virtual bool        SetImage( const wxImage * image );
 
299
    virtual bool        CanHandleLyrics( void );
 
300
    virtual wxString    GetLyrics( void );
 
301
    virtual bool        SetLyrics( const wxString &lyrics );
 
302
};
 
303
 
237
304
 
238
305
class guImagePtrArray;
239
306
 
240
307
// -------------------------------------------------------------------------------- //
241
308
wxImage *   guTagGetPicture( const wxString &filename );
242
309
bool        guTagSetPicture( const wxString &filename, wxImage * picture );
 
310
bool        guTagSetPicture( const wxString &filename, const wxString &imagefile );
243
311
wxString    guTagGetLyrics( const wxString &filename );
244
 
bool        guTagSetPicture( const wxString &filename, wxString &lyrics );
245
 
void        UpdateImages( const guTrackArray &songs, const guImagePtrArray &images );
246
 
void        UpdateLyrics( const guTrackArray &songs, const wxArrayString &lyrics );
247
 
 
 
312
bool        guTagSetLyrics( const wxString &filename, wxString &lyrics );
 
313
void        guUpdateImages( const guTrackArray &songs, const guImagePtrArray &images );
 
314
void        guUpdateLyrics( const guTrackArray &songs, const wxArrayString &lyrics );
 
315
bool        guStrDiskToDiskNum( const wxString &diskstr, int &disknum, int &disktotal );
248
316
#endif
249
317
// -------------------------------------------------------------------------------- //