]> err.no Git - sope/commitdiff
added 'method', 'userComment' and fixed minor bugs
authorznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 14 Jul 2005 17:44:47 +0000 (17:44 +0000)
committerznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 14 Jul 2005 17:44:47 +0000 (17:44 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@901 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-ical/NGiCal/ChangeLog
sope-ical/NGiCal/NGiCal.xcodeproj/project.pbxproj
sope-ical/NGiCal/NGiCal.xmap
sope-ical/NGiCal/Version
sope-ical/NGiCal/iCalCalendar.h
sope-ical/NGiCal/iCalCalendar.m
sope-ical/NGiCal/iCalEntityObject.h
sope-ical/NGiCal/iCalEntityObject.m
sope-ical/NGiCal/iCalEvent.h

index 0a896ae38c2f4a13d8a166b67a2ec53f6f6e023f..7026ef9ec6db443fbe76e729cc00319ffeeb15bf 100644 (file)
@@ -1,3 +1,17 @@
+2005-07-14  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * v4.5.49
+
+       * iCalCalendar.[hm]: added 'method'
+
+       * iCalEntityObject.[hm]: added 'userComment', changed all email
+         related comparisons to lowercase all strings before comparison
+
+       * iCalEvent.h: pretty printed iVars
+
+       * NGiCal.xmap: added mapping for 'comment' -> 'userComment' and
+         'method' -> 'method'
+
 2005-07-13  Helge Hess  <helge.hess@opengroupware.org>
 
        * v4.5.48
index 38d27d2806c436a4f9b083bdf89a15bdc88558f9..a3dda6ff5955ea55525fbd06703803e7eef4140a 100644 (file)
                        );
                        buildSettings = {
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                FRAMEWORK_SEARCH_PATHS = "\"$(USER_LIBRARY_DIR)/EmbeddedFrameworks\"";
                                FRAMEWORK_VERSION = A;
                                GCC_PRECOMPILE_PREFIX_HEADER = NO;
                        );
                        buildSettings = {
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
                                FRAMEWORK_VERSION = A;
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                        buildSettings = {
                                COPY_PHASE_STRIP = NO;
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
                                FRAMEWORK_VERSION = A;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
                                DEPLOYMENT_POSTPROCESSING = YES;
                                DSTROOT = /;
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
                                FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
                                FRAMEWORK_VERSION = A;
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
                                FRAMEWORK_VERSION = A;
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                        buildSettings = {
                                COPY_PHASE_STRIP = NO;
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                FRAMEWORK_SEARCH_PATHS = "\"$(USER_LIBRARY_DIR)/EmbeddedFrameworks\"";
                                FRAMEWORK_VERSION = A;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
                                DEPLOYMENT_POSTPROCESSING = YES;
                                DSTROOT = /;
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
                                FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
                                FRAMEWORK_VERSION = A;
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 4.5.56;
+                               DYLIB_CURRENT_VERSION = 4.5.49;
                                FRAMEWORK_SEARCH_PATHS = "\"$(USER_LIBRARY_DIR)/EmbeddedFrameworks\"";
                                FRAMEWORK_VERSION = A;
                                GCC_PRECOMPILE_PREFIX_HEADER = NO;
index a9a612da3ea377d6757c61cc592652a59c80db02..6cb5df9afe1cda2e9902e1795292106696056f9d 100644 (file)
     
     summary     = { class = NSString; };
     description = { class = NSString; key = comment; };
+    comment     = { class = NSString; key = userComment; };
     uid         = { class = NSString; };
     action      = { class = NSString; };
     priority    = { class = NSString; };
     status      = { class = NSString; };
     transp      = { class = NSString; key = transparency; };
+    method      = { class = NSString; };
     sequence    = { class = NSString; };
     categories  = { class = NSString; };
     class       = { class = NSString; key = accessClass; };
index e3250f18100c991879c192fc41fc7f28d2e91c67..4d808abe41ad8209cbe35b7e199447f1e8251528 100644 (file)
@@ -2,7 +2,7 @@
 
 MAJOR_VERSION=4
 MINOR_VERSION=5
-SUBMINOR_VERSION:=47
+SUBMINOR_VERSION:=49
 
 # v4.5.40 requires NGExtensions v4.5.145
 # v4.5.37 requires NGExtensions v4.5.140
index 0e1b57b3160f3f2b26ec9c98f97b38d73c9ed15f..0227c88b3359dcf64a4fd3a4bf37303c98b96980 100644 (file)
@@ -32,6 +32,7 @@
   NSString *version;
   NSString *calscale;
   NSString *prodId;
+  NSString *method;
 
   NSMutableArray *todos;
   NSMutableArray *events;
@@ -45,6 +46,7 @@
 - (NSString *)calscale;
 - (NSString *)version;
 - (NSString *)prodId;
+- (NSString *)method;
 
 - (NSArray *)events;
 - (NSArray *)todos;
index 30cc36d9158c6f71771102adf1bf4ee1be6b0720..d6fa8c1ca15a7990ec72bf036df558d8ae5eb0ce 100644 (file)
@@ -28,7 +28,8 @@
   [self->version   release];
   [self->calscale  release];
   [self->prodId    release];
-    
+  [self->method    release];
+
   [self->todos     release];
   [self->events    release];
   [self->journals  release];
 - (NSString *)prodId {
   return self->prodId;
 }
+- (void)setMethod:(NSString *)_method {
+  ASSIGN(self->method, _method);
+}
+- (NSString *)method {
+  return self->method;
+}
 
 - (void)addToEvents:(iCalEvent *)_event {
   if (_event == nil) return;
index 64a14ea4489e2b2daae1ee8c7c68c9b34c4e0ca7..139fa5c332c1b26437161cb3261701d4f76157a9 100644 (file)
@@ -52,6 +52,7 @@
   NSString       *location;
   NSString       *status;
   NSString       *categories;
+  NSString       *userComment;
 }
 
 /* accessors */
@@ -92,6 +93,9 @@
 - (void)setSequence:(NSNumber *)_value; /* this is an int */
 - (NSNumber *)sequence;
 
+- (void)setUserComment:(NSString *)_userComment;
+- (NSString *)userComment;
+
 - (void)setOrganizer:(iCalPerson *)_organizer;
 - (iCalPerson *)organizer;
 - (BOOL)isOrganizer:(id)_email;
index 313ab128dd2b00c454b3a60c14015ba6395f0342..af9d240648141a161300e972aae2ec1b5c909d64 100644 (file)
@@ -45,6 +45,7 @@
   [self->location     release];
   [self->status       release];
   [self->categories   release];
+  [self->userComment  release];
   [super dealloc];
 }
 
   return self->alarms;
 }
 
+- (void)setUserComment:(NSString *)_userComment {
+  ASSIGN(self->userComment, _userComment);
+}
+- (NSString *)userComment {
+  return self->userComment;
+}
+
 /* stuff */
 
 - (NSArray *)participants {
 }
 
 - (BOOL)isOrganizer:(id)_email {
-  return [[[self organizer] rfc822Email] isEqualToString:_email];
+  _email = [_email lowercaseString];
+  return [[[[self organizer] rfc822Email] lowercaseString]
+                                          isEqualToString:_email];
 }
 
 - (BOOL)isParticipant:(id)_email {
   NSArray *partEmails;
   
+  _email     = [_email lowercaseString];
   partEmails = [[self participants] valueForKey:@"rfc822Email"];
+  partEmails = [partEmails valueForKey:@"lowercaseString"];
   return [partEmails containsObject:_email];
 }
 
   NSArray  *ps;
   unsigned i, count;
   
-  ps    = [self participants];
-  count = [ps count];
-  
+  _email = [_email lowercaseString];
+  ps     = [self participants];
+  count  = [ps count];
+
   for (i = 0; i < count; i++) {
     iCalPerson *p;
     
     p = [ps objectAtIndex:i];
-    if ([[p rfc822Email] isEqualToString:_email])
+    if ([[[p rfc822Email] lowercaseString] isEqualToString:_email])
       return p;
   }
   return nil; /* not found */
index 9e07b2c5f1978957a6b01910d984442300477d8c..1405bbf76b03741bff1a84b3d3d71d208cec2e61 100644 (file)
@@ -37,9 +37,9 @@
 
 @interface iCalEvent : iCalRepeatableEntityObject
 {
-  NSCalendarDate     *endDate;
-  NSString           *duration;
-  NSString           *transparency;
+  NSCalendarDate *endDate;
+  NSString       *duration;
+  NSString       *transparency;
 }
 
 /* accessors */