LCOV - code coverage report
Current view: top level - src/libvalent/notifications - valent-notification.h (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 1 1
Test Date: 2024-04-23 06:02:46 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 75.0 % 12 9

             Branch data     Line data    Source code
       1                 :             : // SPDX-License-Identifier: GPL-3.0-or-later
       2                 :             : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
       3                 :             : 
       4                 :             : #pragma once
       5                 :             : 
       6                 :             : #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION)
       7                 :             : # error "Only <valent.h> can be included directly."
       8                 :             : #endif
       9                 :             : 
      10                 :             : #include "../core/valent-object.h"
      11                 :             : 
      12                 :             : G_BEGIN_DECLS
      13                 :             : 
      14                 :             : #define VALENT_TYPE_NOTIFICATION (valent_notification_get_type())
      15                 :             : 
      16                 :             : VALENT_AVAILABLE_IN_1_0
      17   [ +  +  +  -  :         177 : G_DECLARE_FINAL_TYPE (ValentNotification, valent_notification, VALENT, NOTIFICATION, GObject)
          +  +  +  +  +  
                -  -  + ]
      18                 :             : 
      19                 :             : VALENT_AVAILABLE_IN_1_0
      20                 :             : ValentNotification    * valent_notification_new                    (const char            *title);
      21                 :             : VALENT_AVAILABLE_IN_1_0
      22                 :             : const char            * valent_notification_get_application        (ValentNotification    *notification);
      23                 :             : VALENT_AVAILABLE_IN_1_0
      24                 :             : void                    valent_notification_set_application        (ValentNotification    *notification,
      25                 :             :                                                                     const char            *application);
      26                 :             : VALENT_AVAILABLE_IN_1_0
      27                 :             : const char            * valent_notification_get_body               (ValentNotification    *notification);
      28                 :             : VALENT_AVAILABLE_IN_1_0
      29                 :             : void                    valent_notification_set_body               (ValentNotification    *notification,
      30                 :             :                                                                     const char            *body);
      31                 :             : VALENT_AVAILABLE_IN_1_0
      32                 :             : GIcon                 * valent_notification_get_icon               (ValentNotification    *notification);
      33                 :             : VALENT_AVAILABLE_IN_1_0
      34                 :             : void                    valent_notification_set_icon               (ValentNotification    *notification,
      35                 :             :                                                                     GIcon                 *icon);
      36                 :             : VALENT_AVAILABLE_IN_1_0
      37                 :             : const char            * valent_notification_get_id                 (ValentNotification    *notification);
      38                 :             : VALENT_AVAILABLE_IN_1_0
      39                 :             : void                    valent_notification_set_id                 (ValentNotification    *notification,
      40                 :             :                                                                     const char            *id);
      41                 :             : VALENT_AVAILABLE_IN_1_0
      42                 :             : GNotificationPriority   valent_notification_get_priority           (ValentNotification    *notification);
      43                 :             : VALENT_AVAILABLE_IN_1_0
      44                 :             : void                    valent_notification_set_priority           (ValentNotification    *notification,
      45                 :             :                                                                     GNotificationPriority  priority);
      46                 :             : VALENT_AVAILABLE_IN_1_0
      47                 :             : int64_t                 valent_notification_get_time               (ValentNotification    *notification);
      48                 :             : VALENT_AVAILABLE_IN_1_0
      49                 :             : void                    valent_notification_set_time               (ValentNotification    *notification,
      50                 :             :                                                                     int64_t                time);
      51                 :             : VALENT_AVAILABLE_IN_1_0
      52                 :             : const char            * valent_notification_get_title              (ValentNotification    *notification);
      53                 :             : VALENT_AVAILABLE_IN_1_0
      54                 :             : void                    valent_notification_set_title              (ValentNotification    *notification,
      55                 :             :                                                                     const char            *title);
      56                 :             : 
      57                 :             : VALENT_AVAILABLE_IN_1_0
      58                 :             : void                    valent_notification_set_action             (ValentNotification    *notification,
      59                 :             :                                                                     const char            *action);
      60                 :             : VALENT_AVAILABLE_IN_1_0
      61                 :             : void                    valent_notification_set_action_and_target  (ValentNotification    *notification,
      62                 :             :                                                                     const char            *action,
      63                 :             :                                                                     GVariant              *target);
      64                 :             : VALENT_AVAILABLE_IN_1_0
      65                 :             : void                    valent_notification_add_button             (ValentNotification    *notification,
      66                 :             :                                                                     const char            *label,
      67                 :             :                                                                     const char            *action);
      68                 :             : VALENT_AVAILABLE_IN_1_0
      69                 :             : void                    valent_notification_add_button_with_target (ValentNotification    *notification,
      70                 :             :                                                                     const char            *label,
      71                 :             :                                                                     const char            *action,
      72                 :             :                                                                     GVariant              *target);
      73                 :             : VALENT_AVAILABLE_IN_1_0
      74                 :             : GVariant              * valent_notification_serialize              (ValentNotification    *notification);
      75                 :             : VALENT_AVAILABLE_IN_1_0
      76                 :             : ValentNotification    * valent_notification_deserialize            (GVariant              *variant);
      77                 :             : VALENT_AVAILABLE_IN_1_0
      78                 :             : unsigned int            valent_notification_hash                   (gconstpointer          notification);
      79                 :             : VALENT_AVAILABLE_IN_1_0
      80                 :             : gboolean                valent_notification_equal                  (gconstpointer          notification1,
      81                 :             :                                                                     gconstpointer          notification2);
      82                 :             : 
      83                 :             : G_END_DECLS
        

Generated by: LCOV version 2.0-1