<commit_before>/*
 * Copyright (C) 2003-2006 Funambol
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */



#ifndef INCL_SYNC_SOURCE_CONFIG
    #define INCL_SYNC_SOURCE_CONFIG

    #include "base/fscapi.h"
    #include "spds/constants.h"
    #include "syncml/core/CTCap.h"

/*
 * ------------------------------- SyncSourceConfig class -----------------------------------
 * This class groups all configuration properties for a SyncSource.
 * SyncSourceConfig is a part of SyncManagerConfig (along with AccessConfig 
 * and an array of DeviceConfig).
 *
 * Class members:
 * --------------
 * name             : the SyncSource name
 * uri              : the SyncSource URI
 * syncModes        : Specifies all supported sync modes for the given source.
 *                    The form is a comma separated list of modes.
 *                    Sync modes can be one of "slow", "two-way", "one-way-server", 
 *                    "one-way-client", "refresh-from-server", "refresh-from-client", "addrchange".
 * type             : The source type used by client. This is one of types specified 
 *                    in 'supportedTypes' property.
 * sync             : This is the current sync mode used by the client. 
 *                    The parameter MUST be one of the sync modes specified in property 'syncModes'.
 * encodings        : Specifies how the content of an outgoing item should be encoded by the client library
 *                    if the sync source does not set an encoding itself. Valid values are listed in
 *                    SyncItem::encodings.
 * version          : The version of the source type used by client.
 * supportedTypes   : A string rapresenting the source types (with versions) supported by the SyncSource. 
 *                    The string must be formatted as a sequence of "type:version" separated by commas ','. 
 *                    For example: "text/x-vcard:2.1,text/vcard:3.0".
 *                    The version can be left empty, for example: "text/x-s4j-sifc:".
 *                    Supported types will be sent used for the <DevInf>.
 * ctCap            : Specifies the content type capabilities for this SyncSource.
 *                    Not implemented yet. (T.B.D.)
 * last             : Long value that specifies the last timestamp for this source.<commit_msg>added some comments<commit_after>/*
 * Copyright (C) 2003-2006 Funambol
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */



#ifndef INCL_SYNC_SOURCE_CONFIG
    #define INCL_SYNC_SOURCE_CONFIG

    #include "base/fscapi.h"
    #include "spds/constants.h"
    #include "syncml/core/CTCap.h"

/*
 * ------------------------------- SyncSourceConfig class -----------------------------------
 * This class groups all configuration properties for a SyncSource.
 * SyncSourceConfig is a part of SyncManagerConfig (along with AccessConfig 
 * and an array of DeviceConfig).
 *
 * Class members:
 * --------------
 * name             : the SyncSource name
 * uri              : the SyncSource URI
 * syncModes        : Specifies all supported sync modes for the given source.
 *                    The form is a comma separated list of modes.
 *                    Sync modes can be one of "slow", "two-way", "one-way-server", 
 *                    "one-way-client", "refresh-from-server", "refresh-from-client", "addrchange".
 * type             : The source type used by client. This is one of types specified 
 *                    in 'supportedTypes' property.
 * sync             : This is the current sync mode used by the client. 
 *                    The parameter MUST be one of the sync modes specified in property 'syncModes'.
 * encodings        : Specifies how the content of an outgoing item should be encoded by the client library
 *                    if the sync source does not set an encoding itself. Valid values are listed in
 *                    SyncItem::encodings.
 * version          : The version of the source type used by client.
 * supportedTypes   : A string rapresenting the source types (with versions) supported by the SyncSource. 
 *                    The string must be formatted as a sequence of "type:version" separated by commas ','. 
 *                    For example: "text/x-vcard:2.1,text/vcard:3.0".
 *                    The version can be left empty, for example: "text/x-s4j-sifc:".
 *                    Supported types will be sent used for the <DevInf>.
 * ctCap            : Specifies the content type capabilities for this SyncSource.
 *                    Not implemented yet. (T.B.D.)
 * encryption       : Specifies if the content of an outgoing item should be ecrypted. 
 *                    If this property is not empty and valid, the 'encodings' value is ignored 
 *                    for outgoing items. The only valid value is "des".
 * last             : Long value that specifies the last timestamp for this source.
{'fraction_non_alphanumeric': 0.09058785737230966, 'fraction_numerical': 0.008994539029874718, 'mean_word_length': 2.143361938414942, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5889262', 'n_tokens_mistral': 1599, 'n_tokens_neox': 1498, 'n_words': 731}