Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/querytable.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | public: | 64 | public: | ||
65 | QueryTable(const MyMoneyReport&); | 65 | QueryTable(const MyMoneyReport&); | ||
66 | void init(); | 66 | void init(); | ||
67 | 67 | | |||
68 | protected: | 68 | protected: | ||
69 | void constructAccountTable(); | 69 | void constructAccountTable(); | ||
70 | void constructTotalRows(); | 70 | void constructTotalRows(); | ||
71 | void constructTransactionTable(); | 71 | void constructTransactionTable(); | ||
72 | void sumInvestmentValues(const ReportAccount &account, QList<CashFlowList> &cfList, QList<MyMoneyMoney> &shList) const; | ||||
73 | void constructPerformanceRow(const ReportAccount& account, TableRow& result, CashFlowList &all) const; | ||||
72 | void constructCapitalGainRow(const ReportAccount& account, TableRow& result) const; | 74 | void constructCapitalGainRow(const ReportAccount& account, TableRow& result) const; | ||
73 | MyMoneyMoney helperROI(const MyMoneyMoney& buys, const MyMoneyMoney& sells, const MyMoneyMoney& startingBal, const MyMoneyMoney& endingBal, const MyMoneyMoney& cashIncome) const; | 75 | MyMoneyMoney helperROI(const MyMoneyMoney& buys, const MyMoneyMoney& sells, const MyMoneyMoney& startingBal, const MyMoneyMoney& endingBal, const MyMoneyMoney& cashIncome) const; | ||
74 | MyMoneyMoney helperIRR(const CashFlowList& all) const; | 76 | MyMoneyMoney helperIRR(const CashFlowList& all) const; | ||
75 | void constructPerformanceRow(const ReportAccount& account, TableRow& result, CashFlowList &all) const; | | |||
76 | void constructSplitsTable(); | 77 | void constructSplitsTable(); | ||
78 | private: | ||||
79 | enum InvestmentValue {Buys = 0, Sells, BuysOfSells, SellsOfBuys, LongTermBuysOfSells, LongTermSellsOfBuys, BuysOfOwned, ReinvestIncome, CashIncome, End}; | ||||
77 | 80 | | |||
78 | }; | 81 | }; | ||
79 | 82 | | |||
80 | // | 83 | // | ||
81 | // Cash Flow analysis tools for investment reports | 84 | // Cash Flow analysis tools for investment reports | ||
82 | // | 85 | // | ||
83 | 86 | | |||
84 | class CashFlowListItem | 87 | class CashFlowListItem | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |