QCAD
Open Source 2D CAD
RFileExporterRegistry.h
Go to the documentation of this file.
1 
20 #ifndef RFILEEXPORTERREGISTRY_H
21 #define RFILEEXPORTERREGISTRY_H
22 
23 #include "core_global.h"
24 
25 #include <QList>
26 #include <QMetaType>
27 #include <QString>
28 #include <QStringList>
29 
30 class RDocument;
31 class RFileExporter;
33 class RMessageHandler;
34 class RProgressHandler;
35 
46 public:
47  static void registerFileExporter(RFileExporterFactory* factory, bool prepend=false);
48  static void unregisterFileExporter(RFileExporterFactory* factory);
49 
50  static RFileExporter* getFileExporter(
51  const QString& fileName,
52  const QString& nameFilter,
53  RDocument& document,
54  RMessageHandler* messageHandler = NULL,
55  RProgressHandler* progressHandler = NULL
56  );
57 
58  static QStringList getFilterStrings();
59 
60 private:
61  static QList<RFileExporterFactory*> factories;
62 };
63 
65 
66 #endif
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RMessageHandler.h:33
#define QCADCORE_EXPORT
Definition: core_global.h:10
Base class for file exporters.
Definition: RFileExporter.h:42
Needs to be implemented by RFileExporter implementations to check if the exporter is suitable to expo...
Definition: RFileExporterFactory.h:41
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
static QList< RFileExporterFactory * > factories
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RFileExporterRegistry.h:61
Registry of all available file exporters (RFileExporter).
Definition: RFileExporterRegistry.h:45
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RProgressHandler.h:33