In your main method you will create an instance of Application and an instance of one of your own classes. You just hook up a slot in your class to the thumbnail() signal of the Application class, as shown in the example you linked to:
int main(int argc, char **argv) {
bb::Application app(argc, argv);
TestObject testObject;
QObject::connect(&app, SIGNAL( thumbnail() ), &testObject, SLOT( onThumbnail() ));
return app.exec();
}