~ubuntu-branches/ubuntu/quantal/folks/quantal

« back to all changes in this revision

Viewing changes to folks/role-details.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-12 09:48:10 UTC
  • mfrom: (1.6.2)
  • Revision ID: package-import@ubuntu.com-20120912094810-6zlx8889hcovxj7p
Tags: 0.7.4.1-0ubuntu1
* New upstream bugfix release
* debian/control:
  - Bump build-depends on libglib2.0-dev, valac-0.18, libvala-0.18-dev
* debian/libfolks-eds25.symbols:
* debian/libfolks25.symbols:
  - Updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* role-details.c generated by valac 0.17.3, the Vala compiler
 
1
/* role-details.c generated by valac 0.17.6.5-65f99, the Vala compiler
2
2
 * generated from role-details.vala, do not modify */
3
3
 
4
4
/*
128
128
typedef enum  {
129
129
        FOLKS_PROPERTY_ERROR_NOT_WRITEABLE,
130
130
        FOLKS_PROPERTY_ERROR_INVALID_VALUE,
131
 
        FOLKS_PROPERTY_ERROR_UNKNOWN_ERROR
 
131
        FOLKS_PROPERTY_ERROR_UNKNOWN_ERROR,
 
132
        FOLKS_PROPERTY_ERROR_UNAVAILABLE
132
133
} FolksPropertyError;
133
134
#define FOLKS_PROPERTY_ERROR folks_property_error_quark ()
134
135
struct _FolksRoleDetailsIface {
195
196
gconstpointer folks_abstract_field_details_get_value (FolksAbstractFieldDetails* self);
196
197
static guint folks_role_field_details_real_hash (FolksAbstractFieldDetails* base);
197
198
static GObject * folks_role_field_details_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
198
 
static void _folks_role_field_details___lambda2_ (FolksRoleFieldDetails* self, GObject* s, GParamSpec* p);
 
199
static void _folks_role_field_details___lambda37_ (FolksRoleFieldDetails* self, GObject* s, GParamSpec* p);
199
200
const gchar* folks_abstract_field_details_get_id (FolksAbstractFieldDetails* self);
200
201
void folks_abstract_field_details_set_id (FolksAbstractFieldDetails* self, const gchar* value);
201
 
static void __folks_role_field_details___lambda2__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
 
202
static void __folks_role_field_details___lambda37__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
202
203
static void folks_role_field_details_finalize (GObject* obj);
203
204
static void _vala_folks_role_field_details_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
204
205
static void _vala_folks_role_field_details_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
244
245
/**
245
246
   * Whether none of the components is set.
246
247
   *
247
 
   * @return `true` if all the components are the empty string, `false`
 
248
   * @return ``true`` if all the components are the empty string, ``false``
248
249
   * otherwise.
249
250
   *
250
251
   * @since 0.6.7
291
292
   *
292
293
   * @param a a role to compare
293
294
   * @param b another role to compare
294
 
   * @return `true` if the roles are equal, `false` otherwise
 
295
   * @return ``true`` if the roles are equal, ``false`` otherwise
295
296
   */
296
297
gboolean folks_role_equal (FolksRole* a, FolksRole* b) {
297
298
        gboolean result = FALSE;
602
603
 
603
604
 
604
605
/**
605
 
 * This interface represents the role a {@link Persona} and {@link Individual}
606
 
 * have in a given Organisation.
 
606
 * Role a contact has in an organisation.
 
607
 *
 
608
 * This represents the role a {@link Persona} or {@link Individual} has in a
 
609
 * single given organisation, such as a company.
607
610
 *
608
611
 * @since 0.4.0
609
612
 */
670
673
   *
671
674
   * @param value the non-empty {@link Role} of the field
672
675
   * @param parameters initial parameters. See
673
 
   * {@link AbstractFieldDetails.parameters}. A `null` value is equivalent to an
 
676
   * {@link AbstractFieldDetails.parameters}. A ``null`` value is equivalent to an
674
677
   * empty map of parameters.
675
678
   *
676
679
   * @return a new RoleFieldDetails
690
693
        _tmp0_ = value;
691
694
        _tmp1_ = folks_role_is_empty (_tmp0_);
692
695
        if (_tmp1_) {
693
 
                g_warning ("role-details.vala:197: Empty role passed to RoleFieldDetails.");
 
696
                g_warning ("role-details.vala:199: Empty role passed to RoleFieldDetails.");
694
697
        }
695
698
        _tmp2_ = value;
696
699
        _tmp3_ = parameters;
852
855
}
853
856
 
854
857
 
855
 
static void _folks_role_field_details___lambda2_ (FolksRoleFieldDetails* self, GObject* s, GParamSpec* p) {
 
858
static void _folks_role_field_details___lambda37_ (FolksRoleFieldDetails* self, GObject* s, GParamSpec* p) {
856
859
        const gchar* _tmp0_;
857
860
        const gchar* _tmp1_;
858
861
        gconstpointer _tmp2_;
881
884
}
882
885
 
883
886
 
884
 
static void __folks_role_field_details___lambda2__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
885
 
        _folks_role_field_details___lambda2_ (self, _sender, pspec);
 
887
static void __folks_role_field_details___lambda37__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
 
888
        _folks_role_field_details___lambda37_ (self, _sender, pspec);
886
889
}
887
890
 
888
891
 
897
900
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLKS_TYPE_ROLE_FIELD_DETAILS, FolksRoleFieldDetails);
898
901
        _tmp0_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) self);
899
902
        _tmp1_ = _tmp0_;
900
 
        g_signal_connect_object ((GObject*) ((FolksRole*) _tmp1_), "notify::uid", (GCallback) __folks_role_field_details___lambda2__g_object_notify, self, 0);
 
903
        g_signal_connect_object ((GObject*) ((FolksRole*) _tmp1_), "notify::uid", (GCallback) __folks_role_field_details___lambda37__g_object_notify, self, 0);
901
904
        return obj;
902
905
}
903
906
 
1002
1005
        _data_->self = _tmp0_;
1003
1006
        _tmp1_ = roles;
1004
1007
        _tmp2_ = _g_object_ref0 (_tmp1_);
 
1008
        _g_object_unref0 (_data_->roles);
1005
1009
        _data_->roles = _tmp2_;
1006
1010
        folks_role_details_real_change_roles_co (_data_);
1007
1011
}