From 6ddb2e91990b119017819c6290ca6de6c6b6ea21 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Tue, 25 May 2010 16:13:19 -0300 Subject: Implemented support to flag "since" on typesystem. With this flag you can specify after which version the tag became valid. --- typedatabase.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'typedatabase.h') diff --git a/typedatabase.h b/typedatabase.h index 10be28d15..94de75565 100644 --- a/typedatabase.h +++ b/typedatabase.h @@ -168,6 +168,18 @@ public: bool parseFile(const QString &filename, bool generate = true); bool parseFile(QIODevice* device, bool generate = true); + double apiVersion() const + { + return m_apiVersion; + } + + void setApiVersion(double version) + { + m_apiVersion = version; + } + + bool supportedApiVersion(double version) const; + private: bool m_suppressWarnings; TypeEntryHash m_entries; @@ -185,6 +197,8 @@ private: QList m_rejections; QStringList m_rebuildClasses; + + double m_apiVersion; }; #endif -- cgit v1.2.3