// Copyright (C) Stichting Deltares 2019. All rights reserved.
//
// This file is part of Riskeer.
//
// Riskeer is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see .
//
// All names, logos, and references to "Deltares" are registered trademarks of
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
namespace Core.Common.Gui.Helpers
{
///
/// Specifies the interface for classes that can be used to inquire information from
/// the user.
///
public interface IInquiryHelper
{
///
/// Returns the path of an existing file that the user has chosen.
///
/// A filter to which the path returned complies.
/// A file location, or null if no location was chosen.
string GetSourceFileLocation(string fileFilter);
///
/// Returns the path to a file, which may or may not exist yet, that the user has chosen.
///
/// A filter to which the path returned complies.
/// The initial file name the user can choose.
/// A path to a file, which may or may not exist yet, or null if no location
/// was chosen.
string GetTargetFileLocation(string fileFilter, string suggestedFileName);
///
/// Gets the confirmation of a user.
///
/// The query to which the user needs to answer.
/// true if the user confirmed, false otherwise.
bool InquireContinuation(string query);
///
/// Checks with the user if a certain optional step in some workflow should be
/// performed or not.
///
/// The short descriptive text on the workflow
/// currently being performed.
/// The query to which the user needs to answer.
/// How the workflow should continue.
OptionalStepResult InquirePerformOptionalStep(string workflowDescription, string query);
}
}