Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_server.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QDESIGNER_SERVER_H
5#define QDESIGNER_SERVER_H
6
7#include <QtCore/qobject.h>
8
10
11class QTcpServer;
12class QTcpSocket;
13
15{
17public:
18 explicit QDesignerServer(QObject *parent = nullptr);
20
21 quint16 serverPort() const;
22
23 static void sendOpenRequest(int port, const QStringList &files);
24
25private slots:
27 void readFromClient();
28 void socketClosed();
29
30private:
31 QTcpServer *m_server;
32 QTcpSocket *m_socket = nullptr;
33};
34
36{
38public:
39 explicit QDesignerClient(quint16 port, QObject *parent = nullptr);
41
42private slots:
43 void readFromSocket();
44
45private:
46 QTcpSocket *m_socket;
47};
48
49QT_END_NAMESPACE
50
51#endif // QDESIGNER_SERVER_H
~QDesignerClient() override
quint16 serverPort() const
static void sendOpenRequest(int port, const QStringList &files)
~QDesignerServer() override
QDesignerFormEditorInterface * core() const
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:58
bool event(QEvent *ev) override
\reimp
QDesignerServer * server() const
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
~QDesigner() override
Definition qdesigner.cpp:71
MainWindowBase * mainWindow() const
Combined button and popup list for selecting options.
static constexpr auto designerWarningPrefix
Definition qdesigner.cpp:44
static QDesigner::ParseArgumentsResult parseDesignerCommandLineArguments(QCommandLineParser &parser, Options *options, QString *errorMessage)
static void showHelp(QCommandLineParser &parser, const QString &errorMessage=QString())
static void designerMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
Definition qdesigner.cpp:47
static constexpr auto designerApplicationName
Definition qdesigner.cpp:42
static QtMessageHandler previousMessageHandler
Definition qdesigner.cpp:45
static constexpr auto designerDisplayName
Definition qdesigner.cpp:43
#define qDesigner
Definition qdesigner.h:12
bool server
bool enableInternalDynamicProperties
QString resourceDir
QStringList files
std::optional< QVersionNumber > qtVersion
quint16 clientPort
QStringList pluginPaths