Sha256: fc4f74c611d519d3cfea792b94be0e667b88c70eb6c0fb8891dbb874433202dc
Contents?: true
Size: 895 Bytes
Versions: 13
Compression:
Stored size: 895 Bytes
Contents
#include "common/RhoAppAdapter.h" #include "ruby/ext/rho/rhoruby.h" namespace rho { const _CRhoAppAdapter& RhoAppAdapter = _CRhoAppAdapter(); /*static*/ String _CRhoAppAdapter::getMessageText(const char* szName) { return rho_ruby_getMessageText(szName); } /*static*/ String _CRhoAppAdapter::getErrorText(int nError) { return rho_ruby_getErrorText(nError); } /*static*/ int _CRhoAppAdapter::getErrorFromResponse(net::INetResponse& resp) { if ( !resp.isResponseRecieved()) return ERR_NETWORK; if ( resp.isUnathorized() ) return ERR_UNATHORIZED; if ( !resp.isOK() ) return ERR_REMOTESERVER; return ERR_NONE; } /*static*/ void _CRhoAppAdapter::loadServerSources(const String& strSources) { rho_ruby_loadserversources(strSources.c_str()); } /*static*/ const char* _CRhoAppAdapter::getRhoDBVersion() { return rho_ruby_getRhoDBVersion(); } }
Version data entries
13 entries across 13 versions & 1 rubygems