refresh d7e71a93da39c621828977f6616ccc46c4b52116
[tagua/yd.git] / src / core / component.h
blobc1c6ec78ce0863a4a661e157be5c83e1f96cde5f
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef CORE__COMPONENT_H
12 #define CORE__COMPONENT_H
14 #include "component_fwd.h"
15 #include "export.h"
16 #include <QObject>
17 #include <KDebug>
18 #include <QMetaMethod>
20 /**
21 * @brief A Component is a reusable unit in the description of a Tagua variant.
23 class TAGUA_EXPORT Component : public QObject {
24 Q_OBJECT
25 public:
26 Component();
29 static inline void dump_component_methods(Component* c) {
30 const QMetaObject* mo = c->metaObject();
31 for (int i=0; i < mo->methodCount(); i++)
32 kDebug() << " ** " << mo->method(i).signature() << "->" << mo->method(i).typeName();
35 #endif // CORE__COMPONENT_H