Monotone-Parent: e601e6752075d7fd29292db43a547cb1ab679059

Monotone-Revision: 5616899c7c44519d7ea52d68cc931f9f056b9584

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-11-05T23:27:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-11-05 23:27:50 +00:00
parent 12a03cdd56
commit ab90df0d97
2 changed files with 38 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
2010-11-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreSOGo.m: added debugging witnesses call to
each method.
* OpenChange/MAPIStoreContext.m: added a private category to NSObject.
(+[NSObject objectFromSPropValue:]) new generic constructor for
converting mapi types to NS* types.

View File

@@ -94,7 +94,7 @@ static int sogo_delete_context(void *private_data)
pool = [NSAutoreleasePool new];
DEBUG(5, ("[%s:%d]\n", __FUNCTION__, __LINE__));
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
cContext = private_data;
[cContext->objcContext release];
@@ -119,7 +119,7 @@ static int sogo_release_record(void *private_data, uint64_t fmid, uint8_t type)
pool = [NSAutoreleasePool new];
DEBUG(5, ("[%s:%d]\n", __FUNCTION__, __LINE__));
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
switch (type) {
case MAPISTORE_FOLDER:
@@ -153,6 +153,8 @@ static int sogo_get_path(void *private_data, uint64_t fmid,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -175,6 +177,8 @@ static int sogo_op_get_fid_by_name(void *private_data, uint64_t parent_fid, cons
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -205,6 +209,8 @@ static int sogo_op_mkdir(void *private_data, uint64_t parent_fid, uint64_t fid,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -236,6 +242,8 @@ static int sogo_op_rmdir(void *private_data, uint64_t parent_fid, uint64_t fid)
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -267,6 +275,8 @@ static int sogo_op_opendir(void *private_data, uint64_t parent_fid, uint64_t fid
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -296,6 +306,8 @@ static int sogo_op_closedir(void *private_data)
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -328,6 +340,8 @@ static int sogo_op_readdir_count(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -355,6 +369,8 @@ static int sogo_op_get_table_property(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -370,7 +386,6 @@ static int sogo_op_get_table_property(void *private_data,
return rc;
}
static int sogo_op_openmessage(void *private_data,
uint64_t fid,
uint64_t mid,
@@ -381,6 +396,8 @@ static int sogo_op_openmessage(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -405,6 +422,8 @@ static int sogo_op_createmessage(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -428,6 +447,8 @@ static int sogo_op_savechangesmessage(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -451,6 +472,8 @@ static int sogo_op_submitmessage(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -476,6 +499,8 @@ static int sogo_op_getprops(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -501,13 +526,15 @@ static int sogo_op_setprops(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
context = cContext->objcContext;
[context setupRequest];
rc = [context setPropertiesWithMID: fmid type: type inRow: aRow];
rc = [context setPropertiesWithFMID: fmid type: type inRow: aRow];
[context tearDownRequest];
[pool release];
@@ -524,6 +551,8 @@ static int sogo_op_deletemessage(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;
@@ -547,6 +576,8 @@ static int sogo_op_get_folders_list(void *private_data,
MAPIStoreContext *context;
int rc;
DEBUG (5, ("SOGo: [%s:%d]\n", __FUNCTION__, __LINE__));
pool = [NSAutoreleasePool new];
cContext = private_data;