aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-12 17:38:09 -0200
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-13 13:55:28 -0300
commita98088877fc638ce9f068aaaa5fa4c7f883a1a87 (patch)
treec10592b70efbc1e449dbfb872466dc2b5139854f /abstractmetalang.h
parent9deca0a40aa9cd31510e0ba833fe207ac7e3dbab (diff)
APIExtractor is a huge amount of legacy code inherited from QtScriptGenerator,
but QtScriptGenerator itself isn't a library, this explains why libapiextractor does not care about things that every library SHOULD care, symbol visibility and binary compatibility. This commit adds symbol visibility rules to libapiextractor as the first step to make libapiextractor aware of binary compatibility. This is also needed if we want to be able to compile and use libapiextractor under Windows. Note: Not all symbols were made public, just the symbols needed by shiboken, boostpython and doc generators, because IMHO libapiextractor needs some love and a API review. More symbols could be added later if needed. Reviewed by Renato Araujo <renato.filho@openbossa.org>
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 5ea94642d..cafe39bf9 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -42,7 +42,7 @@ class AbstractMetaEnumValue;
class AbstractMetaEnum;
class QPropertySpec;
-class Documentation
+class APIEXTRACTOR_API Documentation
{
public:
enum Format {
@@ -80,7 +80,7 @@ private:
typedef QList<AbstractMetaField *> AbstractMetaFieldList;
typedef QList<AbstractMetaArgument *> AbstractMetaArgumentList;
typedef QList<AbstractMetaFunction *> AbstractMetaFunctionList;
-class AbstractMetaClassList : public QList<AbstractMetaClass *>
+class APIEXTRACTOR_API AbstractMetaClassList : public QList<AbstractMetaClass *>
{
public:
AbstractMetaClass *findClass(const QString &name) const;
@@ -89,9 +89,7 @@ public:
};
-
-
-class AbstractMetaAttributes
+class APIEXTRACTOR_API AbstractMetaAttributes
{
public:
AbstractMetaAttributes() : m_attributes(0) {};
@@ -305,7 +303,7 @@ private:
};
-class AbstractMetaType
+class APIEXTRACTOR_API AbstractMetaType
{
public:
enum TypeUsagePattern {
@@ -610,7 +608,7 @@ private:
uint m_reserved : 25; // unused
};
-class AbstractMetaVariable
+class APIEXTRACTOR_API AbstractMetaVariable
{
public:
AbstractMetaVariable() : m_type(0) {}
@@ -651,7 +649,7 @@ private:
-class AbstractMetaArgument : public AbstractMetaVariable
+class APIEXTRACTOR_API AbstractMetaArgument : public AbstractMetaVariable
{
public:
AbstractMetaArgument() : m_argumentIndex(0) {};
@@ -736,7 +734,7 @@ private:
};
-class AbstractMetaFunction : public AbstractMetaAttributes
+class APIEXTRACTOR_API AbstractMetaFunction : public AbstractMetaAttributes
{
public:
enum FunctionType {
@@ -1255,7 +1253,7 @@ private:
typedef QList<AbstractMetaEnum *> AbstractMetaEnumList;
-class AbstractMetaClass : public AbstractMetaAttributes
+class APIEXTRACTOR_API AbstractMetaClass : public AbstractMetaAttributes
{
public:
enum FunctionQueryOption {