mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-15 21:34:53 +00:00
Added calendar default reminder support.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
/* UIxComponentEditor.h - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2006-2012 Inverse inc.
|
||||
*
|
||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
* Copyright (C) 2006-2013 Inverse inc.
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -42,8 +40,6 @@
|
||||
|
||||
NSString *saveURL;
|
||||
NSMutableArray *calendarList;
|
||||
//NSMutableArray *organizerList;
|
||||
//NSDictionary *organizerIdentity;
|
||||
NSDictionary *organizerProfile;
|
||||
|
||||
/* individual values */
|
||||
|
||||
@@ -1152,25 +1152,39 @@ iRANGE(2);
|
||||
return reminderItems;
|
||||
}
|
||||
|
||||
- (void) setReminder: (NSString *) theReminder
|
||||
{
|
||||
ASSIGN(reminder, theReminder);
|
||||
}
|
||||
- (void) setReminder: (NSString *) theReminder
|
||||
{
|
||||
ASSIGN(reminder, theReminder);
|
||||
}
|
||||
|
||||
- (NSString *) reminder
|
||||
{
|
||||
return reminder;
|
||||
}
|
||||
{
|
||||
if ([[self clientObject] isNew])
|
||||
{
|
||||
NSString *value;
|
||||
int index;
|
||||
|
||||
value = [userDefaults calendarDefaultReminder];
|
||||
index = [reminderValues indexOfObject: value];
|
||||
|
||||
if (index != NSNotFound)
|
||||
return [reminderItems objectAtIndex: index];
|
||||
|
||||
return @"NONE";
|
||||
}
|
||||
|
||||
- (void) setReminderQuantity: (NSString *) theReminderQuantity
|
||||
{
|
||||
ASSIGN(reminderQuantity, theReminderQuantity);
|
||||
}
|
||||
return reminder;
|
||||
}
|
||||
|
||||
- (void) setReminderQuantity: (NSString *) theReminderQuantity
|
||||
{
|
||||
ASSIGN(reminderQuantity, theReminderQuantity);
|
||||
}
|
||||
|
||||
- (NSString *) reminderQuantity
|
||||
{
|
||||
return reminderQuantity;
|
||||
}
|
||||
{
|
||||
return reminderQuantity;
|
||||
}
|
||||
|
||||
- (NSString *) itemReminderText
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user