Kstars
            
 
    9#include <QtWebSockets/QWebSocket> 
   15class WSMedia : 
public QObject
 
   20        WSMedia(Camera *manager);
 
   21        virtual ~WSMedia() = 
default;
 
   23        void setURL(
const QUrl &url)
 
   31        void newFile(
const QByteArray &message, 
const QString &extension);
 
   35        void disconnectServer();
 
   41        void onDisconnected();
 
   45        void onTextReceived(
const QString &message);
 
   46        void onBinaryReceived(
const QByteArray &message);
 
   49        QWebSocket m_WebSocket;
 
   50        uint16_t m_ReconnectTries {0};
 
   51        Camera *m_Manager { 
nullptr };
 
   54        bool m_isConnected { 
false };
 
   55        bool m_sendBlobs { 
true};
 
   59        static const uint16_t RECONNECT_INTERVAL = 5000;
 
   61        static const uint16_t RECONNECT_MAX_TRIES = 720;
 
Camera class controls an INDI Camera device.
 
ISD is a collection of INDI Standard Devices.
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 12:02:39 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.