Added CSV parsing and export of Symbian-format Event logs that have had their tables...
[qwerkisync] / EventTypes / SMS.h
index 403a820..41cb589 100644 (file)
@@ -25,6 +25,8 @@
 #include <QString>
 
 #include "RtcomEvent.h"
+#include "EventTypes/iCSVSymbianEvent.h"
+#include "EventTypes/iVMGEvent.h"
 
 #include "AttachmentCollection.h"
 
@@ -32,7 +34,7 @@ class Settings;
 
 namespace EventTypes
 {
-       class SMS : public RtcomEvent
+       class SMS : public RtcomEvent, public EventTypes::iVMGEvent, public EventTypes::iCSVSymbianEvent
        {
        public:
                enum eDestination
@@ -69,14 +71,19 @@ namespace EventTypes
 
                bool Pending() const { return m_Pending; }
                void Pending(const bool pending) { m_Pending = pending; }
+
                virtual const AttachmentCollection & Attachments() const { return m_Attachments; }
                virtual AttachmentCollection & Attachments() { return m_Attachments; }
 
        public:
-               virtual void Export(const QString &baseDirectory, const NumberToNameLookup &numberToNameLookup) const;
                SMS(const Settings &settings, const RTComElEvent& event, const QList<RTComElAttachment*> attachments = QList<RTComElAttachment*>());
                virtual RTComElEvent * toRTComEvent(const NumberToNameLookup &numberToNameLookup) const;
 
+       public:
+               virtual void WriteCSVSymbian(QTextStream &stream, const ColumnIndicesByIndexHash &headerIndices, const QChar delimiter, const NumberToNameLookup &numberToNameLookup, SymbianEventLogStrings &strings) const;
+               virtual const QString PathForVMG() const;
+               virtual void WriteVMG(QTextStream &stream, const NumberToNameLookup &numberToNameLookup) const;
+
        protected:
                const Settings &CurrentSettings() const { return m_Settings; }