X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=EventTypes%2FSMS.h;h=41cb5894284216b814b2445670af7a2a8018a10e;hb=69ec52550d22395393afdd6723ea6bf71b1d0acc;hp=ce7955658aeb184bfe38b75131287d9bd9326ada;hpb=b320c919e28ce961edcdc6672f418861bccc4eff;p=qwerkisync diff --git a/EventTypes/SMS.h b/EventTypes/SMS.h index ce79556..41cb589 100644 --- a/EventTypes/SMS.h +++ b/EventTypes/SMS.h @@ -25,6 +25,8 @@ #include #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; SMS(const Settings &settings, const RTComElEvent& event, const QList attachments = QList()); 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; }