|
void | setCDDBIpAddress (const std::string &ip_address) |
|
void | setCacheDir (const std::string &pCacheDir) |
|
bool | queryCDinfo (MEDIA_DETECT::CCdInfo *pInfo, int inexact_list_select) |
|
bool | queryCDinfo (MEDIA_DETECT::CCdInfo *pInfo) |
|
int | getLastError () const |
|
const char * | getLastErrorText () const |
|
const std::string & | getYear () const |
|
const std::string & | getGenre () const |
|
const std::string & | getTrackArtist (int track) const |
|
const std::string & | getTrackTitle (int track) const |
|
void | getDiskArtist (std::string &strdisk_artist) const |
|
void | getDiskTitle (std::string &strdisk_title) const |
|
const std::string & | getTrackExtended (int track) const |
|
uint32_t | calc_disc_id (int nr_of_tracks, toc cdtoc[]) |
|
const std::string & | getInexactArtist (int select) const |
|
const std::string & | getInexactTitle (int select) const |
|
bool | queryCache (uint32_t discid) |
|
bool | writeCacheFile (const char *pBuffer, uint32_t discid) |
|
bool | isCDCached (int nr_of_tracks, toc cdtoc[]) |
|
bool | isCDCached (MEDIA_DETECT::CCdInfo *pInfo) |
|
|
void | addTitle (const char *buffer) |
|
void | addExtended (const char *buffer) |
|
void | parseData (const char *buffer) |
|
bool | Send (const void *buffer, int bytes) |
|
bool | Send (const char *buffer) |
|
std::string | Recv (bool wait4point) |
|
bool | openSocket () |
|
bool | closeSocket () |
|
int | cddb_sum (int n) |
|
void | addInexactList (const char *list) |
|
void | addInexactListLine (int line_cnt, const char *line, int len) |
|
const std::string & | getInexactCommand (int select) const |
|
std::string | GetCacheFile (uint32_t disc_id) const |
|
std::string | TrimToUTF8 (const std::string &untrimmed) |
| Trim and convert some text to UTF8. More...
|
|
|
std::string | m_strNull |
|
CAutoPtrSocket | m_cddb_socket |
|
int | m_lastError |
|
std::map< int, std::string > | m_mapTitles |
|
std::map< int, std::string > | m_mapArtists |
|
std::map< int, std::string > | m_mapExtended_track |
|
std::map< int, std::string > | m_mapInexact_cddb_command_list |
|
std::map< int, std::string > | m_mapInexact_artist_list |
|
std::map< int, std::string > | m_mapInexact_title_list |
|
std::string | m_strDisk_artist |
|
std::string | m_strDisk_title |
|
std::string | m_strYear |
|
std::string | m_strGenre |
|
struct toc | cdtoc [100] |
|
std::string | m_cddb_ip_address |
|
std::string | cCacheDir |
|
|
static const int | recv_buffer = 4096 |
|
◆ parseData()
void Xcddb::parseData |
( |
const char * |
buffer | ) |
|
|
protected |
◆ TrimToUTF8()
std::string Xcddb::TrimToUTF8 |
( |
const std::string & |
untrimmed | ) |
|
|
protected |
Trim and convert some text to UTF8.
- Parameters
-
untrimmedText | original text to trim and convert |
- Returns
- a utf8 version of the trimmed text
The documentation for this class was generated from the following files:
- xbmc/network/cddb.h
- xbmc/network/cddb.cpp