Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

cMusic.h

Go to the documentation of this file.
00001 
00014 #ifndef _cMusic_h
00015 #define _cMusic_h
00016 
00017 #include "TypesDef.h" // Int
00018 
00019 #include <string>
00020 using std::string;
00021 
00022 //************************************************
00023 // Number assigned has to be in ORDER. 
00024 // Order similar to description of cMusicWidget.h.
00025 //************************************************
00026 
00027 const Int MU_YEAR                       = 0     ; 
00028 const Int MU_MONTH                      = 1     ;
00029 const Int MU_DAY                        = 2     ;
00030 const Int MU_ARTIST                     = 3     ;
00031 const Int MU_ALBUM                      = 4     ;
00032 const Int MU_GENRE                      = 5     ;
00033 const Int MU_MU_LANGUAGE        = 6     ;
00034 const Int MU_SONGS                      = 7     ;
00035 const Int MU_MD4                        = 8     ;
00036 
00037 const Int NUM_OF_MUSIC_DATA = 9;
00038 
00039 class cMusic
00040 {
00041 
00042 public:
00044         cMusic(void);
00045 
00047         ~cMusic(void);
00048         
00050         void Clear(void);
00051         
00052         void SetData            (const string *sData);
00053         
00054         //*******************
00055         // All Set Functions.
00056         //*******************
00057         void SetDate     (const string sDate);  // set date string("yyyy-mm-dd")
00058         void SetArtist   (const string sArtist);
00059         void SetAlbum    (const string sAlbum);
00060         void SetGenre    (const string sGenre);
00061         void SetLanguage (const string sLanguage);
00062         void SetSongs    (const string sSongs);
00063         void SetMd4      (const string sMd4);
00064 
00065         const string *GetData             (void) const;
00066         //*******************
00067         // All Get Functions.
00068         //*******************
00069         const string GetDate     (void) const;  // return const string("yyyy-mm-dd")
00070         const string GetArtist   (void) const;
00071         const string GetAlbum    (void) const;
00072         const string GetGenre    (void) const;
00073         const string GetLanguage (void) const;
00074         const string GetSongs    (void) const;
00075         const string GetMd4      (void) const;
00076 
00077 protected: 
00078 
00079 private:        
00080         string m_pMusicData[NUM_OF_MUSIC_DATA];
00081         
00082         void SetDay    (const string sDay);
00083         void SetMonth  (const string sMonth);
00084         void SetYear   (const string sYear);
00085 
00086         const string GetDay   (void) const;
00087         const string GetMonth (void) const;
00088         const string GetYear  (void) const;
00089 
00090 };
00091 
00092 #endif // _cMusic_h

Generated on Wed Feb 25 01:15:10 2004 for eDonkeyFilesManager by doxygen 1.3.2