Introduce kmm_csvimport_core
ClosedPublic

Authored by wojnilowicz on Jun 20 2017, 2:53 PM.

Details

Summary

Purpose of this patch is to get rid of kmm_csvimport_static.
Advantages:

  1. no bulky kmm_csvimport_static,
  2. test cases can use kmm_csvimport_core directly,
  3. CSV importer is even more separate from CSV wizard than before,
  4. webpricequote update now can link only to CSV importer without

wizard,

  1. webpricequote and CSV Wizard use the same binary (i.e. shared

library),

  1. kmymoney binary + shared library + plugin library is about 15 MB

smaller, than before.

Diff Detail

Repository
R261 KMyMoney
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
wojnilowicz created this revision.Jun 20 2017, 2:53 PM
  1. new csvenums.h which helps setting profiles for webpricequote.
  2. CSV Importer needs no kmymoney_common module
  3. MyMoneyQifReader::checkCategory and CsvUtil::checkCategory have been deduplicated and put into mymoneyfile.cpp; KMyMoneyApp::createAccount follows and fits "almost perfectly" in mymoneyfile.cpp.
  4. csvutil.cpp and convdate.cpp has been rewritten and cleaned up - lots of redundant code.
tbaumgart requested changes to this revision.Jul 6 2017, 11:37 AM
tbaumgart added a subscriber: tbaumgart.

Other than that it looks clean to me (have not compiled nor run it)

kmymoney/mymoney/mymoneyfile.cpp
939

Code from MyMoneyFile downwards to the storage should not have UI relevant code. Please extract it here and provide external method to do that or check and modify in the calling method.

This revision now requires changes to proceed.Jul 6 2017, 11:37 AM
wojnilowicz abandoned this revision.Jul 6 2017, 4:28 PM
This revision was automatically updated to reflect the committed changes.