Firebase API for Qt Framework
C++ QMake
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md readme changed Dec 14, 2015
actionhandler.cpp
actionhandler.h
datasnapshot.cpp
datasnapshot.h
firebase.cpp
firebase.h
firebaseapi.pro event stream added Dec 14, 2015
firebaseapi.pro.user
firebaseapi.pro.user.2.6pre1
json.cpp
json.h
main.cpp

README.md

qt-firebaseapi

Firebase API for Qt Framework

API Usage

*Definitons & Config

To be able to use qt-firebase you need to define a Firebase object like shown:

 Firebase *firebase=new Firebase("https://firexample.firebaseio.com/");

*Auth

Also if your firebase uses a security you should pass firebase token.(Token generation is on the way)

 firebase->setToken("cxOMEbyj7kdt7tlHsw8lhlj2W4T5ea5lVxBzgRUE");

*Reading Data

Reading data is achieved with getValue() call.

 firebase->getValue();

*Writing Data

 firebase->child("exampledata")->setValue("test1");

Also :

In order to add child to another child use:

 Firebase *childFirebase=firebase->child("exampledata3");
 childFirebase->child("examplechild data")->setValue("test child1");

Get Events:

To get events or data feedback from your firebase child firebase you must connect eventResponseReady signal to some slot like :

 connect(firebase,SIGNAL(eventResponseReady(QString)),this,SLOT(onResponseReady(QString)));

For more information please examine qt example.

TODO

-Token generator