| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* Copyright 2022-2023 Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU Lesser General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 3 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU Lesser General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU Lesser General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #if !defined(_MSG_INSIDE) && !defined(MSG_COMPILATION) | ||
| 20 | #error "Only <msg.h> can be included directly." | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #include <glib-object.h> | ||
| 24 | #include <json-glib/json-glib.h> | ||
| 25 | #include <libsoup/soup.h> | ||
| 26 | |||
| 27 | G_BEGIN_DECLS | ||
| 28 | |||
| 29 | #define MSG_TYPE_DRIVE_ITEM (msg_drive_item_get_type ()) | ||
| 30 | |||
| 31 |
2/2✓ Branch 0 taken 16 times.
✓ Branch 1 taken 50 times.
|
238 | G_DECLARE_DERIVABLE_TYPE (MsgDriveItem, msg_drive_item, MSG, DRIVE_ITEM, GObject); |
| 32 | |||
| 33 | struct _MsgDriveItemClass { | ||
| 34 | GObjectClass parent_class; | ||
| 35 | |||
| 36 | gpointer padding[4]; | ||
| 37 | }; | ||
| 38 | |||
| 39 | MsgDriveItem * | ||
| 40 | msg_drive_item_new_from_json (JsonObject *object, | ||
| 41 | GError **error); | ||
| 42 | |||
| 43 | const char * | ||
| 44 | msg_drive_item_get_name (MsgDriveItem *self); | ||
| 45 | |||
| 46 | void | ||
| 47 | msg_drive_item_set_name (MsgDriveItem *self, | ||
| 48 | const char *name); | ||
| 49 | |||
| 50 | const char * | ||
| 51 | msg_drive_item_get_id (MsgDriveItem *self); | ||
| 52 | |||
| 53 | void | ||
| 54 | msg_drive_item_set_id (MsgDriveItem *self, | ||
| 55 | const char *id); | ||
| 56 | |||
| 57 | gint64 | ||
| 58 | msg_drive_item_get_created (MsgDriveItem *self); | ||
| 59 | |||
| 60 | gint64 | ||
| 61 | msg_drive_item_get_modified (MsgDriveItem *self); | ||
| 62 | |||
| 63 | const char * | ||
| 64 | msg_drive_item_get_etag (MsgDriveItem *self); | ||
| 65 | |||
| 66 | const char * | ||
| 67 | msg_drive_item_get_user (MsgDriveItem *self); | ||
| 68 | |||
| 69 | guint64 | ||
| 70 | msg_drive_item_get_size (MsgDriveItem *self); | ||
| 71 | |||
| 72 | const char * | ||
| 73 | msg_drive_item_get_drive_id (MsgDriveItem *self); | ||
| 74 | |||
| 75 | const char * | ||
| 76 | msg_drive_item_get_parent_id (MsgDriveItem *self); | ||
| 77 | |||
| 78 | gboolean | ||
| 79 | msg_drive_item_is_shared (MsgDriveItem *self); | ||
| 80 | |||
| 81 | void | ||
| 82 | msg_drive_item_set_parent_id (MsgDriveItem *self, | ||
| 83 | const char *parent_id); | ||
| 84 | |||
| 85 | const char * | ||
| 86 | msg_drive_item_get_remote_drive_id (MsgDriveItem *self); | ||
| 87 | |||
| 88 | const char * | ||
| 89 | msg_drive_item_get_remote_id (MsgDriveItem *self); | ||
| 90 | |||
| 91 | G_END_DECLS | ||
| 92 |