Added BeginBatch(), EndBatch(), BeginTransaction() and EndTransaction()

methods.


git-svn-id: svn://10.0.0.236/trunk@19999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kin%netscape.com
1999-02-08 17:29:43 +00:00
parent df1d7e2808
commit 1053817440

View File

@@ -69,6 +69,20 @@ public:
*/
virtual nsresult Clear(void) = 0;
/**
* Turns on the transaction manager's batch mode, forcing all transactions
* executed by the transaction manager's Do() method to be aggregated
* together until EndBatch() is called. This mode allows an application to
* execute and group together several independent transactions so they
* can be undone with a single call to Undo().
*/
virtual nsresult BeginBatch() = 0;
/**
* Turns off the transaction manager's batch mode.
*/
virtual nsresult EndBatch() = 0;
/**
* Returns the number of items on the undo stack.
* @param aNumItems will contain number of items.