Serialization of the whiteList

This commit is contained in:
Alexandre Cloutier
2014-07-07 10:00:16 -04:00
parent 8ded5a8aaf
commit 16d02455bd
3 changed files with 36 additions and 16 deletions

View File

@@ -639,6 +639,26 @@ static NSArray *reminderValues = nil;
return [userDefaults busyOffHours];
}
- (NSString *) whiteListValue
{
SOGoUserSettings *us;
id *whiteListValue;
us = [user userSettings];
whiteListValue = [us objectForKey:@"whiteListInvitations"];
return whiteListValue;
}
- (void) setWhiteListValue: (NSArray *) whiteList
{
SOGoUserSettings *us;
us = [user userSettings];
[us setObject: whiteList forKey: @"whiteListInvitations"];
[us synchronize];
}
- (void) setPreventInvitations: (BOOL) preventInvitations
{
SOGoUserSettings *us;