Sunday, January 31, 2010

Pastebin API client library for C++ and Qt framework

During my pursuit of Qt Mobility Contest, I created several utility class libraries. The first is QPastebinClient, which as its name suggests, is an API client library for the popular Pastebin service written in C++ and using the Qt framework.

QPastebinClient is cross-platform and works on all platforms supported by Qt, even mobile platforms like Symbian and Maemo. Usage is very simple:
QPastebinClient *pastebin = new QPastebinClient(this);

connect(pastebin, SIGNAL(finished(QString)), this, SLOT(setPastebinUrl(QString)));
connect(pastebin, SIGNAL(failed(QString)), this, SLOT(showError(QString)));

pastebin->paste("Some worthy code");

QPastebinClient is free/open source software and licensed under LGPL 2.1 or later.

Check out QPastebinClient project page to get the sources. I will appreciate any feedback you have.

Update: Moved repository to Gitorious.

No comments:

Post a Comment

Be the first to comment!