Qpastebinclient is a project mainly written in C++, it's free.
Pastebin client library for Qt C++. UPDATE: Moved to http://gitorious.org/qpastebinclient
Pastebin Client Library for Qt C++ (C) 2010 Soluvas (http://www.Soluvas.com) Project Home: http://github.com/ceefour/qpastebinclient Licensed under LGPL version 2.1
Client library for Pastebin.com.
Warning: Please do not abuse Pastebin.com.
Usage:
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");