pqRecentlyUsedResourceLoaderInterface.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 pqRecentlyUsedResourceLoaderInterface_h
5 #define pqRecentlyUsedResourceLoaderInterface_h
6 
7 #include <QObject>
8 
9 #include "pqCoreModule.h" // needed for export macro
10 #include <QIcon> // needed for QIcon
11 #include <QtPlugin> // needed for Q_DECLARE_INTERFACE
12 
24 class pqServer;
25 class pqServerResource;
26 
28 {
29 public:
31 
35  virtual bool canLoad(const pqServerResource& resource) = 0;
36 
42  virtual bool load(const pqServerResource& resource, pqServer* server) = 0;
43 
48  virtual QIcon icon(const pqServerResource& resource);
49 
53  virtual QString label(const pqServerResource& resource) = 0;
54 
55 protected:
57 
58 private:
60 };
61 
63  pqRecentlyUsedResourceLoaderInterface, "com.kitware/paraview/recentlyusedresourceloader")
64 #endif
Q_DECLARE_INTERFACE(pqViewFrameActionsInterface, "com.kitware/paraview/viewframeactions")
load
abstract interface used to load recently used resources.
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
pqServerResource encapsulates a resource in ParaView.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35