Monotone-Parent: cb7b77723f765942d950c5620150b720f5d0c5b1
Monotone-Revision: 1900d82b81c570a73d4db548a566ed09b57ee43a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-30T19:51:37 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
2adcb276b2
commit
a4b083eb1e
|
@ -1,5 +1,10 @@
|
|||
2012-03-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIApplication.m (-init): utcTZ is now initialized
|
||||
here.
|
||||
|
||||
* OpenChange/MAPIStoreTypes.[hm]: new host module for utcTZ.
|
||||
|
||||
* OpenChange/MAPIStoreUserContext.m (-timeZone): new method that
|
||||
returns the timezone of an owner user.
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#import <Foundation/NSUserDefaults.h>
|
||||
#import <Foundation/NSTimeZone.h>
|
||||
|
||||
#import <SOGo/SOGoProductLoader.h>
|
||||
#import <SOGo/SOGoSystemDefaults.h>
|
||||
|
@ -28,6 +29,7 @@
|
|||
#import <Appointments/iCalEntityObject+SOGo.h>
|
||||
|
||||
#import "MAPIStoreUserContext.h"
|
||||
#import "MAPIStoreTypes.h"
|
||||
|
||||
#import "MAPIApplication.h"
|
||||
|
||||
|
@ -49,6 +51,9 @@ MAPIApplication *MAPIApp = nil;
|
|||
|
||||
MAPIApp = [super init];
|
||||
[MAPIApp retain];
|
||||
|
||||
utcTZ = [NSTimeZone timeZoneWithName: @"UTC"];
|
||||
[utcTZ retain];
|
||||
}
|
||||
|
||||
return MAPIApp;
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
@class SOGoUser;
|
||||
|
||||
extern NSTimeZone *utcTZ;
|
||||
|
||||
@interface MAPIStoreAppointmentWrapper : NSObject
|
||||
{
|
||||
struct mapistore_connection_info *connInfo;
|
||||
|
|
|
@ -59,16 +59,12 @@
|
|||
#include <mapistore/mapistore_errors.h>
|
||||
#include <mapistore/mapistore_nameid.h>
|
||||
|
||||
NSTimeZone *utcTZ;
|
||||
|
||||
static NSCharacterSet *hexCharacterSet = nil;
|
||||
|
||||
@implementation MAPIStoreAppointmentWrapper
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
utcTZ = [NSTimeZone timeZoneWithName: @"UTC"];
|
||||
[utcTZ retain];
|
||||
if (!hexCharacterSet)
|
||||
{
|
||||
hexCharacterSet = [NSCharacterSet characterSetWithCharactersInString: @"1234567890abcdefABCDEF"];
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
#include <mapistore/mapistore_errors.h>
|
||||
|
||||
extern NSTimeZone *utcTZ;
|
||||
|
||||
/* TODO: handle URL pictures via PidTagAttachMethod = ref ? */
|
||||
|
||||
@implementation MAPIStoreContactsAttachment
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
|
||||
@class NSData;
|
||||
@class NSDictionary;
|
||||
@class NSTimeZone;
|
||||
|
||||
extern NSTimeZone *utcTZ;
|
||||
|
||||
uint8_t *MAPIBoolValue (void *memCtx, BOOL value);
|
||||
uint32_t *MAPILongValue (void *memCtx, uint32_t value);
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include <mapistore/mapistore.h>
|
||||
#include <mapistore/mapistore_errors.h>
|
||||
|
||||
NSTimeZone *utcTZ;
|
||||
|
||||
uint8_t *
|
||||
MAPIBoolValue (void *memCtx, BOOL value)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue