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 7 8 9 #include <package/Context.h> 10 11 12 class DecisionProvider : public BPackageKit::BDecisionProvider { 13 public: 14 DecisionProvider(bool interactive = true); 15 16 void SetInteractive(bool interactive) 17 { fInteractive = interactive; } 18 19 virtual bool YesNoDecisionNeeded(const BString& description, 20 const BString& question, const BString& yes, 21 const BString& no, 22 const BString& defaultChoice); 23 24 private: 25 bool fInteractive; 26 }; 27 28 29 #endif // DECISION_PROVIDER_H 30