#include <QList>
#include <QString>
+#include "EventTypes/iCSVSymbianEvent.h"
#include "RtcomEvent.h"
#include "AttachmentCollection.h"
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;
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<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; }
QDateTime m_Timestamp;
QString m_Tel;
int m_DurationInSeconds;
+ bool m_IsMissedCall;
AttachmentCollection m_Attachments;
};
}