Sha256: ea802814bc018e9eb19a03f270712d318b40f216c65e79bc45e81e9374d58e7c

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

#pragma once

#include "common/IRhoClassFactory.h"
#include "net/CURLNetRequest.h"
#include "common/PosixThreadImpl.h"
#include "net/iphone/sslimpl.h"
#include "RhoCryptImpl.h"

namespace rho {
namespace common {
		
class CRhoClassFactory : public common::IRhoClassFactory
{
public:
    net::INetRequest* createNetRequest()
    {
        return new net::CURLNetRequest();
    }
    common::IRhoThreadImpl* createThreadImpl()
    {
        return new CPosixThreadImpl;
    }
    net::ISSL* createSSLEngine()
    {
        return new net::SSLImpl();
    }

    IRhoCrypt* createRhoCrypt()
    {
        return new CRhoCryptImpl();
    }
};

}
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rhodes-2.3.0 platform/shared/common/iphone/RhoClassfactory.h
rhodes-2.3.0.beta.3 platform/shared/common/iphone/RhoClassfactory.h
rhodes-2.3.0.beta.2 platform/shared/common/iphone/RhoClassfactory.h
rhodes-2.3.0.beta.1 platform/shared/common/iphone/RhoClassfactory.h