app.hpp Example File
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)
public:
App(QObject *parent = 0);
void initFullUI();
void initComposerUI();
void initPreviewerUI();
void initPickerUI();
public Q_SLOTS:
void cardDone(const QString& msg);
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;
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;
};
#endif