summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-06-21 05:37:40 -0400
committerjohnw <johnw@newartisans.com>2004-06-21 05:37:40 -0400
commitf077b655d01364275c1f8944aee0a0ed2d530245 (patch)
treeaff89cb52a6c41e135afb5cf6584ec255f05d5d5 /ledger.h
parentc892e8c7ad0aaf6c47ff6e9075149a76188ae670 (diff)
downloadfork-ledger-f077b655d01364275c1f8944aee0a0ed2d530245.tar.gz
fork-ledger-f077b655d01364275c1f8944aee0a0ed2d530245.tar.bz2
fork-ledger-f077b655d01364275c1f8944aee0a0ed2d530245.zip
pricing fixes, added price command
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ledger.h b/ledger.h
index 60e5160c..57565367 100644
--- a/ledger.h
+++ b/ledger.h
@@ -64,7 +64,8 @@ class commodity
~commodity();
void set_price(amount * price, std::time_t * when = NULL);
- amount * price(std::time_t * when = NULL, bool download = false) const;
+ amount * price(std::time_t * when = NULL,
+ bool use_history = false, bool download = false) const;
};
typedef std::map<const std::string, commodity *> commodities_map;
@@ -84,7 +85,8 @@ class amount
virtual amount * value(const amount * pr = NULL) const = 0;
virtual void set_value(const amount * pr) = 0;
virtual amount * street(std::time_t * when = NULL,
- bool get_quotes = false) const = 0;
+ bool use_history = false,
+ bool download = false) const = 0;
virtual bool has_price() const = 0;
virtual amount * per_item_price() const = 0;