| 1 | /* |
| 2 | This file is part of the Grantlee template system. |
| 3 | |
| 4 | Copyright (c) 2010 Stephen Kelly <[email protected]> |
| 5 | |
| 6 | This library is free software; you can redistribute it and/or |
| 7 | modify it under the terms of the GNU Lesser General Public |
| 8 | License as published by the Free Software Foundation; either version |
| 9 | 2 of the Licence, or (at your option) any later version. |
| 10 | |
| 11 | This library is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | Library General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU Lesser General Public |
| 17 | License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | */ |
| 20 | |
| 21 | #ifndef I18NNODE_H |
| 22 | #define I18NNODE_Hcxx . . $ `templates/i18n/i18n.h:22:9`! |
| 23 | |
| 24 | #include "node.h"cxx . . $ `<file>/templates/lib/node.h`/ |
| 25 | |
| 26 | namespace Grantleecxx . . $ Grantlee/ |
| 27 | { |
| 28 | class Parsercxx . . $ Grantlee/Parser#; |
| 29 | } |
| 30 | |
| 31 | using namespace Grantlee; |
| 32 | |
| 33 | class I18nNodeFactorycxx . . $ I18nNodeFactory# : public AbstractNodeFactorycxx . . $ Grantlee/AbstractNodeFactory# |
| 34 | { |
| 35 | Q_OBJECTcxx . . $ I18nNodeFactory#staticMetaObject. |
| 36 | public: |
| 37 | I18nNodeFactorycxx . . $ I18nNodeFactory#I18nNodeFactory(49f6e7a06ebc5aa8).(); |
| 38 | |
| 39 | Nodecxx . . $ Grantlee/Node# *getNodecxx . . $ I18nNodeFactory#getNode(2656580aadcb6315).(const QStringcxx . . $ QString# &tagContent, Parsercxx . . $ Grantlee/Parser# *p) const override; |
| 40 | }; |
| 41 | |
| 42 | class I18nVarNodeFactorycxx . . $ I18nVarNodeFactory# : public AbstractNodeFactorycxx . . $ Grantlee/AbstractNodeFactory# |
| 43 | { |
| 44 | Q_OBJECTcxx . . $ I18nVarNodeFactory#trUtf8(75d9f1c324b4579d). |
| 45 | public: |
| 46 | I18nVarNodeFactorycxx . . $ I18nVarNodeFactory#I18nVarNodeFactory(49f6e7a06ebc5aa8).(); |
| 47 | |
| 48 | Nodecxx . . $ Grantlee/Node# *getNodecxx . . $ I18nVarNodeFactory#getNode(2656580aadcb6315).(const QStringcxx . . $ QString# &tagContent, Parsercxx . . $ Grantlee/Parser# *p) const override; |
| 49 | }; |
| 50 | |
| 51 | class I18nNodecxx . . $ I18nNode# : public Nodecxx . . $ Grantlee/Node# |
| 52 | { |
| 53 | Q_OBJECTcxx . . $ I18nNode#staticMetaObject. |
| 54 | public: |
| 55 | I18nNodecxx . . $ I18nNode#I18nNode(5f43bc2f05e06932).(const QStringcxx . . $ QString# &sourceText, const QListcxx . . $ QList#<FilterExpressioncxx . . $ Grantlee/FilterExpression#> &feList, |
| 56 | QObjectcxx . . $ QObject# *parent = {}); |
| 57 | void rendercxx . . $ I18nNode#render(9be41cabfa33b722).(OutputStreamcxx . . $ Grantlee/OutputStream# *stream, Contextcxx . . $ Grantlee/Context# *c) const override; |
| 58 | |
| 59 | private: |
| 60 | QStringcxx . . $ QString# m_sourceTextcxx . . $ I18nNode#m_sourceText.; |
| 61 | QListcxx . . $ QList#<FilterExpressioncxx . . $ Grantlee/FilterExpression#> m_filterExpressionListcxx . . $ I18nNode#m_filterExpressionList.; |
| 62 | }; |
| 63 | |
| 64 | class I18nVarNodecxx . . $ I18nVarNode# : public Nodecxx . . $ Grantlee/Node# |
| 65 | { |
| 66 | Q_OBJECTcxx . . $ I18nVarNode#tr(75d9f1c324b4579d). |
| 67 | public: |
| 68 | I18nVarNodecxx . . $ I18nVarNode#I18nVarNode(ef02bb489cb8791d).(const QStringcxx . . $ QString# &sourceText, const QListcxx . . $ QList#<FilterExpressioncxx . . $ Grantlee/FilterExpression#> &feList, |
| 69 | const QStringcxx . . $ QString# &resultName, QObjectcxx . . $ QObject# *parent = {}); |
| 70 | void rendercxx . . $ I18nVarNode#render(9be41cabfa33b722).(OutputStreamcxx . . $ Grantlee/OutputStream# *stream, Contextcxx . . $ Grantlee/Context# *c) const override; |
| 71 | |
| 72 | private: |
| 73 | QStringcxx . . $ QString# m_sourceTextcxx . . $ I18nVarNode#m_sourceText.; |
| 74 | QListcxx . . $ QList#<FilterExpressioncxx . . $ Grantlee/FilterExpression#> m_filterExpressionListcxx . . $ I18nVarNode#m_filterExpressionList.; |
| 75 | QStringcxx . . $ QString# m_resultNamecxx . . $ I18nVarNode#m_resultName.; |
| 76 | }; |
| 77 | |
| 78 | #endif |