Monotone-Parent: 0274436d9ec9782dc91d65ff2c4760f006d2ca04
Monotone-Revision: 64ba2e93f125a52eecebddb59943e772948d3477 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-06-06T21:58:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
795e1ad398
commit
fbdde21ec0
|
@ -32,6 +32,7 @@
|
||||||
#import "NSData+MAPIStore.h"
|
#import "NSData+MAPIStore.h"
|
||||||
#import "NSString+MAPIStore.h"
|
#import "NSString+MAPIStore.h"
|
||||||
|
|
||||||
|
#import "MAPIStoreContext.h"
|
||||||
#import "MAPIStoreObject.h"
|
#import "MAPIStoreObject.h"
|
||||||
|
|
||||||
#import "MAPIStoreTable.h"
|
#import "MAPIStoreTable.h"
|
||||||
|
@ -826,6 +827,9 @@ static Class NSDataK, NSStringK;
|
||||||
NSArray *list;
|
NSArray *list;
|
||||||
NSString *childName;
|
NSString *childName;
|
||||||
struct mapistore_table_notification_parameters notif_parameters;
|
struct mapistore_table_notification_parameters notif_parameters;
|
||||||
|
struct mapistore_context *mstoreCtx;
|
||||||
|
|
||||||
|
mstoreCtx = [[container context] connectionInfo]->mstore_ctx;
|
||||||
|
|
||||||
notif_parameters.table_type = tableType;
|
notif_parameters.table_type = tableType;
|
||||||
notif_parameters.handle = handleId;
|
notif_parameters.handle = handleId;
|
||||||
|
@ -847,7 +851,8 @@ static Class NSDataK, NSStringK;
|
||||||
if (newChildRow != NSNotFound)
|
if (newChildRow != NSNotFound)
|
||||||
{
|
{
|
||||||
notif_parameters.row_id = newChildRow;
|
notif_parameters.row_id = newChildRow;
|
||||||
mapistore_push_notification (MAPISTORE_TABLE,
|
mapistore_push_notification (mstoreCtx,
|
||||||
|
MAPISTORE_TABLE,
|
||||||
MAPISTORE_OBJECT_CREATED,
|
MAPISTORE_OBJECT_CREATED,
|
||||||
¬if_parameters);
|
¬if_parameters);
|
||||||
}
|
}
|
||||||
|
@ -855,14 +860,16 @@ static Class NSDataK, NSStringK;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (newChildRow == NSNotFound)
|
if (newChildRow == NSNotFound)
|
||||||
mapistore_push_notification (MAPISTORE_TABLE,
|
mapistore_push_notification (mstoreCtx,
|
||||||
|
MAPISTORE_TABLE,
|
||||||
MAPISTORE_OBJECT_DELETED,
|
MAPISTORE_OBJECT_DELETED,
|
||||||
¬if_parameters);
|
¬if_parameters);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* the fact that the row order has changed has no impact here */
|
/* the fact that the row order has changed has no impact here */
|
||||||
notif_parameters.row_id = newChildRow;
|
notif_parameters.row_id = newChildRow;
|
||||||
mapistore_push_notification (MAPISTORE_TABLE,
|
mapistore_push_notification (mstoreCtx,
|
||||||
|
MAPISTORE_TABLE,
|
||||||
MAPISTORE_OBJECT_MODIFIED,
|
MAPISTORE_OBJECT_MODIFIED,
|
||||||
¬if_parameters);
|
¬if_parameters);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue