2014-09-01  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.18

2014-09-01  Alberto Mardegan  <alberto.mardegan@canonical.com>

Python: restore functionality of Accounts.Manager()

The default implementation for PyGObject constructors is to call
g_object_new(). However, objects which implement the GInitable interface
must be created with g_initable_new() (or alternatively,
g_initable_init() needs to be called right after the object has been
created), but PyGObject doesn't do that for us.
Therefore, we override the Accounts.Manager() constructor to call
ag_manager_new(), which we trust does the right thing.

2014-07-02  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.17

2014-06-23  Martin Kampas  <martin.kampas@ubedi.net>

Tests: increase timeout in test_store_locked_cancel

Timeout proved too short on a smartphone hardware.

2014-06-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgManager: allow instantiation with no D-Bus

One use-case for this functionality is initializing the accounts
database (and parsing the service files) from a process which doesn't
have access to D-Bus.

2014-06-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgManager: implement GInitable

Returning NULL from the GObject constructor is not supported; the
GInitable interface was created especially for this.

2014-06-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgManager: expose DB timeout parameters as properties

2014-03-05  Dan Vrátil  <dvratil@redhat.com>

Fix build with -Werror

Building libaccounts-glib with -Werror cflags fails with error:

ag-provider.c: In function 'ag_provider_get_single_account':
ag-provider.c:444:266: error: return makes integer from pointer without
a cast [-Werror]

2014-01-07  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: Increase tolerance in blocking test

If the machine executing the tests is especially slow, this can make the
test fail:
https://launchpadlibrarian.net/161805969/buildlog_ubuntu-trusty-amd64.libaccounts-glib_1.16bzr182trusty0_FAILEDTOBUILD.txt.gz

Therefore, increase the test timeout.

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.16

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: fix all memory leaks detected by valgrind

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgProvider: don't leak plugin name and settings

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgManager: also free the processed signals list contents

We were freeing the GList containers, but the actual list data was being
leaked.

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

Fix a couple of memory leaks involving GVariant

Most of these are trivial to check. The change to g_variant_take_ref()
is needed because we want the final reference count of the Gvariant to
be 1, and from parse_param() we get either a floating GVariant or a
GVariant with reference count set to 1. The latter was causing a memory
leak when g_variant_ref_sink() was being used (it would bring the count
to 2).

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgAuthData: fix uninitialized variable

Looks like we have been really lucky so far.

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

ag_account_set_value(): don't leak the temporary GVariant

GVariants created with g_dbus_gvalue_to_gvariant() are never floating,
so need to be unreferenced after being used.

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgAccount: do not leak the AgService

This fixes a memory leak happening when the AgAccountChanges data structure
was created out of an incoming D-Bus message: the AgService created by
_ag_manager_get_service_lazy() would have been leaked.

2014-01-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: provide an easy way to run the tests under valgrind

Tests can be run like this:

  make check WRAPPER="valgrind --leak-check=full"

2013-12-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: remove double unref of service

The end_test() function already unreferences the account, manager and
service variables, if they are found to be not NULL.

2013-12-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Deliver store events to D-Bus Account Manager when DB is R/O

Define a new D-Bus interface consisting of a single store() method which
will be called when an applications is attempting to store data on a
read-only database. This interface can be implemented by an external
process which could perform the store operation, provided that it has
write access to the database.
If the Account Manager service is not existing, then the old behaviour
is preserved: calling store() on a read-only database will return an
error.

2013-12-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: common code to delete the DB and set it readonly

2013-12-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Abort the store operation immediately if there are no changes

This is actually what the _ag_account_get_store_sql() internally does,
but there's no need to invoke it in order to find out that there are no
changes.

2013-12-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Move more of the store implementation to ag-manager.c

This will make it easier to provide an alternative implementation (using
D-Bus) for read-only databases.

2013-12-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Account: make code flow more logical

The AgAccountChanges pointer was been set to 0 just before an "if"
statement which could cause the functions to return. It looked like the
AgAccountChanges structure could be leaked in this case, even if in fact
the return statement could be hit only if AgAccountChanges was already
NULL.
However, let's make the code more obvious and robust against future
changes.

2013-10-30  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.15

2013-10-25  Alberto Mardegan  <alberto.mardegan@canonical.com>

Fix SQL query for ag_manager_list_by_service_type()

The concept of "account supporting a service-type" is "account is
provided by a provider who also offers a service of the given
service-type". The previous code was checking for settings in the
Settings table: while this condition is indeed sufficient, it's not
necessary.

A unit test also needs to be fixed, because it was activating a service
on one account despite the fact that the service and the account
belonged to different providers (ideally, ag_account_select_service()
should check for this condition and fail if the providers don't match,
but this is costly and not useful in practice).

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=208

2013-10-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Build: move .PHONY targets out of "if" blocks

Automake was complaining about them.

2013-10-15  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.14

2013-10-15  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: increase test coverage

2013-10-15  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add coverage reporting using lcov

2013-10-11  Alberto Mardegan  <alberto.mardegan@canonical.com>

Doc: ag_provider_get_single_account is only informative

2013-10-10  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add ag_provider_get_single_account

This lets providers declare that one shouldn't create more than one
account for them.
Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=202

2013-10-10  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: increase tolerance on blocking time

Jenkins builds can be terribly slow.

2013-10-07  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.13

2013-10-03  Alberto Mardegan  <alberto.mardegan@canonical.com>

Allow disabling WAL mode

Read-only mode doesn't work in WAL journaling mode.

2013-09-09  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: allow some time for D-Bus signals to arrive

The unit test test_signals_other_manager() sends one signal over D-Bus
and expects to read it back as soon as the main loop is re-entered, but
this is not a given.
Modify the test to wait for up to two seconds for the signal to arrive.

2013-09-06  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.12

2013-09-05  Alberto Mardegan  <alberto.mardegan@canonical.com>

Allow opening the DB in read-only mode

If the process doesn't have write access to the DB file, attempt to open
the DB in read-only mode.
Add a new error code for the case when ag_account_store* fails because
the DB is not writeable.

2013-06-14  Alberto Mardegan  <alberto.mardegan@canonical.com>

Application: do not require ".desktop" suffix

When looking up XDG .desktop files, don't require the .desktop suffix to
be specified in the <desktop-entry> element.
This also allows avoiding specifying the <desktop-entry> element at all,
when the basename of the .application file is the same as the .desktop
one.

2013-06-12  Alberto Mardegan  <alberto.mardegan@canonical.com>

Account: emit "enabled" signal also on non-selected services

This fixes a bug where if a service was never selected on the account,
the account didn't emit the "enabled" signal for that service.

Add a test case to catch any regression.

2013-06-06  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgAccount: implement GInitable

Make AgAccount implement the GInitable interface. This eliminates a
critical warning which was emitted when instantiating an invalid
account, and allows us to run the unit tests with the
G_DEBUG=fatal-criticals option.

2013-06-06  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: disable gtkdoc tests

Temporary build fix until
https://bugzilla.gnome.org/show_bug.cgi?id=701638 is fixed.

2013-06-06  Alberto Mardegan  <alberto.mardegan@canonical.com>

Revert "Tests: don't run tests in parallel"

This reverts commit 9233b3df73d363e5d9ae4f151a9ccb1a4ac54060.

This option is supported only since automake 1.13, which we don't want
to force on all developers yet.

2013-06-05  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.11

2013-06-05  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: don't run tests in parallel

GTKDOC_CHECK is currently broken for parallel tests. See:
https://bugzilla.gnome.org/show_bug.cgi?id=701638

2013-06-05  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.10

2013-06-05  Alberto Mardegan  <alberto.mardegan@canonical.com>

Vala: rename .vapi and .deps files

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=176

2013-06-05  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: don't fail on critical warnings

Now GObject emits a warning when returning NULL from a constructor
(which we are doing in some cases). Until we port the code to GInitable,
don't let the tests fail on critical warnings.

2013-06-04  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgService: load the XML file before returning tags

If the service already existed in the DB and ag_service_get_tags() or
ag_service_has_tag() was the first method called after instantiating a
service, the return value would have been NULL, regardless of the real
tags: this happened because the XML file was not being read at all.

This changes forces the XML to be loaded when the above functions are
invoked.

2013-06-04  David King  <amigadave@amigadave.com>

Bump GObject dependency for g_type_init() deprecation

g_type_init() was deprecated (and no longer necessary) in GLib 2.35.1,
so enforce that requirement in configure.ac.

2013-06-03  Ken VanDine  <ken.vandine@canonical.com>

Removed deprecated g_type_init

2013-05-31  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.9

2013-05-30  Ken VanDine  <ken.vandine@canonical.com>

Change definition of element to gchar[] to fix build failures with -Werror=sizeof-pointer-memaccess

2013-03-21  David King  <david.king@canonical.com>

Add installcheck target for installed tests

Use the provided Automake infrastructure for running installed tests.

2013-03-21  Martin Kampas  <martin.kampas@tieto.com>

Include tests in make install

Downstream bug https://bugs.merproject.org/show_bug.cgi?id=682 -
libaccounts-glib-1.6.tar.gz contains a tests.xml but no -tests package

2013-02-21  Alberto Mardegan  <alberto.mardegan@canonical.com>

NEWS for 1.8

2013-02-20  Alberto Mardegan  <alberto.mardegan@canonical.com>

Account::enabled(): use NULL for global account

When emitting the enabled() signal, use NULL as service name when the
global account enabledness changed.
Improve the tests to catch a regression.

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=157

2013-02-06  Alberto Mardegan  <alberto.mardegan@canonical.com>

Switch to post-release version bump

2013-01-31  Alberto Mardegan  <alberto.mardegan@canonical.com>

Do never return a NULL AgAuthData pointer

Though it might not make much sense to return an AgAuthData when the
method and mechanism are not set, doing so is likely to reduce the code
paths in the caller, which can now always rely on the fact that the
AgAuthData instance will be created.

2013-01-30  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.7

2013-01-29  David King  <david.king@canonical.com>

Check that NEWS has been updated before releasing

2013-01-29  David King  <david.king@canonical.com>

Update NEWS for 1.6 release

2013-01-29  David King  <david.king@canonical.com>

Check whether librt is needed for clock_gettime

2013-01-29  David King  <david.king@canonical.com>

Remove some AEGIS cruft

2013-01-29  David King  <david.king@canonical.com>

Simplify checking for libraries with pkg-config

Combine the PKG_CHECK_MODULES check when searching for "check" with the
other dependencies. Remove the explicit linker flag to link with librt.
Error out on undefined symbols in libaccounts-glib.la.

2013-01-29  David King  <david.king@canonical.com>

Update VAPI file to current API

Add the new functions and mark deprecations up to the API in version
1.5.

2013-01-23  David King  <david.king@canonical.com>

Add NOCONFIGURE logic to autogen.sh

Additionally, fix the script to run gtkdocize from $srcdir.

2013-01-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Allow creating AuthData for a global account

Since the AccountService objects can be created for the global account
(service == NULL), it makes sense to allow the same for AuthData. This
is going to be especially useful when defining authentication data in
the provider files.

2013-01-18  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.6

2013-01-18  Ken VanDine  <ken.vandine@canonical.com>

Fix the check for pyoverridesdir for python3

2013-01-17  Xavier ALT  <xal@openerp.com>

Python: also support python 2.7

Use a super() syntax which is accepted in both python3 and python2.

2013-01-08  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.5

2013-01-08  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add ag_provider_get_plugin_name()

The plugin name can be used in some platforms to specify which account
plugin manages the accounts belonging to this provider.

2013-01-08  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: fix provider test

The "provider" variable was not updated inside the loop, causing the
test to fail.

2013-01-03  David King  <david.king@canonical.com>

Include ag-auth-data.h in accounts-glib.h

Fixes http://code.google.com/p/accounts-sso/issues/detail?id=136

2012-12-07  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.4

2012-11-27  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add default settings to provider file

Adding support for the <template> element in .provider files. This
allows to specify default settings for the global account in the XML
file.

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=111

2012-10-30  David King  <david.king@canonical.com>

Make tests optional at configure time

http://code.google.com/p/accounts-sso/issues/detail?id=124

2012-10-26  David King  <david.king@canonical.com>

Add basic README

2012-10-26  David King  <david.king@canonical.com>

Update NEWS

2012-10-26  David King  <david.king@canonical.com>

Generate ChangeLog from git log during dist

2012-10-24  Alberto Mardegan  <alberto.mardegan@canonical.com>

Make some GObject properties readable

http://code.google.com/p/accounts-sso/issues/detail?id=125

2012-10-24  Alberto Mardegan  <alberto.mardegan@canonical.com>

Account::store_async(): invoke callback from the main loop

Do never invoke the callback immediately, without iterating the main
loop. Though not explicitly required, this is the common practice for
GIO asynchronous functions.

Adjust the unit tests for this change.

2012-10-24  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: waiting function: add seconds parameter

2012-10-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Docstring improvement for ag_account_store_*

Changed text as per David King's suggestion.

2012-10-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Account::store_async(): invoke callback on error

In addition to print a g_critical() message, also invoke the callback
with an error code, when the account is busy with another store
operation.

2012-10-22  Alberto Mardegan  <alberto.mardegan@canonical.com>

ag_account_store_async() using GAsyncResult

Deprecate ag_account_store() for ag_account_store_async(), which uses
GAsyncResult and allows for a GCancellable option.

As a result of this change, if the AgAccount is unref'd it won't be
disposed until the asynchronous operation has completed.
The test_store_locked_cancel() unit test has been updated to take this
into account.

http://code.google.com/p/accounts-sso/issues/detail?id=116

2012-10-18  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add a few GObject properties

AgAccount:
 * enabled
 * display-name
AgAccountService:
 * enabled

Make sure that the notify signal is also emitted.

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=120

2012-10-18  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: improve check on GSlice allocations

2012-10-18  David King  <david.king@canonical.com>

Add glossary to avoid missing acronym warnings

2012-10-17  David King  <david.king@canonical.com>

Fix srcdir != builddir for XML DTD test

2012-10-17  David King  <david.king@canonical.com>

Remove duplicate class documentation

2012-10-17  David King  <david.king@canonical.com>

Add a missing include for ag_service_unref()

2012-10-17  David King  <david.king@canonical.com>

Support automake silent rules

The rules are disabled by default.

2012-10-17  David King  <david.king@canonical.com>

Remove INSTALL from version control

2012-10-17  David King  <david.king@canonical.com>

Improve autogen.sh

2012-10-17  David King  <david.king@canonical.com>

Update automake syntax in Makefile.am files

2012-10-17  David King  <david.king@canonical.com>

Update configure.ac to recent autoconf syntax

2012-10-17  David King  <david.king@canonical.com>

Add test scripts to distribution

2012-10-17  David King  <david.king@canonical.com>

Generate and install man pages from documentation

For the ag-tool and ag-backup documentation, generate and install man
pages. Check for the required DocBook DTDs and stylesheets during
configure with macros copied from gtk-doc. Add a --disable-man flag so
that packagers can disable the generation if necessary.

2012-10-17  David King  <david.king@canonical.com>

Adjust XML data files documentation title

2012-10-17  David King  <david.king@canonical.com>

Add ag-tool documentation

2012-10-17  David King  <david.king@canonical.com>

Add ag-backup documentation

2012-10-17  David King  <david.king@canonical.com>

Split API appendices into separate part

Additionally, add ‘since’ indices.

2012-10-16  David King  <david.king@canonical.com>

Add some missing ‘Since’ tags to API reference

2012-10-16  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: test new GVariant functionality

Duplicate the test_settings_iter() test and modify it to operate on
GVariants. This adds test coverage for ag_account_set_variant() and
ag_account_settings_iter_get_next().
(ag_account_get_variant() is already used by ag_account_get_value(), so
it's already implicitly tested)

2012-10-16  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add GVariant-based APIs

Add GVariant-based APIs beside the GValue-based ones, which become
deprecated.

2012-10-15  Alberto Mardegan  <alberto.mardegan@canonical.com>

Remove dbus-glib-1 dependency from pkg-config file

2012-10-15  Robert Bruce Park  <robert.park@canonical.com>

Enhance Python overrides to provide a more Pythonic API.

This commit introduces a couple simple changes that make
libaccounts-glib much nicer to use in Python, without breaking any
backwards compatibility.

1. Allow Account.get_settings_iter() to be called with no arguments.
We give the 'prefix' argument a default value of '' (empty string), so
that calling code can omit that argument in order to get all of the
possible settings. This does not interfere with any existing code
which can continue to specify any prefix it likes.

2. Introduce a new method 'get_settings' which returns a real Python
Generator containing the settings data instead of this weird C 'iter'
thing that doesn't play very well with Python at all. This method
essentially is what 'get_settings_iter' should have been all along,
but I gave it a previously-unused name for the sake of preserving
backwards-compatibility with existing code.

3. Introduce another new method called 'get_settings_dict' which is
just a light convenience wrapper around the previous new method,
returning a fully-formed python dictionary instead of a python
generator.

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=109

2012-10-15  David King  <david.king@canonical.com>

Add translation information to documentation

2012-10-12  David King  <david.king@canonical.com>

Add pkg-config information to documentation

2012-10-12  David King  <david.king@canonical.com>

Add documentation on debug variables

2012-10-12  David King  <david.king@canonical.com>

Add documentation on validating XML data files

2012-10-12  David King  <david.king@canonical.com>

Install DTDs

Install the DTDs to $(datadir)/xml/accounts/schema/dtd.

2012-10-12  David King  <david.king@canonical.com>

Add terminology overview to documentation

2012-10-12  David King  <david.king@canonical.com>

Add version number to reference documentation

Substitute the version number during configure.

2012-10-12  David King  <david.king@canonical.com>

Add XML data file documentation to reference

Rearrange the main index and put the XML data file references in a
separate part.

2012-10-12  David King  <david.king@canonical.com>

Add service-type XML file format description

2012-10-12  David King  <david.king@canonical.com>

Add service XML file format description

2012-10-11  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: fix when running with CK_FORK=no

In order to run the tests under valgrind, we need to disable forking.
This revealed a couple of issues not exposed before.

Also, fix all the memory leaks found by valgrind.

2012-10-11  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgService: don't fail if service type is missing

The absence of a service type is something that should be checked at
run-time, even with assertions disabled.

2012-10-11  Alberto Mardegan  <alberto.mardegan@canonical.com>

Don't leak the service names coming from D-Bus

We are asking g_variant_iter_next() to duplicate the service name when
extracting it from the D-Bus signal. Consequently, we must free it as
well.

2012-10-11  David King  <david.king@canonical.com>

Add provider XML file format description

2012-10-11  David King  <david.king@canonical.com>

Add application XML file format description

2012-10-11  David King  <david.king@canonical.com>

Fix typo in AgAccount example

2012-10-10  Alberto Mardegan  <alberto.mardegan@canonical.com>

Port to GDBus

Drop the dependencies on libdbus and libdbus-glib.

2012-10-10  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add internal functions for GValue<->GVariant conversions

2012-10-10  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgServiceType: do not crash if no tags are present

If the XML file contains no tags, then calling the tags-related methods
would cause a crash.

2012-10-10  David King  <david.king@canonical.com>

Remove cruft in test service files

2012-10-10  David King  <david.king@canonical.com>

Test DTD validity during check

If xmllint is installed, check the validity of the test XML files
against the DTDs.

2012-10-10  David King  <david.king@canonical.com>

Add XML DTD for service-type files

2012-10-10  David King  <david.king@canonical.com>

Add XML DTD for provider files

2012-10-10  David King  <david.king@canonical.com>

Add XML DTD for application files

2012-10-10  David King  <david.king@canonical.com>

Add XML DTD for service files

2012-08-17  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.3

2012-08-17  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: fix test_auth_data_insert_parameters()

The test was incorrectly assuming the sorting order of the
AgAccountServices returned by ag_manager_get_account_services().

To correct this, instantiate the AgAccountManager for a specific service
type, and then we know that only one account service will be returned.

2012-08-17  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgManager: don't reprocess the same signal twice

The existing code was assuming that the D-Bus signal carrying the
notification about a changed account could be received at most two
times; however, if the same account modification affects several
services (and this can easily happen when creating an account which
supports different services), we receive one signal for each modified
service; and we must ignore all of the duplicates.

A regression test is also included.

2012-07-26  David King  <david.king@canonical.com>

Remove an unused parameter from create_db

2012-07-26  David King  <david.king@canonical.com>

Remove an unused parameter from parse_items

2012-07-26  David King  <david.king@canonical.com>

Remove unused parameter in match_watch_with_key

2012-07-26  David King  <david.king@canonical.com>

Mark some parameters as unused

2012-07-26  David King  <david.king@canonical.com>

Fix sign conversion warnings

2012-07-26  David King  <david.king@canonical.com>

Add G_VALUE_INIT copy for ag-tool

2012-07-26  David King  <david.king@canonical.com>

Add internal copy of G_VALUE_INIT

2012-07-26  David King  <david.king@canonical.com>

Convert some ints to unsigned (for AgAccountId)

2012-07-26  David King  <david.king@canonical.com>

Add an include to fix an implicit declaration

Add an include for ag-provider.h to fix an implicit function
declaration in ag-tool.

2012-07-24  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.2

2012-07-20  David King  <david.king@canonical.com>

Set G_LOG_DOMAIN for prefixed log messages

Define G_LOG_DOMAIN, as recommended by the GLib API reference, so that
log messages are prefixed with the library name.

http://developer.gnome.org/glib/stable/glib-Message-Logging.html#G-LOG-DOMAIN:CAPS

2012-07-20  David King  <david.king@canonical.com>

Make throwing VAPI methods throw AgAccountsError

2012-07-19  David King  <david.king@canonical.com>

Include ag-errors.h in accounts-glib.h

2012-07-19  David King  <david.king@canonical.com>

Use new AgAccountsError internally

2012-07-19  David King  <david.king@canonical.com>

Add AgAccountsError to VAPI file

2012-07-19  David King  <david.king@canonical.com>

Add AgAccountsError to API documentation

2012-07-19  David King  <david.king@canonical.com>

Add AG_ACCOUNTS_ERROR error domain

AG_ERRORS was the error domain that was previously used, but is does not
follow the GLib guidelines for error doman naming, which require a module
name. This change allows GObject-introspection to infer that the type is
for error domains, allowing consumer languages to check the type of
errors returned from libaccounts-glib methods.

2012-07-16  Alberto Mardegan  <alberto.mardegan@canonical.com>

Ship Vala bindings

Unfortunately these bindings cannot be auto-generated due to
https://bugzilla.gnome.org/show_bug.cgi?id=665732
https://bugzilla.gnome.org/show_bug.cgi?id=673388#c1

2012-07-13  David King  <david.king@canonical.com>

Add AgApplication header to accounts-glib.h

This allows only accounts-glib.h to be included.

2012-07-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Update D-Bus interface and object paths

Update the interface name according to the project origin. Shorten the
object paths, as there is no need to prefix them with a reverse domain.

2012-07-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Update email and (C) in source files

Update my e-mail address in all source files. Add Canonical's copyright
to files changed when working for Canonical.

2012-07-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Fix timespec reading

This commit fixes a bug in 64bit machines: the seconds and nanoseconds
field we receive from the D-Bus signal are 32 bit values, but the struct
timeval fields can be longer than that in 64bit machines. Therefore we
need to clean the structure before reading the fields from D-Bus, or
some bytes might remain dirty.

2012-07-12  Alberto Mardegan  <alberto.mardegan@canonical.com>

D-Bus: remove one unnecessary signal emission

The signal on the /com/nokia/AccountsLib object path is not necessary
anymore: in order to catch all libaccounts signals, it's enough to use a
match having an empty object path.

2012-07-11  Alberto Mardegan  <alberto.mardegan@canonical.com>

AccountService: emit "enabled" on deletion

This was not working before, because when the AccountService object
received the "enabled" signal from the Account, it would check if the
enabledness status had changed; but the status was not updated in the
account.
This commit fixes that, by making sure that the account is set to
disabled when it's being deleted.

2012-07-10  Jussi Laako  <jussi.laako@linux.intel.com>

Fix unit test failure due to missing type documentation when gtk-doc is enabled

2012-07-06  Amarnath Valluri  <amarnath.valluri@linux.intel.com>

Fix linker error in tools

2012-07-06  Amarnath Valluri  <amarnath.valluri@linux.intel.com>

code cleanup: moved all typedefs to ag-types.h

2012-07-06  Amarnath Valluri  <amarnath.valluri@linux.intel.com>

Fix compilter error: redefinition of typedef

Old GCC compilers treat multiple typedefs of same type as error,
AgAccount & AgManager are defined in common place ag-types.h,

2012-07-04  Jussi Laako  <jussi.laako@linux.intel.com>

Whitespace fix

2012-07-04  Amarnath Valluri  <amarnath.valluri@linux.intel.com>

code cleanup: moved all typedefs to ag-types.h

2012-07-03  Amarnath Valluri  <amarnath.valluri@linux.intel.com>

Fix compilter error: redefinition of typedef

Old GCC compilers treat multiple typedefs of same type as error,
AgAccount & AgManager are defined in common place ag-types.h,

2012-07-03  Amarnath Valluri  <amarnath.valluri@linux.intel.com>

Fix linker error in tools

2012-07-03  Jussi Laako  <jussi@sonarnerd.net>

- Add missing autoconf req - Fix description test case

2012-06-15  Jussi Laako  <jussi.laako@linux.intel.com>

Fix version check macro and test directory path

2012-06-14  Alberto Mardegan  <alberto.mardegan@canonical.com>

pkg-config: add path for application and service-type files

2012-06-13  David King  <david.king@canonical.com>

Add tests for new description fields

2012-06-13  David King  <david.king@canonical.com>

Add AgServiceType description field

2012-06-13  David King  <david.king@canonical.com>

Add AgService description field

2012-06-13  David King  <david.king@canonical.com>

Add AgProvider description field

2012-05-31  David King  <david.king@canonical.com>

Add Requires.private to pkg-config file

Requires.private should be used for packages that are required to build
but which are not exposed to other applications.

http://people.freedesktop.org/~dbn/pkg-config-guide.html

2012-05-16  Alberto Mardegan  <alberto.mardegan@canonical.com>

Fix GValue direction in introspection data

Without this, the Vala compiler would create a temporary copy of the
GValue and then discard it, therefore losing the setting which has just
been read.

2012-04-23  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add ag_provider_match_domain()

2012-04-19  Alberto Mardegan  <alberto.mardegan@canonical.com>

Version 1.1

2012-04-17  Alberto Mardegan  <alberto.mardegan@canonical.com>

AgProvider: add regular expression for matching domains

2012-03-29  Alberto Mardegan  <alberto.mardegan@canonical.com>

Hide deprecation macros from documentation

2012-03-29  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: execute binary from the source tree

2012-03-29  Alberto Mardegan  <alberto.mardegan@canonical.com>

Add deprecation macros

2012-03-29  Alberto Mardegan  <alberto.mardegan@canonical.com>

AccountService can operate on global settings

This is mostly a documentation change, since the creation of an
AgAccountService object for a NULL service has always been working.

Now we are just making things more explicit, and adding a unit test for
this case.

2012-03-28  Alberto Mardegan  <alberto.mardegan@canonical.com>

Remove compilation warnings in tests

2012-03-28  Alberto Mardegan  <alberto.mardegan@canonical.com>

Do not require python for building

2012-03-16  David King  <david.king@canonical.com>

Fix pointer conversion warnings in ag-tool

2012-03-16  David King  <david.king@canonical.com>

Make AgManager:service-type property readable

2012-03-16  David King  <david.king@canonical.com>

Improve gtk-doc documentation

2012-03-16  David King  <david.king@canonical.com>

Add some examples to the documentation

2012-03-16  David King  <david.king@canonical.com>

Give AgAccountService example a title

2012-03-13  Alberto Mardegan  <alberto.mardegan@canonical.com>

Python: add comparison operators

Allow comparing Account, Service and AccountService objects.

2012-03-09  Alberto Mardegan  <alberto.mardegan@canonical.com>

Tests: fix "make dist"

2012-03-08  Alberto Mardegan  <mardy@users.sourceforge.net>

Introspection: type for strings is "utf8"

Also, remove some whitespace and make some cosmetic documentation
changes.

2012-03-07  Alberto Mardegan  <mardy@users.sourceforge.net>

Store accounts.db under $XDG_CONFIG_HOME.

2012-03-07  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: use dbus-test-runner, if available

2012-03-07  Alberto Mardegan  <mardy@users.sourceforge.net>

Do not install test scripts

Using "check_" instead of "bin_" in the Makefile.am forces libtool to
link against the libaccounts-glib found in the working tree, and not
against the system one. This allows us to run "make check" locally.

2012-03-02  Alberto Mardegan  <mardy@users.sourceforge.net>

Add ag_auth_data_get_credentials_id()

The ID of the signon credentials should also be part of the
authentication data.

2012-02-28  David King  <david.king@canonical.com>

docs: Fix typo Glist → GList

2012-02-28  David King  <david.king@canonical.com>

Make AgAccount:id property readable

This allows bindings to access the ID property of an account via GObject,
rather than relying on direct struct access. Additionally, add a gtk-doc
comment for the property and improve the descriptions.

2012-02-22  David King  <david.king@canonical.com>

Make ag_manager_get_application() public

2012-02-22  David King  <david.king@canonical.com>

Correct a typo in the documentation

AgAccountSettingsIter should be AgAccountSettingIter.

2012-02-22  David King  <david.king@canonical.com>

Add AgApplication to documentation

Add a link to AgApplication documentation from the index. Add the
AgApplication types to the sections file. Remove a non-existent callback
typedef.

2012-02-20  Jussi Laako  <jussi.laako@linux.intel.com>

Tag support for AgServiceType and AgService (merge tag-support branch)

2012-02-07  Jussi Laako  <jussi@sonarnerd.net>

Add function to list all available service-types

2012-02-01  Alberto Mardegan  <mardy@users.sourceforge.net>

Update pkg-config file

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Add unit test for AgApplication

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Add ag_manager_list_applications_by_service()

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Add new AgApplication boxed type

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Remove unused function typedef

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Create common code for scanning for data files

Unify the code for scanning directories for providers and services data
files. This can be then reused to scan other data files supported by
libaccounts.

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Use defined values for data dirs

2012-01-31  Alberto Mardegan  <mardy@users.sourceforge.net>

Avoid code duplication in looking up XML files

AgService, AgServiceType and AgProvider are using the same logic to
lookup their XML files. Avoid code duplication by creating a convenience
function in ag-util.c

2012-01-16  Alberto Mardegan  <mardy@users.sourceforge.net>

More documentation fixes for AgAuthData

2012-01-16  Alberto Mardegan  <mardy@users.sourceforge.net>

Fix documentation errors.

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Add missing documentation symbols

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: read test case to run from environment

This allows one to run:

TEST_CASE=Core make check

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: add test for test_auth_data_insert_parameters

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: read test case to run from environment

This allows one to run:

TEST_CASE=Core make check

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: add test for AgAuthData

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Implement ag_account_service_get_auth_data()

Introduce the AgAuthData structure, which holds the method, the
mechanism, and the authentication parameters.

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Support string arrays and doubles

Add support to string arrays, doubles, and other types supported by
GVariant and g_dbus_gvalue_to_gvariant().
This patch introduces the use of GVariant to store and read data from
the DB, and to read settings from the XML files. This leads to a couple
of small incompatibilities with the way we were storing the data before:

- the only accepted format of specifying boolean types is "true" and
  "false" (previously, also "0", "1", "True" and "False" were accepted)
- strings are stored enclosed in quotes; however, we still support
  reading strings stored without quotes.

On the D-Bus level, this patch changes the way values are carried: they
are always passed as strings, in the string format supported by the
GVariant's parse/print functions. We can safely do that, because the
D-Bus format is internal to this library.

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: test arrays of strings

2012-01-13  Alberto Mardegan  <mardy@users.sourceforge.net>

Remove AEGIS crypto support

The AEGIS framework is no longer developed, and very unlikely to ever be
used in any future platforms.

2012-01-12  Alberto Mardegan  <mardy@users.sourceforge.net>

Don't ignore system() return value

This eliminates a compiler warning.

2012-01-12  David King  <david.king@canonical.com>

Move gtk-doc comments from headers to source files

This makes the location of the documentation comments consistent.

2012-01-12  David King  <david.king@canonical.com>

Add sections file for better control of gtk-doc

Placing the sections.txt file under revision control is recommended by the
gtk-doc manual:

http://developer.gnome.org/gtk-doc-manual/unstable/settingup_vcs.html

2012-01-12  David King  <david.king@canonical.com>

Add missing documentation comments

2012-01-12  David King  <david.king@canonical.com>

Update list of ignored headers for documentation

2012-01-12  David King  <david.king@canonical.com>

Only use gtk-doc comments for public symbols

2012-01-12  David King  <david.king@canonical.com>

General gtk-doc improvements

Disable template generation. Depend on version 1.14 of gtk-doc. Switch to
using XML rather than SGML. Add a gtk-doc check that is executed during
‘make test’. Improve the documentation index page.

2012-01-12  David King  <david.king@canonical.com>

Fix AgAccountService documentation section

Correct the section to ‘ag-account-service’, so that the documentation
comments are visible in the generated documentation.

2012-01-11  Alberto Mardegan  <mardy@users.sourceforge.net>

Add PyGObject override file

Provide get_string(), get_int() and get_bool() methods to the Account
and AccountService classes, when used from Python.

Addresses: http://code.google.com/p/accounts-sso/issues/detail?id=30

2012-01-11  David King  <david.king@canonical.com>

Use new signed char GValue accessor from GLib 2.31

Ths prevents a deprecation warning when compiling against version of GLib
greater then 2.31.0.

2011-12-19  Alberto Mardegan  <mardy@users.sourceforge.net>

Add iter APIs more suitable for bindings

Add a few public APIs:
- ag_account_get_settings_iter()
- ag_account_service_get_settings_iter()
- ag_account_settings_iter_free()

These methods allocate (and the last one frees) an AgAccountSettingIter
structure on the heap.
Also, they address an issue with the storing of the prefix key: the
C API is assuming that the prefix key remains valid for the whole
duration of the iteration loop, but auto-generated bindings are not
aware of this and free the prefix string as soon as possible.

2011-12-19  Alberto Mardegan  <mardy@users.sourceforge.net>

Strip prefix when returning keys from Iter::next

This is an incompatible change in functionality for those applications
which were iterating over accounts key using a non empty prefix: now the
keys returned by ag_account_settings_iter_next() will be have their
prefix stripped out.

2011-12-19  Alberto Mardegan  <mardy@users.sourceforge.net>

Revert "Add ag_account_settings_iter_new()"

This reverts commit 8f90e2dac20648414034d460f9f9f7765c2800e8.

Better solution coming soon.

2011-12-19  Alberto Mardegan  <mardy@users.sourceforge.net>

Add ag_account_settings_iter_new()

This is needed for language bindings only, so that they can instantiate
the struct.

2011-12-14  Alberto Mardegan  <mardy@users.sourceforge.net>

More GObject introspection info

2011-12-14  Alberto Mardegan  <mardy@users.sourceforge.net>

Clear returned variables in ag_account_settings_iter_next

When the function returns FALSE, the key and value variables should be
set to NULL.

2011-12-14  Alberto Mardegan  <mardy@users.sourceforge.net>

Define AgAccountSettingIter as boxed type

This is needed in order to be able to use it from Python.

2011-12-14  Alberto Mardegan  <mardy@users.sourceforge.net>

More GObject introspection information

2011-12-12  Alberto Mardegan  <mardy@users.sourceforge.net>

Add include-all header (for language bindings)

2011-12-01  Alberto Mardegan  <mardy@users.sourceforge.net>

Add introspection information

2011-12-01  Alberto Mardegan  <mardy@users.sourceforge.net>

Require Glib 2.26

Use G_DEFINE_BOXED_TYPE for the boxed types.

2011-12-01  Alberto Mardegan  <mardy@users.sourceforge.net>

Avoid including files in between of declarations

Create a ag-types.h header with forward declarations.

2011-12-01  Alberto Mardegan  <mardy@users.sourceforge.net>

Setup GObject introspection

2011-11-24  Alberto Mardegan  <mardy@users.sourceforge.net>

Changes for "make distcheck"

2011-11-24  Alberto Mardegan  <mardy@users.sourceforge.net>

Changes for "make distcheck"

2011-11-24  Alberto Mardegan  <mardy@users.sourceforge.net>

Tests: support any order of services

A unit test could fail when services were not returned in the expected
order. With this change, the test will work regardless of the sorting of
services.

2011-11-24  Alberto Mardegan  <mardy@users.sourceforge.net>

Add GPOINTER_TO_INT macro

Fixes a compilation error.

2011-09-29  Alberto Mardegan  <mardy@users.sourceforge.net>

Revert "Addresses: 275878 - [Task] Object sensitive menu in Accounts view"

This reverts commit fde7709de87a99b880315483da26f115bdb41e6c.
Unit tests were failing because of that change.

2011-09-29  Alberto Mardegan  <mardy@users.sourceforge.net>

Add .gitignore for binary executables

2011-09-29  Alberto Mardegan  <mardy@users.sourceforge.net>

Remove unused variable

Variable is assigned but not used; under GCC 4.6.1, this causes:

ag-manager.c: In function 'ag_manager_get_service':
ag-manager.c:1651:10: error: variable 'rows' set but not used
[-Werror=unused-but-set-variable]

2011-09-23  smita  <smita@smita.apac.nokia.com>

Addresses: 275878 - [Task] Object sensitive menu in Accounts view

2011-07-26  Tomi Suviola  <tomi.suviola@nokia.com>

Increase version

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Docs: add links to new classes

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Tests: exit from test-process when needed

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Test: remove unused variables and add unrefs

Cleanup the tests a bit: remove unused/unneeded variables and properly dispose
objects.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Tests: fix exiting of inner loops

The source_id variable is checked immediately after the main loop terminates;
therefore, set it earlier.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Tests: ag_manager_get_{,enabled_}account_services

Add test_account_service_list to test the ag_manager_get_account_services and
ag_manager_get_enabled_account_services methods.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix warning in ag_account_get_enabled()

For accounts not stored in DB, this method would cause a critical warning to be
emitted, because we were calling g_value_get_boolean() on a NULL pointer.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Debug: watch disposing of objects

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Tests: add one more service file

This is needed to make the AgAccountService test more sensible.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

ag_manager_get_{,enabled_}account_services()

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Build with glib 2.24

Provide alternate implementation of ag_service_get_type function, when
G_DEFINE_BOXED_TYPE is not available.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add tests for AgAccountService

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Implement the AgAccountService class

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Remove copy optimization about AgSettingChanges

We'll need to keep the AgSettingChanges hashtable unchanged for the coming
implementation of AgAccountService.

2011-06-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Coding style

2011-06-14  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Version 0.69

2011-06-14  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Increased timeout for the test_blocking test.

2011-06-14  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Fixes: NB#Account::verify and Account::verifyWithTokens() returns TRUE all the time irrespective of whether Account::sign() called or not.

2011-06-10  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.68

2011-06-10  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add missing dependencies

2011-05-23  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.67

2011-05-23  Alberto Mardegan  <alberto.mardegan@nokia.com>

Update location of backup file

2011-05-23  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add backup tool

2011-05-10  Ramakrishna  <ranarasi@TimmanaMane.noe.nokia.com>

creating 0.66 tag for bug#235727

2011-05-10  Ramakrishna  <ranarasi@TimmanaMane.noe.nokia.com>

replaced for loop with a while loop to solve the issue

2011-05-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.65

2011-05-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

Use SQLite in WAL-journaled mode

See: http://www.sqlite.org/draft/wal.html
This seems to considerably help concurrency issues.

2011-02-10  Will Thompson  <will.thompson@collabora.co.uk>

ag-tool: use g_path_get_basename(), not basename()

On my amd64 machine, the current ag-tool crashes when it tries to show
the usage string. gdb shows that gl_app_name contains garbage, though it
seemed to not be garbage before the call to show_help(). (Yes, this
surprised me too.) I suspect it might be related to basename modifying
its argument or something; I'm not really sure.

Either way, replacing the call to basename() with a call to
g_path_get_basename()—which returns a newly allocated string—fixes the
crash.

2011-01-27  smita  <smita@smita-laptop.(none)>

Version 0.64

2011-01-27  smita  <smita@smita-laptop.(none)>

fixing bug: 221488 - API: Method needed for getting provider icon

2011-01-25  Dominic Velikakath  <dominic.velikakath@nokia.com>

Version 0.63

2011-01-25  Dominic Velikakath  <dominic.velikakath@nokia.com>

BugFix #203268 - accountListEnabled and accountList doesnot return the expected size

2010-12-14  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.62

2010-12-14  Aparna Nandyal  <aparna.nand@wipro.com>

Tool to create/edit/delete accounts

2010-12-14  Alberto Mardegan  <alberto.mardegan@nokia.com>

Update git ignore files

2010-12-14  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix ag_manager_list_enabled()

Patch provided by Aparna Nand <aparna.nand@wipro.com>:
Fixes: MB#10991 - API ag_manager_list_enabled returning disabled accounts also

2010-12-01  Alberto Mardegan  <alberto.mardegan@nokia.com>

Check for NULL return value.

Fixes: BMC#10569 - Code comment - NULL check not present in ag-manager.c code

2010-11-22  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Version 0.61

2010-11-22  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Additional fix in the context of NB#202721 - QMailAccount fields sometimes stored in accounts.db with incorrect service id of 0.

2010-11-12  smita  <smita@smita-laptop.(none)>

Version 0.60

2010-11-12  smita  <smita@smita-laptop.(none)>

Fixing bug 200711 - Configured accounts are cleared/disappear after taking backup

2010-11-11  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Version 0.59

2010-11-11  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Tests update.

2010-11-11  Aurel Popirtac  <ext-aurel.popirtac@nokia.com>

Fix for NB#202721 - QMailAccount fields sometimes stored in accounts.db with incorrect service id of 0.

2010-10-29  Vivek Dasmohapatra  <vivek@collabora.co.uk>

%ll[ud] specifiers not portable between 32/64 bit archs, use G_ macros

2010-10-29  Vivek Dasmohapatra  <vivek@collabora.co.uk>

precision must be ‘int’, but supplied value is ‘long unsigned int’ on x86_64

2010-10-25  Alberto Mardegan  <alberto.mardegan@nokia.com>

Update RPM files

2010-10-22  smita  <smita@smita-laptop.(none)>

Version 0.58

2010-10-22  smita  <smita@smita-laptop.(none)>

Fixed 198281: some changes still left

2010-10-21  smita  <smita@smita-laptop.(none)>

Version 0.57

2010-10-21  smita  <smita@smita-laptop.(none)>

Fixed: bug 198281

2010-10-18  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.56

2010-10-18  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix list_enabled_services_from_memory()

The service_type parameter was ignored.

2010-10-18  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix unit tests

The create2 method is not creating an account with an enabled service.
Duplicate the code as "create3", and make it create an enabled account. This
makes the Caching test work again.

2010-10-18  Alberto Mardegan  <alberto.mardegan@nokia.com>

Correct visibility of two symbols

2010-10-11  Alberto Mardegan  <alberto.mardegan@nokia.com>

Only export symbols starting with "ag_"

2010-10-08  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.55

2010-10-06  Alberto Mardegan  <alberto.mardegan@nokia.com>

Minimize DB access in ag_account_list_enabled_services()

If the account has been created from another instance, we have all the service
settings already in memory: there's no need to query the DB to get them.

2010-10-06  Alberto Mardegan  <alberto.mardegan@nokia.com>

Coding style

2010-10-06  Alberto Mardegan  <alberto.mardegan@nokia.com>

Reorder and group tests

This allows executing only a group of tests at a time.

2010-10-06  Alberto Mardegan  <alberto.mardegan@nokia.com>

Style changes

2010-10-06  Alberto Mardegan  <alberto.mardegan@nokia.com>

Allow running a single test case

2010-10-06  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add test for unnecessary DB access

This test is currently failing -- correct implementation is still missing.

2010-10-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

Never discard settings coming from D-Bus

2010-10-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

Retrieve service ID when necessary

If the AgService was created with the _ag_service_new_with_type() method (and
possibly others), the service ID is not known.
Factor out the logic for getting the ID of an AgService into a separate
function, which takes care of fetching it from DB if necessary.

2010-10-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

AgService: load needed info when incomplete

If the AgService was created with incomplete data, load the missing data on
demand.

2010-10-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

Instantiate an AgService for foreign changes too

When building the AgServiceChanges structure, the AgService was always set to
NULL when the changes were coming from the D-Bus signal.
Since we are going to make better use of the changes data, we need to have a
valid AgService here (although incomplete).

2010-10-05  Alberto Mardegan  <alberto.mardegan@nokia.com>

Accounts from DBus: don't load settings

When we get a D-Bus message telling that an account has been created, we don't
need to load the account settings: they should be already in memory.

2010-09-29  smita  <smita@smita-laptop.(none)>

Version 0.54

2010-09-29  smita  <smita@smita-laptop.(none)>

Fix bug: 189503

2010-09-22  smita  <smita@smita-laptop.(none)>

Version 0.52

2010-09-22  smita  <smita@smita-laptop.(none)>

Fixing bug 192786

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

If the client wants to, we can abort on timeout.

Add ag_manager_{set,get}_abort_on_db_timeout() methods to allow the client to
automatically abort in case of DB timeout.

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

Test case for ag_manager_load_account()

Extend an existing test case.

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

Introeduce new error code: AG_ERROR_ACCOUNT_NOT_FOUND

Return this error when the query succeeds but returns no rows.

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add internal function _ag_manager_get_last_error()

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add ag_manager_load_account(), which carries GError

The ag_manager_get_account() function can return NULL, but there is currently
no way to know why it failed.
The ag_manager_load_account() overcomes this problem.

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

Store the last error for failed query

Also introduce a new error for DB timeouts; applications might want to handle
this one differently.

2010-08-31  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add internal function to set the last error.

2010-08-31  Alexander Akimov  <ext-alexander.akimov@nokia.com>

version 0.52

2010-08-31  Alexander Akimov  <ext-alexander.akimov@nokia.com>

Code optimization:

1) minus 1 function call
2) Grouping variables definition on top of test function

2010-08-31  Alexander Akimov  <ext-alexander.akimov@nokia.com>

Another part of the fix for "enabledServices" bug

2010-08-27  smita  <smita@smita-laptop.(none)>

Version 0.51

2010-08-27  smita  <smita@smita-laptop.(none)>

Freeing the memory

2010-08-27  smita  <smita@smita-laptop.(none)>

Fetchin translation catalog from the service xml files

2010-08-27  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.50

Alex, you forgot to increase the version number!

2010-08-27  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.49

2010-08-27  Alberto Mardegan  <alberto.mardegan@nokia.com>

Access the SQLite DB in synchronous mode

The asynchronous mode delivered a huge performance boost, but also caused the
DB to be corrupted in case of power loss.

2010-08-25  Alexander Akimov  <ext-alexander.akimov@nokia.com>

code style fix

2010-08-25  Alexander Akimov  <ext-alexander.akimov@nokia.com>

Fix for NB#187346 (enabledService works wrong)

2010-08-20  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.48

2010-08-20  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix parsing of XML provider files

We need to check if the current node is actually an element; without this
check, provider files including the DOCTYPE declaration won't be parsed
correctly.

2010-08-17  Smita Srivastava  <ext-smita.srivastava@nokia.com>

Version 0.47

2010-08-17  Smita Srivastava  <ext-smita.srivastava@nokia.com>

final glib changes to fetch catalog from xml

2010-08-05  Alberto Mardegan  <mardy@users.sourceforge.net>

Added environment variable for test script

2010-08-03  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.46

2010-08-03  Alberto Mardegan  <alberto.mardegan@nokia.com>

Move up the check for duplicate signals

This check need to happen before any other check, because otherwise duplicate
signals might not be detected as such, and could be still processed.

2010-08-03  Alberto Mardegan  <alberto.mardegan@nokia.com>

Print the AgManager instance in debug statement

2010-08-02  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.45

2010-07-30  Alberto Mardegan  <mardy@users.sourceforge.net>

Don't process signals coming from different object paths

If the same process has several instances of the AgManager, each of them
installing their own DBus match rules, it may be that the AgManager receives
some messages which don't match its own filters; these messages must not be
processed. To achieve this, message filtering must be performed also in the
D-Bus handler function, by discarding all messages coming from an object path
we didn't register for.

2010-07-30  Alberto Mardegan  <mardy@users.sourceforge.net>

Rewrite registering of D-Bus matches

Save the object paths for later use (following commit will use them).

2010-07-30  Alberto Mardegan  <mardy@users.sourceforge.net>

Don't emit the "updated" signal along with "created" or "deleted"

2010-07-27  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.44

2010-07-27  Alberto Mardegan  <mardy@users.sourceforge.net>

Do not process D-Bus signals twice

With the replication of D-Bus messages on different object paths, it's possible
that the same signal would be processed twice (because the AgManager is
listening on the global service type and on another one); therefore, we must
remember the last signals we processed, and avoid re-processing them. We don't
need to remember many of them; actually, in most cases the remembering only the
last one is enough, but we keep the last three just for extra safety.

2010-07-27  Alberto Mardegan  <mardy@users.sourceforge.net>

Use different DBus object paths for each service type

Replicate the DBus signal describing the account changes on different object
paths, one for each service type involved in the transaction.
If the AgManager is instantiated for a specific service type, just listen for
the changes on that service type and on the global account settings; this
avoids waking up every process whenever some service-type specific setting has
been modified.

2010-07-27  Alberto Mardegan  <mardy@users.sourceforge.net>

Add _ag_dbus_escape_as_identifier()

Taken straight from libtelepathy-glib, just renamed. This will allow us to use
the service-types as parts of D-Bus object paths.

2010-07-27  Alberto Mardegan  <mardy@users.sourceforge.net>

Add _ag_account_changes_get_service_types()

Lists the service types contained in the AgAccountChanges structure.

2010-07-23  Alberto Mardegan  <mardy@users.sourceforge.net>

Don't force replacing of existing files.

2010-07-23  Radek Zielonka  <ext-radek.zielonka@nokia.com>

Fixes: NB#180967

.service file matching regexp is too permissive

2010-07-07  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.43

2010-07-07  Dmitry Zelenkovsky  <Dmitry.Zelenkovskiy@nokia.com>

Implementation for update-event feature.

2010-06-28  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.42

2010-06-28  Alberto Mardegan  <alberto.mardegan@nokia.com>

Change SQLite journal mode to truncate

Possibly safer, and shouldn't affect performance.

2010-06-28  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add unit tests for AgServiceType functions

2010-06-28  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add AgServiceType

This structure is built from an XML file, and describes a service type.

2010-06-17  Bernd Wachter  <ext-bernd.wachter@nokia.com>

Add RPM spec/changes file

2010-06-16  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.41

2010-06-16  Alberto Mardegan  <alberto.mardegan@nokia.com>

Optimize SQLite DB usage

On a journalled file system, these options should be relatively safe.

2010-06-15  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.40

2010-06-15  Alberto Mardegan  <alberto.mardegan@nokia.com>

Extend unit tests to catch enabled-event regressions

2010-06-15  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix emission of enabled-event

The check whether enabled-event must be emitted should be performed before
running the ag_account_done_changes(), because that function modifies the
AgAccountChanges structure.

2010-06-13  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.39

2010-06-09  Alberto Mardegan  <alberto.mardegan@nokia.com>

Update test service files

2010-06-09  Alberto Mardegan  <alberto.mardegan@nokia.com>

Use "group" element for template groups.

Make the parser support groups in the form:

<template>
  <group name="imap">
    <setting name="server">imap.example.com</setting>
  </group>
</template>

Still support the old format, but emit a warning when it's encountered.

2010-06-09  Alberto Mardegan  <alberto.mardegan@nokia.com>

Set the document name on the xmlReader

It can be needed in the parsing functions to emit warnings and debug messages
with the name of the file being parsed.

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.38

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Reset the COMMIT statement after using it

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Debug database locks

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Take new debug macros into use

Replace all g_debugs

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add debugging infrastructure

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add regression test for latest bugfix

2010-06-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Invert the comparison sign

Fixes: NB#171233

2010-05-27  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix memory leak

There is no need to deep-copy the GValue contents here.

2010-05-20  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.37

2010-05-20  Alberto Mardegan  <alberto.mardegan@nokia.com>

Use the monotonic clock to compute the locking time

2010-05-20  Alberto Mardegan  <alberto.mardegan@nokia.com>

Set the DB timeout to be configurable

The default of 5 seconds might be too much for UI applications.

2010-05-20  Alberto Mardegan  <alberto.mardegan@nokia.com>

Increase DB timeout to 5 seconds

2010-05-10  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.36

2010-05-10  Alberto Mardegan  <alberto.mardegan@nokia.com>

Create tables only if the DB is newly created

Add a function to get the DB version; factor out the creation of tables and
triggers into a separate function, which will be invoked only if the DB has
been newly created.

2010-05-06  Tomi Suviola  <tomi.suviola@nokia.com>

Add backup support for accounts and move database location

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.34

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Fix some critical warnings

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Turn important g_debug() into g_warning()

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Do not hardcode timeouts in the tests

Put the timeout values in a common internal header file, so that the tests can
use those values instead of hardcoding them.

This should let us change those timeouts later without having to modify the
tests.

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Do not giveup initializing DB when locked

The database initialization can fail if the DB is locked; in that case, instead
of just giving up, we must retry to execute our initialization statements.

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Create test case for locked DB on manager instantiation

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Remove compilation warnings

2010-04-30  Alberto Mardegan  <alberto.mardegan@nokia.com>

Factor out a function to compute elapsed time

2010-04-23  Tomi Suviola  <tomi.suviola@nokia.com>

Fixed memory leak NB#162667

2010-04-22  Radek Zielonka  <ext-radek.zielonka@nokia.com>

Version 0.32

2010-04-22  Radek Zielonka  <ext-radek.zielonka@nokia.com>

 bug fix 164834

2010-04-19  Radek Zielonka  <ext-radek.zielonka@nokia.com>

Version 0.31

2010-04-19  Radek Zielonka  <ext-radek.zielonka@nokia.com>

enabled-event signal

Notification of enabled-event on account or service
List accounts and services belongs to service_type if specified

2010-04-19  Radek Zielonka  <ext-radek.zielonka@nokia.com>

Tests for enable-event

2010-04-09  Alexander Akimov  <ext-alexander.akimov@nokia.com>

version update

2010-04-09  Alexander Akimov  <ext-alexander.akimov@nokia.com>

memleak

2010-04-09  Alexander Akimov  <ext-alexander.akimov@nokia.com>

Fixes: NB#163169 - <MemLeak> leaks in libaccounts-glib-0.28+0m6 Fixes: NB#162667 - <MemLeak> more valgrind leaks in libaccounts-glib-0.28+0m6 Fixes: NB#161715 - <MemLeak> valgrind leaks in libaccounts-glib-0.28+0m6

2010-04-07  Radek Zielonka  <ext-radek.zielonka@nokia.com>

Fixes: NB#162670 - test crashing in scratchbox

2010-04-06  Tomi Suviola  <tomi.suviola@nokia.com>

Fixed bug 162814

2010-03-08  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.28

2010-03-08  Alberto Mardegan  <alberto.mardegan@nokia.com>

Add missing file for gtk-doc

Also, update .gitignore

2010-03-08  Alberto Mardegan  <alberto.mardegan@nokia.com>

Version 0.27

2010-03-08  Alberto Mardegan  <alberto.mardegan@nokia.com>

Tests: correct typo (icon/service name)

2010-03-08  Tomi Suviola  <tomi.suviola@nokia.com>

Fixed coverity defects.

2010-03-04  Alberto Mardegan  <alberto.mardegan@nokia.com>

Initial push to public repository

