00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #pragma once
00022
00023 #if defined( _WIN32 ) || defined( __WIN32__ )
00024 #if !defined( RemoteVizServices_EXPORTS )
00025 #if _DEBUG
00026 #pragma comment(lib,"RemoteVizServicesD")
00027 #else
00028 #pragma comment(lib,"RemoteVizServices")
00029 #endif
00030 #endif
00031 #endif
00032
00033 #include <Inventor/sys/port.h>
00034 #include <memory>
00035 #include <RemoteViz/Rendering/FrameEncoders.h>
00036 #include <SoDeprecationRules.h>
00037
00038 namespace RemoteViz
00039 {
00040 namespace Rendering
00041 {
00042
00043 class IFrameEncodingPolicy;
00044 class ConnectionSettingsImpl;
00045 class Connection;
00057 class RENDERSERVICE_API ConnectionSettings
00058 {
00059
00061 friend class ConnectionImpl;
00064 public:
00065
00066 #if 1 SoDEPRECATED
00079 void setMaxFPS(unsigned int value);SoDEPRECATED
00088 unsigned int getMaxFPS() const;
00090
00091 #endif
00103 void setKeepAliveTimeOut(unsigned int value);
00104
00112 unsigned int getKeepAliveTimeOut() const;
00114
00116
00122 FrameEncoders getFrameEncoders() const;
00123
00131 bool isSupportedEncoders(FrameEncoders* frameEncoders) const;
00133
00135
00144 void setFrameEncodingPolicy(IFrameEncodingPolicy* policy);
00153 IFrameEncodingPolicy* getFrameEncodingPolicy() const;
00155
00156
00157 private:
00160 std::shared_ptr<ConnectionSettingsImpl> getImpl() const;
00163 private:
00165 ConnectionSettings(Connection* connection);
00166
00168 ConnectionSettings(const ConnectionSettings&) = delete;
00169 ConnectionSettings& operator= (const ConnectionSettings&) = delete;
00170
00172 std::shared_ptr<ConnectionSettingsImpl> pImpl;
00173 };
00174
00175 }
00176 }
00177