-/* moonshot-identities-manager.c generated by valac 0.10.4, the Vala compiler
+/* moonshot-identities-manager.c generated by valac 0.16.1, the Vala compiler
* generated from moonshot-identities-manager.vala, do not modify */
#include <glib.h>
#include <glib-object.h>
#include <gee.h>
-#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
typedef struct _IdentityManagerApp IdentityManagerApp;
typedef struct _IdentityManagerAppClass IdentityManagerAppClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _identity_manager_app_unref0(var) ((var == NULL) ? NULL : (var = (identity_manager_app_unref (var), NULL)))
#define TYPE_LOCAL_FLAT_FILE_STORE (local_flat_file_store_get_type ())
#define LOCAL_FLAT_FILE_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LOCAL_FLAT_FILE_STORE, LocalFlatFileStore))
GType identity_manager_model_get_type (void) G_GNUC_CONST;
GType id_card_get_type (void) G_GNUC_CONST;
GType iidentity_card_store_get_type (void) G_GNUC_CONST;
+gpointer identity_manager_app_ref (gpointer instance);
+void identity_manager_app_unref (gpointer instance);
+GParamSpec* param_spec_identity_manager_app (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_identity_manager_app (GValue* value, gpointer v_object);
+void value_take_identity_manager_app (GValue* value, gpointer v_object);
+gpointer value_get_identity_manager_app (const GValue* value);
GType identity_manager_app_get_type (void) G_GNUC_CONST;
#define IDENTITY_MANAGER_MODEL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IDENTITY_MANAGER_MODEL, IdentityManagerModelPrivate))
enum {
static void identity_manager_model_finalize (GObject* obj);
-
GeeLinkedList* identity_manager_model_get_card_list (IdentityManagerModel* self) {
GeeLinkedList* result = NULL;
+ IIdentityCardStore* _tmp0_;
+ GeeLinkedList* _tmp1_ = NULL;
+#line 7 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_val_if_fail (self != NULL, NULL);
- result = iidentity_card_store_get_card_list (self->priv->store);
+#line 8 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp0_ = self->priv->store;
+#line 8 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp1_ = iidentity_card_store_get_card_list (_tmp0_);
+#line 8 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ result = _tmp1_;
+#line 8 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
return result;
+#line 134 "moonshot-identities-manager.c"
}
void identity_manager_model_add_card (IdentityManagerModel* self, IdCard* card) {
+ IIdentityCardStore* _tmp0_;
+ IdCard* _tmp1_;
+#line 12 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_if_fail (self != NULL);
+#line 12 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_if_fail (card != NULL);
- iidentity_card_store_add_card (self->priv->store, card);
+#line 13 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp0_ = self->priv->store;
+#line 13 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp1_ = card;
+#line 13 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ iidentity_card_store_add_card (_tmp0_, _tmp1_);
+#line 14 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_signal_emit_by_name (self, "card-list-changed");
+#line 153 "moonshot-identities-manager.c"
}
void identity_manager_model_update_card (IdentityManagerModel* self, IdCard* card) {
+ IIdentityCardStore* _tmp0_;
+ IdCard* _tmp1_;
+#line 17 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_if_fail (self != NULL);
+#line 17 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_if_fail (card != NULL);
- iidentity_card_store_update_card (self->priv->store, card);
+#line 18 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp0_ = self->priv->store;
+#line 18 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp1_ = card;
+#line 18 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ iidentity_card_store_update_card (_tmp0_, _tmp1_);
+#line 19 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_signal_emit_by_name (self, "card-list-changed");
+#line 172 "moonshot-identities-manager.c"
}
void identity_manager_model_remove_card (IdentityManagerModel* self, IdCard* card) {
+ IIdentityCardStore* _tmp0_;
+ IdCard* _tmp1_;
+#line 22 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_if_fail (self != NULL);
+#line 22 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_if_fail (card != NULL);
- iidentity_card_store_remove_card (self->priv->store, card);
+#line 23 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp0_ = self->priv->store;
+#line 23 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp1_ = card;
+#line 23 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ iidentity_card_store_remove_card (_tmp0_, _tmp1_);
+#line 24 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_signal_emit_by_name (self, "card-list-changed");
+#line 191 "moonshot-identities-manager.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
- return self ? g_object_ref (self) : NULL;
+static gpointer _identity_manager_app_ref0 (gpointer self) {
+#line 30 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ return self ? identity_manager_app_ref (self) : NULL;
+#line 198 "moonshot-identities-manager.c"
}
IdentityManagerModel* identity_manager_model_construct (GType object_type, IdentityManagerApp* parent_app) {
IdentityManagerModel * self = NULL;
IdentityManagerApp* _tmp0_;
- IIdentityCardStore* _tmp1_;
+ IdentityManagerApp* _tmp1_;
+ LocalFlatFileStore* _tmp2_;
+#line 29 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_return_val_if_fail (parent_app != NULL, NULL);
+#line 29 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
self = (IdentityManagerModel*) g_object_new (object_type, NULL);
- self->priv->parent = (_tmp0_ = _g_object_ref0 (parent_app), _g_object_unref0 (self->priv->parent), _tmp0_);
- self->priv->store = (_tmp1_ = (IIdentityCardStore*) local_flat_file_store_new (), _g_object_unref0 (self->priv->store), _tmp1_);
+#line 30 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp0_ = parent_app;
+#line 30 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp1_ = _identity_manager_app_ref0 (_tmp0_);
+#line 30 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _identity_manager_app_unref0 (self->priv->parent);
+#line 30 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ self->priv->parent = _tmp1_;
+#line 31 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _tmp2_ = local_flat_file_store_new ();
+#line 31 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _g_object_unref0 (self->priv->store);
+#line 31 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ self->priv->store = (IIdentityCardStore*) _tmp2_;
+#line 29 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
return self;
+#line 227 "moonshot-identities-manager.c"
}
IdentityManagerModel* identity_manager_model_new (IdentityManagerApp* parent_app) {
+#line 29 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
return identity_manager_model_construct (TYPE_IDENTITY_MANAGER_MODEL, parent_app);
+#line 234 "moonshot-identities-manager.c"
}
static void identity_manager_model_class_init (IdentityManagerModelClass * klass) {
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
identity_manager_model_parent_class = g_type_class_peek_parent (klass);
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_type_class_add_private (klass, sizeof (IdentityManagerModelPrivate));
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
G_OBJECT_CLASS (klass)->finalize = identity_manager_model_finalize;
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
g_signal_new ("card_list_changed", TYPE_IDENTITY_MANAGER_MODEL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 247 "moonshot-identities-manager.c"
}
static void identity_manager_model_instance_init (IdentityManagerModel * self) {
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
self->priv = IDENTITY_MANAGER_MODEL_GET_PRIVATE (self);
+#line 254 "moonshot-identities-manager.c"
}
static void identity_manager_model_finalize (GObject* obj) {
IdentityManagerModel * self;
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
self = IDENTITY_MANAGER_MODEL (obj);
+#line 6 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
_g_object_unref0 (self->priv->store);
- _g_object_unref0 (self->priv->parent);
+#line 27 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
+ _identity_manager_app_unref0 (self->priv->parent);
+#line 3 "/build/slave/packages-full/build/ui/src/moonshot-identities-manager.vala"
G_OBJECT_CLASS (identity_manager_model_parent_class)->finalize (obj);
+#line 268 "moonshot-identities-manager.c"
}
-