[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kmail
From:       Ingo Klöcker <ingo.kloecker () epost ! de>
Date:       2003-01-19 16:21:36
[Download RAW message or body]

CVS commit by kloecker: 

Forward port from 3_1:
kmmessage.*:
- Add static QValueList<int> determineAllowedCtes( const KMime::CharFreq& cf,
                                                   bool allow8Bit,
                                                   bool willBeSigned );
  This function returns a list of ctes which can be used to encode a
  message/message part with the given result of the character frequency
  analysis and under the given restrictions. This function is introduced
  to remove code quadruplication (the same code was used twice in
  KMMessage and twice in KMMessagePart).

kmmessage.* and kmmsgpart.*:
- Add bool willBeSigned parameter to the setBodyAndGuessCte functions.
- Get rid of the quadupled code and instead use the above mentioned
  static function.

kmcomposewin.cpp:
- Make use of the enhanced setBodyAndGuessCte functions.

Patch as posted to the KMail mailing list on Dec 22 (except for the 'const' in \
determineAllowedCtes(...)).


  M +10 -32    kmcomposewin.cpp   1.646
  M +62 -73    kmmessage.cpp   1.365
  M +20 -6     kmmessage.h   1.122
  M +18 -80    kmmsgpart.cpp   1.97
  M +6 -3      kmmsgpart.h   1.34


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic