summaryrefslogtreecommitdiff
path: root/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-03 00:22:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-03 00:22:55 -0400
commit363fb6d55823cb84f49735e795232837a40a4f0c (patch)
tree4849b4aa7f00709bcb920d0971de829492ee6907 /session.h
parentdfc14dfff3dfc31e21ea7f11f9723de977d6c179 (diff)
downloadfork-ledger-363fb6d55823cb84f49735e795232837a40a4f0c.tar.gz
fork-ledger-363fb6d55823cb84f49735e795232837a40a4f0c.tar.bz2
fork-ledger-363fb6d55823cb84f49735e795232837a40a4f0c.zip
Got date, payee and accounts back into the register report.
Diffstat (limited to 'session.h')
-rw-r--r--session.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/session.h b/session.h
index f35accb2..dc78d6f5 100644
--- a/session.h
+++ b/session.h
@@ -39,6 +39,8 @@
namespace ledger {
+class report_t;
+
class session_t : public noncopyable, public scope_t
{
static void initialize();
@@ -50,6 +52,8 @@ class session_t : public noncopyable, public scope_t
public:
static session_t * current;
+ scoped_ptr<report_t> current_report;
+
path data_file;
optional<path> init_file;
optional<path> cache_file;
@@ -89,10 +93,7 @@ public:
mutable accounts_map accounts_cache;
session_t();
-
- virtual ~session_t() {
- TRACE_DTOR(session_t);
- }
+ virtual ~session_t();
journal_t * create_journal() {
journal_t * journal = new journal_t(this);