Monotone-Parent: f8503816ad0eb26fd7aeb583fddce02d81d2da2e
Monotone-Revision: c05c087bf22c31536abb8c51a5f1f00e3f2c7f17 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-11-18T22:34:54 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
1a37bb41d6
commit
0b125c5fa7
|
@ -1,5 +1,8 @@
|
|||
2010-11-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreContactsContext.m (-createMessageInFolder:):
|
||||
implemented method and returns an instance of SOGoContactGCSEntry.
|
||||
|
||||
* OpenChange/SOGoContactGCSEntry+MAPIStore.m: new category module.
|
||||
(setMAPIProperties:) new method that resets the properties on the
|
||||
current object and update the corresponding record in the database.
|
||||
|
|
|
@ -40,21 +40,14 @@
|
|||
#undef DEBUG
|
||||
#include <mapistore/mapistore.h>
|
||||
|
||||
static Class SOGoUserFolderK;
|
||||
|
||||
@implementation MAPIStoreContactsContext
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
SOGoUserFolderK = [SOGoUserFolder class];
|
||||
}
|
||||
|
||||
- (void) setupModuleFolder
|
||||
{
|
||||
id userFolder;
|
||||
|
||||
userFolder = [SOGoUserFolderK objectWithName: [authenticator username]
|
||||
inContainer: MAPIApp];
|
||||
userFolder = [SOGoUserFolder objectWithName: [authenticator username]
|
||||
inContainer: MAPIApp];
|
||||
[woContext setClientObject: userFolder];
|
||||
[userFolder retain]; // LEAK
|
||||
|
||||
|
@ -182,7 +175,7 @@ static Class SOGoUserFolderK;
|
|||
*data = [stringValue asUnicodeInMemCtx: memCtx];
|
||||
break;
|
||||
|
||||
case 0x3001001f: // Full Name
|
||||
case PR_DISPLAY_NAME_UNICODE: // Full Name
|
||||
case 0x81c2001f: // contact block title name
|
||||
rc = [super getMessageTableChildproperty: data
|
||||
atURL: childURL
|
||||
|
@ -276,6 +269,19 @@ static Class SOGoUserFolderK;
|
|||
return rc;
|
||||
}
|
||||
|
||||
- (id) createMessageInFolder: (id) parentFolder
|
||||
{
|
||||
SOGoContactGCSEntry *newEntry;
|
||||
NSString *name;
|
||||
|
||||
name = [NSString stringWithFormat: @"%@.vcf",
|
||||
[SOGoObject globallyUniqueObjectId]];
|
||||
newEntry = [SOGoContactGCSEntry objectWithName: name
|
||||
inContainer: parentFolder];
|
||||
|
||||
return newEntry;
|
||||
}
|
||||
|
||||
// - (int) getFolderTableChildproperty: (void **) data
|
||||
// atURL: (NSString *) childURL
|
||||
// withTag: (uint32_t) proptag
|
||||
|
|
Loading…
Reference in New Issue