From 263a0f6f6f0cdedd563bb7ae9723db6b096486b2 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周六, 19 10月 2019 08:50:45 +0800
Subject: [PATCH] issue #64 , issue #56 (part)

---
 src/library/locate/LocatorStrategy.hpp |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/library/locate/LocatorStrategy.hpp b/src/library/locate/LocatorStrategy.hpp
index 4aabd6d..278c6a3 100644
--- a/src/library/locate/LocatorStrategy.hpp
+++ b/src/library/locate/LocatorStrategy.hpp
@@ -31,18 +31,26 @@
 	virtual const std::string get_strategy_name() const {
 		return m_strategy_name;
 	}
-
-	virtual const std::vector<std::string> licenseLocations(
-			EventRegistry &eventRegistry) const = 0;
+	/**
+	 * Try to find licenses
+	 * @param eventRegistry
+	 * @return
+	 * A list of identifiers for call retrieve_license_content.
+	 */
+	virtual const std::vector<std::string> license_locations(
+			EventRegistry &eventRegistry) = 0;
 
 	/**
 	 * Default implementation is to retrieve the license from file.
 	 * Subclasses may override it.
-	 * @param licenseLocation
+	 * @param licenseLocationId
+	 * 	String that identifies the license. It is usually the file name
+	 * 	but can be whatever is understood by the class
 	 * @return
+	 * 	a string containing the license data in INI format.
 	 */
-	virtual const std::string retrieveLicense(
-			const std::string &licenseLocation) const;
+	virtual const std::string retrieve_license_content(
+			const std::string &licenseLocationId) const;
 	inline virtual ~LocatorStrategy() {
 	}
 };

--
Gitblit v1.9.1