| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_CDDB_LOCAL |
| 14 |
#define H_FREAC_CDDB_LOCAL |
| 15 |
|
| 16 |
#include <cddb/cddb.h> |
| 17 |
#include <boca/common/protocol.h> |
| 18 |
|
| 19 |
namespace freac |
| 20 |
{ |
| 21 |
class CDDBLocal : public CDDB |
| 22 |
{ |
| 23 |
private: |
| 24 |
Array<String> results; |
| 25 |
|
| 26 |
Bool QueryUnixDB(const String &); |
| 27 |
Bool QueryWinDB(const String &); |
| 28 |
public: |
| 29 |
CDDBLocal(); |
| 30 |
virtual ~CDDBLocal(); |
| 31 |
|
| 32 |
Bool ConnectToServer(); |
| 33 |
Int Query(const String &); |
| 34 |
Bool Read(const String &, UnsignedInt32, CDDBInfo &); |
| 35 |
Bool Submit(const CDDBInfo &); |
| 36 |
Bool CloseConnection(); |
| 37 |
}; |
| 38 |
}; |
| 39 |
|
| 40 |
#endif |