BlackBerryPlatformService.hpp Example File
bpstoqml/src/BlackBerryPlatformService.hpp
#ifndef BLACKBERRYPLATFORMSERVICE_H_
#define BLACKBERRYPLATFORMSERVICE_H_
#include <QObject>
#include <QtDeclarative/qdeclarative.h>
struct bps_event_t;
namespace bb {
namespace cascades {
namespace bps {
class BlackBerryPlatformService : public QObject {
Q_OBJECT
public:
explicit BlackBerryPlatformService(QObject *parent = 0) : QObject(parent) {}
virtual ~BlackBerryPlatformService() {}
virtual void requestEvents() = 0;
virtual int eventDomain() = 0;
virtual void handleEvent(bps_event_t *event) = 0;
private:
Q_DISABLE_COPY(BlackBerryPlatformService)
};
}
}
}
QML_DECLARE_TYPE(bb::cascades::bps::BlackBerryPlatformService)
#endif /* BLACKBERRYPLATFORMSERVICE_H_ */