Exemple #1
0
 public NetworkExtensionsCapability(PListDictionary dic)
 {
     AppProxy      = dic.BoolValue(APP_PROXY_KEY);
     ContentFilter = dic.BoolValue(CONTENT_FILTER_KEY);
     PacketTunnel  = dic.BoolValue(PACKET_TUNNEL_KEY);
     DNSProxy      = dic.BoolValue(DNS_PROXY_KEY);
 }
Exemple #2
0
        void AddStringList(PListDictionary dic)
        {
            string settingName, displayName, group;

            ExtractCommon(dic, out settingName, out displayName, out group);
            bool path      = dic.BoolValue(PATH_KEY);
            bool inherited = dic.BoolValue(INHERIT_KEY);

            _settings[settingName] = new StringListBuildSetting(settingName, displayName, group, path, inherited);
        }
 public BackgroundModesCapability(PListDictionary dic)
 {
     AudioAirplayPIP     = dic.BoolValue(AUDIO_AIRPLAY_PIP_KEY);
     LocationUpdates     = dic.BoolValue(LOCATION_UPDATES_KEY);
     VOIP                = dic.BoolValue(VOIP_KEY);
     NewsstandDownloads  = dic.BoolValue(NEWSSTAND_DOWNLOADS_KEY);
     ExternalAccComms    = dic.BoolValue(EXTERNAL_ACC_COMMS_KEY);
     UsesBTLEAcc         = dic.BoolValue(USES_BTLE_ACC_KEY);
     ActsAsBTLEAcc       = dic.BoolValue(ACTS_AS_BTLE_ACC_KEY);
     BackgroundFetch     = dic.BoolValue(BACKGROUND_FETCH_KEY);
     RemoteNotifications = dic.BoolValue(REMOTE_NOTIFICATIONS_KEY);
 }
        public ICloudCapability(PListDictionary dic)
        {
            KeyValueStorage     = dic.BoolValue(KEY_VALUE_STORAGE_KEY);
            iCloudDocuments     = dic.BoolValue(ICLOUD_DOCUMENTS_KEY);
            CloudKit            = dic.BoolValue(CLOUDKIT_KEY);
            UseCustomContainers = dic.BoolValue(USE_CUSTOM_CONTAINERS_KEY);
            var groups = dic.ArrayValue(CUSTOM_CONTAINERS_KEY);

            if (groups != null && groups.Count > 0)
            {
                CustomContainers = new List <string>(groups.ToStringArray());
            }
            else
            {
                CustomContainers = new List <string>();
            }
        }
Exemple #5
0
        void AddBool(PListDictionary dic)
        {
            string settingName, displayName, group;

            ExtractCommon(dic, out settingName, out displayName, out group);
            var value = dic.BoolValue(VALUE_KEY);

            _settings[settingName] = new BoolBuildSetting(settingName, displayName, group, value);
        }
Exemple #6
0
        void AddString(PListDictionary dic)
        {
            string settingName, displayName, group;

            ExtractCommon(dic, out settingName, out displayName, out group);
            var  value = dic.StringValue(VALUE_KEY);
            bool path  = dic.BoolValue(PATH_KEY);

            _settings[settingName] = new StringBuildSetting(settingName, displayName, group, path, value);
        }
    internal override bool DrawEntry(Egomotion.EgoXproject.Internal.PListDictionary dic)
    {
        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField(dic.StringValue(SETTING_KEY));
        EditorGUILayout.LabelField(dic.StringValue(NAME_KEY));
        var type = dic.StringValue(TYPE_KEY);

        if (type == BOOL_TYPE_VALUE)
        {
            var value = dic.BoolValue(VALUE_KEY);
            EditorGUILayout.LabelField(value ? "Yes" : "No");
        }
        else if (type == STRING_TYPE_VALUE)
        {
            var value = dic.StringValue(VALUE_KEY);
            EditorGUILayout.LabelField(value);
        }
        else if (type == INTEGER_TYPE_VALUE)
        {
            var value = dic.IntValue(VALUE_KEY);
            EditorGUILayout.LabelField(value.ToString());
        }
        else if (type == REAL_TYPE_VALUE)
        {
            var value = dic.FloatValue(VALUE_KEY);
            EditorGUILayout.LabelField(value.ToString());
        }
        else if (type == ARRAY_TYPE_VALUE)
        {
            //TODO should also be able to draw a defaul array entries
            EditorGUILayout.LabelField("Array");
        }
        else if (type == DICTIONARY_TYPE_VALUE)
        {
            //TODO should also be able to draw a defaul array entries
            EditorGUILayout.LabelField("Dictionary");
        }
        else
        {
            EditorGUILayout.LabelField("UNKNOWN");
        }

        bool remove = false;;

        if (GUILayout.Button("-"))
        {
            remove = true;
        }

        EditorGUILayout.EndHorizontal();

        return(remove);
    }
Exemple #8
0
        public WalletCapability(PListDictionary dic)
        {
            AllowSubsetOfPassTypes = dic.BoolValue(ALLOW_SUBSET_OF_PASS_TYPES_KEY);
            var groups = dic.ArrayValue(PASS_TYPE_SUBSETS_KEY);

            if (groups != null && groups.Count > 0)
            {
                PassTypeSubsets = new List <string>(groups.ToStringArray());
            }
            else
            {
                PassTypeSubsets = new List <string>();
            }
        }
        public SigningChanges(PListDictionary dic)
        {
            if (dic == null)
            {
                return;
            }

            TeamId = dic.StringValue(TEAM_ID_KEY);

            if (dic.ContainsKey(AUTO_PROVISIONING_KEY))
            {
                AutomaticProvisioning = dic.BoolValue(AUTO_PROVISIONING_KEY);
            }
            else
            {
                AutomaticProvisioning = true;
            }
        }
Exemple #10
0
        public AppSandboxCapability(PListDictionary dic)
        {
            KeyNetworkServer = dic.BoolValue(KEY_NETWORK_SERVER);
            KeyNetworkClient = dic.BoolValue(KEY_NETWORK_CLIENT);

            KeyCamera    = dic.BoolValue(KEY_CAMERA);
            KeyAudio     = dic.BoolValue(KEY_AUDIO);
            KeyUSB       = dic.BoolValue(KEY_USB);
            KeyPrinting  = dic.BoolValue(KEY_PRINTING);
            KeyBluetooth = dic.BoolValue(KEY_BLUETOOTH);

            KeyContacts = dic.BoolValue(KEY_CONTACTS);
            KeyLocation = dic.BoolValue(KEY_LOCATION);
            KeyCalendar = dic.BoolValue(KEY_CALENDAR);

            if (dic.BoolValue(KEY_USER_SELECTED_FILES + EXT_READ_ONLY))
            {
                KeyUserSelectedFiles = READ_WRITE_OPTIONS.ReadOnly;
            }
            else if (dic.BoolValue(KEY_USER_SELECTED_FILES + EXT_READ_WRITE))
            {
                KeyUserSelectedFiles = READ_WRITE_OPTIONS.ReadWrite;
            }
            else
            {
                KeyUserSelectedFiles = READ_WRITE_OPTIONS.None;
            }

            if (dic.BoolValue(KEY_DOWNLOADS_FOLDER + EXT_READ_ONLY))
            {
                KeyDownloadsFolder = READ_WRITE_OPTIONS.ReadOnly;
            }
            else if (dic.BoolValue(KEY_DOWNLOADS_FOLDER + EXT_READ_WRITE))
            {
                KeyDownloadsFolder = READ_WRITE_OPTIONS.ReadWrite;
            }
            else
            {
                KeyDownloadsFolder = READ_WRITE_OPTIONS.None;
            }

            if (dic.BoolValue(KEY_PICTURES_FOLDER + EXT_READ_ONLY))
            {
                KeyPicturesFolder = READ_WRITE_OPTIONS.ReadOnly;
            }
            else if (dic.BoolValue(KEY_PICTURES_FOLDER + EXT_READ_WRITE))
            {
                KeyPicturesFolder = READ_WRITE_OPTIONS.ReadWrite;
            }
            else
            {
                KeyPicturesFolder = READ_WRITE_OPTIONS.None;
            }

            if (dic.BoolValue(KEY_MUSIC_FOLDER + EXT_READ_ONLY))
            {
                KeyMusicFolder = READ_WRITE_OPTIONS.ReadOnly;
            }
            else if (dic.BoolValue(KEY_MUSIC_FOLDER + EXT_READ_WRITE))
            {
                KeyMusicFolder = READ_WRITE_OPTIONS.ReadWrite;
            }
            else
            {
                KeyMusicFolder = READ_WRITE_OPTIONS.None;
            }

            if (dic.BoolValue(KEY_MOVIES_FOLDER + EXT_READ_ONLY))
            {
                KeyMoviesFolder = READ_WRITE_OPTIONS.ReadOnly;
            }
            else if (dic.BoolValue(KEY_MOVIES_FOLDER + EXT_READ_WRITE))
            {
                KeyMoviesFolder = READ_WRITE_OPTIONS.ReadWrite;
            }
            else
            {
                KeyMoviesFolder = READ_WRITE_OPTIONS.None;
            }
        }
 public MapsCapability(PListDictionary dic)
 {
     Airplane    = dic.BoolValue(AIRPLANE_KEY);
     Bike        = dic.BoolValue(BIKE_KEY);
     Bus         = dic.BoolValue(BUS_KEY);
     Car         = dic.BoolValue(CAR_KEY);
     Ferry       = dic.BoolValue(FERRY_KEY);
     Pedestrian  = dic.BoolValue(PEDESTRIAN_KEY);
     RideSharing = dic.BoolValue(RIDE_SHARING_KEY);
     Streetcar   = dic.BoolValue(STREETCAR_KEY);
     Subway      = dic.BoolValue(SUBWAY_KEY);
     Taxi        = dic.BoolValue(TAXI_KEY);
     Train       = dic.BoolValue(TRAIN_KEY);
     Other       = dic.BoolValue(OTHER_KEY);
 }