org.symbian.tools.wrttools.previewer/preview/data/calendar_data.js
author Eugene Ostroukhov <eugeneo@symbian.org>
Mon, 17 May 2010 15:23:08 -0700
changeset 335 af8f80553198
parent 333 895153411a80
permissions -rw-r--r--
JS cleanup to make it more compatible with JSDT

/**
 * Copyright (c) 2009-2010 Symbian Foundation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Symbian Foundation - initial contribution.
 * Contributors:
 */

/**
 * SAPI Sample Data - Calendar
 */


(function(){  


    var data_entries = [{
        "Type": "ToDo",
        "Summary": "Face head on my problems",
        "Description": "Face head on my problems",
        "EndTime": "Wednesday, 15 April, 2009 12:00:00 am",
        "id": "ihiwykmkjzcowqEnnEbeDnJpzWhPWrgNpNgudjdwgPfisvvQscuibwwSmgkdhdiBzIfyqvfIBmiYavfklygBssoKmWpJuxftbkdLsfmuwudczlJikohlFbQecaMlbaPnwyddzqXcjrhldXignjYtWyfqfzbpcxlH",
        "LocalId": "34",
        "Priority": 1,
        "Replication": "Open"
    }, {
        "Type": "ToDo",
        "Summary": "Believe myself first",
        "Description": "Believe myself first",
        "EndTime": "Sunday, 22 March, 2009 12:00:00 am",
        "AlarmTime": "Saturday, 21 March, 2009 11:30:00 pm",
        "id": "rjutskelXlDdoaebCyPzjopwgxMxluuLesqqsrykvIxrFLbxvuhBImBbhqwlSRfFtvWktkrvqpjfvxCoBxpsDlbgugvqjudregvyoebgtihRiSarcnryZovfwyHTcmXqZdjdrVPvSGnqroYgXdtpafqxTzrnkMKpzLihcxfaxwmdrkuGifsgbglhyfwqmtiPyzpeuxvKFfnrmhaqnrUarustDySMgKakjpFpkhtbonmTyBvhlzv",
        "LocalId": "35",
        "Priority": 1,
        "Replication": "Open"
    }, {
        "Type": "Meeting",
        "Summary": "Meeting with the professor",
        "Description": "Meeting with the professor",
        "StartTime": "Monday, 23 March, 2009 11:56:00 am",
        "EndTime": "Monday, 23 March, 2009 2:31:00 pm",
        "AlarmTime": "Monday, 23 March, 2009 11:01:00 am",
        "InstanceStartTime": "Monday, 23 March, 2009 11:56:00 am",
        "InstanceEndTime": "Monday, 23 March, 2009 2:31:00 pm",
        "id": "hifXqeBiUOlelbioirmeoniClarsiybNhNxdlQbqBzcngmhxtzlRoebdeYxupjaxnapugxrKnmhGjzdwtChVydzwOdwrHPokjqjvyaPwbqCjdtpukjcoyjdkjkkrndZzwjCYQPxgvereyuktnOtIndpoyimtjzPzEnkxCfzhxaDTvUgclfpsfbtgtvwk",
        "LocalId": "31",
        "Priority": 0,
        "Organizer": {
            "CommonName": "Frideswide Farprington",
            "Address": "Christian.Wilbar@Melleva.com"
        },
        "Replication": "Open"
    }, {
        "Type": "Meeting",
        "Summary": "Work issues",
        "Description": "Work issues",
        "StartTime": "Saturday, 28 March, 2009 1:22:00 am",
        "EndTime": "Saturday, 28 March, 2009 7:56:00 am",
        "AlarmTime": "Saturday, 28 March, 2009 12:49:00 am",
        "InstanceStartTime": "Saturday, 28 March, 2009 1:22:00 am",
        "InstanceEndTime": "Saturday, 28 March, 2009 7:56:00 am",
        "id": "symstNdkqdznkcettruqqyefdjkzikeBXmcamanzrygnusjyFYheprwaxksxzrqsdbnkTqemtsqqZbqnbbircyqtohmymWvqEc",
        "LocalId": "30",
        "Priority": 0,
        "Organizer": {
            "CommonName": "Margery Worthley",
            "Address": "Grace.Wilbar@Peger.com"
        },
        "Replication": "Open"
    }, {
        "Type": "Reminder",
        "Summary": "Remeber to harvest corn field",
        "Description": "Remeber to harvest corn field",
        "StartTime": "Thursday, 02 April, 2009 12:00:00 am",
        "AlarmTime": "Wednesday, 01 April, 2009 11:52:00 pm",
        "id": "uwtxgvTsowwGbnsgboEprwxvmihUkkDczxeohsnsXpUzUaHgjBJmjhpfOjaoyvRrjwIkgafrcszvbCSooutemfhejtyfonHviomgouimvPtexgdWmzDgGP",
        "LocalId": "36",
        "Priority": 0,
        "Replication": "Open"
    }, {
        "Type": "Reminder",
        "Summary": "Remeber to wax cross country skiis",
        "Description": "Remeber to wax cross country skiis",
        "StartTime": "Monday, 06 April, 2009 12:00:00 am",
        "AlarmTime": "Sunday, 05 April, 2009 11:44:00 pm",
        "id": "ivunsxcjmrsdaKkdtbqpskSIGIFOftMLwTuvCbiHmrkJnxdZgsapbqhoxNrhsbheyztgyOfvdqGrIlawVrvEwnYjnzoSlyimcxlKcSqetcruzf",
        "LocalId": "37",
        "Priority": 0,
        "Replication": "Open"
    }, {
        "Type": "DayEvent",
        "Summary": "Go the bank",
        "Description": "Go the bank",
        "StartTime": "Monday, 06 April, 2009 6:16:00 pm",
        "EndTime": "Monday, 06 April, 2009 7:19:00 pm",
        "AlarmTime": "Monday, 06 April, 2009 6:07:00 pm",
        "id": "QvcvlpXpflemwqjtniukLPsjkSengqBEfajerjclkrwysdy",
        "LocalId": "33",
        "Priority": 0,
        "Replication": "Open"
    }, {
        "Type": "DayEvent",
        "Summary": "School day",
        "Description": "School day",
        "StartTime": "Thursday, 16 April, 2009 5:27:00 pm",
        "EndTime": "Thursday, 16 April, 2009 9:39:00 pm",
        "AlarmTime": "Thursday, 16 April, 2009 4:35:00 pm",
        "id": "zmHupjqghnkEepdfghSCcsmFnrrducaqEyqyetauTcmxscSptpchgimxeEnOzxdiyEldyrikjmxvgzibauvjQfdbzgoumlVyAjqfhqlgpTtbiffqdzgpzWrquiyAdidvccvffzZxmpgjjbjUCqyeuBiikiedtclqabbsdazAbb",
        "LocalId": "32",
        "Priority": 0,
        "Replication": "Open"
    }];
	
	

	name = "C:MyCalendar";
	id = 200;
	localId = 20;
		
/** start data block **/	
var data2 = [];
	
	for (var i = 1; i <= 10; i++) {
		data2.push({
			Type		: 'Meeting',
			id			: id++,
			LocalId		: localId++,
			CalendarName: name,
			StartTime	: new Date('3/'+i+'/2009'),
			Endtime		: new Date('3/'+(1+i)+'/2009'),
			Description	: 'sample meeting ' + i
		});
	}
/** end data block **/	



	/**
	 * register data!
	 */
	device.implementation.loadData('Service.Calendar', 'C:Calendar', data_entries);
	device.implementation.loadData('Service.Calendar', 'C:MyCalendar', data2);

})();