vfs: check userland buffers before reading them.
[haiku.git] / src / bin / pkgman / DecisionProvider.h
blob7eeee0cf36becc28d552bdc375575cf28b7028a4
1 /*
2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef DECISION_PROVIDER_H
6 #define DECISION_PROVIDER_H
9 #include <package/Context.h>
12 class DecisionProvider : public BPackageKit::BDecisionProvider {
13 public:
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,
21 const BString& no,
22 const BString& defaultChoice);
24 private:
25 bool fInteractive;
29 #endif // DECISION_PROVIDER_H