diff options
author | Stephen Kelly <steveire@gmail.com> | 2017-01-13 18:06:28 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2017-01-13 18:06:28 +0000 |
commit | 8cf274317b437717f7e114e463de0652b973841b (patch) | |
tree | 13a8aaad17182a5abd29a7774a3f55a093c600b6 /tests/GenerateSipBindings/cpplib.h | |
parent | af9f502f9629766130e171632d2072d563661959 (diff) | |
download | extra-cmake-modules-8cf274317b437717f7e114e463de0652b973841b.tar.gz extra-cmake-modules-8cf274317b437717f7e114e463de0652b973841b.tar.bz2 |
Bindings: Add rules engine for typedefs
Currently this is rather simple, allowing only matching typedefs by
name. If we need more later, we can extend the interface. This will
make it possible to add bindings for the K18n framework.
Diffstat (limited to 'tests/GenerateSipBindings/cpplib.h')
-rw-r--r-- | tests/GenerateSipBindings/cpplib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/GenerateSipBindings/cpplib.h b/tests/GenerateSipBindings/cpplib.h index b69480ee..34167ad3 100644 --- a/tests/GenerateSipBindings/cpplib.h +++ b/tests/GenerateSipBindings/cpplib.h @@ -128,8 +128,24 @@ qreal useEnum(MyFlags flags = EnumValueOne); int customMethod(QList<int> const& nums); +typedef QString(*TagFormatter)(const QStringList &languages, + const QString &tagName, + const QHash<QString, QString> &attributes, + const QString &text, + const QStringList &tagPath, + SomeNS::MyFlagType format); + } +class TypedefUser +{ +public: + + void setTagPattern(const QString &tagName, + SomeNS::TagFormatter formatter = NULL, + int leadingNewlines = 0); +}; + int anotherCustomMethod(QList<int> const& nums); enum __attribute__((visibility("default"))) EnumWithAttributes { |