Robert Fewell
4f8643674b
Remove all references to GncDisplayItem
4 years ago
Robert Fewell
078d7875d3
Change all references to plugin_class->actionsb
...
Change all references to plugin_class->actionsb and n_actionsb to
plugin_class->actions and n_actions
4 years ago
Robert Fewell
0f70143c55
Initial change to plugin source files
4 years ago
Christopher Lam
fc94b41c81
Merge branch 'maint'
4 years ago
Christopher Lam
4716af24e4
Merge branch 'maint'
4 years ago
Christopher Lam
ba44f720c1
Merge branch 'maint'
4 years ago
Christopher Lam
f2354d6b2a
[test-qofbook.c] add test for gnc_features_set_unused
4 years ago
Christopher Lam
1516bb18b0
[gnc-features.cpp] backport gnc_features_set_unused from master
4 years ago
Christopher Lam
a078921a33
[qofbook.cpp] backport qof_book_unset_feature from master
4 years ago
John Ralls
cf088f2a70
Merge John Ralls's 'Bug798614' into maint.
4 years ago
Christopher Lam
093aa81ed1
[qofbook.cpp] deprecate qof_book_get_features
4 years ago
Christopher Lam
8192deff37
[gnc-features.cpp] convert to cpp
...
- don't need to create/destroy GHashTable for each feature query
- plugs leak: g_hash_table_unref (features_used) not always called properly
- to check 1 feature, don't need to traverse whole GHashTable
4 years ago
Christopher Lam
6f6d2fef48
[test-qofbook] basic features test
...
sets a feature and tests it's set. it's impossible to design a book
with unknown features using the API.
4 years ago
John Ralls
14a0ea4ed3
[price-quotes] Sort and format source list.
4 years ago
John Ralls
1a906b00aa
[price-quotes] Enable gnucash-cli to retrieve preferences on macOS.
...
By embedding a minimal Info.plist with a bundle ID into the executable.
This necessitated a change to binreloc because the unix-style install
depended on there being a bundle ID only when the program was run from
an application bundle.
4 years ago
John Ralls
2767587874
[price-quotes] Fix setting alphavantage API key.
4 years ago
John Ralls
939a77407c
Merge branch 'price-quotes-cpp'
4 years ago
John Ralls
7f2a09a69f
[price-quotes] Handle short error strings from finance-quote-wrapper.
...
This keeps the translation work in GnuCash and improves the error
signalling in gnc-quotes.
4 years ago
John Ralls
fe9b23ff2b
[price quotes] Pass short errors to gnc-quotes.
...
And wordier but not translated messages when STDERR is a tty.
4 years ago
John Ralls
88d658fef0
[price-quotes] Date::Manip is no longer required.
4 years ago
John Ralls
50c72b4f88
[price-quotes] Remove m_ready and usable() from GncQuoteSource.
...
GncQuoteSource ctor throws if something is wrong so usable is always true.
4 years ago
John Ralls
7d93774dd2
[price-quotes] Throw instead of returning if there aren't any commodities to quote.
...
So that the user gets sees an error instead of silent failure.
4 years ago
John Ralls
81d4ea9550
[price-quotes] Remove F::Q version format check.
...
We don't care what the version string looks like as long as there is one.
4 years ago
John Ralls
c78fe37ff7
[price-quotes] General typo fixes and code cleanup.
4 years ago
John Ralls
70c9d4c9e3
[price-quotes] Fix version retrieval.
...
Plus there's no need for a "not found" version string because GncQuotes
construction will throw if Finance::Quote isn't correctly installed. No
object, nothing to call version() on.
4 years ago
John Ralls
97e730b8d8
[price-quotes] Reformat test quote response strings to one line per quote.
4 years ago
John Ralls
f24c2c8bdd
Instrument failure to set the account when creating a split.
4 years ago
Mike Alexander
3c306eae65
Merge branch 'maint'
4 years ago
Mike Alexander
2d3e80ea08
Compatibility with XCode's "new build system"
...
With XCode 14 or newer CMake tries to use the "new build system" which has a
requirement that if two targets depend on the same generated file one of them
must depend on the other. This commit adds reduntant dependencies to satisfy
this requirement.
4 years ago
John Ralls
c7d1b6ab26
Bug 798633 - 4.12 build failure on 32-bit Linux: "No code for module"
4 years ago
John Ralls
673a925554
[price-quotes] Remove superseded gnc-fq-dump and Quotes-example.pl
4 years ago
John Ralls
e817091de1
[price-quotes] Warn only once if the AlphaVantage Key isn't set.
...
And check the environment if it's not in preferences.
4 years ago
John Ralls
d97ea77762
[price quotes] Add report member function to display quote information to stdout.
...
Instead of creating price instances in the database.
4 years ago
John Ralls
6ffb0bb633
[price-quotes] Report quote fetch failures to the user.
4 years ago
John Ralls
4c47e91180
[price-quotes] Implement error codes for currency and quote failures.
4 years ago
John Ralls
6db7800ca5
[price-quotes] Doxygen docs.
4 years ago
John Ralls
29ce925646
[price-quotes] Test the other fetch overloads and quote values.
4 years ago
John Ralls
b5bc6463a3
[price-quotes] Rework date-time handling.
...
A check of the F::Q modules found that the only ones that return a quote
time return a bogus one and do so only to mollify GnuCash.
Since there's no good way to determine the TZ of the exchange originating
the quote there's no good way to decide if the quote is current or from
a previous market session, so we just punt and use a time of 16:00 for
all quotes.
4 years ago
John Ralls
19064093d2
[price-quotes] Remove m_comm_vec and m_fq_answer.
...
Passing the intermediate values comm_vec and quote_str on the stack instead.
4 years ago
John Ralls
734fb6ce2a
[price-quotes] Switch error handling to exceptions.
...
Allows for cleaner code with less state, less coupling of the GncQuotes
class, and better transfer of error messages to client code.
Also translates some error messages for presentation to users.
4 years ago
John Ralls
d307295076
[price-quotes] Paramaterize GncMockQuoteSource construction.
...
So we can have different results passed back for different tests.
4 years ago
John Ralls
2b87066687
[price-quotes] Extract some static functions.
...
To get GncQuoteImpl::parse_one_quote to a reasonable size.
4 years ago
John Ralls
a82c72cfb9
[price-quotes] Remove level of indirection when parsing quote data.
4 years ago
John Ralls
37dfab7f31
[price-quotes] Convert long quote parsing lambda to a regular function.
...
To begin separating price parsing from inserting in the price db.
4 years ago
John Ralls
dd8316714b
[price-quotes] Extract function GncQuotesImpl::comm_vec_to_json_string.
4 years ago
John Ralls
e3ab384504
[price-quotes] Log messages instead of writing them to std::streams.
4 years ago
John Ralls
b8642e55d9
[price-quotes] Implement mock quote source.
...
Note that because the non-default constructor exists only on GncQuotesImpl
we must use that directly and violate the pimpl.
4 years ago
John Ralls
4dd3922871
[price-quotes] Make wiggle test conditional on F::Q being installed.
4 years ago
John Ralls
784aca5a4c
[price-quotes] Extract class GncQuoteSource.
...
Provide a specialization GncFQQuoteSource and move the F::Q command
construction and query functions to GncFQQuoteSource.
This allows for dependency injection to provide testing that doesn't
need F::Q to be installed.
4 years ago
John Ralls
e9577b7996
[price-quotes] Basic wiggle test.
4 years ago