evolution-sharp r185 - in branches/mono-backends: . evolution evolution/src
- From: pchen svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-sharp r185 - in branches/mono-backends: . evolution evolution/src
- Date: Thu, 28 Aug 2008 11:54:42 +0000 (UTC)
Author: pchen
Date: Thu Aug 28 11:54:42 2008
New Revision: 185
URL: http://svn.gnome.org/viewvc/evolution-sharp?rev=185&view=rev
Log:
Added the tests for timezone.
Modified:
branches/mono-backends/ChangeLog
branches/mono-backends/evolution/CalBackendCache.custom
branches/mono-backends/evolution/TestCache.cs
branches/mono-backends/evolution/src/CalComponent.cs
Modified: branches/mono-backends/evolution/CalBackendCache.custom
==============================================================================
--- branches/mono-backends/evolution/CalBackendCache.custom (original)
+++ branches/mono-backends/evolution/CalBackendCache.custom Thu Aug 28 11:54:42 2008
@@ -24,3 +24,4 @@
return ret;
}
+
Modified: branches/mono-backends/evolution/TestCache.cs
==============================================================================
--- branches/mono-backends/evolution/TestCache.cs (original)
+++ branches/mono-backends/evolution/TestCache.cs Thu Aug 28 11:54:42 2008
@@ -14,16 +14,26 @@
CalBackendCache cache = new CalBackendCache (uri, CalSourceType.Event);
CalComponent comp = new CalComponent (CalComponentVType.Event);
+ /* Creating an Event */
comp.Summary = "1st event";
-
cache.PutComponent (comp);
uid = comp.Uid;
- CalComponent cacheComp = cache.GetComponent (uid, null);
+ /* Inserting a default zone */
+ Icaltimezone zone = Icaltimezone.GetBuiltinTimezone ("Asia/Kolkata");
+ cache.PutDefaultTimezone (zone);
+
+ /* Printing the default zone */
+ Icaltimezone dzone = cache.DefaultTimezone;
+ string dStr = "Default zone is cache is " + dzone.Location + "\n";
+ Console.WriteLine (dStr);
+ /* Printing the component */
+ CalComponent cacheComp = cache.GetComponent (uid, null);
Console.WriteLine(cacheComp.GetAsString ());
- Console.WriteLine("Hello World!");
+ Console.WriteLine("Removing the cache!");
+ cache.Remove ();
}
}
}
Modified: branches/mono-backends/evolution/src/CalComponent.cs
==============================================================================
--- branches/mono-backends/evolution/src/CalComponent.cs (original)
+++ branches/mono-backends/evolution/src/CalComponent.cs Thu Aug 28 11:54:42 2008
@@ -107,7 +107,7 @@
[StructLayout(LayoutKind.Sequential)]
public struct CalComponentOrganizer {
- public string value;
+ public string Value;
public string sentby;
public string cn;
public string language;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]