Added CSV parsing and export of Symbian-format Event logs that have had their tables...
[qwerkisync] / EventTypes / PhoneCall.h
index 8fea880..415fb7f 100644 (file)
@@ -26,6 +26,7 @@
 #include <QList>
 #include <QString>
 
 #include <QList>
 #include <QString>
 
+#include "EventTypes/iCSVSymbianEvent.h"
 #include "RtcomEvent.h"
 
 #include "AttachmentCollection.h"
 #include "RtcomEvent.h"
 
 #include "AttachmentCollection.h"
@@ -34,7 +35,7 @@ class Settings;
 
 namespace EventTypes
 {
 
 namespace EventTypes
 {
-       class PhoneCall : public RtcomEvent
+       class PhoneCall : public RtcomEvent, public EventTypes::iCSVSymbianEvent
        {
        public:
                virtual const DBBackends::iDBBackend &DB() const;
        {
        public:
                virtual const DBBackends::iDBBackend &DB() const;
@@ -64,10 +65,12 @@ namespace EventTypes
                void IsMissedCall(const bool isMissedCall) { m_IsMissedCall = isMissedCall; }
 
        public:
                void IsMissedCall(const bool isMissedCall) { m_IsMissedCall = isMissedCall; }
 
        public:
-               virtual void Export(const QString &baseDirectory, const NumberToNameLookup &numberToNameLookup) const;
                PhoneCall(const Settings &settings, const RTComElEvent& event, const QList<RTComElAttachment*> attachments = QList<RTComElAttachment*>());
                virtual RTComElEvent * toRTComEvent(const NumberToNameLookup &numberToNameLookup) const;
 
                PhoneCall(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;
+
        protected:
                const Settings &CurrentSettings() const { return m_Settings; }
 
        protected:
                const Settings &CurrentSettings() const { return m_Settings; }