MythTV  master
Classes | Macros | Typedefs | Enumerations | Functions
musicmetadata.h File Reference
#include <cstdint>
#include <QStringList>
#include <QMap>
#include <QDateTime>
#include <QImage>
#include <QMetaType>
#include <QCoreApplication>
#include "mythtypes.h"
#include "mythmetaexp.h"
#include "mthread.h"
#include "mythcorecontext.h"
Include dependency graph for musicmetadata.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AlbumArtImage
 
class  MusicMetadata
 
class  MetadataLoadingThread
 
class  AllMusic
 
class  AllStream
 
class  AlbumArtScannerThread
 
class  AlbumArtImages
 

Macros

#define METADATA_BITS_FOR_REPO   8
 
#define METADATA_REPO_SHIFT   24
 
#define METADATA_REPO_MASK   0xff000000
 
#define METADATA_ID_MASK   0x00ffffff
 
#define ID_TO_ID(x)   x & METADATA_ID_MASK;
 
#define ID_TO_REPO(x)   x >> METADATA_REPO_SHIFT
 
#define METADATA_INVALID_FILENAME   "**NOT FOUND**"
 
#define STREAMUPDATEURL   "https://services.mythtv.org/music/data/?data=streams"
 
#define STREAMURLCOUNT   5
 

Typedefs

typedef QList< AlbumArtImage * > AlbumArtList
 
typedef QString UrlList[STREAMURLCOUNT]
 
typedef QList< MusicMetadata * > MetadataPtrList
 
typedef QList< MusicMetadata * > StreamList
 

Enumerations

enum  ImageType {
  IT_UNKNOWN = 0, IT_FRONTCOVER, IT_BACKCOVER, IT_CD,
  IT_INLAY, IT_ARTIST, IT_LAST
}
 
enum  RepoType { RT_Database = 0, RT_CD = 1, RT_Radio = 2 }
 

Functions

bool operator== (MusicMetadata &a, MusicMetadata &b)
 
bool operator!= (MusicMetadata &a, MusicMetadata &b)
 
 Q_DECLARE_METATYPE (ImageType)
 
 Q_DECLARE_METATYPE (AlbumArtImage *)
 

Macro Definition Documentation

◆ METADATA_BITS_FOR_REPO

#define METADATA_BITS_FOR_REPO   8

Definition at line 63 of file musicmetadata.h.

◆ METADATA_REPO_SHIFT

#define METADATA_REPO_SHIFT   24

Definition at line 64 of file musicmetadata.h.

◆ METADATA_REPO_MASK

#define METADATA_REPO_MASK   0xff000000

Definition at line 65 of file musicmetadata.h.

◆ METADATA_ID_MASK

#define METADATA_ID_MASK   0x00ffffff

Definition at line 66 of file musicmetadata.h.

◆ ID_TO_ID

#define ID_TO_ID (   x)    x & METADATA_ID_MASK;

Definition at line 68 of file musicmetadata.h.

◆ ID_TO_REPO

#define ID_TO_REPO (   x)    x >> METADATA_REPO_SHIFT

Definition at line 69 of file musicmetadata.h.

◆ METADATA_INVALID_FILENAME

#define METADATA_INVALID_FILENAME   "**NOT FOUND**"

Definition at line 71 of file musicmetadata.h.

◆ STREAMUPDATEURL

#define STREAMUPDATEURL   "https://services.mythtv.org/music/data/?data=streams"

Definition at line 73 of file musicmetadata.h.

◆ STREAMURLCOUNT

#define STREAMURLCOUNT   5

Definition at line 74 of file musicmetadata.h.

Typedef Documentation

◆ AlbumArtList

typedef QList<AlbumArtImage*> AlbumArtList

Definition at line 54 of file musicmetadata.h.

◆ UrlList

typedef QString UrlList[STREAMURLCOUNT]

Definition at line 76 of file musicmetadata.h.

◆ MetadataPtrList

typedef QList<MusicMetadata*> MetadataPtrList

Definition at line 386 of file musicmetadata.h.

◆ StreamList

typedef QList<MusicMetadata*> StreamList

Definition at line 469 of file musicmetadata.h.

Enumeration Type Documentation

◆ ImageType

enum ImageType
Enumerator
IT_UNKNOWN 
IT_FRONTCOVER 
IT_BACKCOVER 
IT_CD 
IT_INLAY 
IT_ARTIST 
IT_LAST 

Definition at line 26 of file musicmetadata.h.

◆ RepoType

enum RepoType
Enumerator
RT_Database 
RT_CD 
RT_Radio 

Definition at line 56 of file musicmetadata.h.

Function Documentation

◆ operator==()

bool operator== ( MusicMetadata a,
MusicMetadata b 
)

Definition at line 48 of file musicmetadata.cpp.

◆ operator!=()

bool operator!= ( MusicMetadata a,
MusicMetadata b 
)

Definition at line 53 of file musicmetadata.cpp.

◆ Q_DECLARE_METATYPE() [1/2]

Q_DECLARE_METATYPE ( ImageType  )

◆ Q_DECLARE_METATYPE() [2/2]

Q_DECLARE_METATYPE ( AlbumArtImage )