• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
knscoring.h
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2005 the KNode authors.
4  See file AUTHORS for details
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 
15 #ifndef KNSCORING_H
16 #define KNSCORING_H
17 
18 #include "knarticle.h"
19 #include "kscoring.h"
20 
21 using namespace KPIM;
22 
24 class KNScorableArticle : public ScorableArticle
25 {
26 public:
27  explicit KNScorableArticle( KNRemoteArticle::Ptr a );
28  virtual ~KNScorableArticle();
29 
30  virtual void addScore(short s);
31  virtual void changeColor(const QColor&);
32  virtual void displayMessage(const QString&);
33  virtual QString from() const;
34  virtual QString subject() const;
35  virtual QString getHeaderByType(const QString&) const;
36  virtual void markAsRead();
37 
38  static NotifyCollection* notifyC;
39 
40 private:
41  KNRemoteArticle::Ptr _a;
42 };
43 
44 
46 class KNScorableGroup : public ScorableGroup
47 {
48 public:
49  KNScorableGroup();
50  virtual ~KNScorableGroup();
51 };
52 
53 
54 // class KNScorableServer : public ScorableServer
55 // {
56 // public:
57 // virtual ~KNScorableServer();
58 // };
59 
60 
62 class KNScoringManager : public KScoringManager
63 {
64  Q_OBJECT
65 
66 public:
67  KNScoringManager();
68  virtual ~KNScoringManager();
69  virtual QStringList getGroups() const;
70  virtual QStringList getDefaultHeaders() const;
71 
72  void configure();
73  bool canColors()const { return true; }
74  bool canMarkAsRead() const { return true; }
75 };
76 
77 #endif
from
QString from() const
KNScoringManager::canColors
bool canColors() const
Definition: knscoring.h:73
KPIM::ScorableArticle
Definition: kscoring.h:59
KNScorableArticle::notifyC
static NotifyCollection * notifyC
Definition: knscoring.h:38
KPIM::KScoringManager
Definition: kscoring.h:315
KNScoringManager
Scoring manager.
Definition: knscoring.h:62
subject
QString subject() const
KPIM::ScorableGroup
The following classes ScorableArticle, ScorableGroup define the interface for the scoring...
Definition: kscoring.h:53
KNRemoteArticle::Ptr
boost::shared_ptr< KNRemoteArticle > Ptr
Shared pointer to a KNRemoteArticle. To be used instead of raw KNRemoteArticle*.
Definition: knarticle.h:107
kscoring.h
KPIM::NotifyCollection
Definition: kscoring.h:166
knarticle.h
KNScoringManager::canMarkAsRead
bool canMarkAsRead() const
Definition: knscoring.h:74
KNScorableArticle
Article interface for the scoring system.
Definition: knscoring.h:24
KNScorableGroup
Group interface for the scoring system.
Definition: knscoring.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal