Sha256: ba5d8eb50c29d30ae59b4bdd93cf68b8688ed5244654279c93411349a15dead2

Contents?: true

Size: 1.15 KB

Versions: 17

Compression:

Stored size: 1.15 KB

Contents

#pragma once

#include "api_generator/MethodResult.h"

enum NetworkState {NETWORK_INITIALISING, NETWORK_CONNECTED, NETWORK_DISCONNECTED};

/**
*  Interface to wrap the Network functionality, to poll on a specified address to see if
*  we are able to connect to it.
*/
class INetworkDetection
{
public:
	virtual ~INetworkDetection() {}

	/**
	*  Perform initialisation steps, memory allocation e.t.c.
	*  \return Whether or not the Network class successfully initialised.
	*/
	virtual bool Initialise() = 0;
    virtual void Cleanup() = 0;
    virtual void CleanupAndDeleteSelf() = 0;
	virtual bool SetHost(const rho::String& host) = 0;
	virtual void SetPort(int iPort) = 0;
	virtual bool SetNetworkPollInterval(int iInterval) = 0;
	virtual bool SetConnectionTimeout (int iTimeout) = 0;
	virtual bool StartNetworkChecking() = 0;
	virtual bool StopNetworkChecking() = 0;
	virtual bool IsChecking() = 0;
	virtual void SetCallback(rho::apiGenerator::CMethodResult pCallback) = 0;
	virtual rho::apiGenerator::CMethodResult GetCallback() = 0;
};

class NetworkDetectionFactory {
public:
    //implement for concrete platforms
    static INetworkDetection* createNetworkDetection();
};

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-7.5.1 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-7.4.1 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-7.1.17 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-6.2.0 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-6.0.11 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.18 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.17 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.15 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.0.22 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.2 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.0.7 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.0.3 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
rhodes-5.5.0 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
tauplatform-1.0.3 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
tauplatform-1.0.2 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h
tauplatform-1.0.1 lib/commonAPI/coreapi/ext/shared/INetworkDetect.h