Back to index
|void||createAndCommitTxn (in AUTF8String aAction, in calIItemBase aItem, in calICalendar aCalendar, in calIItemBase aOldItem, in calIOperationListener aListener)|
|Signals the transaction manager that a series of transactions are going to be performed, but that, for the purposes of undo and redo, they should all be regarded as a single transaction. |
|Ends the batch transaction in process. |
|Undo the last transaction in the transaction manager's stack. |
|Returns true if it is possible to undo a transaction at this time. |
|Redo the last transaction. |
|Returns true if it is possible to redo a transaction at this time. |
|readonly attribute |
|A reference to the transaction manager for calendar operations. |
calITransactionManager is a service designed to handle nsITransactions regarding the calendar.
It is here as a service so that we can keep the transactions around without holding onto the whole global js scope+window.
Signals the transaction manager that a series of transactions are going to be performed, but that, for the purposes of undo and redo, they should all be regarded as a single transaction.
See also nsITransactionManager::beginBatch
Returns true if it is possible to redo a transaction at this time.
Returns true if it is possible to undo a transaction at this time.
|void calITransactionManager::createAndCommitTxn||(||in AUTF8String||aAction,|
|aAction||The Action to execute. This can be one of: add Adds an item modify Modfifies an item delete Deletes an item move Move an item from one calendar to the next. With this operation, aCalendar is the calendar that the event should be moved to.|
|aCalendar||The Calendar to execute the transaction on|
|aItem||The changed item for this transaction. This item should be immutable|
|aOldItem||The Item in its original form. Only needed for modify.|
|aListener||The listener to call when the transaction has completed. This parameter can be null.|
Ends the batch transaction in process.
See also nsITransactionManager::endBatch