Miscellaneous tidying up
[qwerkisync] / EventParsers / VMGEntities / SMSEntity.h
index 30fe6a8..28925af 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EVENTPARSERS_VMGEntities_SMSENTITY_H
 #define EVENTPARSERS_VMGEntities_SMSENTITY_H
 
+class Settings;
+
 #include <cstddef>
 #include <typeinfo>
 
@@ -31,18 +33,20 @@ namespace EventParsers
                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;
                };
        }
 }