Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/android/configurators/ProxyRegistrationType.java

Issue 4705284891082752: Proxy configurators (Closed)
Patch Set: Created Aug. 11, 2014, 12:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/android/configurators/ProxyRegistrationType.java
diff --git a/src/org/adblockplus/android/configurators/ProxyRegistrationType.java b/src/org/adblockplus/android/configurators/ProxyRegistrationType.java
new file mode 100644
index 0000000000000000000000000000000000000000..ccb9f7e08cfbb84623be6de58681b8d2df0c4b8e
--- /dev/null
+++ b/src/org/adblockplus/android/configurators/ProxyRegistrationType.java
@@ -0,0 +1,48 @@
+/*
+ * This file is part of Adblock Plus <http://adblockplus.org/>,
+ * Copyright (C) 2006-2014 Eyeo GmbH
+ *
+ * Adblock Plus is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3 as
+ * published by the Free Software Foundation.
+ *
+ * Adblock Plus 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package org.adblockplus.android.configurators;
+
+import org.adblockplus.android.ProxyServerType;
+
+public enum ProxyRegistrationType
+{
+ UNKNOWN(ProxyServerType.UNKNOWN, false),
+ CYANOGENMOD(ProxyServerType.HTTPS, true),
+ IPTABLES(ProxyServerType.HTTP, true),
+ REFLECTION(ProxyServerType.HTTPS, true),
+ MANUAL(ProxyServerType.HTTPS, false);
+
+ private final ProxyServerType proxyType;
+ private final boolean autoConfigured;
+
+ private ProxyRegistrationType(final ProxyServerType proxyType, final boolean autoConfigured)
+ {
+ this.proxyType = proxyType;
+ this.autoConfigured = autoConfigured;
+ }
+
+ public ProxyServerType getProxyType()
+ {
+ return this.proxyType;
+ }
+
+ public boolean isAutoConfigured()
+ {
+ return this.autoConfigured;
+ }
+}

Powered by Google App Engine
This is Rietveld