Sha256: 3558981acd7ec9314e431ba1a4ac2189634ac7800b90fefdb57e847908e3103c

Contents?: true

Size: 1.43 KB

Versions: 32

Compression:

Stored size: 1.43 KB

Contents

#include "rhodes/jni/com_rhomobile_rhodes_RhoConf.h"

#include "rhodes/JNIRhodes.h"

#include <common/RhoConf.h>

RHO_GLOBAL jstring JNICALL Java_com_rhomobile_rhodes_RhoConf_getString
  (JNIEnv *, jclass, jstring name)
{
    return rho_cast<jhstring>(RHOCONF().getString(rho_cast<std::string>(name).c_str()).c_str()).release();
}

RHO_GLOBAL jint JNICALL Java_com_rhomobile_rhodes_RhoConf_getInt
  (JNIEnv *, jclass, jstring name)
{
    return RHOCONF().getInt(rho_cast<std::string>(name).c_str());
}

RHO_GLOBAL jboolean JNICALL Java_com_rhomobile_rhodes_RhoConf_getBool
  (JNIEnv *, jclass, jstring name)
{
    return RHOCONF().getBool(rho_cast<std::string>(name).c_str());
}

RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_RhoConf_setString
  (JNIEnv *, jclass, jstring name, jstring value)
{
    RHOCONF().setString(rho_cast<std::string>(name).c_str(), rho_cast<std::string>(value), false);
}

RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_RhoConf_setInt
  (JNIEnv *, jclass, jstring name, jint value)
{
    RHOCONF().setInt(rho_cast<std::string>(name).c_str(), value, false);
}

RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_RhoConf_setBoolean
  (JNIEnv *, jclass, jstring name, jboolean value)
{
    RHOCONF().setBool(rho_cast<std::string>(name).c_str(), value, false);
}

RHO_GLOBAL jboolean JNICALL Java_com_rhomobile_rhodes_RhoConf_isExist
  (JNIEnv *, jclass, jstring name)
{
    return RHOCONF().isExist(rho_cast<std::string>(name).c_str());
}

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.2.beta.1 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.8 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.7 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.6 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.5 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.4 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.3 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.1.beta.2 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.7 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.6 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.5 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.4 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.3 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.2 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-3.0.0.beta.1 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-2.4.1 platform/android/Rhodes/jni/src/rhoconf.cpp
rhodes-2.4.1.beta.1 platform/android/Rhodes/jni/src/rhoconf.cpp