GCC Code Coverage Report


Directory: src/
File: src/message/msg-mail-folder.h
Date: 2024-07-13 00:54:47
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 4 4 100.0%
Branches: 1 2 50.0%

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 <gio/gio.h>
25 #include <json-glib/json-glib.h>
26
27 G_BEGIN_DECLS
28
29 #define MSG_TYPE_MAIL_FOLDER (msg_mail_folder_get_type ())
30
31
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
23 G_DECLARE_FINAL_TYPE (MsgMailFolder, msg_mail_folder, MSG, MAIL_FOLDER, GObject);
32
33 MsgMailFolder *
34 msg_mail_folder_new (void);
35
36 MsgMailFolder *
37 msg_mail_folder_new_from_json (JsonObject *json_object,
38 GError **error);
39
40 const char *
41 msg_mail_folder_get_display_name (MsgMailFolder *self);
42
43 int
44 msg_mail_folder_get_unread_item_count (MsgMailFolder *self);
45
46 int
47 msg_mail_folder_get_total_item_count (MsgMailFolder *self);
48
49 G_END_DECLS
50