2 * Copyright (C) 2011 Collabora Ltd.
3 * Copyright (C) 2011 Philip Withnall
5 * This library is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 2.1 of the License, or
8 * (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 * Marco Barisione <marco.barisione@collabora.co.uk>
20 * Travis Reitter <travis.reitter@collabora.co.uk>
21 * Philip Withnall <philip@tecnocode.co.uk>
27 * The gender of a contact
31 public enum Folks.Gender
34 * The gender of the contact is unknown or the contact didn't specify it.
38 * The contact is male.
42 * The contact is female.
48 * Interface for specifying the gender of a contact.
52 public interface Folks.GenderDetails : Object
55 * The gender of the contact.
59 public abstract Gender gender { get; set; }
62 * Change the contact's gender.
64 * It's preferred to call this rather than setting
65 * {@link GenderDetails.gender} directly, as this method gives error
66 * notification and will only return once the gender has been written to the
67 * relevant backing store (or the operation's failed).
69 * @param gender the contact's gender
70 * @throws PropertyError if setting the gender failed
73 public virtual async void change_gender (Gender gender) throws PropertyError
75 /* Default implementation. */
76 throw new PropertyError.NOT_WRITEABLE (
77 _("Gender is not writeable on this contact."));