messagingapp/msgutils/unidatautils/unidatamodelplugins/unibiomessagedataplugin/src/unibiomessagedataplugin.cpp
changeset 48 4f501b74aeb1
parent 37 518b245aa84c
child 51 3507212d340e
--- a/messagingapp/msgutils/unidatautils/unidatamodelplugins/unibiomessagedataplugin/src/unibiomessagedataplugin.cpp	Tue Jul 13 22:09:22 2010 +0530
+++ b/messagingapp/msgutils/unidatautils/unidatamodelplugins/unibiomessagedataplugin/src/unibiomessagedataplugin.cpp	Sun Jul 25 18:59:19 2010 +0530
@@ -30,7 +30,7 @@
 UniBioMessageDataPlugin::UniBioMessageDataPlugin(QObject* parent) :
     QObject(parent)
     {
-    d_ptr = new UniBioMessageDataPluginPrivate(this);
+    QT_TRAP_THROWING(d_ptr = new UniBioMessageDataPluginPrivate(this));
     }
 
 // UniBioMessageDataPlugin::~UniBioMessageDataPlugin()
@@ -120,7 +120,8 @@
 //---------------------------------------------------------------
 UniMessageInfoList UniBioMessageDataPlugin::attachmentList()
 {
-    RFile file = d_ptr->attachmentL();
+    RFile file;
+    QT_TRAP_THROWING(file = d_ptr->attachmentL());
 
     if(attachmentCount() == 0)
     {
@@ -135,8 +136,8 @@
     int size;
 
     TFileName fullName;
-    User::LeaveIfError(file.FullName(fullName));
-    User::LeaveIfError(file.Size(size));
+    qt_symbian_throwIfError(file.FullName(fullName));
+    qt_symbian_throwIfError(file.Size(size));
 
     path = XQConversions::s60DescToQString(*fullName.AllocL());