You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/libkcddb/test/utf8test.cpp

51 lines
936 B

#include <tdeapplication.h>
#include <tdecmdlineargs.h>
#include <kdebug.h>
#include "libkcddb/client.h"
#include "libkcddb/cache.h"
#include "libkcddb/lookup.h"
int
main(int argc, char ** argv)
{
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDEApplication app;
using namespace KCDDB;
Client c;
TrackOffsetList list;
list
<< 150
<< 61408
<< 0
<< 177675;
kdDebug() << "Stuff to send to server:" << endl;
kdDebug()
<< CDDB::trackOffsetListToId(list)
<< " "
//<< trackOffsetListToString(list)
<< endl;
CDDB::Result r = c.lookup(list);
kdDebug() << "Client::lookup gave : " << CDDB::resultToString(r) << endl;
CDInfoList response = c.lookupResponse();
kdDebug() << "Client::lookup returned : " << response.count() << " entries"
<< endl;
CDInfo i( c.bestLookupResponse() );
kdDebug() << "Best CDInfo had title: " << i.title << endl;
return 0;
}