geary/test/engine
Michael James Gratton 4e0950f9bc Introduce a ConfigFile class to improve config management.
ConfigFile is a GLib.KeyFile-like class (and is backed by a KeyFile) that
nonetheless provides convenient a high-level API for getting and setting
grouped config values and asynchronous loading and saving.

* src/engine/util/util-config-file.vala: New ConfigFile class.

* src/engine/api/geary-service-information.vala (ServiceInformation):
  Require ConfigFile groups rather than KeyFile instances for loading and
  saving. Update subclasses and unit tests.

* src/client/accounts/account-manager.vala (AccountManager): Move generic
  account key consts here from Config. Instead of using KeyFile directly,
  use ConfigFile groups for loading and saving settings. Rename load and
  save methods to be a bit more consistent with the class's role, and
  make save_account() throw its errors so they can be reported to the
  user. Update call sites.

* src/client/accounts/local-service-information.vala
  (LocalServiceInformation): Move service-specific config key consts
  here, use new ConfigFile groups for loading and saving.

* src/engine/api/geary-config.vala: Removed, all config consts have been
  moved to the classes using them and KeyFile convenience methods
  subsumed by ConfigFile.
2018-05-25 15:42:56 +10:00
..
api Introduce a ConfigFile class to improve config management. 2018-05-25 15:42:56 +10:00
app Clean up user directory management. 2018-05-24 15:34:29 +10:00
db Ensure Db.Database corruption check doesn't fail on missing DB file. 2018-05-21 21:01:34 +10:00
imap Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
imap-db Add a unit test for upgrading an actual Geary v0.6 database. 2018-05-19 14:55:19 +10:00
imap-engine Clean up user directory management. 2018-05-24 15:34:29 +10:00
mime-content-type-test.vala Support default content types for both displayed and attached entities. 2018-05-10 13:53:24 +10:00
rfc822-mailbox-address-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
rfc822-mailbox-addresses-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
rfc822-message-data-test.vala Ensure we always use the one, same codepath when decoding text content. 2018-05-10 13:53:24 +10:00
rfc822-message-test.vala Push GResource URL for test data down so it's accessible to all tests. 2018-05-19 09:26:09 +10:00
rfc822-part-test.vala Don't strip CRLF from iCal, vCard, and other formats that requires them. 2018-05-20 12:51:59 +10:00
rfc822-utils-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
util-ascii-test.vala Fix failing RFC822.Mailbox test. 2018-05-17 15:41:28 +10:00
util-config-file-test.vala Introduce a ConfigFile class to improve config management. 2018-05-25 15:42:56 +10:00
util-html-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
util-idle-manager-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
util-inet-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
util-js-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
util-string-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
util-timeout-manager-test.vala Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00