pqDefaultViewBehavior.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 pqDefaultViewBehavior_h
5 #define pqDefaultViewBehavior_h
6 
8 #include <QObject>
9 #include <QPointer>
10 
11 #include "pqTimer.h" // for pqTimer
12 #include "vtkType.h" // for vtkTypeUInt32.
13 
14 class pqServer;
15 
23 {
24  Q_OBJECT
25  typedef QObject Superclass;
26 
27 public:
28  pqDefaultViewBehavior(QObject* parent = nullptr);
29 
30 protected Q_SLOTS:
31  void onServerCreation(pqServer*);
32  void fiveMinuteTimeoutWarning();
33  void finalTimeoutWarning();
34 
35  void showWarnings();
36 
37 private:
38  Q_DISABLE_COPY(pqDefaultViewBehavior)
39 
40  vtkTypeUInt32 ServerCapabilities;
41  vtkTypeUInt32 ClientCapabilities;
42  QPointer<pqServer> Server;
43  pqTimer WarningsTimer;
44 };
45 
46 #endif
pqDefaultViewBehavior ensures that when a new server connection is made, the default view of the user...
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35