reindentation

Monotone-Parent: 215f30784ae8904703b5fa172c7a563bf8f3b464
Monotone-Revision: 2f37714ba202d0c2f6bc3c888440ea82ee601d66

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-01T20:35:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-10-01 20:35:29 +00:00
parent 43568edc76
commit e4b127bb53
11 changed files with 1376 additions and 1283 deletions
+95 -94
View File
@@ -41,22 +41,22 @@ static Class SOGoUserFolderK;
+ (void) initialize
{
SOGoUserFolderK = [SOGoUserFolderK class];
SOGoUserFolderK = [SOGoUserFolder class];
}
- (void) setupModuleFolder
{
id userFolder;
id userFolder;
userFolder = [SOGoUserFolderK objectWithName: [authenticator username]
inContainer: MAPIApp];
[woContext setClientObject: userFolder];
[userFolder retain]; // LEAK
userFolder = [SOGoUserFolderK objectWithName: [authenticator username]
inContainer: MAPIApp];
[woContext setClientObject: userFolder];
[userFolder retain]; // LEAK
moduleFolder = [userFolder lookupName: @"Calendar"
inContext: woContext
acquire: NO];
[moduleFolder retain];
moduleFolder = [userFolder lookupName: @"Calendar"
inContext: woContext
acquire: NO];
[moduleFolder retain];
}
- (int) getMessageTableChildproperty: (void **) data
@@ -65,97 +65,98 @@ static Class SOGoUserFolderK;
inFolder: (SOGoFolder *) folder
withFID: (uint64_t) fid
{
uint32_t *longValue;
uint8_t *boolValue;
// id child;
id event;
int rc;
uint32_t *longValue;
uint8_t *boolValue;
// id child;
id event;
int rc;
rc = MAPI_E_SUCCESS;
switch (proptag) {
case PR_ICON_INDEX: // TODO
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0x00000400; /* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */
// *longValue = 0x00000401 for recurring event
// *longValue = 0x00000402 for meeting
// *longValue = 0x00000403 for recurring meeting
// *longValue = 0x00000404 for invitation
*data = longValue;
break;
case PR_MESSAGE_CLASS_UNICODE:
*data = talloc_strdup(memCtx, "IPM.Appointment");
break;
case 0x818f0040: // DTSTART
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event startDate] asFileTimeInMemCtx: memCtx];
break;
case 0x818a0040: // DTEND
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event endDate] asFileTimeInMemCtx: memCtx];
break;
case 0x82410003: // LABEL idx, should be saved in an X- property
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0;
*data = longValue;
break;
case PR_SUBJECT_UNICODE: // SUMMARY
case PR_NORMALIZED_SUBJECT_UNICODE:
case PR_CONVERSATION_TOPIC_UNICODE:
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event summary] asUnicodeInMemCtx: memCtx];
break;
case 0x810c001f: // LOCATION
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event location] asUnicodeInMemCtx: memCtx];
break;
case 0x8224000b: // private (bool), should depend on CLASS
boolValue = talloc_zero(memCtx, uint8_t);
*boolValue = NO;
*data = boolValue;
break;
case PR_SENSITIVITY: // not implemented, depends on CLASS
// normal = 0, private = 2
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0;
*data = longValue;
break;
rc = MAPI_E_SUCCESS;
switch (proptag)
{
case PR_ICON_INDEX: // TODO
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0x00000400; /* see http://msdn.microsoft.com/en-us/library/cc815472.aspx */
// *longValue = 0x00000401 for recurring event
// *longValue = 0x00000402 for meeting
// *longValue = 0x00000403 for recurring meeting
// *longValue = 0x00000404 for invitation
*data = longValue;
break;
case PR_MESSAGE_CLASS_UNICODE:
*data = talloc_strdup(memCtx, "IPM.Appointment");
break;
case 0x818f0040: // DTSTART
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event startDate] asFileTimeInMemCtx: memCtx];
break;
case 0x818a0040: // DTEND
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event endDate] asFileTimeInMemCtx: memCtx];
break;
case 0x82410003: // LABEL idx, should be saved in an X- property
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0;
*data = longValue;
break;
case PR_SUBJECT_UNICODE: // SUMMARY
case PR_NORMALIZED_SUBJECT_UNICODE:
case PR_CONVERSATION_TOPIC_UNICODE:
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event summary] asUnicodeInMemCtx: memCtx];
break;
case 0x810c001f: // LOCATION
event = [[self lookupObject: childURL] component: NO secure: NO];
*data = [[event location] asUnicodeInMemCtx: memCtx];
break;
case 0x8224000b: // private (bool), should depend on CLASS
boolValue = talloc_zero(memCtx, uint8_t);
*boolValue = NO;
*data = boolValue;
break;
case PR_SENSITIVITY: // not implemented, depends on CLASS
// normal = 0, private = 2
longValue = talloc_zero(memCtx, uint32_t);
*longValue = 0;
*data = longValue;
break;
// case PR_VD_NAME_UNICODE:
// *data = talloc_strdup(memCtx, "PR_VD_NAME_UNICODE");
// break;
// case PR_EMS_AB_DXA_REMOTE_CLIENT_UNICODE: "Home:" ???
// *data = talloc_strdup(memCtx, "PR_EMS...");
// break;
default:
rc = [super getMessageTableChildproperty: data
atURL: childURL
withTag: proptag
inFolder: folder
withFID: fid];
}
// case PR_VD_NAME_UNICODE:
// *data = talloc_strdup(memCtx, "PR_VD_NAME_UNICODE");
// break;
// case PR_EMS_AB_DXA_REMOTE_CLIENT_UNICODE: "Home:" ???
// *data = talloc_strdup(memCtx, "PR_EMS...");
// break;
default:
rc = [super getMessageTableChildproperty: data
atURL: childURL
withTag: proptag
inFolder: folder
withFID: fid];
}
// #define PR_REPLY_TIME PROP_TAG(PT_SYSTIME , 0x0030) /* 0x00300040 */
// #define PR_MESSAGE_FLAGS PROP_TAG(PT_LONG , 0x0e07) /* 0x0e070003 */
// #define PR_MSG_STATUS PROP_TAG(PT_LONG , 0x0e17) /* 0x0e170003 */
// #define PR_INTERNET_MESSAGE_ID_UNICODE PROP_TAG(PT_UNICODE , 0x1035) /* 0x1035001f */
// #define PR_FLAG_STATUS PROP_TAG(PT_LONG , 0x1090) /* 0x10900003 */
// #define PR_CREATION_TIME PROP_TAG(PT_SYSTIME , 0x3007) /* 0x30070040 */
// #define PR_SEARCH_KEY PROP_TAG(PT_BINARY , 0x300b) /* 0x300b0102 */
// #define PR_REPLY_TIME PROP_TAG(PT_SYSTIME , 0x0030) /* 0x00300040 */
// #define PR_MESSAGE_FLAGS PROP_TAG(PT_LONG , 0x0e07) /* 0x0e070003 */
// #define PR_MSG_STATUS PROP_TAG(PT_LONG , 0x0e17) /* 0x0e170003 */
// #define PR_INTERNET_MESSAGE_ID_UNICODE PROP_TAG(PT_UNICODE , 0x1035) /* 0x1035001f */
// #define PR_FLAG_STATUS PROP_TAG(PT_LONG , 0x1090) /* 0x10900003 */
// #define PR_CREATION_TIME PROP_TAG(PT_SYSTIME , 0x3007) /* 0x30070040 */
// #define PR_SEARCH_KEY PROP_TAG(PT_BINARY , 0x300b) /* 0x300b0102 */
// #define PR_EMS_AB_INCOMING_MSG_SIZE_LIMIT PROP_TAG(PT_LONG , 0x8190) /* 0x81900003 */
// Not found: 81930003 // ?
// Not found: 80fa000b // ?
// Not found: 81c4000b // ?
// Not found: 81e7000b // ?
// Not found: 81ee000b // ?
// #define PR_EMS_AB_INCOMING_MSG_SIZE_LIMIT PROP_TAG(PT_LONG , 0x8190) /* 0x81900003 */
// Not found: 81930003 // ?
// Not found: 80fa000b // ?
// Not found: 81c4000b // ?
// Not found: 81e7000b // ?
// Not found: 81ee000b // ?
// Not found: 81f80003 //
// Not found: 82020102 //
// Not found: 818b0102 //
// Not found: 81d1001f //
// Not found: 81f80003 //
// Not found: 82020102 //
// Not found: 818b0102 //
// Not found: 81d1001f //
return rc;
return rc;
}
// - (int) getFolderTableChildproperty: (void **) data