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 );
		}
	}
}
Beispiel #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
    }
void MessageQueueCommand::resultExecute(const rho::String& resultFromServer, rho::apiGenerator::CMethodResult& apiResult)
{
    apiResult.setJSON(resultFromServer);
}