| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* Copyright 2022-2024 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 | #include "msg-drive-item.h" | ||
| 18 | #include "msg-drive-item-folder.h" | ||
| 19 | |||
| 20 | #include "msg-error.h" | ||
| 21 | |||
| 22 | struct _MsgDriveItemFolder { | ||
| 23 | MsgDriveItem parent_instance; | ||
| 24 | }; | ||
| 25 | |||
| 26 |
5/6✓ Branch 0 taken 2 times.
✓ Branch 1 taken 24 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 22 times.
|
28 | G_DEFINE_TYPE (MsgDriveItemFolder, msg_drive_item_folder, MSG_TYPE_DRIVE_ITEM); |
| 27 | |||
| 28 | static void | ||
| 29 | 23 | msg_drive_item_folder_init (__attribute__ ((unused)) MsgDriveItemFolder *self) | |
| 30 | { | ||
| 31 | 23 | } | |
| 32 | |||
| 33 | static void | ||
| 34 | 2 | msg_drive_item_folder_class_init (__attribute__ ((unused)) MsgDriveItemFolderClass *klass) | |
| 35 | { | ||
| 36 | 2 | } | |
| 37 | |||
| 38 | /** | ||
| 39 | * msg_drive_item_folder_new: | ||
| 40 | * | ||
| 41 | * Creates a new `MsgDriveItemFolder`. | ||
| 42 | * | ||
| 43 | * Returns: the newly created `MsgDriveItemFolder` | ||
| 44 | */ | ||
| 45 | MsgDriveItemFolder * | ||
| 46 | 23 | msg_drive_item_folder_new (void) | |
| 47 | { | ||
| 48 | 23 | return g_object_new (MSG_TYPE_DRIVE_ITEM_FOLDER, NULL); | |
| 49 | } | ||
| 50 | |||
| 51 | /** | ||
| 52 | * msg_drive_item_folder_new_from_json: | ||
| 53 | * @object: The json object to parse | ||
| 54 | * @error: a #GError | ||
| 55 | * | ||
| 56 | * Creates a new `MsgDriveItemFolder` from json response object. | ||
| 57 | * | ||
| 58 | * Returns: the newly created `MsgDriveItemFolder` | ||
| 59 | */ | ||
| 60 | MsgDriveItemFolder * | ||
| 61 | 23 | msg_drive_item_folder_new_from_json (__attribute__ ((unused)) JsonObject *object, | |
| 62 | __attribute__ ((unused)) GError **error) | ||
| 63 | { | ||
| 64 | 23 | MsgDriveItemFolder *self = msg_drive_item_folder_new (); | |
| 65 | |||
| 66 | 23 | return self; | |
| 67 | } | ||
| 68 |