~ted/address-book-app/url-dispatcher

« back to all changes in this revision

Viewing changes to src/app/addressbookapp.h

  • Committer: Tarmac
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2013-10-10 03:50:20 UTC
  • mfrom: (83.2.11 fix-1230404)
  • Revision ID: tarmac-20131010035020-fm21klnirifwvno1
Initial implementation for UriHandler. Fixes: https://bugs.launchpad.net/bugs/1230404.

Approved by PS Jenkins bot, Bill Filler, Michael Terry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <QQuickView>
22
22
#include <QGuiApplication>
23
23
 
24
 
class AddressBookAppDBus;
25
 
 
26
24
class AddressBookApp : public QGuiApplication
27
25
{
28
26
    Q_OBJECT
36
34
public Q_SLOTS:
37
35
    void activateWindow();
38
36
    QUrl copyImage(QObject *contact, const QUrl &imageUrl);
39
 
 
40
 
private:
41
 
    void parseArgument(const QString &arg);
42
37
    void parseUrl(const QString &arg);
 
38
    void onViewStatusChanged(QQuickView::Status status);
 
39
 
 
40
private:
43
41
    void callQMLMethod(const QString name, QStringList args);
44
42
 
45
 
private Q_SLOTS:
46
 
    void onMessageReceived(const QString &message);
47
 
    void onViewStatusChanged(QQuickView::Status status);
48
 
 
49
43
private:
50
44
    QQuickView *m_view;
51
 
    AddressBookAppDBus *m_dbus;
52
 
    QString m_arg;
53
 
    bool m_applicationIsReady;
 
45
    QString m_initialArg;
 
46
    bool m_viewReady;
54
47
};
55
48
 
56
49
#endif