BPSEventHandler.hpp Example File
bpstoqml/src/BPSEventHandler.hpp
#ifndef BPSEVENTHANDLER_H_
#define BPSEVENTHANDLER_H_
#include <bb/AbstractBpsEventHandler>
#include "BlackBerryPlatformService.hpp"
namespace bb {
namespace cascades {
namespace bps {
class BPSEventHandler: public bb::AbstractBpsEventHandler {
public:
BPSEventHandler();
virtual ~BPSEventHandler();
void setServices(const QList<BlackBerryPlatformService*> &services) {
m_services = services;
}
QList<BlackBerryPlatformService*> &services() {
return m_services;
}
virtual void event(bps_event_t *event);
void registerService(BlackBerryPlatformService *service);
private:
QList<BlackBerryPlatformService*> m_services;
};
}
}
}
#endif /* BPSEVENTHANDLER_H_ */