+// frmEventEditor.cpp - frmEventEditor form functions.
+//
+// (c) 2016-2017 Xestia Software Development.
+//
+// This file is part of Xestia Calendar.
+//
+// Xestia Calendar is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Calendar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Calendar. If not, see <http://www.gnu.org/licenses/>
+
#include "frmEventEditor.h"
using namespace std;
// Set the data into the calendar event object.
- eventData.SummaryData = txtEventName->GetValue().ToStdString();
- eventData.DescriptionList.push_back(txtEventDescription->GetValue().ToStdString());
- eventData.DescriptionListAltRep.push_back("");
- eventData.DescriptionListLanguage.push_back("");
- eventData.DescriptionListTokens.push_back("");
+ eventData.summaryData = txtEventName->GetValue().ToStdString();
+ eventData.descriptionList.push_back(txtEventDescription->GetValue().ToStdString());
+ eventData.descriptionListAltRep.push_back("");
+ eventData.descriptionListLanguage.push_back("");
+ eventData.descriptionListTokens.push_back("");
stringstream stringData;
stringData << txtStartTime->GetValue().ToStdString().substr(3, 2).c_str();
stringData << "00Z";
- eventData.DateTimeStartData = stringData.str();
- eventData.DateTimeStampData = stringData.str();
+ eventData.dateTimeStartData = stringData.str();
+ eventData.dateTimeStampData = stringData.str();
stringData.str("");
stringData << txtEndTime->GetValue().ToStdString().substr(3, 2).c_str();
stringData << "00Z";
- eventData.DateTimeEndData = stringData.str();
+ eventData.dateTimeEndData = stringData.str();
// TODO: Implement Duration.
eventFile += NewUUID;
eventFile += ".ics";
- eventData.UniqueID = NewUUID;
+ eventData.uniqueID = NewUUID;
// Write the file.