build warnings

Monotone-Parent: 45249fe68411e1b5ecd968fb87f91801d6882115
Monotone-Revision: 9ea936d2bbff9184d4e2df3779bdc267702b6996

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-01-22T16:33:35
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-01-22 16:33:35 +00:00
parent 2df89a88ca
commit 1e5155e1a2
14 changed files with 62 additions and 48 deletions

View File

@ -82,6 +82,12 @@ typedef enum {
- (NSString *) resourceNameForEventUID: (NSString *) _uid; - (NSString *) resourceNameForEventUID: (NSString *) _uid;
/* fetching */ /* fetching */
- (NSArray *) bareFetchFields: (NSArray *) fields
from: (NSCalendarDate *) startDate
to: (NSCalendarDate *) endDate
title: (NSString *) title
component: (NSString *) component
additionalFilters: (NSString *) filters;
- (NSArray *) fetchFields: (NSArray *) _fields - (NSArray *) fetchFields: (NSArray *) _fields
from: (NSCalendarDate *) _startDate from: (NSCalendarDate *) _startDate

View File

@ -55,6 +55,8 @@
@interface SOGoParentFolder (Private) @interface SOGoParentFolder (Private)
- (NSException *) initSubscribedSubFolders; - (NSException *) initSubscribedSubFolders;
- (NSException *) _fetchPersonalFolders: (NSString *) sql
withChannel: (EOAdaptorChannel *) fc;
@end @end
@ -265,8 +267,7 @@
attributes: nil]]; attributes: nil]];
componentSet componentSet
= [davElementWithContent (@"supported-calendar-component-set", = [davElementWithContent (@"supported-calendar-component-set",
XMLNS_CALDAV, XMLNS_CALDAV, components)
components)
asWebDAVValue]; asWebDAVValue];
[componentSet retain]; [componentSet retain];
} }
@ -284,7 +285,6 @@
us = [[SOGoUser userWithLogin: [self ownerInContext: nil]] us = [[SOGoUser userWithLogin: [self ownerInContext: nil]]
userSettings]; userSettings];
tmp = [us objectForKey: @"Calendar"]; tmp = [us objectForKey: @"Calendar"];
if (tmp) if (tmp)
{ {
@ -312,7 +312,6 @@
isWebRequest = [[context request] handledByDefaultHandler]; isWebRequest = [[context request] handledByDefaultHandler];
error = [super _fetchPersonalFolders: sql withChannel: fc]; error = [super _fetchPersonalFolders: sql withChannel: fc];
if (!error) if (!error)
{ {
webCalendarIds = [self webCalendarIds]; webCalendarIds = [self webCalendarIds];
@ -449,26 +448,20 @@
static NSArray *readAccessRoles = nil; static NSArray *readAccessRoles = nil;
if (!writeAccessRoles) if (!writeAccessRoles)
{ writeAccessRoles = [[NSArray alloc] initWithObjects:
writeAccessRoles = [NSArray arrayWithObjects: SOGoCalendarRole_ConfidentialModifier,
SOGoCalendarRole_ConfidentialModifier, SOGoRole_ObjectCreator,
SOGoRole_ObjectCreator, SOGoRole_ObjectEraser,
SOGoRole_ObjectEraser, SOGoCalendarRole_PrivateModifier,
SOGoCalendarRole_PrivateModifier, SOGoCalendarRole_PublicModifier,
SOGoCalendarRole_PublicModifier, nil];
nil];
[writeAccessRoles retain];
}
if (!readAccessRoles) if (!readAccessRoles)
{ readAccessRoles = [[NSArray alloc] initWithObjects:
readAccessRoles = [NSArray arrayWithObjects: SOGoCalendarRole_ConfidentialViewer,
SOGoCalendarRole_ConfidentialViewer, SOGoCalendarRole_PrivateViewer,
SOGoCalendarRole_PrivateViewer, SOGoCalendarRole_PublicViewer,
SOGoCalendarRole_PublicViewer, nil];
nil];
[readAccessRoles retain];
}
return (hasWriteAccess) ? writeAccessRoles : readAccessRoles; return (hasWriteAccess) ? writeAccessRoles : readAccessRoles;
} }

View File

@ -1462,9 +1462,11 @@
} }
} }
- (void) prepareDelete - (NSException *) prepareDelete
{ {
[self prepareDeleteOccurence: nil]; [self prepareDeleteOccurence: nil];
return nil;
} }
/* message type */ /* message type */

View File

@ -35,8 +35,11 @@
@protocol SOGoComponentOccurence @protocol SOGoComponentOccurence
- (iCalRepeatableEntityObject *) occurence; - (iCalRepeatableEntityObject *) occurence;
- (void) setIsNew: (BOOL) newIsNew;
- (BOOL) isNew; - (BOOL) isNew;
- (NSException *) prepareDelete;
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
withDelegate: (iCalPerson *) delegate;
@end @end
@ -54,10 +57,6 @@
- (void) setComponent: (iCalRepeatableEntityObject *) newComponent; - (void) setComponent: (iCalRepeatableEntityObject *) newComponent;
- (void) setMasterComponent: (iCalRepeatableEntityObject *) newMaster; - (void) setMasterComponent: (iCalRepeatableEntityObject *) newMaster;
- (void) setIsNew: (BOOL) newIsNew;
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
withDelegate: (iCalPerson *) delegate;
@end @end

View File

@ -43,6 +43,8 @@
withLDIFEntry: (NSDictionary *) newEntry withLDIFEntry: (NSDictionary *) newEntry
inContainer: (id) newContainer; inContainer: (id) newContainer;
- (NSString *) davEntityTag;
@end @end
#endif /* SOGOCONTACTLDIFENTRY_H */ #endif /* SOGOCONTACTLDIFENTRY_H */

View File

@ -39,13 +39,9 @@
@protocol SOGoContactObject @protocol SOGoContactObject
- (NSString *) contentAsString;
- (NGVCard *) vCard; - (NGVCard *) vCard;
- (void) save; - (void) save;
- (NSString *) davEntityTag;
- (NSString *) nameInContainer;
@end @end
#endif /* __Contacts_SOGoContactObject_H__ */ #endif /* __Contacts_SOGoContactObject_H__ */

View File

@ -77,6 +77,14 @@ static NSString *headerKeys[] = {@"subject", @"to", @"cc", @"bcc",
@"from", @"replyTo", @"message-id", @"from", @"replyTo", @"message-id",
nil}; nil};
#warning -[NGImap4Connection postData:flags:toFolderURL:] should be enhanced \
to return at least the new uid
@interface NGImap4Connection (SOGoHiddenMethods)
- (NSString *) imap4FolderNameForURL: (NSURL *) url;
@end
@implementation SOGoDraftObject @implementation SOGoDraftObject
static NGMimeType *MultiMixedType = nil; static NGMimeType *MultiMixedType = nil;

View File

@ -29,6 +29,7 @@
@class NSException; @class NSException;
@class NSString; @class NSString;
@class SOGoGCSFolder; @class SOGoGCSFolder;
@class WOContext;
@interface SOGoContentObject : SOGoObject @interface SOGoContentObject : SOGoObject
{ {
@ -60,6 +61,8 @@
baseVersion: (unsigned int) _baseVersion; baseVersion: (unsigned int) _baseVersion;
- (NSException *) saveContentString: (NSString *)_str; - (NSException *) saveContentString: (NSString *)_str;
- (id) PUTAction: (WOContext *) _ctx;
/* actions */ /* actions */
- (NSException *) copyToFolder: (SOGoGCSFolder *) newFolder; - (NSException *) copyToFolder: (SOGoGCSFolder *) newFolder;
- (NSException *) moveToFolder: (SOGoGCSFolder *) newFolder; - (NSException *) moveToFolder: (SOGoGCSFolder *) newFolder;
@ -80,7 +83,7 @@
@interface SOGoContentObject (OptionalMethods) @interface SOGoContentObject (OptionalMethods)
- (void) prepareDelete; - (NSException *) prepareDelete;
@end @end

View File

@ -177,7 +177,7 @@
- (id <WOActionResults>) allContactSearchAction - (id <WOActionResults>) allContactSearchAction
{ {
id <WOActionResults> result; id <WOActionResults> result;
id <SOGoContactFolder> folder; SOGoFolder <SOGoContactFolder> *folder;
NSString *searchText, *mail; NSString *searchText, *mail;
NSDictionary *data; NSDictionary *data;
NSArray *folders, *contacts, *descriptors, *sortedContacts; NSArray *folders, *contacts, *descriptors, *sortedContacts;

View File

@ -26,7 +26,10 @@
#import <NGObjWeb/NSException+HTTP.h> #import <NGObjWeb/NSException+HTTP.h>
#import <NGObjWeb/SoSubContext.h> #import <NGObjWeb/SoSubContext.h>
#define COMPILING_NGOBJWEB 1 /* we want httpRequest for parsing multi-part
form data */
#import <NGObjWeb/WORequest.h> #import <NGObjWeb/WORequest.h>
#undef COMPILING_NGOBJWEB
#import <NGObjWeb/WOResponse.h> #import <NGObjWeb/WOResponse.h>
#import <NGExtensions/NSNull+misc.h> #import <NGExtensions/NSNull+misc.h>
#import <NGExtensions/NSObject+Logs.h> #import <NGExtensions/NSObject+Logs.h>
@ -498,12 +501,12 @@ static NSArray *infoKeys = nil;
// TODO: need to validate whether we have a To etc // TODO: need to validate whether we have a To etc
/* first, save form data */ /* first, save form data */
result = [self validateForSend]; result = (id <WOActionResults>) [self validateForSend];
if (!result) if (!result)
{ {
if ([self _saveFormInfo]) if ([self _saveFormInfo])
{ {
result = [[self clientObject] sendMail]; result = (id <WOActionResults>) [[self clientObject] sendMail];
if (!result) if (!result)
result = [self jsCloseWithRefreshMethod: @"refreshCurrentFolder()"]; result = [self jsCloseWithRefreshMethod: @"refreshCurrentFolder()"];
} }

View File

@ -31,7 +31,10 @@
associations: (NSDictionary *) associations associations: (NSDictionary *) associations
template: (WOElement *) newTemplate template: (WOElement *) newTemplate
{ {
ASSIGN (template, newTemplate); if ((self = [super initWithName: name
associations: associations
template: newTemplate]))
ASSIGN (template, newTemplate);
return self; return self;
} }

View File

@ -37,6 +37,15 @@
#import "SOGoACLAdvisory.h" #import "SOGoACLAdvisory.h"
/* those methods appear here because SOGoMailFolder is not a descendant of
SOGoFolder... */
@interface SOGoObject (SOGoFolderACLMethods)
- (NSString *) displayName;
- (NSString *) folderType;
@end
@implementation SOGoACLAdvisory @implementation SOGoACLAdvisory
- (id) init - (id) init

View File

@ -365,16 +365,6 @@ static NSMutableArray *abbrMonthLabelKeys = nil;
return [[currentClient baseURLInContext: context] hostlessURL]; return [[currentClient baseURLInContext: context] hostlessURL];
} }
- (NSString *) resourcesPath
{
WOResourceManager *rm;
if ((rm = [self resourceManager]) == nil)
rm = [[WOApplication application] resourceManager];
return [rm webServerResourcesPath];
}
- (NSString *) ownPath - (NSString *) ownPath
{ {
NSString *uri; NSString *uri;

View File

@ -324,7 +324,7 @@
onObject: co onObject: co
inContext: context]) inContext: context])
method = [NSString stringWithFormat:@"%@/%@.ics/editAsAppointment", method = [NSString stringWithFormat:@"%@/%@.ics/editAsAppointment",
[co soURL], objectId]; [co soURL], objectId] ;
else else
method = [NSString stringWithFormat: @"%@/Calendar/personal/%@.ics/editAsAppointment", method = [NSString stringWithFormat: @"%@/Calendar/personal/%@.ics/editAsAppointment",
[self userFolderPath], objectId]; [self userFolderPath], objectId];