Pass the current settings down to the parsers so they can behave accordingly (i.e...
[qwerkisync] / EventParsers / VMGEntities / VCalendar.cpp
index 8b97dab..db7a1b0 100644 (file)
@@ -38,8 +38,8 @@
 
 using namespace EventParsers::VMGEntities;
 
-VCalendar::VCalendar(const SMSEntity* parent) :
-       SMSEntity(parent), m_Version(1.0)
+VCalendar::VCalendar(const Settings &settings, const SMSEntity* parent) :
+       SMSEntity(settings, parent), m_Version(1.0)
 {
 }
 
@@ -47,8 +47,8 @@ VCalendar::VCalendar(const SMSEntity* parent) :
 //{
 //}
 
-VCalendar::VCalendar(const SMSEntity* parent, float version) :
-       SMSEntity(parent), m_Version(version)
+VCalendar::VCalendar(const Settings &settings, const SMSEntity* parent, float version) :
+       SMSEntity(settings, parent), m_Version(version)
 {
 }
 
@@ -134,7 +134,7 @@ bool VCalendar::Read(const QString &initialLine, QTextStream &stream, EventTypes
                        }
                        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;