summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/component.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-02-19 16:03:35 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-02-20 11:18:26 +0100
commit2635cb74cfe3c14a2f0acc385de8b022ec9ddded (patch)
treecfbdc438eaf92a22f2aba4e566e987ebbef277a6 /src/libs/installer/component.h
parent8092e354949370be204071258661aefad6f2b58e (diff)
Fix boolean parameter which lead to less readable code.
Change-Id: Ie680654f39fce130c607929f98db372dbe3c6ea1 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/component.h')
-rw-r--r--src/libs/installer/component.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs/installer/component.h b/src/libs/installer/component.h
index 7e5541970..343e1a3af 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) const;
+ QList<Component*> childComponents(Component::Kind kind) const;
void loadComponentScript();