From 84ca388e9717ce70f8f37c1e4ca574b1b2ab4f63 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Tue, 21 Dec 2010 15:42:09 -0500 Subject: [PATCH] lib: added GetVName() to MIME conversion classes --- src/vcard.h | 3 +++ src/vevent.h | 3 +++ src/vjournal.h | 3 +++ src/vtodo.h | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/vcard.h b/src/vcard.h index 0ad69061..4e86ffe4 100644 --- a/src/vcard.h +++ b/src/vcard.h @@ -67,6 +67,9 @@ public: char* ExtractVCard(); void Clear(); + + // This is the v-name of the innermost BEGIN/END block + static const char* GetVName() { return "VCARD"; } }; }} // namespace Barry::Sync diff --git a/src/vevent.h b/src/vevent.h index 6581bd7a..c3702fcc 100644 --- a/src/vevent.h +++ b/src/vevent.h @@ -74,6 +74,9 @@ public: char* ExtractVCal(); void Clear(); + + // This is the v-name of the innermost BEGIN/END block + static const char* GetVName() { return "VEVENT"; } }; }} // namespace Barry::Sync diff --git a/src/vjournal.h b/src/vjournal.h index 402424f4..92f00484 100644 --- a/src/vjournal.h +++ b/src/vjournal.h @@ -60,6 +60,9 @@ public: char* ExtractVJournal(); void Clear(); + + // This is the v-name of the innermost BEGIN/END block + static const char* GetVName() { return "VJOURNAL"; } }; }} // namespace Barry::Sync diff --git a/src/vtodo.h b/src/vtodo.h index 43f54d07..2562267d 100644 --- a/src/vtodo.h +++ b/src/vtodo.h @@ -63,6 +63,9 @@ public: char* ExtractVTodo(); void Clear(); + + // This is the v-name of the innermost BEGIN/END block + static const char* GetVName() { return "VTODO"; } }; }} // namespace Barry::Sync -- 2.11.4.GIT