Monotone-Parent: 86d5fda1266a9ae6071c1b0c48daa229594679fb
Monotone-Revision: 319124b4db57da3c6d63eabff877eacac5c8a8a2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-10-06T18:24:47 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
a9f4d77c2c
commit
f518e5f4a9
|
@ -1,3 +1,9 @@
|
|||
2009-10-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/NSArray+DAV.m (-asDAVPropstatWithStatus:): new
|
||||
method that creates a "PROPSTAT" element with the specified
|
||||
status.
|
||||
|
||||
2009-10-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* Tests/test-maildav.py (DAVMailCollectionTest._testFilter): fixed
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#import <Foundation/NSArray.h>
|
||||
|
||||
@class NSDictionary;
|
||||
@class NSMutableDictionary;
|
||||
@class NSString;
|
||||
|
||||
|
@ -33,6 +34,8 @@
|
|||
- (NSString *)
|
||||
asWebDavStringWithNamespaces: (NSMutableDictionary *) namespaces;
|
||||
|
||||
- (NSDictionary *) asDAVPropstatWithStatus: (NSString *) status;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* NSARRAY_DAV_H */
|
||||
|
|
|
@ -20,9 +20,12 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <SaxObjC/XMLNamespaces.h>
|
||||
|
||||
#import "NSObject+DAV.h"
|
||||
|
||||
#import "NSArray+DAV.h"
|
||||
|
@ -48,4 +51,17 @@
|
|||
return webdavString;
|
||||
}
|
||||
|
||||
- (NSDictionary *) asDAVPropstatWithStatus: (NSString *) status
|
||||
{
|
||||
NSMutableArray *propstat;
|
||||
|
||||
propstat = [NSMutableArray arrayWithCapacity: 2];
|
||||
[propstat addObject: davElementWithContent (@"prop", XMLNS_WEBDAV,
|
||||
self)];
|
||||
[propstat addObject: davElementWithContent (@"status", XMLNS_WEBDAV,
|
||||
status)];
|
||||
|
||||
return davElementWithContent (@"propstat", XMLNS_WEBDAV, propstat);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue