no message
[xbmc:xbmc-antiquated.git] / xbmc / musicInfoTag.h
1 #pragma once
2
3 #include "stdstring.h"
4 namespace MUSIC_INFO
5 {
6
7         class CMusicInfoTag
8         {
9         public:
10                 CMusicInfoTag(void);
11                 virtual ~CMusicInfoTag();
12                 bool                                                    Load(const CStdString& strFileName);
13                 void                                                    Save(const CStdString& strFileName);
14                 bool                                                    Loaded() const;
15                 const CStdString& GetTitle() const;
16                 const CStdString& GetURL() const;
17                 const CStdString& GetArtist() const;
18                 const CStdString& GetAlbum() const;
19                 const CStdString& GetGenre() const;
20                 int                                                             GetTrackNumber() const;
21                 int                                                             GetDuration() const;
22                 void                                                    GetReleaseDate(SYSTEMTIME& dateTime);
23
24                 void                                                    SetURL(const CStdString& strURL) ;
25                 void                                                    SetTitle(const CStdString& strTitle) ;
26                 void                                                    SetArtist(const CStdString& strArtist) ;
27                 void                                                    SetAlbum(const CStdString& strAlbum) ;
28                 void                                                    SetGenre(const CStdString& strGenre) ;
29                 void                                                    SetReleaseDate(SYSTEMTIME& dateTime);
30                 void                                                    SetTrackNumber(int iTrack);
31                 void                                                    SetDuration(int iSec);
32                 void                                                    SetLoaded(bool bOnOff=true);
33         protected:
34                 CStdString      m_strURL;
35                 CStdString      m_strTitle;
36                 CStdString      m_strArtist;
37                 CStdString      m_strAlbum;
38                 CStdString      m_strGenre;
39                 int                                     m_iDuration;
40                 int                                     m_iTrack;
41                 bool                      m_bLoaded;
42                 SYSTEMTIME  m_dwReleaseDate;
43         };
44 };