--- a/smf/smfservermodule/smfcommon/smfcontact.cpp Thu Sep 23 17:43:31 2010 +0530
+++ b/smf/smfservermodule/smfcommon/smfcontact.cpp Mon Oct 11 21:59:54 2010 +0530
@@ -20,7 +20,7 @@
#include <QFile>
#include <QTextStream>
-
+#include <QDebug>
#include "smfcontact.h"
#include "smfcontact_p.h"
@@ -124,7 +124,15 @@
*/
void SmfContact::setValue(const QString& aSubType,QVariant& value)
{
+ if(value.isValid())
+ {
+ if((value.toInt()>127 && value.toString()!="Polygon") || (value.toInt()<0 && value.toString()!="Polygon"))
+ {
+ qDebug()<< "Invalid data in qVariant";
+ }
+ else
d->m_details.insert(aSubType,value);
+ }
}
/**