accounts-sso:accounts-glib.git
7 years agobugfix: 189503 smita_bugfix
smita [Mon, 27 Sep 2010 09:26:57 +0000 (12:26 +0300)]
bugfix: 189503

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

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
Alexander Akimov [Tue, 31 Aug 2010 11:01:33 +0000 (14:01 +0300)]
version 0.52

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
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 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 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 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
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 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 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 0.45
Alberto Mardegan [Mon, 2 Aug 2010 07:04:31 +0000 (10:04 +0300)]
Version 0.45

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 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.

7 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.

7 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

7 years agoVersion 0.43 0.43
Alberto Mardegan [Wed, 7 Jul 2010 13:03:51 +0000 (16:03 +0300)]
Version 0.43

7 years agoImplementation for update-event feature.
Dmitry Zelenkovsky [Mon, 5 Jul 2010 21:57:01 +0000 (00:57 +0300)]
Implementation for update-event feature.

7 years agoVersion 0.42 0.42
Alberto Mardegan [Mon, 28 Jun 2010 07:57:49 +0000 (10:57 +0300)]
Version 0.42

7 years agoChange SQLite journal mode to truncate
Alberto Mardegan [Mon, 28 Jun 2010 07:55:59 +0000 (10:55 +0300)]
Change SQLite journal mode to truncate

Possibly safer, and shouldn't affect performance.

7 years agoAdd unit tests for AgServiceType functions
Alberto Mardegan [Mon, 21 Jun 2010 12:36:11 +0000 (15:36 +0300)]
Add unit tests for AgServiceType functions

7 years agoAdd AgServiceType
Alberto Mardegan [Mon, 21 Jun 2010 12:34:49 +0000 (15:34 +0300)]
Add AgServiceType

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

7 years agoAdd RPM spec/changes file
Bernd Wachter [Thu, 17 Jun 2010 14:46:17 +0000 (17:46 +0300)]
Add RPM spec/changes file

7 years agoVersion 0.41 0.41
Alberto Mardegan [Wed, 16 Jun 2010 07:02:15 +0000 (10:02 +0300)]
Version 0.41

7 years agoOptimize SQLite DB usage
Alberto Mardegan [Tue, 15 Jun 2010 11:53:32 +0000 (14:53 +0300)]
Optimize SQLite DB usage

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

7 years agoVersion 0.40 0.40
Alberto Mardegan [Tue, 15 Jun 2010 12:02:32 +0000 (15:02 +0300)]
Version 0.40

7 years agoExtend unit tests to catch enabled-event regressions
Alberto Mardegan [Tue, 15 Jun 2010 08:32:33 +0000 (11:32 +0300)]
Extend unit tests to catch enabled-event regressions

7 years agoFix emission of enabled-event
Alberto Mardegan [Tue, 15 Jun 2010 06:44:29 +0000 (09:44 +0300)]
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.

7 years agoVersion 0.39 0.39
Alberto Mardegan [Sun, 13 Jun 2010 11:40:30 +0000 (14:40 +0300)]
Version 0.39

7 years agoUpdate test service files
Alberto Mardegan [Wed, 9 Jun 2010 12:14:52 +0000 (15:14 +0300)]
Update test service files

7 years agoUse "group" element for template groups.
Alberto Mardegan [Wed, 9 Jun 2010 12:11:06 +0000 (15:11 +0300)]
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.

7 years agoSet the document name on the xmlReader
Alberto Mardegan [Wed, 9 Jun 2010 12:01:39 +0000 (15:01 +0300)]
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.

7 years agoVersion 0.38 0.38
Alberto Mardegan [Fri, 4 Jun 2010 11:31:12 +0000 (14:31 +0300)]
Version 0.38

7 years agoReset the COMMIT statement after using it
Alberto Mardegan [Fri, 4 Jun 2010 08:26:43 +0000 (11:26 +0300)]
Reset the COMMIT statement after using it

7 years agoDebug database locks
Alberto Mardegan [Fri, 4 Jun 2010 08:23:44 +0000 (11:23 +0300)]
Debug database locks

7 years agoTake new debug macros into use
Alberto Mardegan [Fri, 4 Jun 2010 08:01:18 +0000 (11:01 +0300)]
Take new debug macros into use

Replace all g_debugs

7 years agoAdd debugging infrastructure
Alberto Mardegan [Fri, 4 Jun 2010 07:23:35 +0000 (10:23 +0300)]
Add debugging infrastructure

7 years agoAdd regression test for latest bugfix
Alberto Mardegan [Fri, 4 Jun 2010 06:17:44 +0000 (09:17 +0300)]
Add regression test for latest bugfix

7 years agoInvert the comparison sign
Alberto Mardegan [Fri, 4 Jun 2010 06:17:12 +0000 (09:17 +0300)]
Invert the comparison sign

Fixes: NB#171233

7 years agoFix memory leak
Alberto Mardegan [Thu, 27 May 2010 11:13:14 +0000 (14:13 +0300)]
Fix memory leak

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

7 years agoVersion 0.37 0.37
Alberto Mardegan [Thu, 20 May 2010 10:46:17 +0000 (13:46 +0300)]
Version 0.37

7 years agoUse the monotonic clock to compute the locking time
Alberto Mardegan [Thu, 20 May 2010 09:00:51 +0000 (12:00 +0300)]
Use the monotonic clock to compute the locking time

7 years agoSet the DB timeout to be configurable
Alberto Mardegan [Thu, 20 May 2010 08:50:05 +0000 (11:50 +0300)]
Set the DB timeout to be configurable

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

7 years agoIncrease DB timeout to 5 seconds
Alberto Mardegan [Thu, 20 May 2010 08:49:35 +0000 (11:49 +0300)]
Increase DB timeout to 5 seconds

7 years agoVersion 0.36 0.36
Alberto Mardegan [Mon, 10 May 2010 10:47:23 +0000 (13:47 +0300)]
Version 0.36

7 years agoCreate tables only if the DB is newly created
Alberto Mardegan [Mon, 10 May 2010 09:01:53 +0000 (12:01 +0300)]
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.

7 years agoAdd backup support for accounts and move database location 0.35
Tomi Suviola [Wed, 5 May 2010 12:09:46 +0000 (15:09 +0300)]
Add backup support for accounts and move database location

7 years agoVersion 0.34 0.34
Alberto Mardegan [Fri, 30 Apr 2010 12:11:03 +0000 (15:11 +0300)]
Version 0.34

7 years agoFix some critical warnings
Alberto Mardegan [Fri, 30 Apr 2010 10:32:56 +0000 (13:32 +0300)]
Fix some critical warnings

7 years agoTurn important g_debug() into g_warning()
Alberto Mardegan [Fri, 30 Apr 2010 08:44:27 +0000 (11:44 +0300)]
Turn important g_debug() into g_warning()

7 years agoDo not hardcode timeouts in the tests
Alberto Mardegan [Fri, 30 Apr 2010 08:04:04 +0000 (11:04 +0300)]
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.

7 years agoDo not giveup initializing DB when locked
Alberto Mardegan [Fri, 30 Apr 2010 07:30:45 +0000 (10:30 +0300)]
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.

7 years agoCreate test case for locked DB on manager instantiation
Alberto Mardegan [Fri, 30 Apr 2010 07:29:45 +0000 (10:29 +0300)]
Create test case for locked DB on manager instantiation

7 years agoRemove compilation warnings
Alberto Mardegan [Fri, 30 Apr 2010 07:13:17 +0000 (10:13 +0300)]
Remove compilation warnings

7 years agoFactor out a function to compute elapsed time
Alberto Mardegan [Fri, 30 Apr 2010 07:11:39 +0000 (10:11 +0300)]
Factor out a function to compute elapsed time

7 years agoFixed memory leak NB#162667 0.33
Tomi Suviola [Fri, 23 Apr 2010 08:52:23 +0000 (11:52 +0300)]
Fixed memory leak NB#162667

7 years agoVersion 0.32 0.32
Radek Zielonka [Thu, 22 Apr 2010 10:04:55 +0000 (13:04 +0300)]
Version 0.32

7 years ago bug fix 164834
Radek Zielonka [Thu, 22 Apr 2010 09:34:20 +0000 (12:34 +0300)]
 bug fix 164834

7 years agoVersion 0.31 0.31
Radek Zielonka [Mon, 19 Apr 2010 09:07:29 +0000 (12:07 +0300)]
Version 0.31

7 years agoenabled-event signal
Radek Zielonka [Mon, 19 Apr 2010 08:51:19 +0000 (11:51 +0300)]
enabled-event signal

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

7 years agoTests for enable-event
Radek Zielonka [Mon, 19 Apr 2010 08:50:16 +0000 (11:50 +0300)]
Tests for enable-event

7 years agoversion update
Alexander Akimov [Fri, 9 Apr 2010 12:24:07 +0000 (15:24 +0300)]
version update

7 years agomemleak
Alexander Akimov [Fri, 9 Apr 2010 11:07:14 +0000 (14:07 +0300)]
memleak

7 years agoFixes: NB#163169 - <MemLeak> leaks in libaccounts-glib-0.28+0m6
Alexander Akimov [Fri, 9 Apr 2010 09:33:58 +0000 (12:33 +0300)]
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

7 years agoFixes: NB#162670 - test crashing in scratchbox
Radek Zielonka [Tue, 6 Apr 2010 12:47:21 +0000 (15:47 +0300)]
Fixes: NB#162670 - test crashing in scratchbox

7 years agoFixed bug 162814
Tomi Suviola [Tue, 6 Apr 2010 12:30:03 +0000 (15:30 +0300)]
Fixed bug 162814

7 years agoVersion 0.28 0.28
Alberto Mardegan [Mon, 8 Mar 2010 13:31:35 +0000 (15:31 +0200)]
Version 0.28

7 years agoAdd missing file for gtk-doc
Alberto Mardegan [Mon, 8 Mar 2010 13:29:39 +0000 (15:29 +0200)]
Add missing file for gtk-doc

Also, update .gitignore

7 years agoVersion 0.27
Alberto Mardegan [Mon, 8 Mar 2010 12:02:36 +0000 (14:02 +0200)]
Version 0.27

7 years agoTests: correct typo (icon/service name)
Alberto Mardegan [Mon, 8 Mar 2010 11:56:46 +0000 (13:56 +0200)]
Tests: correct typo (icon/service name)

7 years agoFixed coverity defects.
Tomi Suviola [Mon, 8 Mar 2010 08:52:12 +0000 (10:52 +0200)]
Fixed coverity defects.

7 years agoInitial push to public repository
Alberto Mardegan [Thu, 4 Mar 2010 13:06:31 +0000 (15:06 +0200)]
Initial push to public repository