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// Qt-Security score:significant reason:default
4
5#ifndef QDESIGNER_SERVER_H
6#define QDESIGNER_SERVER_H
7
8#include <QtCore/qobject.h>
9
11
12class QLocalSocket;
13class QTcpServer;
14class QTcpSocket;
15
16// ### FIXME Qt 7: Remove
18{
20public:
21 explicit QDesignerTcpServer(QObject *parent = nullptr);
23
24 quint16 serverPort() const;
25
26 static void sendOpenRequest(int port, const QStringList &files);
27
28private slots:
30 void readFromClient();
31 void socketClosed();
32
33private:
34 QTcpServer *m_server;
35 QTcpSocket *m_socket = nullptr;
36};
37
39{
41public:
42 explicit QDesignerLocalSocketClient(const QString &serverName, QObject *parent = nullptr);
44
45private slots:
46 void readFromSocket();
47
48private:
49 QLocalSocket *m_socket;
50};
51
52// ### FIXME Qt 7: Remove
54{
56public:
57 explicit QDesignerTcpClient(quint16 port, QObject *parent = nullptr);
59
60private slots:
61 void readFromSocket();
62
63private:
64 QTcpSocket *m_socket;
65};
66
67QT_END_NAMESPACE
68
69#endif // QDESIGNER_SERVER_H
~QDesignerTcpServer() override
static void sendOpenRequest(int port, const QStringList &files)
quint16 serverPort() const
QDesignerFormEditorInterface * core() const
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:55
bool event(QEvent *ev) override
\reimp
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:68
MainWindowBase * mainWindow() const
HelpClientType
Definition helpclient.h:17
Combined button and popup list for selecting options.
static constexpr auto designerWarningPrefix
Definition qdesigner.cpp:41
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:44
static constexpr auto designerApplicationName
Definition qdesigner.cpp:39
static QtMessageHandler previousMessageHandler
Definition qdesigner.cpp:42
static constexpr auto designerDisplayName
Definition qdesigner.cpp:40
#define qDesigner
Definition qdesigner.h:20
bool server
Definition qdesigner.h:37
bool enableInternalDynamicProperties
Definition qdesigner.h:39
HelpClientType helpMode
Definition qdesigner.h:40