accounts-sso:accounts-glib.git
7 years agopumped up the version harmattan/0.57-2
smita [Thu, 21 Oct 2010 13:02:56 +0000 (16:02 +0300)]
pumped up the version

7 years agoFixed the changelog problem harmattan/0.57-1
smita [Thu, 21 Oct 2010 12:43:11 +0000 (15:43 +0300)]
Fixed the changelog problem

7 years agoVersion 0.57 harmattan/0.57
smita [Thu, 21 Oct 2010 06:32:26 +0000 (09:32 +0300)]
Version 0.57

7 years agoMerge branch 'harmattan' of gitorious.org:accounts-sso/accounts-glib into harmattan
smita [Thu, 21 Oct 2010 06:27:46 +0000 (09:27 +0300)]
Merge branch 'harmattan' of gitorious.org:accounts-sso/accounts-glib into harmattan

7 years agoFixed: bug 198281
smita [Thu, 21 Oct 2010 06:27:31 +0000 (09:27 +0300)]
Fixed: bug 198281

7 years agoVersion 0.56-1 harmattan/0.56-1
Alberto Mardegan [Mon, 18 Oct 2010 07:00:14 +0000 (10:00 +0300)]
Version 0.56-1

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Mon, 18 Oct 2010 06:57:43 +0000 (09:57 +0300)]
Merge branch 'master' into harmattan

7 years agoVersion 0.56
Alberto Mardegan [Mon, 18 Oct 2010 06:56:44 +0000 (09:56 +0300)]
Version 0.56

7 years agoFix list_enabled_services_from_memory()
Alberto Mardegan [Mon, 18 Oct 2010 06:56:20 +0000 (09:56 +0300)]
Fix list_enabled_services_from_memory()

The service_type parameter was ignored.

7 years agoFix unit tests
Alberto Mardegan [Mon, 18 Oct 2010 06:48:59 +0000 (09:48 +0300)]
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.

7 years agoCorrect visibility of two symbols
Alberto Mardegan [Mon, 18 Oct 2010 06:48:27 +0000 (09:48 +0300)]
Correct visibility of two symbols

7 years agoOnly export symbols starting with "ag_"
Alberto Mardegan [Mon, 11 Oct 2010 13:38:42 +0000 (16:38 +0300)]
Only export symbols starting with "ag_"

7 years agoVersion 0.55-1 harmattan/0.55-1
Alberto Mardegan [Mon, 11 Oct 2010 12:07:56 +0000 (15:07 +0300)]
Version 0.55-1

7 years agoAPI interface is now stable
Alberto Mardegan [Fri, 8 Oct 2010 08:15:54 +0000 (11:15 +0300)]
API interface is now stable

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Fri, 8 Oct 2010 08:14:18 +0000 (11:14 +0300)]
Merge branch 'master' into harmattan

Conflicts:

configure.ac

7 years agoVersion 0.55 0.55
Alberto Mardegan [Fri, 8 Oct 2010 08:13:22 +0000 (11:13 +0300)]
Version 0.55

7 years agoMinimize DB access in ag_account_list_enabled_services()
Alberto Mardegan [Wed, 6 Oct 2010 06:57:51 +0000 (09:57 +0300)]
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.

7 years agoCoding style
Alberto Mardegan [Wed, 6 Oct 2010 06:10:15 +0000 (09:10 +0300)]
Coding style

7 years agoReorder and group tests
Alberto Mardegan [Tue, 5 Oct 2010 13:02:07 +0000 (16:02 +0300)]
Reorder and group tests

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

7 years agoStyle changes
Alberto Mardegan [Tue, 5 Oct 2010 12:42:43 +0000 (15:42 +0300)]
Style changes

7 years agoAllow running a single test case
Alberto Mardegan [Tue, 5 Oct 2010 12:35:50 +0000 (15:35 +0300)]
Allow running a single test case

7 years agoAdd test for unnecessary DB access
Alberto Mardegan [Tue, 5 Oct 2010 12:12:54 +0000 (15:12 +0300)]
Add test for unnecessary DB access

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

7 years agoNever discard settings coming from D-Bus
Alberto Mardegan [Tue, 5 Oct 2010 12:04:51 +0000 (15:04 +0300)]
Never discard settings coming from D-Bus

7 years agoRetrieve service ID when necessary
Alberto Mardegan [Tue, 5 Oct 2010 12:02:14 +0000 (15:02 +0300)]
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.

7 years agoAgService: load needed info when incomplete
Alberto Mardegan [Tue, 5 Oct 2010 12:00:47 +0000 (15:00 +0300)]
AgService: load needed info when incomplete

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

7 years agoInstantiate an AgService for foreign changes too
Alberto Mardegan [Tue, 5 Oct 2010 11:58:27 +0000 (14:58 +0300)]
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).

7 years agoAccounts from DBus: don't load settings
Alberto Mardegan [Tue, 5 Oct 2010 08:26:43 +0000 (11:26 +0300)]
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.

7 years agochangelog correction harmattan/0.54-1
smita [Wed, 29 Sep 2010 08:25:10 +0000 (11:25 +0300)]
changelog correction

7 years agoVersion 0.54
smita [Wed, 29 Sep 2010 07:41:46 +0000 (10:41 +0300)]
Version 0.54

7 years agoFix bug: 189503
smita [Tue, 28 Sep 2010 13:02:12 +0000 (16:02 +0300)]
Fix bug: 189503

7 years agoVersion 0.54
smita [Wed, 29 Sep 2010 07:40:16 +0000 (10:40 +0300)]
Version 0.54

7 years agoFix bug: 189503
smita [Tue, 28 Sep 2010 13:02:12 +0000 (16:02 +0300)]
Fix bug: 189503

7 years agoVersion 0.53 harmattan/0.53
smita [Wed, 22 Sep 2010 09:01:40 +0000 (12:01 +0300)]
Version 0.53

7 years agoFixing bug 192786
smita [Wed, 22 Sep 2010 08:51:25 +0000 (11:51 +0300)]
Fixing bug 192786

7 years agoVersion 0.52
smita [Wed, 22 Sep 2010 08:57:58 +0000 (11:57 +0300)]
Version 0.52

7 years agoFixing bug 192786
smita [Wed, 22 Sep 2010 08:51:25 +0000 (11:51 +0300)]
Fixing bug 192786

7 years agoVersion 0.52-1 harmattan/0.52-1
Alberto Mardegan [Tue, 31 Aug 2010 11:28:59 +0000 (14:28 +0300)]
Version 0.52-1

Merge error-handling branch.

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Tue, 31 Aug 2010 11:27:49 +0000 (14:27 +0300)]
Merge branch 'master' into harmattan

7 years agoIf the client wants to, we can abort on timeout. 0.52
Alberto Mardegan [Mon, 30 Aug 2010 12:25:50 +0000 (15:25 +0300)]
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.

7 years agoTest case for ag_manager_load_account()
Alberto Mardegan [Mon, 30 Aug 2010 09:20:19 +0000 (12:20 +0300)]
Test case for ag_manager_load_account()

Extend an existing test case.

7 years agoIntroeduce new error code: AG_ERROR_ACCOUNT_NOT_FOUND
Alberto Mardegan [Mon, 30 Aug 2010 09:19:27 +0000 (12:19 +0300)]
Introeduce new error code: AG_ERROR_ACCOUNT_NOT_FOUND

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

7 years agoAdd internal function _ag_manager_get_last_error()
Alberto Mardegan [Mon, 30 Aug 2010 09:18:48 +0000 (12:18 +0300)]
Add internal function _ag_manager_get_last_error()

7 years agoAdd ag_manager_load_account(), which carries GError
Alberto Mardegan [Fri, 27 Aug 2010 11:18:30 +0000 (14:18 +0300)]
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.

7 years agoStore the last error for failed query
Alberto Mardegan [Fri, 27 Aug 2010 08:17:33 +0000 (11:17 +0300)]
Store the last error for failed query

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

7 years agoAdd internal function to set the last error.
Alberto Mardegan [Fri, 27 Aug 2010 07:41:13 +0000 (10:41 +0300)]
Add internal function to set the last error.

7 years agoversion 0.52 in changelog
Alexander Akimov [Tue, 31 Aug 2010 11:03:36 +0000 (14:03 +0300)]
version 0.52 in changelog

7 years agoMerge branch 'master' into harmattan
Alexander Akimov [Tue, 31 Aug 2010 11:01:46 +0000 (14:01 +0300)]
Merge branch 'master' into harmattan

7 years agoversion 0.52
Alexander Akimov [Tue, 31 Aug 2010 11:01:33 +0000 (14:01 +0300)]
version 0.52

7 years agoMerge branch 'master' into harmattan
Alexander Akimov [Tue, 31 Aug 2010 11:00:01 +0000 (14:00 +0300)]
Merge branch 'master' into harmattan

7 years agoCode optimization:
Alexander Akimov [Tue, 31 Aug 2010 10:58:35 +0000 (13:58 +0300)]
Code optimization:

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

7 years agoAnother part of the fix for "enabledServices" bug
Alexander Akimov [Tue, 31 Aug 2010 10:15:39 +0000 (13:15 +0300)]
Another part of the fix for "enabledServices" bug

7 years agoMerge branch 'master' of gitorious.org:accounts-sso/accounts-glib
Alexander Akimov [Mon, 30 Aug 2010 09:52:41 +0000 (12:52 +0300)]
Merge branch 'master' of gitorious.org:accounts-sso/accounts-glib

7 years agoVersion 0.51-1 harmattan/0.51-1
smita [Fri, 27 Aug 2010 12:31:45 +0000 (15:31 +0300)]
Version 0.51-1

7 years agoFreeing the memory
smita [Fri, 27 Aug 2010 09:09:43 +0000 (12:09 +0300)]
Freeing the memory

7 years agoFetchin translation catalog from the service xml files
smita [Fri, 27 Aug 2010 08:59:40 +0000 (11:59 +0300)]
Fetchin translation catalog from the service xml files

7 years agoVersion 0.51
smita [Fri, 27 Aug 2010 12:13:40 +0000 (15:13 +0300)]
Version 0.51

7 years agoMerge branch 'master' of gitorious.org:accounts-sso/accounts-glib
smita [Fri, 27 Aug 2010 12:12:31 +0000 (15:12 +0300)]
Merge branch 'master' of gitorious.org:accounts-sso/accounts-glib

7 years agoFreeing the memory
smita [Fri, 27 Aug 2010 09:09:43 +0000 (12:09 +0300)]
Freeing the memory

7 years agoFetchin translation catalog from the service xml files
smita [Fri, 27 Aug 2010 08:59:40 +0000 (11:59 +0300)]
Fetchin translation catalog from the service xml files

7 years agoVersion 0.50-1 harmattan/0.50-1
Alberto Mardegan [Fri, 27 Aug 2010 06:03:21 +0000 (09:03 +0300)]
Version 0.50-1

7 years agoVersion 0.50 0.50
Alberto Mardegan [Fri, 27 Aug 2010 06:01:40 +0000 (09:01 +0300)]
Version 0.50

Alex, you forgot to increase the version number!

7 years agoVersion 0.49
Alberto Mardegan [Fri, 27 Aug 2010 05:59:31 +0000 (08:59 +0300)]
Version 0.49

7 years agoAccess the SQLite DB in synchronous mode
Alberto Mardegan [Fri, 27 Aug 2010 05:53:52 +0000 (08:53 +0300)]
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.

7 years agoversion 0.49 harmattan/0.49-1
Alexander Akimov [Wed, 25 Aug 2010 10:56:34 +0000 (13:56 +0300)]
version 0.49

7 years agoMerge branch 'master' into harmattan
Alexander Akimov [Wed, 25 Aug 2010 10:54:18 +0000 (13:54 +0300)]
Merge branch 'master' into harmattan

7 years agocode style fix alak_enabledService 0.49
Alexander Akimov [Wed, 25 Aug 2010 10:52:36 +0000 (13:52 +0300)]
code style fix

7 years agoFix for NB#187346 (enabledService works wrong)
Alexander Akimov [Wed, 25 Aug 2010 09:13:07 +0000 (12:13 +0300)]
Fix for NB#187346 (enabledService works wrong)

7 years agoVersion 0.48-1 harmattan/0.48-1
Alberto Mardegan [Fri, 20 Aug 2010 10:22:52 +0000 (13:22 +0300)]
Version 0.48-1

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Fri, 20 Aug 2010 10:21:45 +0000 (13:21 +0300)]
Merge branch 'master' into harmattan

Conflicts:

configure.ac

7 years agoVersion 0.48 0.48
Alberto Mardegan [Fri, 20 Aug 2010 10:20:58 +0000 (13:20 +0300)]
Version 0.48

7 years agoFix parsing of XML provider files doctype
Alberto Mardegan [Fri, 20 Aug 2010 10:10:36 +0000 (13:10 +0300)]
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.

7 years agoVersion 0.47-1 harmattan/0.47-1
Smita Srivastava [Wed, 18 Aug 2010 06:54:37 +0000 (09:54 +0300)]
Version 0.47-1

7 years agofinal glib changes to fetch catalog from xml
Smita Srivastava [Tue, 17 Aug 2010 11:38:50 +0000 (14:38 +0300)]
final glib changes to fetch catalog from xml

7 years agoVersion 0.47
Smita Srivastava [Tue, 17 Aug 2010 13:22:32 +0000 (16:22 +0300)]
Version 0.47

7 years agofinal glib changes to fetch catalog from xml
Smita Srivastava [Tue, 17 Aug 2010 11:38:50 +0000 (14:38 +0300)]
final glib changes to fetch catalog from xml

7 years agoVersion 0.46-2 harmattan/0.46-2
Alberto Mardegan [Thu, 5 Aug 2010 13:32:04 +0000 (16:32 +0300)]
Version 0.46-2

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Thu, 5 Aug 2010 13:31:20 +0000 (16:31 +0300)]
Merge branch 'master' into harmattan

7 years agoAdded environment variable for test script
Alberto Mardegan [Thu, 5 Aug 2010 13:30:56 +0000 (16:30 +0300)]
Added environment variable for test script

7 years agoVersion 0.46-1 harmattan/0.46-1
Alberto Mardegan [Tue, 3 Aug 2010 07:49:37 +0000 (10:49 +0300)]
Version 0.46-1

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Tue, 3 Aug 2010 07:48:47 +0000 (10:48 +0300)]
Merge branch 'master' into harmattan

7 years agoVersion 0.46 0.46
Alberto Mardegan [Tue, 3 Aug 2010 07:48:25 +0000 (10:48 +0300)]
Version 0.46

7 years agoMove up the check for duplicate signals
Alberto Mardegan [Tue, 3 Aug 2010 06:47:17 +0000 (09:47 +0300)]
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.

7 years agoPrint the AgManager instance in debug statement
Alberto Mardegan [Tue, 3 Aug 2010 06:45:58 +0000 (09:45 +0300)]
Print the AgManager instance in debug statement

7 years agoVersion 0.45-1 harmattan/0.45-1
Alberto Mardegan [Mon, 2 Aug 2010 07:08:52 +0000 (10:08 +0300)]
Version 0.45-1

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Mon, 2 Aug 2010 07:04:52 +0000 (10:04 +0300)]
Merge branch 'master' into harmattan

7 years agoVersion 0.45 0.45
Alberto Mardegan [Mon, 2 Aug 2010 07:04:31 +0000 (10:04 +0300)]
Version 0.45

7 years agoVersion 0.44-2 harmattan/0.44-2
Alberto Mardegan [Fri, 30 Jul 2010 13:22:26 +0000 (16:22 +0300)]
Version 0.44-2

7 years agoDon't process signals coming from different object paths
Alberto Mardegan [Fri, 30 Jul 2010 11:58:08 +0000 (14:58 +0300)]
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.

7 years agoRewrite registering of D-Bus matches
Alberto Mardegan [Fri, 30 Jul 2010 11:49:10 +0000 (14:49 +0300)]
Rewrite registering of D-Bus matches

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

7 years agoDon't emit the "updated" signal along with "created" or "deleted"
Alberto Mardegan [Fri, 30 Jul 2010 11:30:30 +0000 (14:30 +0300)]
Don't emit the "updated" signal along with "created" or "deleted"

7 years agoVersion 0.44-1 harmattan/0.44-1
Alberto Mardegan [Tue, 27 Jul 2010 06:54:51 +0000 (09:54 +0300)]
Version 0.44-1

7 years agoMerge branch 'master' into harmattan
Alberto Mardegan [Tue, 27 Jul 2010 06:53:33 +0000 (09:53 +0300)]
Merge branch 'master' into harmattan

7 years agoVersion 0.44 0.44
Alberto Mardegan [Tue, 27 Jul 2010 06:53:13 +0000 (09:53 +0300)]
Version 0.44

7 years agoDo not process D-Bus signals twice
Alberto Mardegan [Mon, 26 Jul 2010 15:41:50 +0000 (18:41 +0300)]
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.

7 years agoUse different DBus object paths for each service type
Alberto Mardegan [Mon, 26 Jul 2010 15:37:19 +0000 (18:37 +0300)]
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.

7 years agoAdd _ag_dbus_escape_as_identifier()
Alberto Mardegan [Mon, 26 Jul 2010 15:31:07 +0000 (18:31 +0300)]
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.

7 years agoAdd _ag_account_changes_get_service_types()
Alberto Mardegan [Mon, 26 Jul 2010 15:30:05 +0000 (18:30 +0300)]
Add _ag_account_changes_get_service_types()

Lists the service types contained in the AgAccountChanges structure.

8 years agoDon't force replacing of existing files.
Alberto Mardegan [Fri, 23 Jul 2010 13:30:34 +0000 (16:30 +0300)]
Don't force replacing of existing files.

8 years agoMerge branch 'bugFix' into harmattan
Radek Zielonka [Fri, 23 Jul 2010 10:27:03 +0000 (13:27 +0300)]
Merge branch 'bugFix' into harmattan

8 years agoFixes: NB#180967
Radek Zielonka [Thu, 22 Jul 2010 11:15:16 +0000 (14:15 +0300)]
Fixes: NB#180967

.service file matching regexp is too permissive