Beispiel #1
0
void TodoDialog::on_saveButton_clicked() {
    MetricsService::instance()->sendEvent("todo list", "todo item stored");

    updateCurrentCalendarItemWithFormData();

    OwnCloudService *ownCloud = new OwnCloudService(crypto, this);

    // update the local icsData from server
    ownCloud->updateICSDataOfCalendarItem(&currentCalendarItem);

    // post the calendar item to the server
    ownCloud->postCalendarItemToServer(currentCalendarItem, this);

    qDebug() << currentCalendarItem;
}
Beispiel #2
0
void TodoDialog::on_saveButton_clicked() {
    MetricsService::instance()->sendVisitIfEnabled("todo/item/stored");

    updateCurrentCalendarItemWithFormData();

    OwnCloudService *ownCloud = OwnCloudService::instance();

    // update the local icsData from server
    ownCloud->updateICSDataOfCalendarItem(&currentCalendarItem);

    // post the calendar item to the server
    ownCloud->postCalendarItemToServer(currentCalendarItem, this);

    qDebug() << currentCalendarItem;

    QSettings settings;
    if (settings.value("closeTodoListAfterSave").toBool()) {
        close();
    }
}