Beispiel #1
0
const char* get_app_build_config_item(const char* key) {
  int i;
  const char* szValue;

  szValue = rho_conf_getString(key);
  if (strcmp(szValue, "") != 0)
    return szValue;

  for (i = 1; i < APP_BUILD_CONFIG_COUNT; i++) {
    if (strcmp(key, keys[i]) == 0) {
      return values[i];
    }
  }
  return 0;
}
Beispiel #2
0
RHO_GLOBAL jstring JNICALL Java_com_rhomobile_rhodes_RhodesService_getInvalidSecurityTokenMessage(JNIEnv* env, jclass) {
    
    const char* message = "Invalid security token !";
    
    //rho_conf_Init(rho_native_rhopath());
    
    if (rho_conf_is_property_exists("invalid_security_token_message")) {
        const char* conf_message = rho_conf_getString("invalid_security_token_message");
        message = conf_message;
    }
    
    jstring objStr = env->NewStringUTF(message);
    return objStr;
    
    
}
Beispiel #3
0
VALUE rho_conf_get_property_by_name(char* name)
{
	char* szValue = rho_conf_getString(name);

    return rho_ruby_create_string(szValue);
}