// Author: Sergey Linev // Date: 2017-10-16 // Warning: This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome! /************************************************************************* * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT7_RWebWindowsManager #define ROOT7_RWebWindowsManager #include #include #include #include #include #include "THttpEngine.h" #include class THttpServer; class THttpWSHandler; class TExec; namespace ROOT { /// function signature for catching show calls of arbitrary RWebWindow /// if returns true, normal show procedure will not be invoked using WebWindowShowCallback_t = std::function; class RWebWindowsManager { friend class RWebWindow; private: std::unique_ptr fServer; /// fAssgnExec; /// &Instance(); std::shared_ptr CreateWindow(); void Terminate(); static bool IsMainThrd(); static void AssignMainThrd(); static void SetLoopbackMode(bool on = true); }; } // namespace ROOT #endif