"Fossies" - the Fresh Open Source Software Archive

Member "evolution-mapi-3.46.1/src/configuration/e-cal-config-mapi.c" (2 Dec 2022, 2342 Bytes) of package /linux/misc/evolution-mapi-3.46.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "e-cal-config-mapi.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * e-cal-config-mapi.c
    3  *
    4  * This program is free software; you can redistribute it and/or
    5  * modify it under the terms of the GNU Lesser General Public
    6  * License as published by the Free Software Foundation; either
    7  * version 2 of the License, or (at your option) version 3.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   12  * Lesser General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU Lesser General Public
   15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
   16  *
   17  */
   18 
   19 #include "evolution-mapi-config.h"
   20 
   21 #include "e-cal-config-mapi.h"
   22 #include "e-mapi-config-utils.h"
   23 
   24 G_DEFINE_DYNAMIC_TYPE (ECalConfigMapi, e_cal_config_mapi, E_TYPE_SOURCE_CONFIG_BACKEND)
   25 
   26 static gboolean
   27 cal_config_mapi_allow_creation (ESourceConfigBackend *backend)
   28 {
   29     return TRUE;
   30 }
   31 
   32 static void
   33 cal_config_mapi_insert_widgets (ESourceConfigBackend *backend,
   34                 ESource *scratch_source)
   35 {
   36     e_mapi_config_utils_insert_widgets (backend, scratch_source);
   37 }
   38 
   39 static gboolean
   40 cal_config_mapi_check_complete (ESourceConfigBackend *backend,
   41                 ESource *scratch_source)
   42 {
   43     return e_mapi_config_utils_check_complete (scratch_source);
   44 }
   45 
   46 static void
   47 e_cal_config_mapi_class_init (ECalConfigMapiClass *class)
   48 {
   49     EExtensionClass *extension_class;
   50     ESourceConfigBackendClass *backend_class;
   51 
   52     extension_class = E_EXTENSION_CLASS (class);
   53     extension_class->extensible_type = E_TYPE_CAL_SOURCE_CONFIG;
   54 
   55     backend_class = E_SOURCE_CONFIG_BACKEND_CLASS (class);
   56     backend_class->backend_name = "mapi";
   57     backend_class->allow_creation = cal_config_mapi_allow_creation;
   58     backend_class->insert_widgets = cal_config_mapi_insert_widgets;
   59     backend_class->check_complete = cal_config_mapi_check_complete;
   60 }
   61 
   62 static void
   63 e_cal_config_mapi_class_finalize (ECalConfigMapiClass *class)
   64 {
   65 }
   66 
   67 static void
   68 e_cal_config_mapi_init (ECalConfigMapi *backend)
   69 {
   70 }
   71 
   72 void
   73 e_cal_config_mapi_type_register (GTypeModule *type_module)
   74 {
   75     /* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
   76      *     function, so we have to wrap it with a public function in
   77      *     order to register types from a separate compilation unit. */
   78     e_cal_config_mapi_register_type (type_module);
   79 }