app.hpp Example File
invocation/invoketarget/src/app.hpp
#ifndef APP_HPP
#define APP_HPP
#include <bb/system/CardDoneMessage.hpp>
#include <bb/system/InvokeManager>
#include <bb/system/InvokeRequest>
#include <QtCore/QObject>
class App : public QObject
{
Q_OBJECT
Q_PROPERTY(QString startupMode READ startupMode NOTIFY requestChanged)
Q_PROPERTY(QString source READ source NOTIFY requestChanged)
Q_PROPERTY(QString target READ target NOTIFY requestChanged)
Q_PROPERTY(QString action READ action NOTIFY requestChanged)
Q_PROPERTY(QString mimeType READ mimeType NOTIFY requestChanged)
Q_PROPERTY(QString uri READ uri NOTIFY requestChanged)
Q_PROPERTY(QString data READ data NOTIFY requestChanged)
Q_PROPERTY(QString status READ status NOTIFY statusChanged)
Q_PROPERTY(QString title READ title NOTIFY requestChanged)
Q_PROPERTY(bool backButtonVisible READ backButtonVisible NOTIFY requestChanged)
public:
App(QObject *parent = 0);
public Q_SLOTS:
void cardDone();
Q_SIGNALS:
void requestChanged();
void statusChanged();
private Q_SLOTS:
void handleInvoke(const bb::system::InvokeRequest&);
void resized(const bb::system::CardResizeMessage&);
void pooled(const bb::system::CardDoneMessage&);
private:
QString startupMode() const;
QString source() const;
QString target() const;
QString action() const;
QString mimeType() const;
QString uri() const;
QString data() const;
QString status() const;
QString title() const;
bool backButtonVisible() const;
bb::system::InvokeManager *m_invokeManager;
QString m_startupMode;
QString m_source;
QString m_target;
QString m_action;
QString m_mimeType;
QString m_uri;
QString m_data;
QString m_status;
QString m_title;
bool m_backButtonVisible;
};
#endif