Pass the current settings down to the parsers so they can behave accordingly (i.e...
[qwerkisync] / EventParsers / VMGEntities / VCard.cpp
index b6d6b63..e5e0a7d 100644 (file)
@@ -38,8 +38,8 @@
 
 using namespace EventParsers::VMGEntities;
 
-VCard::VCard(const SMSEntity* parent) :
-       SMSEntity(parent), m_Version(2.1), m_Target(VCARD_LOCAL)
+VCard::VCard(const Settings &settings, const SMSEntity* parent) :
+       SMSEntity(settings, parent), m_Version(2.1), m_Target(VCARD_LOCAL)
 {
 }
 
@@ -47,8 +47,8 @@ VCard::VCard(const SMSEntity* parent) :
 //{
 //}
 
-VCard::VCard(const SMSEntity* parent, float version, eTarget target) :
-       SMSEntity(parent), m_Version(version), m_Target(target)
+VCard::VCard(const Settings &settings, const SMSEntity* parent, float version, eTarget target) :
+       SMSEntity(settings, parent), m_Version(version), m_Target(target)
 {
 }
 
@@ -164,7 +164,7 @@ bool VCard::Read(const QString &initialLine, QTextStream &stream, EventTypes::SM
                        }
                        else if(lineData.startsWith("BEGIN:"))
                        {
-                               iReader* reader = Factory::Instantiate(lineData, this);
+                               iReader* reader = Factory::Instantiate(CurrentSettings(), lineData, this);
                                bool valid(NULL != reader && reader->Read(lineData, stream, event));
                                delete reader;