MidgardObjectReference

MidgardObjectReference

Synopsis

#include <midgard/midgard.h>

struct              MidgardObjectReference;
struct              MidgardObjectReferenceClass;
MidgardObjectReference * midgard_object_reference_new   (const gchar *id,
                                                         const gchar *name,
                                                         MidgardWorkspace *Workspace);
MidgardWorkspace *  midgard_object_reference_get_workspace
                                                        (MidgardObjectReference *self,
                                                         GError **error);

Object Hierarchy

  GObject
   +----MidgardObjectReference

Implemented Interfaces

MidgardObjectReference implements MidgardModel and MidgardModelReference.

Properties

  "id"                       gchar*                : Read / Write / Construct Only
  "name"                     gchar*                : Read / Write / Construct Only
  "workspace"                MidgardWorkspace*     : Read / Write / Construct Only

Description

Details

struct MidgardObjectReference

struct MidgardObjectReference;


struct MidgardObjectReferenceClass

struct MidgardObjectReferenceClass {
	GObjectClass parent;
};


midgard_object_reference_new ()

MidgardObjectReference * midgard_object_reference_new   (const gchar *id,
                                                         const gchar *name,
                                                         MidgardWorkspace *Workspace);

id :

object's identifier

name :

the name of the reference. [allow-none]

Workspace :

MidgardWorkspace instance. [allow-none]

Returns :

new MidgardObjectReference

Since 12.09


midgard_object_reference_get_workspace ()

MidgardWorkspace *  midgard_object_reference_get_workspace
                                                        (MidgardObjectReference *self,
                                                         GError **error);

self :

MidgardObjectReference instance

error :

pointer to store returned error

Returns :

MidgardWorkspace instance or NULL. [transfer full]

Since 12.09

Property Details

The "id" property

  "id"                       gchar*                : Read / Write / Construct Only

Default value: ""


The "name" property

  "name"                     gchar*                : Read / Write / Construct Only

Default value: ""


The "workspace" property

  "workspace"                MidgardWorkspace*     : Read / Write / Construct Only