2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
5 #ifndef DECISION_PROVIDER_H
6 #define DECISION_PROVIDER_H
9 #include <package/Context.h>
12 class DecisionProvider
: public BPackageKit::BDecisionProvider
{
14 DecisionProvider(bool interactive
= true);
16 void SetInteractive(bool interactive
)
17 { fInteractive
= interactive
; }
19 virtual bool YesNoDecisionNeeded(const BString
& description
,
20 const BString
& question
, const BString
& yes
,
22 const BString
& defaultChoice
);
29 #endif // DECISION_PROVIDER_H