Loading...
Searching...
No Matches
NetworkSessionInterface.hpp
1#pragma once
2#include <score_lib_base_export.h>
3
4#include <functional>
5
6class QWidget;
7namespace score
8{
9struct GUIApplicationContext;
10
18class SCORE_LIB_BASE_EXPORT NetworkSessionInterface
19{
20public:
22
29 virtual void joinSession(QWidget* parent, std::function<void(bool)> done) = 0;
30};
31
33SCORE_LIB_BASE_EXPORT
35}
Implemented by an application plug-in able to join a collaborative session hosted by another instance...
Definition NetworkSessionInterface.hpp:19
virtual void joinSession(QWidget *parent, std::function< void(bool)> done)=0
Ask the user which session to join, then connect to it.
Base toolkit upon which the software is built.
Definition Application.cpp:116
NetworkSessionInterface * findNetworkSessionInterface(const GUIApplicationContext &ctx)
The first plug-in able to join sessions, or nullptr.
Definition NetworkSessionInterface.cpp:10
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15