void RhoConnectClientImpl::handleSyncResult(rho::apiGenerator::CMethodResult& oResult) {
	if ( getSyncEngine().isNoThreadedMode() ) {
		oResult.setCollectionMode(true);
		const char* ret = (const char*)getSyncThread()->getRetValue();
		if (ret != 0) {
			oResult.setJSON( ret );
		}
	}
}
Exemplo n.º 2
0
    virtual void getNativeMenu(rho::apiGenerator::CMethodResult& oResult)
    {
#ifdef OS_ANDROID
        oResult.setJSON(rho_impl_getNativeMenu());
#else
        rho::Vector< Hashtable<String, String> > arRes;
        RHODESAPP().getAppMenu().getMenuItemsEx(arRes);

        oResult.set(arRes);
#endif
    }
Exemplo n.º 3
0
void MessageQueueCommand::resultExecute(const rho::String& resultFromServer, rho::apiGenerator::CMethodResult& apiResult)
{
    apiResult.setJSON(resultFromServer);
}