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

List:       kmail-devel
Subject:    Re: PATCH : scoring
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2001-04-12 20:55:15
[Download RAW message or body]

On Wednesday 11 April 2001 13:03, Michael Häckel wrote:

> But only when searching in the whole message, otherwise it uses only a
> QCString and the KMMessage is NULL.

I'm looking at it and there is one problem with this approach : I can't set 
the score of a message :-).

What the score manager expects are instances of this API :

class ScorableArticle
{
public:
  virtual ~ScorableArticle();

  virtual void addScore(short s) = 0;
  virtual QString from() const = 0;
  virtual QString subject() const = 0;
  virtual QString getHeaderByType(const QString&) const = 0;
};

I can't really make an adapter for this over a QString, what would I do with 
addScore() ?

One possible way is, associate the QString with an Int, put the score there. 
If score is non null, actually fetch the whole KMMessage and set its score. 
But really this is ugly beyond words. Then again it would probably work.

-- 
					Guillaume.
					http://www.telegraph-road.org
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

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

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