pqCollaborationEventPlayer.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 pqCollaborationEventPlayer_h
5 #define pqCollaborationEventPlayer_h
6 
7 #include "pqCoreModule.h"
8 #include "pqWidgetEventPlayer.h"
9 
16 class PQCORE_EXPORT pqCollaborationEventPlayer : public pqWidgetEventPlayer
17 {
18  Q_OBJECT
19  typedef pqWidgetEventPlayer Superclass;
20 
21 public:
22  pqCollaborationEventPlayer(QObject* parent = nullptr);
23  ~pqCollaborationEventPlayer() override;
24 
25  using Superclass::playEvent;
26  bool playEvent(
27  QObject* object, const QString& command, const QString& arguments, bool& error) override;
28 
32  static void waitForMaster(int ms = 500);
33 
37  static void waitForConnections(int num_connections);
38 
39  static void wait(int milli_seconds);
40 
41 private:
42  Q_DISABLE_COPY(pqCollaborationEventPlayer)
43 };
44 
45 #endif
pqCollaborationEventPlayer is used to playback events that make collaborative-testing possible...
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15