| 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 | |||
| 26 | #include <drive/msg-drive-item.h> | ||
| 27 | |||
| 28 | G_BEGIN_DECLS | ||
| 29 | |||
| 30 | #define MSG_TYPE_DRIVE_ITEM_FILE (msg_drive_item_file_get_type ()) | ||
| 31 | |||
| 32 |
3/6✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
|
28 | G_DECLARE_FINAL_TYPE (MsgDriveItemFile, msg_drive_item_file, MSG, DRIVE_ITEM_FILE, MsgDriveItem); |
| 33 | |||
| 34 | struct _MsgDriveItemFileClass { | ||
| 35 | MsgDriveItemClass parent_class; | ||
| 36 | |||
| 37 | gpointer padding[4]; | ||
| 38 | }; | ||
| 39 | |||
| 40 | MsgDriveItemFile * | ||
| 41 | msg_drive_item_file_new (void); | ||
| 42 | |||
| 43 | MsgDriveItemFile * | ||
| 44 | msg_drive_item_file_new_from_json (JsonObject *object); | ||
| 45 | |||
| 46 | const char * | ||
| 47 | msg_drive_item_file_get_mime_type (MsgDriveItemFile *self); | ||
| 48 | |||
| 49 | const char * | ||
| 50 | msg_drive_item_file_get_thumbnail_uri (MsgDriveItemFile *self); | ||
| 51 | |||
| 52 | G_END_DECLS | ||
| 53 | |||
| 54 |