platform/upstream/folks.git
14 years agoNote about a Vala bug when chaining constructors which affects us
Philip Withnall [Wed, 23 Jun 2010 10:50:05 +0000 (11:50 +0100)]
Note about a Vala bug when chaining constructors which affects us

14 years agoMake BackendStore.load_backends() async
Philip Withnall [Wed, 23 Jun 2010 10:04:55 +0000 (11:04 +0100)]
Make BackendStore.load_backends() async

It does I/O, so should be async so that it doesn't block. Consequently, it's
no longer guaranteed that all backends/personas/individuals are loaded by the
time IndividualAggegator's constructor returns.

14 years agoHave each Individual use the presence message for one of its most-online personas...
Travis Reitter [Tue, 22 Jun 2010 19:05:55 +0000 (12:05 -0700)]
Have each Individual use the presence message for one of its most-online personas rather than the first message found.

14 years agoCut idea for unncessary signal.
Travis Reitter [Tue, 22 Jun 2010 18:54:59 +0000 (11:54 -0700)]
Cut idea for unncessary signal.

14 years agoMerge remote branch 'pwith/fixes'
Travis Reitter [Tue, 22 Jun 2010 17:37:56 +0000 (10:37 -0700)]
Merge remote branch 'pwith/fixes'

14 years agogcc warning fixes in tp-lowlevel.[ch]
Philip Withnall [Tue, 22 Jun 2010 15:14:05 +0000 (16:14 +0100)]
gcc warning fixes in tp-lowlevel.[ch]

14 years agoEnsure the individual is removed if all its persona list property is emptied
Philip Withnall [Tue, 22 Jun 2010 12:28:48 +0000 (13:28 +0100)]
Ensure the individual is removed if all its persona list property is emptied

This was already the case when existing personas were removed from the
individual due to their source going away. This commit fixes it for when the
persona list property is changed directly.

14 years agoUse a persona's UID as an individual's alias if no personas have an alias
Philip Withnall [Tue, 22 Jun 2010 11:37:11 +0000 (12:37 +0100)]
Use a persona's UID as an individual's alias if no personas have an alias

14 years agoMake Individual.get_presence_message() return an unowned string
Philip Withnall [Tue, 22 Jun 2010 11:28:03 +0000 (12:28 +0100)]
Make Individual.get_presence_message() return an unowned string

This prevents a completely unnecessary string copy.

14 years agoRemove system m4 macros from the m4 directory
Philip Withnall [Tue, 22 Jun 2010 10:42:51 +0000 (11:42 +0100)]
Remove system m4 macros from the m4 directory

Add them to a .gitignore file instead.

14 years agoAdd some comments to the code
Philip Withnall [Tue, 22 Jun 2010 10:39:31 +0000 (11:39 +0100)]
Add some comments to the code

14 years agoRelocate folks_tp_lowlevel_connection_open_contact_list_channel_finish() next to...
Travis Reitter [Thu, 17 Jun 2010 22:21:22 +0000 (15:21 -0700)]
Relocate folks_tp_lowlevel_connection_open_contact_list_channel_finish() next to its _async() function

14 years agoUse a hash table for tracking new incoming TpfPersonas and only add them if they...
Travis Reitter [Thu, 17 Jun 2010 00:16:21 +0000 (17:16 -0700)]
Use a hash table for tracking new incoming TpfPersonas and only add them if they're new.

14 years agoClean up Telepathy PersonaStore removal and addition. This fixes a regression where...
Travis Reitter [Sun, 13 Jun 2010 00:55:21 +0000 (17:55 -0700)]
Clean up Telepathy PersonaStore removal and addition. This fixes a regression where a Telepathy persona store wouldn't emit 'removed' even if its account were disabled

14 years agoUse consistent naming and signatures for the Tpf.Persona property-notification-passin...
Travis Reitter [Fri, 11 Jun 2010 23:04:23 +0000 (16:04 -0700)]
Use consistent naming and signatures for the Tpf.Persona property-notification-passing helper functions.

14 years agoGeneralize overly-specific 'using' statement
Travis Reitter [Fri, 11 Jun 2010 23:00:58 +0000 (16:00 -0700)]
Generalize overly-specific 'using' statement

14 years agoTrivial clean-up.
Travis Reitter [Fri, 11 Jun 2010 22:59:01 +0000 (15:59 -0700)]
Trivial clean-up.

14 years agoSupport avatars (generally, and for the Telepathy backend)
Travis Reitter [Fri, 11 Jun 2010 20:24:00 +0000 (13:24 -0700)]
Support avatars (generally, and for the Telepathy backend)

14 years agoFix the location of libfolks-telepathy in its -uninstalled pkgconfig file.
Travis Reitter [Thu, 10 Jun 2010 14:20:43 +0000 (07:20 -0700)]
Fix the location of libfolks-telepathy in its -uninstalled pkgconfig file.

14 years agoBump the version number for the major changes of the last few commits.
Travis Reitter [Thu, 3 Jun 2010 19:48:58 +0000 (12:48 -0700)]
Bump the version number for the major changes of the last few commits.

14 years agoAdd .deps files for the public libraries.
Travis Reitter [Thu, 3 Jun 2010 19:42:19 +0000 (12:42 -0700)]
Add .deps files for the public libraries.

14 years agoRename the folks-telepathy files, since they're in a different namespace than the...
Travis Reitter [Thu, 3 Jun 2010 18:18:16 +0000 (11:18 -0700)]
Rename the folks-telepathy files, since they're in a different namespace than the folks-backend-telepathy files

14 years agoAdd proper namespaces to the Telepathy backend and support libraries
Travis Reitter [Thu, 3 Jun 2010 18:09:16 +0000 (11:09 -0700)]
Add proper namespaces to the Telepathy backend and support libraries

14 years agoRename liblowlevel to libtp-lowlevel for clarity
Travis Reitter [Thu, 3 Jun 2010 16:20:46 +0000 (09:20 -0700)]
Rename liblowlevel to libtp-lowlevel for clarity

14 years agoSplit the telepathy backend into a support library and a thin backend
Travis Reitter [Thu, 3 Jun 2010 15:47:44 +0000 (08:47 -0700)]
Split the telepathy backend into a support library and a thin backend
wrapper (so applications can use the support library without linking against the
backend)

14 years agoFactor out the Telepathy backend into a separate, loadable module.
Travis Reitter [Wed, 2 Jun 2010 23:48:48 +0000 (16:48 -0700)]
Factor out the Telepathy backend into a separate, loadable module.

14 years agoAdd tp-glib Vala bindings dependency to the .pc file and add a -uninstalled.pc file
Travis Reitter [Mon, 31 May 2010 22:14:09 +0000 (15:14 -0700)]
Add tp-glib Vala bindings dependency to the .pc file and add a -uninstalled.pc file

14 years agoSupport writing contact group changes back to Telepathy accounts.
Travis Reitter [Thu, 27 May 2010 18:30:54 +0000 (11:30 -0700)]
Support writing contact group changes back to Telepathy accounts.

14 years agoDon't try to process accounts which are currently being disconnected.
Travis Reitter [Wed, 26 May 2010 16:51:41 +0000 (09:51 -0700)]
Don't try to process accounts which are currently being disconnected.

14 years agoSet a proper internal ID for TpPersonas and throw an error if its basis TpContact...
Travis Reitter [Wed, 26 May 2010 16:47:26 +0000 (09:47 -0700)]
Set a proper internal ID for TpPersonas and throw an error if its basis TpContact has an invalid UID.

14 years agoAdd group notification/read support for Telepathy personas
Travis Reitter [Mon, 24 May 2010 23:57:20 +0000 (16:57 -0700)]
Add group notification/read support for Telepathy personas

14 years agoAvoid extraneous property notifications.
Travis Reitter [Tue, 18 May 2010 23:23:10 +0000 (16:23 -0700)]
Avoid extraneous property notifications.

14 years agoCut out debugging default value.
Travis Reitter [Wed, 19 May 2010 23:29:29 +0000 (16:29 -0700)]
Cut out debugging default value.

14 years agoForward along TpPersona presence changes through their parent Individual.
Travis Reitter [Tue, 18 May 2010 18:19:48 +0000 (11:19 -0700)]
Forward along TpPersona presence changes through their parent Individual.

14 years agoCut outdated comment.
Travis Reitter [Mon, 17 May 2010 23:02:38 +0000 (16:02 -0700)]
Cut outdated comment.

14 years agoSupport account deletion
Travis Reitter [Mon, 17 May 2010 17:20:55 +0000 (10:20 -0700)]
Support account deletion

14 years agoCut outdated comments
Travis Reitter [Fri, 14 May 2010 20:20:18 +0000 (13:20 -0700)]
Cut outdated comments

14 years agoActually add the presence source.
Travis Reitter [Fri, 14 May 2010 19:32:44 +0000 (12:32 -0700)]
Actually add the presence source.

14 years agoUpdate for the more accurate signature for Tp.Account.status_changed.
Travis Reitter [Thu, 13 May 2010 02:50:00 +0000 (19:50 -0700)]
Update for the more accurate signature for Tp.Account.status_changed.

14 years agoAdd stub Presence interface.
Travis Reitter [Thu, 13 May 2010 00:02:44 +0000 (17:02 -0700)]
Add stub Presence interface.

14 years agoAdd a stub for the Capabilities interface.
Travis Reitter [Wed, 12 May 2010 20:47:10 +0000 (13:47 -0700)]
Add a stub for the Capabilities interface.

14 years agoFix the way we prepare Telepathy accounts and connections (including automatically...
Travis Reitter [Wed, 12 May 2010 20:42:17 +0000 (13:42 -0700)]
Fix the way we prepare Telepathy accounts and connections (including automatically handling ones that were already open)

14 years agoUpdate for symbol changes in the latest tp-glib bindings.
Travis Reitter [Mon, 10 May 2010 20:20:08 +0000 (13:20 -0700)]
Update for symbol changes in the latest tp-glib bindings.

14 years agoSplit PersonaStore into an abstract class and the TpPersonaStore derived class.
Travis Reitter [Fri, 23 Apr 2010 01:40:35 +0000 (18:40 -0700)]
Split PersonaStore into an abstract class and the TpPersonaStore derived class.

14 years agoRename from libtelepathy-people to libfolks.
Travis Reitter [Thu, 22 Apr 2010 23:47:45 +0000 (16:47 -0700)]
Rename from libtelepathy-people to libfolks.

14 years agoStrip off the extraneous 'tpp-' prefix to the lowlevel files.
Travis Reitter [Thu, 22 Apr 2010 22:35:16 +0000 (15:35 -0700)]
Strip off the extraneous 'tpp-' prefix to the lowlevel files.

14 years agoOrganize classes in the following sections in order:
Travis Reitter [Thu, 22 Apr 2010 19:39:32 +0000 (12:39 -0700)]
Organize classes in the following sections in order:

  * private (enum, class, signal, plain data, property)
  * public (interface members, signal, properties), one block per interface
  * public (enum, signal, plain data, property)
  * constructor
  * constructor's dependent functions, in order of reference
  * destructor
  * destructor's dependent functions
  * public functions, followed by their dependent functions in order of ref

14 years agoAdditional style changes.
Travis Reitter [Thu, 22 Apr 2010 18:33:47 +0000 (11:33 -0700)]
Additional style changes.

  * use 'var' instead of an explicit type whenever possible. It's still
    type-safe yet reduces these types of redundancy (which would be common):

        Foo foo = new Foo ();
        Foo<Bar>[] foo_bar_array = new Foo<Bar>[size];

        ------------------->

        var foo = new Foo ();
        var foo_bar_array = new Foo<Bar>[size];

  * declare variables as closely to their first use as possible. This is to make
    all the relevant code as tight as possible, to minimize scrolling of all
    types. Exceptions include: class data members, blocks of code where there
    would be more than two variable definitions in a row; in this case, add a
    blank line between the last definition and the next line of code (to avoid
    making the code unreadably-dense); Eg, do this:

    {
      var manager = AccountManager.dup ();
      unowned GLib.List<Account> accounts = manager.get_valid_accounts ();
      this.stores = new HashMap<string, PersonaStore> ();

      foreach (Account account in accounts)
        {
          var store = new PersonaStore (account);
          this.stores.set (account.get_object_path (account), store);
        }
      ...
    }

14 years agoSwitch the Vala source to Telepathy style, with minor clarifications:
Travis Reitter [Thu, 22 Apr 2010 17:57:05 +0000 (10:57 -0700)]
Switch the Vala source to Telepathy style, with minor clarifications:

  * properties that use the default get() and set() functions should be on a
    single line. Eg,

        public string alias { get; set; default = "(No one of consequence)"; }

  * custom one-line get() and set() functions should be on a single line. Eg,

        get { return this._personas; }

  * lambda blocks should be formatted as if they were regular blocks (with the {
    indented once on the next line, another indent for the block content,
    outdent once for the ending }). Any arguments following the lambda
    definition in a function call should be continued on the next line (this
    hasn't come up yet). Eg,

        this._personas.foreach ((persona) =>
          {
            Persona p = (Persona) persona;

            if (alias == null)
              {
                alias = p.alias;
              }
          });

14 years agoChange the namespace of the telepathy-people code to Tpp, to avoid ambiguity with...
Travis Reitter [Thu, 22 Apr 2010 05:05:41 +0000 (22:05 -0700)]
Change the namespace of the telepathy-people code to Tpp, to avoid ambiguity with telepathy-glib and its Vala bindings.

14 years agoCreate Individuals from new Personas and notify of their creation.
Travis Reitter [Wed, 21 Apr 2010 23:57:42 +0000 (16:57 -0700)]
Create Individuals from new Personas and notify of their creation.

14 years agoChange the personas_added type to a GLib.List from an array. This way we can consiste...
Travis Reitter [Wed, 21 Apr 2010 17:21:24 +0000 (10:21 -0700)]
Change the personas_added type to a GLib.List from an array. This way we can consistently use GLists in the C API (since they're more conventional).

14 years agoAdd the Alias interface
Travis Reitter [Wed, 21 Apr 2010 16:26:22 +0000 (09:26 -0700)]
Add the Alias interface

14 years agoReduce the noise of our debug output.
Travis Reitter [Tue, 20 Apr 2010 22:39:25 +0000 (15:39 -0700)]
Reduce the noise of our debug output.

14 years agoSignal the addition of personas to the persona store.
Travis Reitter [Tue, 20 Apr 2010 21:23:08 +0000 (14:23 -0700)]
Signal the addition of personas to the persona store.

14 years agoCreate the abstract class Tp.Persona and the Tp.TpPersona wrapper of TpContacts
Travis Reitter [Tue, 20 Apr 2010 04:54:28 +0000 (21:54 -0700)]
Create the abstract class Tp.Persona and the Tp.TpPersona wrapper of TpContacts

14 years agoRetrieve the TpContacts for the discovered contact handles
Travis Reitter [Tue, 20 Apr 2010 00:12:00 +0000 (17:12 -0700)]
Retrieve the TpContacts for the discovered contact handles

14 years agoMake a trivial comment change
Travis Reitter [Fri, 16 Apr 2010 04:25:26 +0000 (21:25 -0700)]
Make a trivial comment change

14 years agoUse debug statements instead of standard output for the various debug output
Travis Reitter [Fri, 16 Apr 2010 01:42:38 +0000 (18:42 -0700)]
Use debug statements instead of standard output for the various debug output

14 years agoWait until the contact list channel is ready to connect other signal handlers and...
Travis Reitter [Fri, 16 Apr 2010 01:38:46 +0000 (18:38 -0700)]
Wait until the contact list channel is ready to connect other signal handlers and get the initial set of handles

14 years agoMake the build less noisy
Travis Reitter [Thu, 15 Apr 2010 20:48:37 +0000 (13:48 -0700)]
Make the build less noisy

14 years agoCut some junk code and handle some error conditions
Travis Reitter [Thu, 15 Apr 2010 20:56:02 +0000 (13:56 -0700)]
Cut some junk code and handle some error conditions

14 years agoAdd a comment about the brokenness of Tp.Handle
Travis Reitter [Thu, 15 Apr 2010 15:59:18 +0000 (08:59 -0700)]
Add a comment about the brokenness of Tp.Handle

14 years agoMark telepathy-people.vapi as generated (and thus a target for 'make clean')
Travis Reitter [Thu, 15 Apr 2010 15:49:41 +0000 (08:49 -0700)]
Mark telepathy-people.vapi as generated (and thus a target for 'make clean')

14 years agoFetch the handles for the 'subscribe' contact list channel
Travis Reitter [Thu, 15 Apr 2010 20:54:32 +0000 (13:54 -0700)]
Fetch the handles for the 'subscribe' contact list channel

14 years agoCreate a utility class to bind low-level tp-glib code without really exposing it
Travis Reitter [Thu, 15 Apr 2010 20:52:17 +0000 (13:52 -0700)]
Create a utility class to bind low-level tp-glib code without really exposing it

14 years agoCreate persona stores for the valid accounts and prep them
Travis Reitter [Mon, 12 Apr 2010 18:34:32 +0000 (11:34 -0700)]
Create persona stores for the valid accounts and prep them

14 years agoBegin filling in the classes as intended; Fetch the valid accounts and prep them
Travis Reitter [Mon, 12 Apr 2010 15:37:27 +0000 (08:37 -0700)]
Begin filling in the classes as intended; Fetch the valid accounts and prep them

14 years agoBegin building up the library, mainly in terms of build work.
Travis Reitter [Wed, 14 Apr 2010 20:11:20 +0000 (13:11 -0700)]
Begin building up the library, mainly in terms of build work.

14 years agoInitial commit for the telepathy-people library
Travis Reitter [Fri, 2 Apr 2010 21:43:08 +0000 (14:43 -0700)]
Initial commit for the telepathy-people library