m_operations);
break;
default:
- throwError("invalid calendar type");
+ throwError(SE_HERE, "invalid calendar type");
break;
}
mc = CMulticalendar::MCInstance();
cal = NULL;
conv = NULL;
if (!mc) {
- throwError("Could not connect to Maemo Calendar backend");
+ throwError(SE_HERE, "Could not connect to Maemo Calendar backend");
}
}
}
if (!cal) {
- throwError(string("not found: ") + id);
+ throwError(SE_HERE, string("not found: ") + id);
}
conv = new ICalConverter;
conv->setSyncing(true); // not sure what this does, but may as well tell the truth
CComponent *c = cal->getEntry(id, entry_type, err);
if (!c)
{
- throwError(string("retrieving item: ") + id);
+ throwError(SE_HERE, string("retrieving item: ") + id);
}
revisions[id] = get_revision(c);
delete c;
int err;
CComponent * c = cal->getEntry(uid, entry_type, err);
if (!c) {
- throwError(string("retrieving item: ") + uid);
+ throwError(SE_HERE, string("retrieving item: ") + uid);
}
if (entry_format == -1) {
item = c->getSummary();
}
delete c;
if (err != CALENDAR_OPERATION_SUCCESSFUL) {
- throwError(string("generating ical for item: ") + uid);
+ throwError(SE_HERE, string("generating ical for item: ") + uid);
}
}
if (cal->getCalendarType() == BIRTHDAY_CALENDAR) {
// stubbornly refuse to try this
- throwError(string("can't sync smart calendar ") + cal->getCalendarName());
+ throwError(SE_HERE, string("can't sync smart calendar ") + cal->getCalendarName());
}
if (entry_format == -1) {
// barely-legal input (mostly on todo entries), yet a component is returned
if (!comps.size()) {
if (err != CALENDAR_OPERATION_SUCCESSFUL) {
- throwError(string("parsing ical: ") + item);
+ throwError(SE_HERE, string("parsing ical: ") + item);
} else {
- throwError(string("no events in ical: ") + item);
+ throwError(SE_HERE, string("no events in ical: ") + item);
}
}
vector< CComponent * >::iterator it = comps.begin();
for (; it != comps.end(); ++it) {
delete (*it);
}
- throwError(string("too many events in ical: ") + item);
+ throwError(SE_HERE, string("too many events in ical: ") + item);
}
c = *it;
}
default: r = false; err = CALENDAR_SYSTEM_ERROR;
}
if (!r) {
- throwError(string("updating item ") + uid);
+ throwError(SE_HERE, string("updating item ") + uid);
}
} else {
switch (entry_type) {
default: r = false; err = CALENDAR_SYSTEM_ERROR;
}
if (!r) {
- throwError(string("creating item "));
+ throwError(SE_HERE, string("creating item "));
}
if (err == CALENDAR_ENTRY_DUPLICATED) {
u = ITEM_REPLACED;
if (cal->getCalendarType() == BIRTHDAY_CALENDAR) {
// stubbornly refuse to try this
- throwError(string("can't sync smart calendar ") + cal->getCalendarName());
+ throwError(SE_HERE, string("can't sync smart calendar ") + cal->getCalendarName());
}
cal->deleteComponent(uid, err);
if (err != CALENDAR_OPERATION_SUCCESSFUL) {
- throwError(string("deleting item: ") + uid);
+ throwError(SE_HERE, string("deleting item: ") + uid);
}
}