summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/viewatt.cpp
authorgroucho <groucho>2003-04-13 10:29:05 (UTC)
committer groucho <groucho>2003-04-13 10:29:05 (UTC)
commit8cc217bed9c122a7c7448e2cd59bfde330dfcfad (patch) (side-by-side diff)
treef802c03bbddf54ecc541ce23bdc43da0fc8b390b /noncore/unsupported/mailit/viewatt.cpp
parent64d6b3e723b9b2fc3b1f3eea6da6344c5f26ce1e (diff)
downloadopie-8cc217bed9c122a7c7448e2cd59bfde330dfcfad.zip
opie-8cc217bed9c122a7c7448e2cd59bfde330dfcfad.tar.gz
opie-8cc217bed9c122a7c7448e2cd59bfde330dfcfad.tar.bz2
- Uses mime types for attachment reading
- Addresses are read from ocontactacess
Diffstat (limited to 'noncore/unsupported/mailit/viewatt.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mailit/viewatt.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/noncore/unsupported/mailit/viewatt.cpp b/noncore/unsupported/mailit/viewatt.cpp
index 86f119f..b6f5015 100644
--- a/noncore/unsupported/mailit/viewatt.cpp
+++ b/noncore/unsupported/mailit/viewatt.cpp
@@ -22,2 +22,3 @@
#include <qpe/applnk.h>
+#include <qpe/mimetype.h>
@@ -45,2 +46,4 @@ void ViewAtt::update(Email *mailIn, bool inbox)
+
+
listView->clear();
@@ -62,2 +65,9 @@ void ViewAtt::update(Email *mailIn, bool inbox)
+ const QString& mtypeDef=(const QString&) ePtr->contentType+"/"+ePtr->contentAttribute;
+
+ MimeType mt(mtypeDef);
+
+ item->setPixmap(0, mt.pixmap());
+
+ /*
if (ePtr->contentType == "TEXT") {
@@ -65,4 +75,3 @@ void ViewAtt::update(Email *mailIn, bool inbox)
actions->addTo(bar);
- item->setPixmap(0, Resource::loadPixmap("txt"));
- }
+ }
if (ePtr->contentType == "AUDIO") {
@@ -76,3 +85,3 @@ void ViewAtt::update(Email *mailIn, bool inbox)
item->setPixmap(0, Resource::loadPixmap("pixmap"));
- }
+ }*/
}