equal
deleted
inserted
replaced
1011 } |
1011 } |
1012 else |
1012 else |
1013 DoChangeRemoteEntriesL(selection, operationId, aMessage,target); |
1013 DoChangeRemoteEntriesL(selection, operationId, aMessage,target); |
1014 |
1014 |
1015 CleanupStack::PopAndDestroy(); // opData |
1015 CleanupStack::PopAndDestroy(); // opData |
1016 } |
1016 } |
1017 |
1017 |
1018 void CMsvServerSession::DoChangeLocalEntriesL(CMsvEntrySelection*& aSelection, TMsvOp aOpId, const RMessage2 &aMessage, TSecureId aOwnerId, TInt mark) |
1018 void CMsvServerSession::DoChangeLocalEntriesL(CMsvEntrySelection*& aSelection, TMsvOp aOpId, const RMessage2 &aMessage, TSecureId aOwnerId, TInt mark) |
1019 { |
1019 { |
1020 CMsvLocalChangeEntriesOperation* operation = new(ELeave) CMsvLocalChangeEntriesOperation(aMessage, aOpId, aSelection, iMsvServer,mark); |
1020 CMsvLocalChangeEntriesOperation* operation = new(ELeave) CMsvLocalChangeEntriesOperation(aMessage, aOpId, aSelection, iMsvServer,mark); |
1021 CleanupStack::Pop(); // selection |
1021 CleanupStack::Pop(); // selection |
1033 void CMsvServerSession::DoChangeRemoteEntriesL(CMsvEntrySelection*& aSelection, TMsvOp aOpId, const RMessage2 &aMessage,TInt mark) |
1033 void CMsvServerSession::DoChangeRemoteEntriesL(CMsvEntrySelection*& aSelection, TMsvOp aOpId, const RMessage2 &aMessage,TInt mark) |
1034 // |
1034 // |
1035 // Change a selection of entry under a remote service |
1035 // Change a selection of entry under a remote service |
1036 // |
1036 // |
1037 { |
1037 { |
1038 // make sure that the operation can be added to the list |
1038 // make sure that the operation can be added to the list |
1039 iOperations.SetReserveL(iOperations.Count()+1); |
1039 iOperations.SetReserveL(iOperations.Count()+1); |
1040 |
1040 |
1041 TMsvEntry* entry=NULL; |
1041 TMsvEntry* entry=NULL; |
1042 User::LeaveIfError(iMsvServer.IndexAdapter().GetEntry(aSelection->At(0), entry)); |
1042 User::LeaveIfError(iMsvServer.IndexAdapter().GetEntry(aSelection->At(0), entry)); |
1043 |
1043 |
1048 operation->ChangeEntriesL(aSelection,mark); |
1048 operation->ChangeEntriesL(aSelection,mark); |
1049 |
1049 |
1050 iMsvServer.StartOperationL(*operation, iSessionId, aMessage, ETrue); |
1050 iMsvServer.StartOperationL(*operation, iSessionId, aMessage, ETrue); |
1051 iOperations.AppendL(operation); // will not fail - see start of function |
1051 iOperations.AppendL(operation); // will not fail - see start of function |
1052 CleanupStack::Pop(); // operation |
1052 CleanupStack::Pop(); // operation |
1053 |
1053 } |
1054 } |
|
1055 |
1054 |
1056 |
1055 |
1057 void CMsvServerSession::DoChangeLocalEntryL(const TMsvEntry& aEntry, TMsvOp aOpId, const RMessage2 &aMessage, TSecureId aOwnerId) |
1056 void CMsvServerSession::DoChangeLocalEntryL(const TMsvEntry& aEntry, TMsvOp aOpId, const RMessage2 &aMessage, TSecureId aOwnerId) |
1058 // |
1057 // |
1059 // Create a local entry in the index |
1058 // Create a local entry in the index |