libbb/Application_swipeDown.cpp
This example illustrates how to connect to the Application swipeDown signal in C++.
#include <bb/Application>
#include <QObject>
class TestObject: public QObject {
Q_OBJECT
public Q_SLOTS:
void onSwipeDown();
};
void TestObject::onSwipeDown() {
// Do something here
}
int main(int argc, char **argv) {
bb::Application app(argc, argv);
TestObject testObject;
QObject::connect(&app, SIGNAL( swipeDown() ), &testObject, SLOT( onSwipeDown() ));
return app.exec();
}