Pass the current settings down to the parsers so they can behave accordingly (i.e...
[qwerkisync] / EventParsers / VMGEntities / SMSEntity.h
index 9ed198a..30fe6a8 100644 (file)
@@ -31,16 +31,18 @@ namespace EventParsers
                class SMSEntity
                {
                public:
-                       SMSEntity(const SMSEntity* parent);
                        virtual ~SMSEntity() {};
+                       SMSEntity(const Settings &settings, const SMSEntity* parent);
 
                protected:
                        const bool isAttachment() const;
 
                        const SMSEntity* m_Parent;
                        const SMSEntity* getParent() const { return m_Parent; };
+                       const Settings &CurrentSettings() const { return m_Settings; }
 
                        virtual const char* getTagName() const { return "VBODY"; }
+                       const Settings &m_Settings;
                };
        }
 }