LCOV - code coverage report
Current view: top level - shumate - shumate-map-source-registry.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 1 1 100.0 %
Date: 2024-05-11 21:41:31 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 6 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright 2021 Collabora Ltd. (https://collabora.com)
       3                 :            :  * Copyright 2021 Corentin Noël <corentin.noel@collabora.com>
       4                 :            :  * Copyright 2009 Pierre-Luc Beaudoin <pierre-luc@pierlux.com>
       5                 :            :  * Copyright 2010-2013 Jiri Techet <techet@gmail.com>
       6                 :            :  * Copyright 2019 Marcus Lundblad <ml@update.uu.se>
       7                 :            :  *
       8                 :            :  * This library is free software; you can redistribute it and/or
       9                 :            :  * modify it under the terms of the GNU Lesser General Public
      10                 :            :  * License as published by the Free Software Foundation; either
      11                 :            :  * version 2.1 of the License, or (at your option) any later version.
      12                 :            :  *
      13                 :            :  * This library is distributed in the hope that it will be useful,
      14                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      15                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      16                 :            :  * Lesser General Public License for more details.
      17                 :            :  *
      18                 :            :  * You should have received a copy of the GNU Lesser General Public
      19                 :            :  * License along with this library; if not, write to the Free Software
      20                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      21                 :            :  */
      22                 :            : 
      23                 :            : #if !defined (__SHUMATE_SHUMATE_H_INSIDE__) && !defined (SHUMATE_COMPILATION)
      24                 :            : #error "Only <shumate/shumate.h> can be included directly."
      25                 :            : #endif
      26                 :            : 
      27                 :            : #ifndef __SHUMATE_MAP_SOURCE_REGISTRY_H__
      28                 :            : #define __SHUMATE_MAP_SOURCE_REGISTRY_H__
      29                 :            : 
      30                 :            : #include <glib-object.h>
      31                 :            : 
      32                 :            : #include <shumate/shumate-map-source.h>
      33                 :            : 
      34                 :            : G_BEGIN_DECLS
      35                 :            : 
      36                 :            : #define SHUMATE_TYPE_MAP_SOURCE_REGISTRY (shumate_map_source_registry_get_type())
      37                 :            : 
      38   [ +  -  +  -  :         33 : G_DECLARE_FINAL_TYPE (ShumateMapSourceRegistry, shumate_map_source_registry, SHUMATE, MAP_SOURCE_REGISTRY, GObject)
                   -  + ]
      39                 :            : 
      40                 :            : ShumateMapSourceRegistry *shumate_map_source_registry_new (void);
      41                 :            : ShumateMapSourceRegistry *shumate_map_source_registry_new_with_defaults (void);
      42                 :            : void shumate_map_source_registry_populate_defaults (ShumateMapSourceRegistry *self);
      43                 :            : ShumateMapSource *shumate_map_source_registry_get_by_id (ShumateMapSourceRegistry *self,
      44                 :            :                                                          const gchar              *id);
      45                 :            : void shumate_map_source_registry_add (ShumateMapSourceRegistry *self,
      46                 :            :                                       ShumateMapSource         *map_source);
      47                 :            : void shumate_map_source_registry_remove (ShumateMapSourceRegistry *self,
      48                 :            :                                          const gchar              *id);
      49                 :            : 
      50                 :            : /**
      51                 :            :  * SHUMATE_MAP_SOURCE_OSM_MAPNIK:
      52                 :            :  *
      53                 :            :  * OpenStreetMap Mapnik
      54                 :            :  */
      55                 :            : #define SHUMATE_MAP_SOURCE_OSM_MAPNIK "osm-mapnik"
      56                 :            : /**
      57                 :            :  * SHUMATE_MAP_SOURCE_OSM_CYCLE_MAP:
      58                 :            :  *
      59                 :            :  * OpenStreetMap Cycle Map
      60                 :            :  */
      61                 :            : #define SHUMATE_MAP_SOURCE_OSM_CYCLE_MAP "osm-cyclemap"
      62                 :            : /**
      63                 :            :  * SHUMATE_MAP_SOURCE_OSM_TRANSPORT_MAP:
      64                 :            :  *
      65                 :            :  * OpenStreetMap Transport Map
      66                 :            :  */
      67                 :            : #define SHUMATE_MAP_SOURCE_OSM_TRANSPORT_MAP "osm-transportmap"
      68                 :            : /**
      69                 :            :  * SHUMATE_MAP_SOURCE_MFF_RELIEF:
      70                 :            :  *
      71                 :            :  * Maps for Free Relief
      72                 :            :  */
      73                 :            : #define SHUMATE_MAP_SOURCE_MFF_RELIEF "mff-relief"
      74                 :            : /**
      75                 :            :  * SHUMATE_MAP_SOURCE_OWM_CLOUDS:
      76                 :            :  *
      77                 :            :  * OpenWeatherMap clouds layer
      78                 :            :  */
      79                 :            : #define SHUMATE_MAP_SOURCE_OWM_CLOUDS "owm-clouds"
      80                 :            : /**
      81                 :            :  * SHUMATE_MAP_SOURCE_OWM_PRECIPITATION:
      82                 :            :  *
      83                 :            :  * OpenWeatherMap precipitation
      84                 :            :  */
      85                 :            : #define SHUMATE_MAP_SOURCE_OWM_PRECIPITATION "owm-precipitation"
      86                 :            : /**
      87                 :            :  * SHUMATE_MAP_SOURCE_OWM_PRESSURE:
      88                 :            :  *
      89                 :            :  * OpenWeatherMap sea level pressure
      90                 :            :  */
      91                 :            : #define SHUMATE_MAP_SOURCE_OWM_PRESSURE "owm-pressure"
      92                 :            : /**
      93                 :            :  * SHUMATE_MAP_SOURCE_OWM_WIND:
      94                 :            :  *
      95                 :            :  * OpenWeatherMap wind
      96                 :            :  */
      97                 :            : #define SHUMATE_MAP_SOURCE_OWM_WIND "owm-wind"
      98                 :            : /**
      99                 :            :  * SHUMATE_MAP_SOURCE_OWM_TEMPERATURE:
     100                 :            :  *
     101                 :            :  * OpenWeatherMap temperature
     102                 :            :  */
     103                 :            : #define SHUMATE_MAP_SOURCE_OWM_TEMPERATURE "owm-temperature"
     104                 :            : 
     105                 :            : G_END_DECLS
     106                 :            : 
     107                 :            : #endif /* __SHUMATE_MAP_SOURCE_REGISTRY_H__ */

Generated by: LCOV version 1.14