Hi,
A small patch to permit to convert "Calendar - All" to mime file with
bio command line tool.
Regards,
Nicolas
>From 6aec0f8f97f997bdaabf699598b2451cf58eab56 Mon Sep 17 00:00:00 2001
From: Nicolas VIVIEN <nico...@vivien.fr>
Date: Mon, 11 Mar 2013 14:19:48 +0100
Subject: [PATCH] [bio] Convert "Calendar - All" to mime
---
src/mimeio.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/mimeio.h b/src/mimeio.h
index b57a09c..e75be1f 100644
--- a/src/mimeio.h
+++ b/src/mimeio.h
@@ -38,6 +38,7 @@ namespace Barry {
class Contact;
class Calendar;
+class CalendarAll;
class Memo;
class Task;
@@ -85,6 +86,20 @@ public:
};
template <>
+class MimeDump<Barry::CalendarAll>
+{
+public:
+ static void Dump(std::ostream &os, const Barry::CalendarAll &rec)
+ {
+ Barry::Sync::vTimeConverter vtc;
+ Barry::Sync::vCalendar vcal(vtc);
+ os << vcal.ToVCal(rec) << std::endl;
+ }
+
+ static bool Supported() { return true; }
+};
+
+template <>
class MimeDump<Barry::Memo>
{
public:
--
1.7.10.4
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel