X-Git-Url: http://git.maemo.org/git/?p=qwerkisync;a=blobdiff_plain;f=EventTypes%2FSMS.cpp;h=bcf0b87a59125979e736155195697c410b53cce1;hp=c067fe6144eaac39d9fe86cc5ef180667a225a54;hb=8dd69fead6d98d863e7ae670e9ff658eaf47d698;hpb=69ec52550d22395393afdd6723ea6bf71b1d0acc diff --git a/EventTypes/SMS.cpp b/EventTypes/SMS.cpp index c067fe6..bcf0b87 100644 --- a/EventTypes/SMS.cpp +++ b/EventTypes/SMS.cpp @@ -124,7 +124,7 @@ RTComElEvent * SMS::toRTComEvent(const NumberToNameLookup &numberToNameLookup) c void SMS::WriteCSVSymbian(QTextStream &stream, const ColumnIndicesByIndexHash &headerIndices, const QChar delimiter, const NumberToNameLookup &numberToNameLookup, SymbianEventLogStrings &strings) const { // 0|05/09/2007 11:25:12 am|1|||||||3|8|0|0||||Unrecognized|| - for(uint columnIndex(0); columnIndex < headerIndices.count(); ++columnIndex) + for(uint columnIndex(0); columnIndex < (uint)headerIndices.count(); ++columnIndex) { const QString &heading(headerIndices.value(columnIndex)); if("etype" == heading.toLower()) @@ -141,13 +141,13 @@ void SMS::WriteCSVSymbian(QTextStream &stream, const ColumnIndicesByIndexHash &h } else if("direction" == heading.toLower()) { - if(Settings::OUTGOING == Destination()) + if(SMS::SENT == Destination()) { if(!strings.contains("Outgoing")) strings.insert("Outgoing", strings.count()); stream << strings.value("Outgoing"); } - else if (Settings::INCOMING == Destination()) + else if (SMS::INBOX == Destination()) { if(!strings.contains("Incoming")) strings.insert("Incoming", strings.count()); @@ -190,7 +190,7 @@ void SMS::WriteCSVSymbian(QTextStream &stream, const ColumnIndicesByIndexHash &h // generated. } - if(columnIndex < headerIndices.count() - 1) + if(columnIndex < (uint)headerIndices.count() - 1) stream << delimiter; }