summaryrefslogtreecommitdiffabout
path: root/kmicromail
Unidiff
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/mailtypes.cpp5
-rw-r--r--kmicromail/libmailwrapper/mailtypes.h18
2 files changed, 18 insertions, 5 deletions
diff --git a/kmicromail/libmailwrapper/mailtypes.cpp b/kmicromail/libmailwrapper/mailtypes.cpp
index 96d55e6..70a0ab5 100644
--- a/kmicromail/libmailwrapper/mailtypes.cpp
+++ b/kmicromail/libmailwrapper/mailtypes.cpp
@@ -29,8 +29,8 @@ static bool stringCompareRec( const QString& s1, const QString& s2 )
29 return true; 29 return true;
30 return s1 == s2; 30 return s1 == s2;
31} 31}
32 32#if 0
33const QString RecMail::MsgsizeString() const 33QString RecMail::MsgsizeString() const
34{ 34{
35 35
36 double s = msg_size; 36 double s = msg_size;
@@ -47,6 +47,7 @@ const QString RecMail::MsgsizeString() const
47 fsize += "MB" ; 47 fsize += "MB" ;
48 return fsize; 48 return fsize;
49} 49}
50#endif
50bool RecMail::isEqual( RecMail* r1 ) 51bool RecMail::isEqual( RecMail* r1 )
51{ 52{
52 if ( !stringCompareRec( isodate, r1->isodate ) ) { 53 if ( !stringCompareRec( isodate, r1->isodate ) ) {
diff --git a/kmicromail/libmailwrapper/mailtypes.h b/kmicromail/libmailwrapper/mailtypes.h
index 39c0bac..97f10d7 100644
--- a/kmicromail/libmailwrapper/mailtypes.h
+++ b/kmicromail/libmailwrapper/mailtypes.h
@@ -55,9 +55,21 @@ public:
55 const QString&Replyto()const{return replyto;} 55 const QString&Replyto()const{return replyto;}
56 void setMsgsize(unsigned int size){msg_size = size;} 56 void setMsgsize(unsigned int size){msg_size = size;}
57 const unsigned int Msgsize()const{return msg_size;} 57 const unsigned int Msgsize()const{return msg_size;}
58 const QString MsgsizeString()const; 58 const QString MsgsizeString()const {
59 59 double s = msg_size;
60 60 int w = 0;
61 s/=1024;
62 if (s>999.0) {
63 s/=1024.0;
64 ++w;
65 }
66 QString fsize = QString::number( s, 'f', 2 );
67 if ( w == 0 ) {
68 fsize += "kB" ;
69 } else
70 fsize += "MB" ;
71 return fsize;
72 };
61 void setTo(const QStringList&list); 73 void setTo(const QStringList&list);
62 const QStringList&To()const; 74 const QStringList&To()const;
63 void setCC(const QStringList&list); 75 void setCC(const QStringList&list);