#include <mymoneygncreader.h>


| MyMoneyGncReader::MyMoneyGncReader | ( | ) |
| virtual MyMoneyGncReader::~MyMoneyGncReader | ( | ) | [virtual] |
| void MyMoneyGncReader::readFile | ( | QIODevice * | pDevice, | |
| IMyMoneySerialize * | storage | |||
| ) | [virtual] |
Import a GnuCash XML file
| pDevice | : pointer to GnuCash file | |
| storage | : pointer to MyMoneySerialize storage |
Implements IMyMoneyStorageFormat.
| void MyMoneyGncReader::writeFile | ( | QIODevice * | , | |
| IMyMoneySerialize * | ||||
| ) | [inline, virtual] |
Implements IMyMoneyStorageFormat.
| void MyMoneyGncReader::convertCommodity | ( | const GncCommodity * | ) | [protected] |
functions to convert gnc objects to our equivalent
| void MyMoneyGncReader::convertPrice | ( | const GncPrice * | ) | [protected] |
| void MyMoneyGncReader::convertAccount | ( | const GncAccount * | ) | [protected] |
| void MyMoneyGncReader::convertTransaction | ( | const GncTransaction * | ) | [protected] |
| void MyMoneyGncReader::convertSplit | ( | const GncSplit * | ) | [protected] |
| void MyMoneyGncReader::saveTemplateTransaction | ( | GncTransaction * | t | ) | [inline, protected] |
| void MyMoneyGncReader::convertSchedule | ( | const GncSchedule * | ) | [protected] |
| void MyMoneyGncReader::convertFreqSpec | ( | const GncFreqSpec * | ) | [protected] |
| void MyMoneyGncReader::convertRecurrence | ( | const GncRecurrence * | ) | [protected] |
| void MyMoneyGncReader::postMessage | ( | const QString & | , | |
| const unsigned | int, | |||
| const char * | ||||
| ) | [protected] |
to post messages for final report
| void MyMoneyGncReader::postMessage | ( | const QString & | , | |
| const unsigned | int, | |||
| const char * | , | |||
| const char * | ||||
| ) | [protected] |
| void MyMoneyGncReader::postMessage | ( | const QString & | , | |
| const unsigned | int, | |||
| const char * | , | |||
| const char * | , | |||
| const char * | ||||
| ) | [protected] |
| void MyMoneyGncReader::postMessage | ( | const QString & | , | |
| const unsigned | int, | |||
| const QStringList & | ||||
| ) | [protected] |
| void MyMoneyGncReader::setProgressCallback | ( | void(*)(int, int, const QString &) | callback | ) | [protected, virtual] |
Implements IMyMoneyStorageFormat.
| void MyMoneyGncReader::signalProgress | ( | int | current, | |
| int | total, | |||
| const QString & | = "" | |||
| ) | [protected] |
| void MyMoneyGncReader::setGncCommodityCount | ( | int | i | ) | [inline, protected] |
| void MyMoneyGncReader::setGncAccountCount | ( | int | i | ) | [inline, protected] |
| void MyMoneyGncReader::setGncTransactionCount | ( | int | i | ) | [inline, protected] |
| void MyMoneyGncReader::setGncScheduleCount | ( | int | i | ) | [inline, protected] |
| void MyMoneyGncReader::setSmallBusinessFound | ( | bool | b | ) | [inline, protected] |
| void MyMoneyGncReader::setBudgetsFound | ( | bool | b | ) | [inline, protected] |
| void MyMoneyGncReader::setLotsFound | ( | bool | b | ) | [inline, protected] |
| void MyMoneyGncReader::setOptions | ( | ) | [private] |
| void MyMoneyGncReader::setFileHideFactor | ( | ) | [private] |
| QString MyMoneyGncReader::convBadValue | ( | QString | gncValue | ) | const [inline, private] |
| MyMoneyTransaction MyMoneyGncReader::convertTemplateTransaction | ( | const QString & | , | |
| const GncTransaction * | ||||
| ) | [private] |
| void MyMoneyGncReader::convertTemplateSplit | ( | const QString & | , | |
| const GncTemplateSplit * | ||||
| ) | [private] |
| void MyMoneyGncReader::terminate | ( | ) | [private] |
| QString MyMoneyGncReader::buildReportSection | ( | const QString & | ) | [private] |
| bool MyMoneyGncReader::writeReportToFile | ( | const QValueList< QString > & | ) | [private] |
| QString MyMoneyGncReader::createPayee | ( | const QString & | ) | [private] |
Internal utility functions
| QString MyMoneyGncReader::createOrphanAccount | ( | const QString & | ) | [private] |
| QDate MyMoneyGncReader::incrDate | ( | QDate | lastDate, | |
| unsigned char | interval, | |||
| unsigned int | intervalCount | |||
| ) | [private] |
| MyMoneyAccount MyMoneyGncReader::checkConsistency | ( | MyMoneyAccount & | parent, | |
| MyMoneyAccount & | child | |||
| ) | [private] |
| void MyMoneyGncReader::checkInvestmentOption | ( | QString | stockId | ) | [private] |
| void MyMoneyGncReader::getPriceSource | ( | MyMoneySecurity | stock, | |
| QString | gncSource | |||
| ) | [private] |
friend class GncObject [friend] |
friend class GncFile [friend] |
friend class GncDate [friend] |
friend class GncCmdtySpec [friend] |
friend class GncKvp [friend] |
friend class GncLot [friend] |
friend class GncCountData [friend] |
friend class GncCommodity [friend] |
friend class GncPrice [friend] |
friend class GncAccount [friend] |
friend class GncTransaction [friend] |
friend class GncSplit [friend] |
friend class GncTemplateTransaction [friend] |
friend class GncTemplateSplit [friend] |
friend class GncSchedule [friend] |
friend class GncFreqSpec [friend] |
friend class GncRecurrence [friend] |
friend class XmlReader [friend] |
| QTextCodec* MyMoneyGncReader::m_decoder |
bool MyMoneyGncReader::m_dropSuspectSchedules [protected] |
user options Scheduled Transactions Due to differences in implementation, it is not always possible to import scheduled transactions correctly. Though best efforts are made, it may be that some imported transactions cause problems within kmymoney. An attempt is made within the importer to identify potential problem transactions, and setting this option will cause them to be dropped from the file. A report of which were dropped, and why, will be produced. m_dropSuspectSchedules - drop suspect scheduled transactions
unsigned int MyMoneyGncReader::m_investmentOption [protected] |
Investments In kmymoney, all accounts representing investments (stocks, shares, bonds, etc.) must have an associated investment account (e.g. a broker account). The stock account holds the share balance, the investment account a money balance. Gnucash does not do this, so we cannot automate this function. If you have investments, you must select one of the following options. 0 - create a separate investment account for each stock with the same name as the stock 1 - create a single investment account to hold all stocks - you will be asked for a name 2 - create multiple investment accounts - you will be asked for a name for each stock N.B. :- option 2 doesn't really work quite as desired at present
bool MyMoneyGncReader::m_useFinanceQuote [protected] |
Online quotes The user has the option to use the Finance::Quote system, as used by GnuCash, to retrieve online share price quotes
bool MyMoneyGncReader::m_useTxNotes [protected] |
Tx Notes handling Under some usage conditions, non-split GnuCash transactions may contain residual, usually incorrect, memo data which is not normally visible to the user. When imported into KMyMoney however, due to display differences, this data can become visible. Often, these transactions will have a Notes field describing the real purpose of the transaction. If this option is selected, these notes, if present, will be used to override the extraneous memo data."
bool MyMoneyGncReader::gncdebug [protected] |
bool MyMoneyGncReader::xmldebug [protected] |
bool MyMoneyGncReader::bAnonymize [protected] |
double MyMoneyGncReader::m_fileHideFactor [static, protected] |
bool MyMoneyGncReader::developerDebug [protected] |
IMyMoneyStorage* MyMoneyGncReader::m_storage [private] |
XmlReader* MyMoneyGncReader::m_xr [private] |
void(* MyMoneyGncReader::m_progressCallback)(int, int, const QString &) [private] |
to hold the callback pointer for the progress bar
int MyMoneyGncReader::m_gncCommodityCount [private] |
int MyMoneyGncReader::m_gncAccountCount [private] |
int MyMoneyGncReader::m_gncTransactionCount [private] |
int MyMoneyGncReader::m_gncScheduleCount [private] |
bool MyMoneyGncReader::m_smallBusinessFound [private] |
bool MyMoneyGncReader::m_budgetsFound [private] |
bool MyMoneyGncReader::m_lotsFound [private] |
int MyMoneyGncReader::m_commodityCount [private] |
counters for reporting
int MyMoneyGncReader::m_priceCount [private] |
int MyMoneyGncReader::m_accountCount [private] |
int MyMoneyGncReader::m_transactionCount [private] |
int MyMoneyGncReader::m_templateCount [private] |
int MyMoneyGncReader::m_scheduleCount [private] |
int MyMoneyGncReader::m_ccCount [private] |
int MyMoneyGncReader::m_orCount [private] |
int MyMoneyGncReader::m_scCount [private] |
QMap<QString, unsigned int> MyMoneyGncReader::m_currencyCount [private] |
QMap<QString, QString> MyMoneyGncReader::m_mapIds [private] |
Map gnucash vs. Kmm ids for accounts, equities, schedules, price sources
QString MyMoneyGncReader::m_rootId [private] |
QMap<QString, QString> MyMoneyGncReader::m_mapEquities [private] |
QMap<QString, QString> MyMoneyGncReader::m_mapSchedules [private] |
QMap<QString, QString> MyMoneyGncReader::m_mapSources [private] |
QValueList<QString> MyMoneyGncReader::m_stockList [private] |
A list of stock accounts (gnc ids) which will be held till the end so we can implement the user's investment option
QString MyMoneyGncReader::m_txCommodity [private] |
Temporary storage areas for transaction processing
QString MyMoneyGncReader::m_txPayeeId [private] |
QDate MyMoneyGncReader::m_txDatePosted [private] |
QString MyMoneyGncReader::m_txChequeNo [private] |
QValueList<MyMoneySplit> MyMoneyGncReader::m_splitList [private] |
In kmm, the order of splits is critical to some operations. These areas will hold the splits until we've read them all
bool MyMoneyGncReader::m_potentialTransfer [private] |
bool MyMoneyGncReader::m_suspectSchedule [private] |
Schedules are processed through 3 different functions, any of which may set this flag
A holding area for template txs while we're waiting for the schedules
QValueList<QString> MyMoneyGncReader::m_suspectList [private] |
Hold a list of suspect schedule ids for later processing?
To hold message data till final report
GncMessages* MyMoneyGncReader::m_messageTexts [private] |
1.5.6