equal
deleted
inserted
replaced
69 // ----------------------------------------------------------------------------- |
69 // ----------------------------------------------------------------------------- |
70 // |
70 // |
71 void CNSmlDSBatchBuffer::CreateNewItemL( const TDesC8& aCommand ) |
71 void CNSmlDSBatchBuffer::CreateNewItemL( const TDesC8& aCommand ) |
72 { |
72 { |
73 CNSmlDSBatchItem* newItem = new ( ELeave ) CNSmlDSBatchItem; |
73 CNSmlDSBatchItem* newItem = new ( ELeave ) CNSmlDSBatchItem; |
74 |
74 CleanupStack::PushL(newItem); |
75 newItem->iStatus = 0; |
75 newItem->iStatus = 0; |
76 newItem->iNumberOfResults = 0; |
76 newItem->iNumberOfResults = 0; |
77 newItem->iCommand = aCommand; |
77 newItem->iCommand = aCommand; |
78 newItem->iUid = KNullDataItemId; |
78 newItem->iUid = KNullDataItemId; |
79 newItem->iUid = KNullDataItemId; |
79 newItem->iUid = KNullDataItemId; |
80 newItem->iStatusEntryId = 0; |
80 newItem->iStatusEntryId = 0; |
81 |
81 |
82 iBuffer.AppendL( newItem ); |
82 iBuffer.AppendL( newItem ); |
|
83 CleanupStack::Pop(newItem); |
83 } |
84 } |
84 |
85 |
85 // ----------------------------------------------------------------------------- |
86 // ----------------------------------------------------------------------------- |
86 // CNSmlDSBatchBuffer::SetStatus |
87 // CNSmlDSBatchBuffer::SetStatus |
87 // Sets the status id of the given item. |
88 // Sets the status id of the given item. |