Added stubs.

This commit is contained in:
kin%netscape.com 1998-11-19 02:05:16 +00:00
parent c349f91c18
commit 982dd9b3f2
2 changed files with 59 additions and 2 deletions

View File

@ -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;
}

View File

@ -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__