aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-24 07:24:17 +0200
committerTeddy Wing2018-10-24 07:24:17 +0200
commit44a2f3992024f970aaa8c302eb4638d48922841a (patch)
tree5a173b4612081f39d240873c3a01b32babf61f05
parent03c06d9ab75ce794b30a75c7a6314ff8371f4b68 (diff)
downloadDomeKey-44a2f3992024f970aaa8c302eb4638d48922841a.tar.bz2
LicenseHandler: Add method stubs
-rw-r--r--DomeKey/LicenseHandler.h3
-rw-r--r--DomeKey/LicenseHandler.m14
2 files changed, 17 insertions, 0 deletions
diff --git a/DomeKey/LicenseHandler.h b/DomeKey/LicenseHandler.h
index d8a2b66..6634f28 100644
--- a/DomeKey/LicenseHandler.h
+++ b/DomeKey/LicenseHandler.h
@@ -10,4 +10,7 @@
@interface LicenseHandler : NSObject
++ (void)check;
++ (void)addLicense;
+
@end
diff --git a/DomeKey/LicenseHandler.m b/DomeKey/LicenseHandler.m
index 9c1e719..b875842 100644
--- a/DomeKey/LicenseHandler.m
+++ b/DomeKey/LicenseHandler.m
@@ -10,4 +10,18 @@
@implementation LicenseHandler
++ (void)check
+{
+ if (/* license file exists */) {
+ // validate license
+ }
+ else {
+ // run do_trial();
+ }
+}
+
++ (void)addLicense
+{
+}
+
@end