Changeset 996
- Timestamp:
- 05/19/06 21:39:55 (3 years ago)
- Location:
- plugins/kdepim/src
- Files:
-
- 2 modified
-
kcal.cpp (modified) (4 diffs)
-
knotes.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/kdepim/src/kcal.cpp
r703 r996 188 188 case CHANGE_MODIFIED: 189 189 { 190 printf("Adding\n");191 190 KCal::ICalFormat format; 192 191 … … 195 194 */ 196 195 197 printf("Adding1\n");198 196 KCal::CalendarLocal cal(QString::fromLatin1( "UTC" )); 199 197 QString data = QString::fromUtf8(osync_change_get_data(chg), osync_change_get_datasize(chg)); … … 203 201 } 204 202 205 printf("Adding2 %p\n", calendar);206 203 /*FIXME: The event/to-do will be overwritten. But I can't differentiate 207 204 * between a field being removed and a missing field because … … 219 216 * We iterate over the list, but it should have only one event. 220 217 */ 221 printf("Adding3\n");222 218 KCal::Incidence::List evts = cal.incidences(); 223 219 for (KCal::Incidence::List::ConstIterator i = evts.begin(); i != evts.end(); i++) { -
plugins/kdepim/src/knotes.cpp
r692 r996 105 105 static QString strip_html(QString input) 106 106 { 107 printf("input is %s\n", (const char*)input.local8Bit());107 osync_trace(TRACE_INTERNAL, "input is %s\n", (const char*)input.local8Bit()); 108 108 QString output = NULL; 109 109 unsigned int i = 0; … … 120 120 output += input[i]; 121 121 } 122 printf("output is %s\n", (const char*)output.stripWhiteSpace().local8Bit());122 osync_trace(TRACE_INTERNAL, "output is %s\n", (const char*)output.stripWhiteSpace().local8Bit()); 123 123 return output.stripWhiteSpace(); 124 124 } … … 145 145 osync_debug("knotes", 4, "Note key: %s", (const char*)i.key().local8Bit()); 146 146 osync_debug("knotes", 4, "Note summary: %s", (const char*)i.data().local8Bit()); 147 printf("reporting notes %s\n", (const char*)i.key().local8Bit());147 osync_trace(TRACE_INTERNAL, "reporting notes %s\n", (const char*)i.key().local8Bit()); 148 148 149 149 QString uid = i.key(); … … 227 227 } 228 228 229 printf("Getting note %s and %s\n", osync_change_get_printable(chg), osxml_find_node(root, "Summary"));229 osync_trace(TRACE_INTERNAL, "Getting note %s and %s\n", osync_change_get_printable(chg), osxml_find_node(root, "Summary")); 230 230 QString summary = QString(osxml_find_node(root, "Summary")); 231 231 QString body = osxml_find_node(root, "Body"); … … 234 234 switch (type) { 235 235 case CHANGE_ADDED: 236 printf("addding new \"%s\" and \"%s\"\n", (const char*)summary.local8Bit(), (const char*)body.local8Bit());236 osync_trace(TRACE_INTERNAL, "addding new \"%s\" and \"%s\"\n", (const char*)summary.local8Bit(), (const char*)body.local8Bit()); 237 237 uid = kn_iface->newNote(summary, body); 238 238 if (kn_iface->status() != DCOPStub::CallSucceeded) {
