Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benlau committed Sep 29, 2015
1 parent 471cecf commit eeecf2c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ It guarantees the order of messages are arrived in sequence to listeners

**AppDispatcher.dispatched(string type,object message)[Signal]**

Listeners should listen on this signal to get the latest dispatched message from AppDispatcher.
Listeners may listen on this signal to get the latest dispatched message from AppDispatcher.

Example code:

Expand Down Expand Up @@ -102,6 +102,28 @@ AppListener {
```

QFAppDispatcher
---------------

QFAppDispatcher is the C++ implementation of AppDispatcher in QML scope.
You may need this class to setup communication between C++ and QML.

```
#include "qfappdispatcher.h"
```

**static QFAppDispatcher* QFAppDispatcher.instance(QQmlEngine* engine)**

Obtain the singleton instance of AppDispatcher for specific QQmlEngine

**static QObject* singletonObject(QQmlEngine* engine,QString package,
int versionMajor,
int versionMinor,
QString typeName)**


Obtain a singleton object from package for specific QQmlEngine.
It is useful when you need to get singleton Actions component.

AppListener
-----------
Expand Down

0 comments on commit eeecf2c

Please sign in to comment.