state.init.json 3.12 KB
Newer Older
1 2
// -*- javascript -*-

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// This file is part of ASynK
//
// ASynK is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License as published by the
// Free Software Foundation, version 3 of the License
//
// ASynK 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 Affero General Public
// License for more details.
//
// You should have a copy of the license in the doc/ directory of ASynK.  If
// not, see <http://www.gnu.org/licenses/>.
//
// ////

19 20 21 22 23 24
// This is the application state json file that a new user will start out with.

{
    // This absolutely has to be the same as the version of the
    // config.json file. If they are different it will help us
    // identify if any migration has to be performed - in the future.
25
    'file_version' : 4,
26 27 28 29 30 31 32 33 34 35 36

    // The default profile. It will contain the name of one of the
    // profile keys once the user makes at a sync or at least sets up
    // a profile. After every sync command the value of this variable
    // is reset to the just used profile name.
    'default_profile' : null,

    'profiles' : {
	// The following is an example of what a profile could like. This
	// sample profile will not be written to the state.json file

37
	'defgcol' : {
38 39
	    "coll_1" : {
		"dbid" : "gc",
40 41
		"stid" : null,
		"foid" : null,
42 43 44
	    },

	    "coll_2" : {
45 46 47
		"dbid" : "ol",
		"stid" : null,
		"foid" : null,
48
	    },
49

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
	    'last_sync_start' : "1980-01-01T00:00:00.00+00:00",
	    'last_sync_stop'  : "1980-01-01T00:00:00.00+00:00",

	    // Default direction in which to perform Sync. Values can
	    // be one of ['SYNC1WAY' or 'SYCN2WAY'].
            'sync_dir'        : "SYNC2WAY",

            // Direction in which to resolve conflicts if the same
            // entry is modified both locally and in the google
            // cloud. Value should be one of the two dbids (in this
            // instance, either 'gc' or 'ol')
	    'conflict_resolve' : 'gc',

            // The GID used to compute the custom property tag that is
            // used to store the sync tag.
            'olgid' : 0x9001,
66
	}, // profiles['defgcol']
67

68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
	'defgcbb' : {
	    "coll_1" : {
		"dbid" : "gc",
		"stid" : null,
		"foid" : null,
	    },

	    "coll_2" : {
		"dbid" : "bb",
		"stid" : "~/.bbdb",
		"foid" : "default",
	    },

	    'last_sync_start' : "1980-01-01T00:00:00.00+00:00",
	    'last_sync_stop'  : "1980-01-01T00:00:00.00+00:00",

	    // Default direction in which to perform Sync. Values can
	    // be one of ['SYNC1WAY' or 'SYCN2WAY'].
            'sync_dir'        : "SYNC2WAY",

            // Direction in which to resolve conflicts if the same
            // entry is modified both locally and in the google
            // cloud. Value should be one of the two dbids (in this
            // instance, either 'gc' or 'bb')
	    'conflict_resolve' : 'gc',

            // The GID used to compute the custom property tag that is
            // used to store the sync tag.
            'olgid' : null,
	}, // profiles['defgcbb']
98 99
    }, // 'profiles'
}