diff -r 9ba4404ef423 -r 759dc5235cdb emailuis/nmailui/src/nmattachmentlist.cpp --- a/emailuis/nmailui/src/nmattachmentlist.cpp Thu May 27 12:43:55 2010 +0300 +++ b/emailuis/nmailui/src/nmattachmentlist.cpp Fri Jun 11 13:27:14 2010 +0300 @@ -28,6 +28,8 @@ NmAttachmentList::NmAttachmentList(NmAttachmentListWidget &listWidget) : mListWidget(listWidget) { + NM_FUNCTION; + updateLayout(); } @@ -36,6 +38,8 @@ */ NmAttachmentList::~NmAttachmentList() { + NM_FUNCTION; + clearList(); } @@ -47,6 +51,8 @@ const QString &fileSize, const NmId &attachmentPartId) { + NM_FUNCTION; + QString displayName = fullNameToDisplayName(fullFileName); mFullFileName.append(fullFileName); mDisplayFileName.append(displayName); @@ -67,6 +73,8 @@ void NmAttachmentList::setAttachmentPartId(const QString fullFileName, const NmId &attachmentPartId) { + NM_FUNCTION; + for (int i=0; i= 0 && arrayIndex < mFullFileName.count() ) { @@ -121,6 +135,8 @@ */ void NmAttachmentList::removeAttachment(const QString &fullFileName) { + NM_FUNCTION; + for (int i=0; i=0; --i) { // Remove from UI mListWidget.removeAttachment(i); @@ -161,6 +181,8 @@ */ NmAttachmentListWidget& NmAttachmentList::listWidget() { + NM_FUNCTION; + return mListWidget; } @@ -169,6 +191,8 @@ */ int NmAttachmentList::count() { + NM_FUNCTION; + return mFullFileName.count(); } @@ -177,6 +201,8 @@ */ NmId NmAttachmentList::nmIdByIndex(int listIndex) { + NM_FUNCTION; + return mAttachmentPartId.at(listIndex); } @@ -185,6 +211,8 @@ */ int NmAttachmentList::indexByNmId(const NmId &id) { + NM_FUNCTION; + for (int i=0; i