messagingapp/msgutils/unidatautils/unidatamodelplugins/unibiomessagedataplugin/src/unibiomessagedataplugin.cpp
equal
deleted
inserted
replaced
120 //--------------------------------------------------------------- |
120 //--------------------------------------------------------------- |
121 UniMessageInfoList UniBioMessageDataPlugin::attachmentList() |
121 UniMessageInfoList UniBioMessageDataPlugin::attachmentList() |
122 { |
122 { |
123 RFile file = d_ptr->attachmentL(); |
123 RFile file = d_ptr->attachmentL(); |
124 |
124 |
|
125 if(attachmentCount() == 0) |
|
126 { |
|
127 file.Close(); |
|
128 return QList<UniMessageInfo*> (); |
|
129 } |
|
130 |
125 UniMessageInfoList attlist; |
131 UniMessageInfoList attlist; |
126 |
132 |
127 QString path; |
133 QString path; |
128 QString mimetype; |
134 QString mimetype; |
129 int size; |
135 int size; |
168 // UniBioMessageDataPlugin::hasAttachment() |
174 // UniBioMessageDataPlugin::hasAttachment() |
169 // @see header |
175 // @see header |
170 //--------------------------------------------------------------- |
176 //--------------------------------------------------------------- |
171 bool UniBioMessageDataPlugin::hasAttachment() |
177 bool UniBioMessageDataPlugin::hasAttachment() |
172 { |
178 { |
173 return true; |
179 if(attachmentCount() > 0) |
|
180 return true; |
|
181 else |
|
182 return false; |
|
183 |
174 } |
184 } |
175 |
185 |
176 // UniBioMessageDataPlugin::objectCount() |
186 // UniBioMessageDataPlugin::objectCount() |
177 // @see header |
187 // @see header |
178 //--------------------------------------------------------------- |
188 //--------------------------------------------------------------- |