From 3ba1ee60337c5e74027acb6f89a16e5ff3aa345c Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周一, 14 4月 2014 15:47:14 +0800
Subject: [PATCH] test with date

---
 src/library/LicenseReader.h |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/library/reader/LicenseReader.h b/src/library/LicenseReader.h
similarity index 89%
rename from src/library/reader/LicenseReader.h
rename to src/library/LicenseReader.h
index 9ab92ca..bcc6022 100644
--- a/src/library/reader/LicenseReader.h
+++ b/src/library/LicenseReader.h
@@ -8,9 +8,11 @@
 #ifndef LICENSEREADER_H_
 #define LICENSEREADER_H_
 
-#include "../api/datatypes.h"
-#include "../base/EventRegistry.h"
-#include "../os/os.hpp"
+#include "api/datatypes.h"
+#include "base/EventRegistry.h"
+#include "os/os.hpp"
+#define SI_SUPPORT_IOSTREAMS
+#include "ini/SimpleIni.h"
 #include <string>
 #include <ctime>
 namespace license {
@@ -39,7 +41,7 @@
 	FullLicenseInfo(const string& source, const string& product,
 			const string& license_signature, int licenseVersion,
 			time_t from_date = UNUSED_TIME,
-			time_t tp_date = UNUSED_TIME, //
+			time_t to_date = UNUSED_TIME, //
 			const string& client_signature = "", //
 			unsigned int from_sw_version = UNUSED_SOFTWARE_VERSION,
 			unsigned int to_sw_version = UNUSED_SOFTWARE_VERSION,
@@ -70,6 +72,8 @@
  */
 class LicenseReader {
 private:
+	time_t read_date(const char * productName, const char * ini_key,
+			const CSimpleIniA& ini) const;
 	const LicenseLocation licenseLocation;
 	EventRegistry getLicenseDiskFiles(vector<string>& diskFiles);
 	vector<string> filterExistingFiles(vector<string> licensePositions);

--
Gitblit v1.9.1