diff options
Diffstat (limited to 'src/plugins/cpptools/commentssettings.h')
-rw-r--r-- | src/plugins/cpptools/commentssettings.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugins/cpptools/commentssettings.h b/src/plugins/cpptools/commentssettings.h new file mode 100644 index 0000000000..2e6c140e1b --- /dev/null +++ b/src/plugins/cpptools/commentssettings.h @@ -0,0 +1,35 @@ +#ifndef COMMENTSSETTINGS_H +#define COMMENTSSETTINGS_H + +#include "cpptools_global.h" + +QT_BEGIN_NAMESPACE +class QSettings; +QT_END_NAMESPACE + +namespace CppTools { + +class CPPTOOLS_EXPORT CommentsSettings +{ +public: + CommentsSettings(); + + void toSettings(const QString &category, QSettings *s) const; + void fromSettings(const QString &category, QSettings *s); + + bool equals(const CommentsSettings &other) const; + + bool m_enableDoxygen; + bool m_generateBrief; + bool m_leadingAsterisks; +}; + +inline bool operator==(const CommentsSettings &a, const CommentsSettings &b) +{ return a.equals(b); } + +inline bool operator!=(const CommentsSettings &a, const CommentsSettings &b) +{ return !(a == b); } + +} // namespace CppTools + +#endif // COMMENTSSETTINGS_H |