Sha256: ca7acd0481e40cc794a529b54435ed218f57cc2b947e4df096472d5d4b40f0f1

Contents?: true

Size: 643 Bytes

Versions: 15

Compression:

Stored size: 643 Bytes

Contents

#include "RhoRuby.h"
#include "ruby/ext/rho/rhoruby.h"

namespace rho {
const _CRhoRuby& RhoRuby = _CRhoRuby();

/*static*/ String _CRhoRuby::getMessageText(const char* szName)
{
    return rho_ruby_getMessageText(szName);
}

/*static*/ String _CRhoRuby::getErrorText(int nError)
{
    return rho_ruby_getErrorText(nError);
}

/*static*/ int  _CRhoRuby::getErrorFromResponse(net::INetResponse& resp)
{
    if ( !resp.isResponseRecieved())
        return RhoRuby.ERR_NETWORK;

    if ( resp.isUnathorized() )
    	return RhoRuby.ERR_UNATHORIZED;

    if ( !resp.isOK() )
    	return RhoRuby.ERR_REMOTESERVER;

    return RhoRuby.ERR_NONE;
}

}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhodes-2.0.3 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.2 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.rc2 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.rc1 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta11 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta10 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta9 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta8 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta7 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta6 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta4 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta3 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta2 platform/shared/rubyext/RhoRuby.cpp
rhodes-2.0.0.beta1 platform/shared/rubyext/RhoRuby.cpp