X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=EventTypes%2FPhoneCall.h;h=223f30d707c1f89aed7cbc15791b8e7187e3cb1f;hb=b320c919e28ce961edcdc6672f418861bccc4eff;hp=88f8b2ad69a12154424be5e71caa36872c9435e7;hpb=4abcc9ab77d80562371024c243eb6b4f9f28dfcc;p=qwerkisync diff --git a/EventTypes/PhoneCall.h b/EventTypes/PhoneCall.h index 88f8b2a..223f30d 100644 --- a/EventTypes/PhoneCall.h +++ b/EventTypes/PhoneCall.h @@ -19,6 +19,8 @@ #ifndef EVENTTYPES_PHONECALL_H #define EVENTTYPES_PHONECALL_H +#include "Settings.h" + #include #include #include @@ -35,31 +37,25 @@ namespace EventTypes class PhoneCall : public RtcomEvent { public: - enum eDestination - { - INCOMING, - OUTGOING - }; - - 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(); virtual const uint HashCode() const; - const eDestination Destination() const { return m_Destination; } - void setDestination(const eDestination destination) { m_Destination = destination; } + const Settings::eDirection Destination() const { return m_Destination; } + void Destination(const Settings::eDirection destination) { m_Destination = destination; } virtual const QDateTime Timestamp() const { return m_Timestamp; } - void setTimestamp(const QDateTime timestamp) { m_Timestamp = timestamp; } + void Timestamp(const QDateTime timestamp) { m_Timestamp = timestamp; } const QString Tel() const { return m_Tel; } - void setTel(const QString tel) { m_Tel = tel; } + void Tel(const QString tel) { m_Tel = tel; } virtual const int DurationInSeconds() const { return m_DurationInSeconds; } - void setDurationInSeconds(const int durationInSeconds) { m_DurationInSeconds = durationInSeconds; } + void DurationInSeconds(const int durationInSeconds) { m_DurationInSeconds = durationInSeconds; } virtual const AttachmentCollection & Attachments() const { return m_Attachments; } virtual AttachmentCollection & Attachments() { return m_Attachments; } @@ -74,7 +70,7 @@ namespace EventTypes private: const Settings &m_Settings; - eDestination m_Destination; + Settings::eDirection m_Destination; QDateTime m_Timestamp; QString m_Tel; int m_DurationInSeconds;