]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Add read-only flag to VpnProfile
authorMarkus Pfeiffer <markus.pfeiffer@relution.io>
Tue, 21 Nov 2023 14:37:21 +0000 (15:37 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Feb 2024 11:24:52 +0000 (12:24 +0100)
src/frontends/android/app/src/main/java/org/strongswan/android/data/VpnProfile.java

index 1d3c2bbcab0e4b55607f0b63d2db0821f0ae919c..9219b1001c8eeea8d8dbb61e081d4bf88e8bb7f4 100644 (file)
@@ -48,6 +48,7 @@ public class VpnProfile implements Cloneable
        private VpnType mVpnType;
        private UUID mUUID;
        private long mId = -1;
+       private boolean mReadOnly;
 
        public enum SelectedAppsHandling
        {
@@ -55,7 +56,7 @@ public class VpnProfile implements Cloneable
                SELECTED_APPS_EXCLUDE(1),
                SELECTED_APPS_ONLY(2);
 
-               private Integer mValue;
+               private final Integer mValue;
 
                SelectedAppsHandling(int value)
                {
@@ -331,6 +332,16 @@ public class VpnProfile implements Cloneable
                this.mFlags = flags;
        }
 
+       public boolean isReadOnly()
+       {
+               return mReadOnly;
+       }
+
+       public void setReadOnly(boolean readOnly)
+       {
+               this.mReadOnly = readOnly;
+       }
+
        @Override
        public String toString()
        {