pqCrashRecoveryBehavior.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 pqCrashRecoveryBehavior_h
5 #define pqCrashRecoveryBehavior_h
6 
8 #include <QObject>
9 #include <QTimer>
10 
11 class pqServer;
12 
21 {
22  Q_OBJECT
23  typedef QObject Superclass;
24 
25 public:
26  pqCrashRecoveryBehavior(QObject* parent = nullptr);
27  ~pqCrashRecoveryBehavior() override;
28 
29 protected Q_SLOTS:
30  void delayedSaveRecoveryState();
31  void saveRecoveryState();
32  void onServerAdded(pqServer* server);
33  void onServerDisconnect();
34 
35 private:
36  Q_DISABLE_COPY(pqCrashRecoveryBehavior)
37 
38  QTimer Timer;
39 };
40 
41 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqCrashRecoveryBehavior manages saving/loading of crash recovery state.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35