--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mypackage_wrt/preview/data/calendar_data.js Fri Apr 30 15:01:03 2010 +0100
@@ -0,0 +1,136 @@
+/**
+ * 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);
+
+})()