Monotone-Parent: cb7b77723f765942d950c5620150b720f5d0c5b1

Monotone-Revision: 1900d82b81c570a73d4db548a566ed09b57ee43a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-30T19:51:37
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-03-30 19:51:37 +00:00
parent 2adcb276b2
commit a4b083eb1e
7 changed files with 15 additions and 8 deletions

View File

@ -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.

View File

@ -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;

View File

@ -35,8 +35,6 @@
@class SOGoUser;
extern NSTimeZone *utcTZ;
@interface MAPIStoreAppointmentWrapper : NSObject
{
struct mapistore_connection_info *connInfo;

View File

@ -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"];

View File

@ -35,8 +35,6 @@
#include <mapistore/mapistore_errors.h>
extern NSTimeZone *utcTZ;
/* TODO: handle URL pictures via PidTagAttachMethod = ref ? */
@implementation MAPIStoreContactsAttachment

View File

@ -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);

View File

@ -36,6 +36,8 @@
#include <mapistore/mapistore.h>
#include <mapistore/mapistore_errors.h>
NSTimeZone *utcTZ;
uint8_t *
MAPIBoolValue (void *memCtx, BOOL value)
{