X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=EventTypes%2FPhoneCall.h;h=415fb7f519cf1a3790a475b1c2cd8160c703cd62;hb=43c287cf53b85a8a347ae12ce8d938b256357ce3;hp=223f30d707c1f89aed7cbc15791b8e7187e3cb1f;hpb=b320c919e28ce961edcdc6672f418861bccc4eff;p=qwerkisync diff --git a/EventTypes/PhoneCall.h b/EventTypes/PhoneCall.h index 223f30d..415fb7f 100644 --- a/EventTypes/PhoneCall.h +++ b/EventTypes/PhoneCall.h @@ -26,6 +26,7 @@ #include #include +#include "EventTypes/iCSVSymbianEvent.h" #include "RtcomEvent.h" #include "AttachmentCollection.h" @@ -34,13 +35,13 @@ class Settings; namespace EventTypes { - class PhoneCall : public RtcomEvent + class PhoneCall : public RtcomEvent, public EventTypes::iCSVSymbianEvent { public: virtual const DBBackends::iDBBackend &DB() const; PhoneCall(const Settings &settings); - PhoneCall(const Settings &settings, const Settings::eDirection destination, const QDateTime ×tamp, const QString &tel, int durationInSeconds, const AttachmentCollection &attachments = AttachmentCollection()); + PhoneCall(const Settings &settings, const Settings::eDirection destination, const QDateTime ×tamp, const QString &tel, const int durationInSeconds, const bool isMissedCall, const AttachmentCollection &attachments = AttachmentCollection()); ~PhoneCall(); virtual const uint HashCode() const; @@ -60,11 +61,16 @@ namespace EventTypes virtual const AttachmentCollection & Attachments() const { return m_Attachments; } virtual AttachmentCollection & Attachments() { return m_Attachments; } + const bool IsMissedCall() const { return m_IsMissedCall; } + void IsMissedCall(const bool isMissedCall) { m_IsMissedCall = isMissedCall; } + public: - virtual void Export(const QString &baseDirectory) const; PhoneCall(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; + protected: const Settings &CurrentSettings() const { return m_Settings; } @@ -74,6 +80,7 @@ namespace EventTypes QDateTime m_Timestamp; QString m_Tel; int m_DurationInSeconds; + bool m_IsMissedCall; AttachmentCollection m_Attachments; }; }