[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdecore/kconfig_compiler
From: Jakub Stachowski <qbast () go2 ! pl>
Date: 2004-12-06 9:57:56
Message-ID: 20041206095756.682AA184A3 () office ! kde ! org
[Download RAW message or body]
CVS commit by qbast:
Visibility tag support for kconfig_compiler
M +7 -0 README.dox 1.5
M +4 -1 kconfig_compiler.cpp 1.58
--- kdelibs/kdecore/kconfig_compiler/README.dox #1.4:1.5
@@ -102,4 +102,11 @@
</tr>
<tr>
+ <td><b>Visibility</b></td>
+ <td>string</td>
+ <td>-</td>
+ <td>Inserts visibility directive (for example KDE_EXPORT) between "class" keyword and class
+ name in header file</td>
+</tr>
+<tr>
<td><b>Singleton</b></td>
<td>bool</td>
--- kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #1.57:1.58
@@ -812,4 +812,7 @@ int main( int argc, char **argv )
QString className = codegenConfig.readEntry("ClassName");
QString inherits = codegenConfig.readEntry("Inherits");
+ QString visibility = codegenConfig.readEntry("Visibility");
+ kdError() << "VISIBILITY " << visibility << "\n";
+ if (!visibility.isEmpty()) visibility+=" ";
bool singleton = codegenConfig.readBoolEntry("Singleton", false);
bool staticAccessors = singleton;
@@ -964,5 +967,5 @@ int main( int argc, char **argv )
// Class declaration header
- h << "class " << className << " : public " << inherits << endl;
+ h << "class " << visibility << className << " : public " << inherits << endl;
h << "{" << endl;
h << " public:" << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic