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

cSqlAct.h

Go to the documentation of this file.
00001 
00014 #ifndef _cSqlAct_h
00015 #define _cSqlAct_h
00016 
00017 #include "TypesDef.h"
00018 #include "cSqlBaseIf.h"
00019 
00020 #include "cMySQL.h"
00021 #include "cConnect.h"
00022 
00023 #include "cFile.h"
00024 #include "cMovie.h"
00025 #include "cMusic.h"
00026 #include "cSoftware.h"
00027 
00028 #include <string>
00029 #include <list>
00030 
00031 using std::string;
00032 using std::list;
00033 
00034 
00035 class cSqlAct: public cSqlBaseIf
00036 {
00037 public:
00038         cSqlAct(void);
00039         ~cSqlAct(void);
00040         
00042         Bool Connect(void);
00043         
00045         void Close(void);
00046 
00048         Int ErrorNum(void);
00049         
00051         list<string> GetDatabaseList(void); 
00052         
00054         Bool CreateDatabase(string sDbName);
00055 
00057         Bool DeleteDatabase(string sDbName);
00058 
00060         Bool SelectDatabase(string sDbName);
00061         
00063         void CreateTables(void);
00064         
00065         
00067         list< list<string> > GetFileList(void);
00068         
00070         list< list<string> > GetMovieList(void);
00071         
00073         list< list<string> > GetSoftwareList(void);     
00074 
00076         list< list<string> > GetMusicList(void);        
00077 
00078 
00080         list<string> GetFileRowResult(const string sMd4);
00081 
00083         list<string> GetMovieRowResult(const string sMd4);
00084 
00086         list<string> GetSoftwareRowResult(const string sMd4);
00087         
00089         list<string> GetMusicRowResult(const string sMd4);
00090 
00091 
00093         Bool InsertNewEntry2File(cFile* File);
00094 
00096         Bool InsertNewEntry2Movie(cMovie* Movie);
00097         
00099         Bool InsertNewEntry2Music(cMusic* Music);
00100 
00102         Bool InsertNewEntry2Software(cSoftware* Software);
00103 
00104 
00105 
00107         Bool IsMd4Found(const string sMd4);
00108         
00110         const string GetCategory(const string sMd4);
00111         
00112         
00114         Bool UpdateFile(cFile* pFile);
00115 
00117         Bool UpdateMovie(cMovie* pMovie);
00118         
00120         Bool UpdateSoftware(cSoftware* pSoftware);
00121 
00123         Bool UpdateMusic(cMusic* pMusic);
00124 
00125 
00127         Bool DeleteFromFile(const string sMd4);
00128         
00130         Bool DeleteFromMovie(const string sMd4);
00131 
00133         Bool DeleteFromSoftware(const string sMd4);
00134         
00136         Bool DeleteFromMusic(const string sMd4);
00137         
00138 protected:
00139         
00140 private:
00141         // All RDMS classes.
00142         cMySQL MySQL;
00143 
00144         cConnect *m_pConnect;
00145 
00146 };
00147 
00148 #endif // _cSqlAct_h
00149 

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