summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/codestylepreferencesmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/codestylepreferencesmanager.h')
-rw-r--r--src/plugins/texteditor/codestylepreferencesmanager.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/plugins/texteditor/codestylepreferencesmanager.h b/src/plugins/texteditor/codestylepreferencesmanager.h
new file mode 100644
index 0000000000..1b26228d0b
--- /dev/null
+++ b/src/plugins/texteditor/codestylepreferencesmanager.h
@@ -0,0 +1,36 @@
+#ifndef CODESTYLEPREFERENCESMANAGER_H
+#define CODESTYLEPREFERENCESMANAGER_H
+
+#include "texteditor_global.h"
+
+#include <QtCore/QObject>
+#include <QtCore/QVariant>
+
+namespace TextEditor {
+
+namespace Internal {
+class CodeStylePreferencesManagerPrivate;
+}
+
+class ICodeStylePreferencesFactory;
+
+class TEXTEDITOR_EXPORT CodeStylePreferencesManager : public QObject
+{
+ Q_OBJECT
+public:
+ static CodeStylePreferencesManager *instance();
+
+ void registerFactory(ICodeStylePreferencesFactory *settings);
+ QList<ICodeStylePreferencesFactory *> factories() const;
+ ICodeStylePreferencesFactory *factory(const QString &languageId) const;
+
+private:
+ CodeStylePreferencesManager();
+ ~CodeStylePreferencesManager();
+ Internal::CodeStylePreferencesManagerPrivate *d;
+ static CodeStylePreferencesManager *m_instance;
+};
+
+} // namespace TextEditor
+
+#endif // CODESTYLEPREFERENCESMANAGER_H