* Rename Emailable -> EmailDetails
* Rename Favouritable -> FavouriteDetails
* Rename GenderOwner -> GenderDetails
+* Rename Groupable -> GroupDetails
Overview of changes from libfolks 0.3.5 to libfolks 0.3.6
=========================================================
if (this._personas.size () > 0)
{
- /* FIXME: Groupable.ChangeReason is not the right enum to use
- * here */
+ /* FIXME: GroupDetails.ChangeReason is not the right enum to
+ * use here */
this.personas_changed (this._personas.get_values (), null,
- null, null, Groupable.ChangeReason.NONE);
+ null, null, GroupDetails.ChangeReason.NONE);
}
this._is_prepared = true;
this._personas.insert (persona.iid, persona);
persona.im_addresses = im_addresses;
- /* FIXME: Groupable.ChangeReason is not the right enum to use here */
+ /* FIXME: GroupDetails.ChangeReason is not the right enum to use here */
GLib.List<Persona> personas = new GLib.List<Persona> ();
personas.prepend (persona);
this.personas_changed (personas, null, null, null,
- Groupable.ChangeReason.NONE);
+ GroupDetails.ChangeReason.NONE);
return persona;
}
if (actor_handle > 0 && valid)
actor = this._handle_persona_map[actor_handle];
- Groupable.ChangeReason reason = Groupable.ChangeReason.NONE;
+ GroupDetails.ChangeReason reason = GroupDetails.ChangeReason.NONE;
var tp_reason = TelepathyGLib.asv_get_uint32 (details, "change-reason",
out valid);
if (valid)
this._ignore_by_handle (handle, message, actor, reason);
}
- private static Groupable.ChangeReason _change_reason_from_tp_reason (
+ private static GroupDetails.ChangeReason _change_reason_from_tp_reason (
uint reason)
{
- return (Groupable.ChangeReason) reason;
+ return (GroupDetails.ChangeReason) reason;
}
private void _ignore_by_handle (uint handle, string? message, Persona? actor,
- Groupable.ChangeReason reason)
+ GroupDetails.ChangeReason reason)
{
var persona = this._handle_persona_map[handle];
AliasDetails,
AvatarDetails,
FavouriteDetails,
- Groupable,
+ GroupDetails,
PresenceOwner,
IMable
{
/**
* A mapping of group ID to whether the contact is a member.
*
- * See {@link Folks.Groupable.groups}.
+ * See {@link Folks.GroupDetails.groups}.
*/
public HashTable<string, bool> groups
{
/**
* Add or remove the Persona from the specified group.
*
- * See {@link Folks.Groupable.change_group}.
+ * See {@link Folks.GroupDetails.change_group}.
*/
public async void change_group (string group, bool is_member)
{
favourite-details.vala \
field-details.vala \
gender-details.vala \
- groupable.vala \
+ group-details.vala \
presence-owner.vala \
imable.vala \
individual.vala \
* Interface for {@link Persona}s or {@link Individual}s which can be grouped
* into sets of similar objects.
*/
-public interface Folks.Groupable : Object
+public interface Folks.GroupDetails : Object
{
/**
* The reason a group member has changed its membership in the group.
GLib.List<Individual>? removed,
string? message,
Persona? actor,
- Groupable.ChangeReason reason);
+ GroupDetails.ChangeReason reason);
/* FIXME: make this a singleton? */
/**
GLib.List<Persona>? removed,
string? message,
Persona? actor,
- Groupable.ChangeReason reason)
+ GroupDetails.ChangeReason reason)
{
var added_individuals = new GLib.List<Individual> ();
GLib.List<Individual> removed_individuals = null;
EmailDetails,
FavouriteDetails,
GenderDetails,
- Groupable,
+ GroupDetails,
IMable,
NameOwner,
NoteOwner,
this._groups = value;
this._persona_list.foreach ((p) =>
{
- if (p is Groupable && ((Persona) p).store.is_writeable == true)
- ((Groupable) p).groups = value;
+ if (p is GroupDetails && ((Persona) p).store.is_writeable == true)
+ ((GroupDetails) p).groups = value;
});
}
}
{
this._persona_list.foreach ((p) =>
{
- if (p is Groupable)
- ((Groupable) p).change_group.begin (group, is_member);
+ if (p is GroupDetails)
+ ((GroupDetails) p).change_group.begin (group, is_member);
});
/* don't notify, since it hasn't happened in the persona backing stores
GLib.List<Persona>? removed,
string? message,
Persona? actor,
- Groupable.ChangeReason reason)
+ GroupDetails.ChangeReason reason)
{
GLib.List<Persona> removed_personas = null;
removed.foreach ((data) =>
* groups channel list) */
this._persona_list.foreach ((p) =>
{
- if (p is Groupable)
+ if (p is GroupDetails)
{
- var persona = (Groupable) p;
+ var persona = (GroupDetails) p;
persona.groups.foreach ((k, v) =>
{
persona.notify["postal-addresses"].connect
(this._notify_postal_addresses_cb);
- if (persona is Groupable)
+ if (persona is GroupDetails)
{
- ((Groupable) persona).group_changed.connect (
+ ((GroupDetails) persona).group_changed.connect (
this._persona_group_changed_cb);
}
}
(this._notify_postal_addresses_cb);
- if (persona is Groupable)
+ if (persona is GroupDetails)
{
- ((Groupable) persona).group_changed.disconnect (
+ ((GroupDetails) persona).group_changed.disconnect (
this._persona_group_changed_cb);
}
}
GLib.List<Persona>? removed,
string? message,
Persona? actor,
- Groupable.ChangeReason reason);
+ GroupDetails.ChangeReason reason);
/**
* Emitted when the backing store for this PersonaStore has been removed.
/* Skip the persona if creating them failed or if they don't support
* groups. */
- if (persona == null || !(persona is Groupable))
+ if (persona == null || !(persona is GroupDetails))
continue;
try
{
- Groupable groupable = (Groupable) persona;
- yield groupable.change_group (group_name, true);
+ GroupDetails group_details = (GroupDetails) persona;
+ yield group_details.change_group (group_name, true);
}
catch (GLib.Error e)
{