diff options
Diffstat (limited to 'src/libs/installer/component.h')
-rw-r--r-- | src/libs/installer/component.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libs/installer/component.h b/src/libs/installer/component.h index 1c8712145..bf5ef4d18 100644 --- a/src/libs/installer/component.h +++ b/src/libs/installer/component.h @@ -85,6 +85,12 @@ class INSTALLER_EXPORT Component : public QObject, public QScriptable, public Co Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled) public: + enum Kind + { + Descendants = 0x1000, // all descendants of the current component (children, grandchildren, etc.) + DirectChildrenOnly = 0x2000 // all child components of the current component + }; + explicit Component(PackageManagerCore *core); ~Component(); @@ -117,7 +123,7 @@ public: Component *parentComponent() const; void appendComponent(Component *component); void removeComponent(Component *component); - QList<Component*> childComponents(bool recursive, RunMode runMode) const; + QList<Component*> childComponents(Component::Kind kind) const; void loadComponentScript(); @@ -221,10 +227,6 @@ Q_SIGNALS: void selectedChanged(bool selected); void valueChanged(const QString &key, const QString &value); -protected: - QScriptValue callScriptMethod(const QString &name, - const QScriptValueList ¶meters = QScriptValueList()) const; - private Q_SLOTS: void updateModelData(const QString &key, const QString &value); |