2 #include "stock_info_provider.hpp"
3 #include "http_client.hpp"
4 #include <condition_variable>
7 #include "nlohmann/json_fwd.hpp"
8 #include "pool/pool.hpp"
20 void add_columns(Gtk::TreeView *treeview, Gtk::TreeModelColumn<std::shared_ptr<StockInfoRecord>> column)
override;
21 void update_parts(
const std::list<UUID> &parts)
override;
22 std::list<std::shared_ptr<StockInfoRecord>> get_records()
override;
23 Gtk::Widget *create_status_widget()
override;
25 static void init_db();
26 static std::string get_db_filename();
28 static bool is_valid();
29 static void cleanup();
33 class StockInfoProviderDigiKeyFetchWorker *fetch_worker =
nullptr;
34 Gtk::Label *status_label =
nullptr;
37 void handle_click(GdkEventButton *ev);
39 Gtk::TreeView *treeview =
nullptr;
40 Gtk::TreeViewColumn *tvc =
nullptr;
41 Gtk::TreeModelColumn<std::shared_ptr<StockInfoRecord>> column;
Definition: sqlite.hpp:69
Definition: stock_info_provider_digikey.cpp:262
Definition: stock_info_provider_digikey.hpp:17
Definition: stock_info_provider.hpp:20
Definition: stock_info_provider_digikey.cpp:224
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62