|  |  |  | Zapojit Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <zpj/zpj.h> struct ZpjSkydriveEntry; struct ZpjSkydriveEntryClass; enum ZpjSkydriveEntryType; GDateTime * zpj_skydrive_entry_get_created_time (ZpjSkydriveEntry *self); const gchar * zpj_skydrive_entry_get_description (ZpjSkydriveEntry *self); const gchar * zpj_skydrive_entry_get_from_id (ZpjSkydriveEntry *self); const gchar * zpj_skydrive_entry_get_from_name (ZpjSkydriveEntry *self); const gchar * zpj_skydrive_entry_get_id (ZpjSkydriveEntry *self); const gchar * zpj_skydrive_entry_get_name (ZpjSkydriveEntry *self); const gchar * zpj_skydrive_entry_get_parent_id (ZpjSkydriveEntry *self); GDateTime * zpj_skydrive_entry_get_updated_time (ZpjSkydriveEntry *self); gboolean zpj_skydrive_entry_is_folder (ZpjSkydriveEntry *self);
"created-time" GDateTime* : Read "description" gchar* : Read "from-id" gchar* : Read "from-name" gchar* : Read "id" gchar* : Read "json" JsonNode* : Write / Construct Only "name" gchar* : Read "parent-id" gchar* : Read "type" ZpjSkydriveEntryType : Read "updated-time" GDateTime* : Read
ZpjSkydriveEntry is an abstract base class for Skydrive file, folder and photo objects.
Subclasses may implement ZpjSkydriveEntryClass.parse_json_node (should chain up to its parent class) to parse data specific to them in the JSON returned by the server.
struct ZpjSkydriveEntry;
The ZpjSkydriveEntry structure contains only private data and should only be accessed using the provided API.
struct ZpjSkydriveEntryClass {
  GObjectClass parent_class;
  void    (*parse_json_node)    (ZpjSkydriveEntry *self, JsonNode *node);
};
Class structure for ZpjSkydriveEntry.
| GObjectClass  | The parent class. | 
| Virtual function that subclasses may implement to parse data specific to them in the JSON returned by the server. Implementations must chain up to their parent classes. | 
typedef enum {
  ZPJ_SKYDRIVE_ENTRY_TYPE_FILE,
  ZPJ_SKYDRIVE_ENTRY_TYPE_FOLDER,
  ZPJ_SKYDRIVE_ENTRY_TYPE_PHOTO,
  ZPJ_SKYDRIVE_ENTRY_TYPE_INVALID
} ZpjSkydriveEntryType;
The types of Skydrive objects.
This enumeration can be expanded at a later date.
GDateTime *         zpj_skydrive_entry_get_created_time (ZpjSkydriveEntry *self);
Gets the time at which self was created. This is the value of the
updated_time member in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | a GDateTime representing the time at which the entry was created. The returned time is owned by the ZpjSkydriveEntry and should not be unreferenced. [transfer none] | 
const gchar *       zpj_skydrive_entry_get_description  (ZpjSkydriveEntry *self);
Gets the description of self. This is the value of the 
description member in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | description of the entry. This string is owned by the ZpjSkydriveEntry and should not be modified or freed. [transfer none] | 
const gchar *       zpj_skydrive_entry_get_from_id      (ZpjSkydriveEntry *self);
Gets the ID of the user who created or uploaded self. This is part
of the 
from object in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | ID of the user who created the entry. This string is by the ZpjSkydriveEntry and should not be modified or freed. [transfer none] | 
const gchar *       zpj_skydrive_entry_get_from_name    (ZpjSkydriveEntry *self);
Gets the name of the user who created or uploaded self. This is
part of the 
from object in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | name of the user who created the entry. This string is by the ZpjSkydriveEntry and should not be modified or freed. [transfer none] | 
const gchar *       zpj_skydrive_entry_get_id           (ZpjSkydriveEntry *self);
Gets the ID of self. This is the value of the 
id member in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | the entry's ID. This string is owned by the ZpjSkydriveEntry and should not be modified or freed. [transfer none] | 
const gchar *       zpj_skydrive_entry_get_name         (ZpjSkydriveEntry *self);
Gets the name of self. This is the value of the 
name member in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | name of the entry. This string is owned by the ZpjSkydriveEntry and should not be modified or freed. [transfer none] | 
const gchar *       zpj_skydrive_entry_get_parent_id    (ZpjSkydriveEntry *self);
Gets the ID of the folder containing self. This is the value of
the 
parent_id member in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | ID of the parent folder. This string is owned by the ZpjSkydriveEntry and should not be modified or freed. [transfer none] | 
GDateTime *         zpj_skydrive_entry_get_updated_time (ZpjSkydriveEntry *self);
Gets the time at which self was last updated. This is the value of
the 
updated_time member in the JSON returned by the server.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | a GDateTime representing the time at which the entry was last updated. The returned time is owned by the ZpjSkydriveEntry and should not be unreferenced. [transfer none] | 
gboolean            zpj_skydrive_entry_is_folder        (ZpjSkydriveEntry *self);
Whether self is a folder.
| 
 | A ZpjSkydriveEntry. | 
| Returns : | TRUEif the entry is a folder. | 
"created-time" property"created-time" GDateTime* : Read
The date and time when the entry was created.
"description" property"description" gchar* : Read
A brief description of this entry.
Default value: NULL
"from-id" property"from-id" gchar* : Read
The ID of the user created this entry.
Default value: NULL
"from-name" property"from-name" gchar* : Read
The name of the user created this entry.
Default value: NULL
"id" property"id" gchar* : Read
Unique identifier corresponding to this entry.
Default value: NULL
"json" property"json" JsonNode* : Write / Construct Only
The JSON node representing this entry.
"parent-id" property"parent-id" gchar* : Read
Unique identifier corresponding to the parent entry.
Default value: NULL
"type" property"type" ZpjSkydriveEntryType : Read
Indicates whether this entry is a file or a entry.
Default value: ZPJ_SKYDRIVE_ENTRY_TYPE_INVALID
"updated-time" property"updated-time" GDateTime* : Read
The date and time when the entry was last updated.