From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcddb/test/utf8test.cpp | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libkcddb/test/utf8test.cpp (limited to 'libkcddb/test/utf8test.cpp') diff --git a/libkcddb/test/utf8test.cpp b/libkcddb/test/utf8test.cpp new file mode 100644 index 00000000..05d8b83e --- /dev/null +++ b/libkcddb/test/utf8test.cpp @@ -0,0 +1,50 @@ +#include +#include +#include + +#include "libkcddb/client.h" +#include "libkcddb/cache.h" +#include "libkcddb/lookup.h" + + int +main(int argc, char ** argv) +{ + KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", ""); + + KApplication 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; +} -- cgit v1.2.1