Monotone-Parent: 10b56ee326ca77f71fbe5cb41d30b0640a6fe57a

Monotone-Revision: 494c37e329faf06b93265c155db7226d205150b0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-13T21:20:57
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-09-13 21:20:57 +00:00
parent a4b7893600
commit 2f69aeb03b
26 changed files with 37 additions and 72 deletions

View File

@ -21,7 +21,7 @@ $(SOGOD)_TOOL_LIBS += \
-lGDLContentStore \ -lGDLContentStore \
-lGDLAccess \ -lGDLAccess \
-lWEExtensions \ -lWEExtensions \
-lNGiCal \ -lNGCards \
-lNGObjWeb \ -lNGObjWeb \
-lNGMime -lNGLdap \ -lNGMime -lNGLdap \
-lNGStreams -lNGExtensions -lEOControl \ -lNGStreams -lNGExtensions -lEOControl \

View File

@ -3,7 +3,7 @@
libOGoContentStore_LIBRARIES_DEPEND_UPON += \ libOGoContentStore_LIBRARIES_DEPEND_UPON += \
-lGDLContentStore \ -lGDLContentStore \
-lGDLAccess \ -lGDLAccess \
-lNGiCal \ -lNGCards \
-lNGExtensions \ -lNGExtensions \
-lEOControl \ -lEOControl \
-lSaxObjC -lSaxObjC
@ -24,7 +24,7 @@ test_quick_extract_TOOL_LIBS += \
-lSaxObjC \ -lSaxObjC \
-lDOM \ -lDOM \
-lNGExtensions \ -lNGExtensions \
-lNGiCal \ -lNGCards \
-lGDLContentStore \ -lGDLContentStore \
-lGDLAccess \ -lGDLAccess \
-lOGoContentStore -lOGoContentStore

View File

@ -24,7 +24,7 @@
@interface OCSContactFieldExtractor : GCSFieldExtractor @interface OCSContactFieldExtractor : GCSFieldExtractor
@end @end
#include <NGiCal/NGVCard.h> #include <NGCards/NGVCard.h>
#include "common.h" #include "common.h"
@implementation OCSContactFieldExtractor @implementation OCSContactFieldExtractor

View File

@ -22,7 +22,7 @@
#include "OCSiCalFieldExtractor.h" #include "OCSiCalFieldExtractor.h"
#include "common.h" #include "common.h"
#include <SaxObjC/SaxObjC.h> #include <SaxObjC/SaxObjC.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include "iCalEntityObject+OCS.h" #include "iCalEntityObject+OCS.h"
#include "iCalRepeatableEntityObject+OCS.h" #include "iCalRepeatableEntityObject+OCS.h"
@ -45,7 +45,7 @@ static NSNumber *distantFutureNumber = nil;
retain]; retain];
if (parser == nil) if (parser == nil)
NSLog(@"ERROR: did not find a parser for text/calendar!"); NSLog(@"ERROR: did not find a parser for text/calendar!");
sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGiCal"]; sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGCards"];
if (sax == nil) if (sax == nil)
NSLog(@"ERROR: could not create the iCal SAX handler!"); NSLog(@"ERROR: could not create the iCal SAX handler!");
[parser setContentHandler:sax]; [parser setContentHandler:sax];

View File

@ -24,7 +24,7 @@
#ifndef __OGoContentStore_iCalRepeatableEntityObject_OCS_H_ #ifndef __OGoContentStore_iCalRepeatableEntityObject_OCS_H_
#define __OGoContentStore_iCalRepeatableEntityObject_OCS_H_ #define __OGoContentStore_iCalRepeatableEntityObject_OCS_H_
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
@interface iCalRepeatableEntityObject (OCS) @interface iCalRepeatableEntityObject (OCS)

View File

@ -31,6 +31,6 @@ BUNDLE_LIBS += \
-lOGoContentStore \ -lOGoContentStore \
-lGDLAccess \ -lGDLAccess \
-lNGObjWeb \ -lNGObjWeb \
-lNGMime -lNGiCal -lNGLdap \ -lNGMime -lNGCards -lNGLdap \
-lNGStreams -lNGExtensions -lEOControl \ -lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC -lXmlRpc -lDOM -lSaxObjC

View File

@ -31,8 +31,8 @@
#include <SoObjects/Appointments/SOGoAppointmentFolder.h> #include <SoObjects/Appointments/SOGoAppointmentFolder.h>
#include <SoObjects/Appointments/SOGoAppointmentObject.h> #include <SoObjects/Appointments/SOGoAppointmentObject.h>
#include <SOGo/SOGoAppointment.h> #include <SOGo/SOGoAppointment.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGiCal/iCalRenderer.h> #include <NGCards/iCalRenderer.h>
#include <SaxObjC/SaxObjC.h> #include <SaxObjC/SaxObjC.h>
#include "common.h" #include "common.h"
@ -51,7 +51,7 @@ static SaxObjectDecoder *sax = nil;
NSLog(@"ERROR: did not find a parser for text/calendar!"); NSLog(@"ERROR: did not find a parser for text/calendar!");
} }
if (sax == nil) { if (sax == nil) {
sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGiCal"]; sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGCards"];
if (sax == nil) if (sax == nil)
NSLog(@"ERROR: could not create the iCal SAX handler!"); NSLog(@"ERROR: could not create the iCal SAX handler!");
} }

View File

@ -25,7 +25,7 @@
#include <SOGo/AgenorUserManager.h> #include <SOGo/AgenorUserManager.h>
#include <GDLContentStore/GCSFolder.h> #include <GDLContentStore/GCSFolder.h>
#include <SaxObjC/SaxObjC.h> #include <SaxObjC/SaxObjC.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGExtensions/NGCalendarDateRange.h> #include <NGExtensions/NGCalendarDateRange.h>
#include "common.h" #include "common.h"

View File

@ -23,7 +23,7 @@
#include <SOGo/AgenorUserManager.h> #include <SOGo/AgenorUserManager.h>
#include <SOGo/SOGoAppointment.h> #include <SOGo/SOGoAppointment.h>
#include <SaxObjC/SaxObjC.h> #include <SaxObjC/SaxObjC.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGMime/NGMime.h> #include <NGMime/NGMime.h>
#include <NGMail/NGMail.h> #include <NGMail/NGMail.h>
#include <NGMail/NGSendMail.h> #include <NGMail/NGSendMail.h>
@ -78,7 +78,7 @@ static NSString *mailTemplateDefaultLanguage = nil;
retain]; retain];
if (parser == nil) if (parser == nil)
[logger fatalWithFormat:@"did not find a parser for text/calendar!"]; [logger fatalWithFormat:@"did not find a parser for text/calendar!"];
sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGiCal"]; sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGCards"];
if (sax == nil) if (sax == nil)
[logger fatalWithFormat:@"could not create the iCal SAX handler!"]; [logger fatalWithFormat:@"could not create the iCal SAX handler!"];

View File

@ -23,11 +23,11 @@
#include "SOGoFreeBusyObject.h" #include "SOGoFreeBusyObject.h"
#include "common.h" #include "common.h"
#include <SOGo/AgenorUserManager.h> #include <SOGo/AgenorUserManager.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGiCal/iCalRenderer.h> #include <NGCards/iCalRenderer.h>
@interface NSDate(UsedPrivates) @interface NSDate(UsedPrivates)
- (NSString *)icalString; // declared in NGiCal - (NSString *)icalString; // declared in NGCards
@end @end
@interface SOGoFreeBusyObject (PrivateAPI) @interface SOGoFreeBusyObject (PrivateAPI)

View File

@ -17,8 +17,6 @@ Contacts_OBJC_FILES = \
\ \
NSDictionary+Contact.m \ NSDictionary+Contact.m \
NGLdapEntry+Contact.m \ NGLdapEntry+Contact.m \
NGVCard+Contact.m \
NGVCardSimpleValue+Contact.m \
Contacts_RESOURCE_FILES += \ Contacts_RESOURCE_FILES += \
Version \ Version \

View File

@ -21,7 +21,7 @@
#include "SOGoAppointment.h" #include "SOGoAppointment.h"
#include <SaxObjC/SaxObjC.h> #include <SaxObjC/SaxObjC.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <EOControl/EOControl.h> #include <EOControl/EOControl.h>
#include "SOGoAppointmentICalRenderer.h" #include "SOGoAppointmentICalRenderer.h"
#include "common.h" #include "common.h"
@ -52,7 +52,7 @@ static NGLogger *logger = nil;
retain]; retain];
if (parser == nil) if (parser == nil)
[logger fatalWithFormat:@"did not find a parser for text/calendar!"]; [logger fatalWithFormat:@"did not find a parser for text/calendar!"];
sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGiCal"]; sax = [[SaxObjectDecoder alloc] initWithMappingNamed:@"NGCards"];
if (sax == nil) if (sax == nil)
[logger fatalWithFormat:@"could not create the iCal SAX handler!"]; [logger fatalWithFormat:@"could not create the iCal SAX handler!"];
@ -422,8 +422,8 @@ static NGLogger *logger = nil;
/* /*
NOTE: this is not the same API as used by NGiCal! NOTE: this is not the same API as used by NGCards!
SOGo/OGo cannot deal with the complete NGiCal API properly, although SOGo/OGo cannot deal with the complete NGCards API properly, although
SOGo COULD do so in the future SOGo COULD do so in the future
*/ */
- (void)setRecurrenceRule:(iCalRecurrenceRule *)_rrule { - (void)setRecurrenceRule:(iCalRecurrenceRule *)_rrule {

View File

@ -21,14 +21,14 @@
#include "SOGoAppointmentICalRenderer.h" #include "SOGoAppointmentICalRenderer.h"
#include "SOGoAppointment.h" #include "SOGoAppointment.h"
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGiCal/iCalRenderer.h> #include <NGCards/iCalRenderer.h>
#include "common.h" #include "common.h"
// TODO: the basic renderer should be part of NGiCal // TODO: the basic renderer should be part of NGCards
@interface NSDate(UsedPrivates) @interface NSDate(UsedPrivates)
- (NSString *)icalString; // declared in NGiCal - (NSString *)icalString; // declared in NGCards
@end @end
@implementation SOGoAppointmentICalRenderer @implementation SOGoAppointmentICalRenderer

View File

@ -25,7 +25,7 @@ BUNDLE_LIBS += \
-lGDLContentStore \ -lGDLContentStore \
-lGDLAccess \ -lGDLAccess \
-lNGObjWeb \ -lNGObjWeb \
-lNGiCal -lNGMime -lNGLdap \ -lNGCards -lNGMime -lNGLdap \
-lNGStreams -lNGExtensions -lEOControl \ -lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC -lXmlRpc -lDOM -lSaxObjC

View File

@ -28,7 +28,6 @@
@interface UIxContactEditorBase : UIxComponent @interface UIxContactEditorBase : UIxComponent
{ {
NSString *contentString;
NSString *errorText; NSString *errorText;
NSString *anaisCN; NSString *anaisCN;
NSMutableDictionary *snapshot; /* contains the values for editing */ NSMutableDictionary *snapshot; /* contains the values for editing */

View File

@ -38,25 +38,11 @@
[self->snapshot release]; [self->snapshot release];
[self->anaisCN release]; [self->anaisCN release];
[self->errorText release]; [self->errorText release];
[self->contentString release];
[super dealloc]; [super dealloc];
} }
/* accessors */ /* accessors */
- (void)setContentString:(NSString *)_cstr
{
ASSIGNCOPY(self->contentString, _cstr);
}
- (NSString *)contentString {
return self->contentString;
}
- (NSString *)contentStringTemplate {
return @"{}"; /* empty property list */
}
- (NSMutableDictionary *) snapshot - (NSMutableDictionary *) snapshot
{ {
NSString *email; NSString *email;
@ -92,24 +78,6 @@
/* load/store content format */ /* load/store content format */
- (void)loadValuesFromContentString:(NSString *)_s {
NSDictionary *plist;
if ([_s hasPrefix:@"BEGIN:VCARD"]) {
// TODO: load vCard values
[self errorWithFormat:@"Editing of vCard's is not yet supported!"];
return;
}
if ((plist = [_s propertyList]) == nil) {
[self errorWithFormat:@"could not parse content string!"];
return;
}
[self->snapshot removeAllObjects];
[self->snapshot addEntriesFromDictionary:plist];
}
- (void)_fixupSnapshot { - (void)_fixupSnapshot {
// TODO: perform sanity checking, eg build CN on demand // TODO: perform sanity checking, eg build CN on demand
NSString *cn, *gn, *sn; NSString *cn, *gn, *sn;

View File

@ -51,7 +51,7 @@
#include <SoObjects/Appointments/SOGoAppointmentFolder.h> #include <SoObjects/Appointments/SOGoAppointmentFolder.h>
#include <SoObjects/Appointments/SOGoAppointmentObject.h> #include <SoObjects/Appointments/SOGoAppointmentObject.h>
#include <SoObjects/Mailer/SOGoMailObject.h> #include <SoObjects/Mailer/SOGoMailObject.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGImap4/NGImap4EnvelopeAddress.h> #include <NGImap4/NGImap4EnvelopeAddress.h>
#include "common.h" #include "common.h"

View File

@ -88,7 +88,7 @@
@end @end
#include "common.h" #include "common.h"
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <NGExtensions/NGCalendarDateRange.h> #include <NGExtensions/NGCalendarDateRange.h>
#include <SOGoUI/SOGoDateFormatter.h> #include <SOGoUI/SOGoDateFormatter.h>
#include <SOGo/SOGoAppointment.h> #include <SOGo/SOGoAppointment.h>
@ -103,7 +103,7 @@
@end @end
@interface NSDate(UsedPrivates) @interface NSDate(UsedPrivates)
- (NSString *)icalString; // TODO: this is in NGiCal - (NSString *)icalString; // TODO: this is in NGCards
@end @end
@implementation UIxAppointmentEditor @implementation UIxAppointmentEditor

View File

@ -57,7 +57,7 @@
#include <SoObjects/Appointments/SOGoAppointmentFolder.h> #include <SoObjects/Appointments/SOGoAppointmentFolder.h>
#include <SoObjects/Appointments/SOGoFreeBusyObject.h> #include <SoObjects/Appointments/SOGoFreeBusyObject.h>
#include <NGExtensions/NGCalendarDateRange.h> #include <NGExtensions/NGCalendarDateRange.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include "common.h" #include "common.h"
@implementation UIxAppointmentProposal @implementation UIxAppointmentProposal

View File

@ -20,7 +20,7 @@
*/ */
#include "UIxAppointmentView.h" #include "UIxAppointmentView.h"
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include <SOGo/SOGoAppointment.h> #include <SOGo/SOGoAppointment.h>
#include <SOGo/WOContext+Agenor.h> #include <SOGo/WOContext+Agenor.h>
#include <Appointments/SOGoAppointmentObject.h> #include <Appointments/SOGoAppointmentObject.h>

View File

@ -37,7 +37,7 @@
@end @end
#include "common.h" #include "common.h"
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
@implementation UIxCalDateLabel @implementation UIxCalDateLabel

View File

@ -31,7 +31,7 @@
@end @end
#include <NGiCal/NGiCal.h> /* for iCalPersonPartStat */ #include <NGCards/NGCards.h> /* for iCalPersonPartStat */
#include "common.h" #include "common.h"
@implementation UIxCalParticipationStatusView @implementation UIxCalParticipationStatusView

View File

@ -7,7 +7,7 @@
#include <NGObjWeb/SoUser.h> #include <NGObjWeb/SoUser.h>
#include <SOGoUI/SOGoAptFormatter.h> #include <SOGoUI/SOGoAptFormatter.h>
#include <NGExtensions/NGCalendarDateRange.h> #include <NGExtensions/NGCalendarDateRange.h>
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include "UIxComponent+Agenor.h" #include "UIxComponent+Agenor.h"
@interface UIxCalView (PrivateAPI) @interface UIxCalView (PrivateAPI)

View File

@ -23,7 +23,7 @@
#ifndef __iCalPerson_UIx_H__ #ifndef __iCalPerson_UIx_H__
#define __iCalPerson_UIx_H__ #define __iCalPerson_UIx_H__
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
@class NSString; @class NSString;

View File

@ -19,7 +19,7 @@
02111-1307, USA. 02111-1307, USA.
*/ */
#include <NGiCal/NGiCal.h> #include <NGCards/NGCards.h>
#include "common.h" #include "common.h"
/* HACK ALERT /* HACK ALERT

View File

@ -43,6 +43,6 @@ BUNDLE_LIBS += \
-lGDLContentStore \ -lGDLContentStore \
-lGDLAccess \ -lGDLAccess \
-lNGObjWeb \ -lNGObjWeb \
-lNGMime -lNGiCal -lNGLdap \ -lNGMime -lNGCards -lNGLdap \
-lNGStreams -lNGExtensions -lEOControl \ -lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC -lXmlRpc -lDOM -lSaxObjC