void TiFilesystemObject::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();

    ADD_STATIC_TI_VALUE("resourcesDirectory", TiFilesystemObject::getResourcesDirectory(), this);
    ADD_STATIC_TI_VALUE("tempDirectory", TiFilesystemObject::getTempDirectory(), this);
    ADD_STATIC_TI_VALUE("applicationDataDirectory", TiFilesystemObject::getDataDirectory(), this);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "getFile", this, _getFile);
}
void TiPlatformObject::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();
    setTiPlatformMappingProperties(g_tiProperties, sizeof(g_tiProperties) / sizeof(*g_tiProperties));

    // Adding javascript constants from Ti.Platform
    ADD_STATIC_TI_VALUE("BATTERY_STATE_CHARGING", Number::New(Ti::Platform::BATTERY_STATE_CHARGING), this);
    ADD_STATIC_TI_VALUE("BATTERY_STATE_FULL", Number::New(Ti::Platform::BATTERY_STATE_FULL), this);
    ADD_STATIC_TI_VALUE("BATTERY_STATE_UNKNOWN", Number::New(Ti::Platform::BATTERY_STATE_UNKNOWN), this);
    ADD_STATIC_TI_VALUE("BATTERY_STATE_UNPLUGGED", Number::New(Ti::Platform::BATTERY_STATE_UNPLUGGED), this);
}
void TiLocaleObject::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();
    TiGenericFunctionObject::addGenericFunctionToParent(this, "getString", this, _getString);

    TiGenericFunctionObject::addGenericFunctionToParent(this, "getCurrentLanguage", this, _getCurrentLanguage);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "getCurrentCountry", this, _getCurrentCountry);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "getCurrentLocale", this, _getCurrentLocale);

    ADD_STATIC_TI_VALUE("currentLanguage", TiLocaleObject::_getCurrentLanguage(), this);
    ADD_STATIC_TI_VALUE("currentCountry", TiLocaleObject::_getCurrentCountry(), this);
    ADD_STATIC_TI_VALUE("currentLocale", TiLocaleObject::_getCurrentLocale(), this);
}
void TiCodecObject::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();

    TiGenericFunctionObject::addGenericFunctionToParent(this, "decodeNumber", this, _decodeNumber);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "decodeString", this, _decodeString);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "encodeNumber", this, _encodeNumber);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "encodeString", this, _encodeString);

    // Adding javascript constants from Ti.Codec
    ADD_STATIC_TI_VALUE("BIG_ENDIAN", Number::New(Ti::Codec::BIG_ENDIAN), this);
    ADD_STATIC_TI_VALUE("LITTLE_ENDIAN", Number::New(Ti::Codec::LITTLE_ENDIAN), this);
    // TODO: Add charset constants
}
void TiTitaniumObject::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();

    ADD_STATIC_TI_VALUE("buildDate", String::New(__DATE__), this);
    // TODO: remove hard coded version number
    ADD_STATIC_TI_VALUE("version", Number::New(2.0), this);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "globalInclude", this, _globalInclude);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "include", this, _globalInclude);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "createBuffer", this, _createBuffer);
    TiUIObject::addObjectToParent(this, objectFactory_);
    TiMap::addObjectToParent(this, objectFactory_);
    TiMedia::addObjectToParent(this, objectFactory_);
    TiAPIObject::addObjectToParent(this);
    TiAppObject::addObjectToParent(this);
    TiPlatformObject::addObjectToParent(this);
    TiCodecObject::addObjectToParent(this);
    TiNetwork::addObjectToParent(this, objectFactory_);
    TiDatabase::addObjectToParent(this, objectFactory_);
    TiBufferStreamObject::addObjectToParent(this);
    TiStreamObject::addObjectToParent(this);
    TiLocaleObject::addObjectToParent(this);
}