From 0e819eb42b4d680a99ae7b04702bfc9510495aee Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 6 Jan 2010 07:47:58 +0000 Subject: New artefact connection class (to later wrap libartefact). New environment class to hold all global resources. Made ConnectionPool a template class. Split journal code up into two files (class from commit code). --- server/src/transactionhandler.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'server/src/transactionhandler.h') diff --git a/server/src/transactionhandler.h b/server/src/transactionhandler.h index 9a2086a..ae1857c 100644 --- a/server/src/transactionhandler.h +++ b/server/src/transactionhandler.h @@ -28,13 +28,11 @@ #ifndef __PRACRO_TRANSACTIONHANDLER_H__ #define __PRACRO_TRANSACTIONHANDLER_H__ -#include "exception.h" #include "transaction.h" -#include "tcpsocket.h" -#include "database.h" -#include "journal_commit.h" -#include "macrolist.h" -#include "templatelist.h" +#include "session.h" +#include "environment.h" + +#include "exception.h" class NotFoundException : public Exception { public: @@ -42,11 +40,6 @@ public: : Exception("Macro " + r.macro + " not found in template " + r.templ) {} }; -std::string handleTransaction(Transaction *transaction, - TCPSocket &pentominos_socket, - Database &db, - JournalWriter &journalwriter, - MacroList ¯olist, - TemplateList &templatelist); +std::string handleTransaction(Transaction &transaction, Environment &env, Session &session); #endif/*__PRACRO_TRANSACTIONHANDLER_H__*/ -- cgit v1.2.3