/*
- * Sone - SonePlugin.java - Copyright © 2010–2016 David Roden
+ * Sone - SonePlugin.java - Copyright © 2010–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* This class interfaces with Freenet. It is the class that is loaded by the
* node and starts up the whole Sone system.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, FredPluginBaseL10n, FredPluginThreadless, FredPluginVersioned {
/** The current year at time of release. */
private static final int YEAR = 2017;
private static final String SONE_HOMEPAGE = "USK@nwa8lHa271k2QvJ8aa0Ov7IHAV-DFOCFgmDt3X6BpCI,DuQSUZiI~agF8c-6tjsFFGuZ8eICrzWCILB60nT8KKo,AQACAAE/sone/";
- private static final int LATEST_EDITION = 76;
+ private static final int LATEST_EDITION = 77;
/** The logger. */
private static final Logger logger = getLogger(SonePlugin.class.getName());
return (version == null) ? "unknown" : version.getNice();
}
- public static int getYear() {
+ public int getYear() {
return YEAR;
}
return getPluginVersion();
}
- public static class PluginVersion {
-
- private final String version;
-
- public PluginVersion(String version) {
- this.version = version;
- }
-
- public String getVersion() {
- return version;
- }
-
- }
-
- public static class PluginYear {
-
- private final int year;
-
- public PluginYear(int year) {
- this.year = year;
- }
-
- public int getYear() {
- return year;
- }
-
- }
-
- public static class PluginHomepage {
-
- private final String homepage;
-
- public PluginHomepage(String homepage) {
- this.homepage = homepage;
- }
-
- public String getHomepage() {
- return homepage;
- }
-
- }
-
}