pqServerConnectReaction.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqServerConnectReaction_h
5 #define pqServerConnectReaction_h
6 
7 #include "pqReaction.h"
8 
10 class pqServerResource;
11 
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
25  pqServerConnectReaction(QAction* parent);
26 
32  static void connectToServerWithWarning();
33  static void connectToServer();
34 
39  static bool connectToServerUsingConfigurationName(
40  const char* config_name, bool showConnectionDialog = true);
41 
45  static bool connectToServerUsingConfiguration(
46  const pqServerConfiguration& config, bool showConnectionDialog = true);
47 
52  static bool connectToServer(const pqServerResource& resource, bool showConnectionDialog = true);
53 
54 protected:
59 
60 private Q_SLOTS:
64  void updateEnableState() override;
65 
66 private: // NOLINT(readability-redundant-access-specifiers)
67  Q_DISABLE_COPY(pqServerConnectReaction)
68 };
69 
70 #endif
Reaction for connecting to a server.
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
static void connectToServerWithWarning()
Creates a server connection using the server connection dialog.
pqServerConfiguration corresponds to a server connection configuration.
void onTriggered() override
Called when the action is triggered.
pqServerResource encapsulates a resource in ParaView.