mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Added stubs.
This commit is contained in:
parent
c349f91c18
commit
982dd9b3f2
@ -15,3 +15,42 @@
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "transactionManager.h"
|
||||
#include "COM_auto_ptr.h"
|
||||
|
||||
nsTransactionManager::nsTransactionManager()
|
||||
{
|
||||
}
|
||||
|
||||
nsTransactionManager::~nsTransactionManager()
|
||||
{
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(nsTransactionManager)
|
||||
NS_IMPL_RELEASE(nsTransactionManager)
|
||||
|
||||
nsresult
|
||||
nsTransactionManager::Execute(nsITransaction *tx)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTransactionManager::Undo(PRInt32 n)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTransactionManager::Redo(PRInt32 n)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTransactionManager::Write(nsIOutputStream *os)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -20,13 +20,31 @@
|
||||
#define transactionManager_h__
|
||||
|
||||
#include "nsITransactionManager.h"
|
||||
#include "COM_auto_ptr.h"
|
||||
|
||||
/** implementation of a transaction manager object.
|
||||
*
|
||||
*/
|
||||
class TransactionManager : public nsITransactionManager
|
||||
class nsTransactionManager : public nsITransactionManager
|
||||
{
|
||||
public:
|
||||
|
||||
/** The default constructor.
|
||||
*/
|
||||
nsTransactionManager();
|
||||
|
||||
/** The default destructor.
|
||||
*/
|
||||
virtual ~nsTransactionManager();
|
||||
|
||||
/* Macro for AddRef(), Release(), and QueryInterface() */
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
virtual nsresult Execute(nsITransaction *tx);
|
||||
virtual nsresult Undo(PRInt32 n);
|
||||
virtual nsresult Redo(PRInt32 n);
|
||||
virtual nsresult Write(nsIOutputStream *os);
|
||||
// virtual nsresult AddListener(nsITransactionListener *l);
|
||||
// virtual nsresult RemoveListener(nsITransactionListener *l);
|
||||
};
|
||||
|
||||
#endif // transactionManager_h__
|
||||
|
Loading…
x
Reference in New Issue
Block a user