clkasd / qt-firebaseapi

Firebase API for Qt Framework

Home Page:http://developwear.com/blog/2016/03/09/firebase-qt-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Firebase API for Qt Framework

http://developwear.com/blog/2016/03/09/firebase-qt-api/


Languages

Language:C++ 98.5%Language:QMake 1.5%