diff --git a/headers/os/package/Context.h b/headers/os/package/Context.h index e0d70da1ea..c5d5244a28 100644 --- a/headers/os/package/Context.h +++ b/headers/os/package/Context.h @@ -25,7 +25,7 @@ struct BDecisionProvider { virtual bool YesNoDecisionNeeded(const BString& description, const BString& question, const BString& yes, const BString& no, - const BString& defaultChoice) = 0; + const BString& defaultChoice); // virtual bool ActionsAcceptanceDecisionNeeded( // const BString& description, // const BString& question) = 0; diff --git a/src/kits/package/Context.cpp b/src/kits/package/Context.cpp index 7ed7d146ff..eb18acc9f8 100644 --- a/src/kits/package/Context.cpp +++ b/src/kits/package/Context.cpp @@ -29,6 +29,15 @@ BDecisionProvider::~BDecisionProvider() } +bool +BDecisionProvider::YesNoDecisionNeeded(const BString& description, + const BString& question, const BString& yes, const BString& no, + const BString& defaultChoice) +{ + return defaultChoice == yes; +} + + BContext::BContext(BDecisionProvider& decisionProvider, BJobStateListener& jobStateListener) :