#ifndef EVENTPARSERS_VMGEntities_SMSENTITY_H
#define EVENTPARSERS_VMGEntities_SMSENTITY_H
+class Settings;
+
#include <cstddef>
#include <typeinfo>
class SMSEntity
{
public:
- virtual ~SMSEntity() {};
SMSEntity(const Settings &settings, const SMSEntity* parent);
+ virtual ~SMSEntity() {}
protected:
const bool isAttachment() const;
- const SMSEntity* m_Parent;
- const SMSEntity* getParent() const { return m_Parent; };
+ const SMSEntity *getParent() const { return m_Parent; }
+
+ virtual const char *getTagName() const { return "VBODY"; }
const Settings &CurrentSettings() const { return m_Settings; }
- virtual const char* getTagName() const { return "VBODY"; }
+ private:
const Settings &m_Settings;
+ const SMSEntity *m_Parent;
};
}
}
#include "EventTypes/SMS.h"
#include "Factory.h"
#include "Settings.h"
+#include "VBody.h"
#include "VCard.h"
#include "VEnvelope.h"
-#include "VBody.h"
#include <QDateTime>
#include <QTextStream>
{
}
-bool VMessage::Read(const QString & initialLine, QTextStream & stream, EventTypes::SMS & event)
+bool VMessage::Read(const QString &initialLine, QTextStream &stream, EventTypes::SMS &event)
{
if(getParent() != NULL)
{
foreach(iHashable::Hash hash, newHashes)
qDebug() << hash << endl;
- // Now an optimisation: group the new hases by the files they come
+ // Now an optimisation: group the new hashes by the files they come
// from. This enables each file to only be parsed once and return
// all the required events from it.
QHash<QString, QList<iHashable::Hash> > newHashesByPath;