• 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
knarticle.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 KNARTICLE_H
16 #define KNARTICLE_H
17 
18 #include "knjobdata.h"
19 
20 #include <boost/shared_ptr.hpp>
21 #include <QFile>
22 #include <QColor>
23 #include <kmime/kmime_headers.h>
24 #include <kmime/kmime_newsarticle.h>
25 #include <kmime/boolflags.h>
26 
27 class KNLoadHelper;
28 class KNHdrViewItem;
29 class KNArticleCollection;
30 
35 class KNArticle : public KMime::NewsArticle, public KNJobItem {
36 
37  public:
39  typedef boost::shared_ptr<KNArticle> Ptr;
41  typedef QList<KNArticle::Ptr> List;
42 
43  enum articleType {
44  ATmimeContent,
45  ATremote,
46  ATlocal
47  };
48 
49  explicit KNArticle( boost::shared_ptr<KNArticleCollection> c );
50  ~KNArticle();
51 
52  virtual void clear();
53 
54  virtual articleType type() const { return ATmimeContent; }
55 
57  int id() const { return i_d; }
61  void setId( int i ) { i_d = i; }
62 
63  //list item handling
64  KNHdrViewItem* listItem() const { return i_tem; }
70  void setListItem( KNHdrViewItem *i, KNArticle::Ptr a );
71  virtual void updateListItem() {}
72 
73  //network lock (reimplemented from KNJobItem)
74  bool isLocked() { return f_lags.get(0); }
75  void setLocked(bool b=true);
76 
77  //prevent that the article is unloaded automatically
78  bool isNotUnloadable() { return f_lags.get(1); }
79  void setNotUnloadable(bool b=true) { f_lags.set(1, b); }
80 
81  //article-collection
82  boost::shared_ptr<KNArticleCollection> collection() const { return c_ol; }
83  void setCollection( boost::shared_ptr<KNArticleCollection> c ) { c_ol = c; }
84  bool isOrphant() const { return (i_d==-1); }
85 
86  protected:
87  int i_d; //unique in the given collection
88  boost::shared_ptr<KNArticleCollection> c_ol;
89  KNHdrViewItem *i_tem;
90 
91  KMime::BoolFlags f_lags;
92 
93 }; // KNArticle
94 
95 
96 class KNGroup;
97 
103 class KNRemoteArticle : public KNArticle {
104 
105  public:
107  typedef boost::shared_ptr<KNRemoteArticle> Ptr;
109  typedef QList<KNRemoteArticle::Ptr> List;
110 
111  explicit KNRemoteArticle( boost::shared_ptr<KNGroup> g );
112  ~KNRemoteArticle();
113 
114  // type
115  articleType type() const { return ATremote; }
116 
117  // content handling
118  virtual void parse();
119 
120  // article number
121  int articleNumber() const { return a_rticleNumber; }
122  void setArticleNumber(int number) { a_rticleNumber = number; }
123 
124  // status
125  bool isNew() { return f_lags.get(2); }
126  void setNew(bool b=true) { f_lags.set(2, b); }
127  bool getReadFlag() { return f_lags.get(3); }
128  bool isRead() { return f_lags.get(7) || f_lags.get(3); } // ignored articles == read
129  void setRead(bool b=true) { f_lags.set(3, b); }
130  bool isExpired() { return f_lags.get(4); }
131  void setExpired(bool b=true) { f_lags.set(4, b); }
132  bool isKept() { return f_lags.get(5); }
133  void setKept(bool b=true) { f_lags.set(5, b); }
134  bool hasChanged() { return f_lags.get(6); }
135  void setChanged(bool b=true) { f_lags.set(6, b); }
136  bool isIgnored() { return f_lags.get(7); }
137  void setIgnored(bool b=true) { f_lags.set(7, b); }
138  bool isWatched() { return f_lags.get(8); }
139  void setWatched(bool b=true) { f_lags.set(8, b); }
140 
141  // thread info
142  int idRef() { return i_dRef; }
143  void setIdRef(int i) { if (i != id())
144  i_dRef=i;
145  else
146  i_dRef=0; }
147  KNRemoteArticle::Ptr displayedReference() { return d_ref; }
148  void setDisplayedReference( KNRemoteArticle::Ptr dr ) { d_ref=dr; }
149  bool threadMode() { return f_lags.get(9); }
150  void setThreadMode(bool b=true) { f_lags.set(9, b); }
151  unsigned char threadingLevel() { return t_hrLevel; }
152  void setThreadingLevel(unsigned char l) { t_hrLevel=l; }
153  short score() { return s_core; }
154  void setScore(short s) { s_core=s; }
155  unsigned short newFollowUps() { return n_ewFups; }
156  bool hasNewFollowUps() { return (n_ewFups>0); }
157  void setNewFollowUps(unsigned short s) { n_ewFups=s; }
158  void incNewFollowUps(unsigned short s=1) { n_ewFups+=s; }
159  void decNewFollowUps(unsigned short s=1) { n_ewFups-=s; }
160  unsigned short unreadFollowUps() { return u_nreadFups; }
161  bool hasUnreadFollowUps() { return (u_nreadFups>0); }
162  void setUnreadFollowUps(unsigned short s) { u_nreadFups=s; }
163  void incUnreadFollowUps(unsigned short s=1) { u_nreadFups+=s; }
164  void decUnreadFollowUps(unsigned short s=1) { u_nreadFups-=s; }
165  void thread(List &f);
166 
167  //filtering
168  bool filterResult() { return f_lags.get(10); }
169  void setFilterResult(bool b=true) { f_lags.set(10, b); }
170  bool isFiltered() { return f_lags.get(11); }
171  void setFiltered(bool b=true) { f_lags.set(11, b); }
172  bool hasVisibleFollowUps() { return f_lags.get(12); }
173  void setVisibleFollowUps(bool b=true) { f_lags.set(12, b); }
174 
175  // list item handling
176  void initListItem();
177  void updateListItem();
178 
179  virtual void setForceDefaultCharset( bool b );
180 
181  QColor color() const { return c_olor; }
182  void setColor(const QColor& c) { c_olor = c; }
183 
184  time_t subThreadChangeDate() { return s_ubThreadChangeDate; }
185  void setSubThreadChangeDate(time_t date) { s_ubThreadChangeDate = date; }
186  // propagate the change date to the root article
187  void propagateThreadChangedDate();
188 
189  protected:
190  int a_rticleNumber;
191  int i_dRef; // id of a reference-article (0 == none)
192  KNRemoteArticle::Ptr d_ref; // displayed reference-article (may differ from i_dRef)
193  unsigned char t_hrLevel; // quality of threading
194  short s_core; // guess what ;-)
195  QColor c_olor; // color for the header list
196  unsigned short u_nreadFups, // number of the article's unread follow-ups
197  n_ewFups; // number of the article's new follow-ups
198  time_t s_ubThreadChangeDate; // the last time the sub-thread of this article changed
199  // i.e. when the last article arrived...
200 
201 }; // KNRemoteArticle
202 
203 
204 
210 class KNLocalArticle : public KNArticle {
211 
212  public:
214  typedef boost::shared_ptr<KNLocalArticle> Ptr;
216  typedef QList<KNLocalArticle::Ptr> List;
217 
218  explicit KNLocalArticle( boost::shared_ptr<KNArticleCollection> c = boost::shared_ptr<KNArticleCollection>() );
219  ~KNLocalArticle();
220 
221  //type
222  articleType type() const { return ATlocal; }
223 
224  //send article as mail
225  bool doMail() { return f_lags.get(2); }
226  void setDoMail(bool b=true) { f_lags.set(2, b); }
227  bool mailed() { return f_lags.get(3); }
228  void setMailed(bool b=true) { f_lags.set(3, b); }
229 
230  //post article to a newsgroup
231  bool doPost() { return f_lags.get(4); }
232  void setDoPost(bool b=true) { f_lags.set(4, b); }
233  bool posted() { return f_lags.get(5); }
234  void setPosted(bool b=true) { f_lags.set(5, b); }
235  bool canceled() { return f_lags.get(6); }
236  void setCanceled(bool b=true) { f_lags.set(6, b); }
237 
238  // status
239  bool pending() { return ( (doPost() && !posted()) || (doMail() && !mailed()) ); }
240  bool isSavedRemoteArticle() { return ( !doPost() && !doMail() && editDisabled() ); }
241 
242  //edit
243  bool editDisabled() { return f_lags.get(7); }
244  void setEditDisabled(bool b=true) { f_lags.set(7, b); }
245 
246  //search
247  bool filterResult() { return f_lags.get(8); }
248  void setFilterResult(bool b=true) { f_lags.set(8, b); }
249 
250  //MBOX information
251  int startOffset() const { return s_Offset; }
252  void setStartOffset(int so) { s_Offset=so; }
253  int endOffset() const { return e_Offset; }
254  void setEndOffset(int eo) { e_Offset=eo; }
255 
256  //nntp-server id
257  int serverId() { if(!doPost()) return -1; else return s_erverId; }
258  void setServerId(int i) { s_erverId=i; }
259 
260  //list item handling
261  void updateListItem();
262 
263  virtual void setForceDefaultCharset(bool b);
264 
265  protected:
266  int s_Offset, //position in mbox-file : start
267  e_Offset, //position in mbox-file : end
268  s_erverId; //id of the nntp-server this article is posted to
269 };
270 
271 
275 class KNAttachment {
276 
277  public:
281  typedef boost::shared_ptr<KNAttachment> Ptr;
282 
283  explicit KNAttachment(KMime::Content *c);
284  explicit KNAttachment(KNLoadHelper *helper);
285  ~KNAttachment();
286 
287  //name (used as a Content-Type parameter and as filename)
288  const QString& name() { return n_ame; }
289  void setName(const QString &s) { n_ame=s; h_asChanged=true; }
290 
291  //mime type
292  QString mimeType() { return mMimeType; }
293  void setMimeType(const QString &s);
294 
295  //Content-Description
296  const QString& description() { return d_escription; }
297  void setDescription(const QString &s) { d_escription=s; h_asChanged=true; }
298 
299  //Encoding
300  int cte() { return e_ncoding.encoding(); }
301  void setCte(int e) { e_ncoding.setEncoding( (KMime::Headers::contentEncoding)(e) );
302  h_asChanged=true; }
303  bool isFixedBase64()const { return f_b64; }
304  QString encoding() { return e_ncoding.asUnicodeString(); }
305 
306  //content handling
307  KMime::Content* content()const { return c_ontent; }
308  QString contentSize() const;
309  bool isAttached() const { return i_sAttached; }
310  bool hasChanged() const { return h_asChanged; }
311  void updateContentInfo();
312  void attach(KMime::Content *c);
313  void detach(KMime::Content *c);
314 
315  protected:
316  KMime::Content *c_ontent;
317  KNLoadHelper *l_oadHelper;
318  QFile *f_ile;
319  QString mMimeType;
320  QString n_ame,
321  d_escription;
322  KMime::Headers::ContentTransferEncoding e_ncoding;
323  bool i_sAttached,
324  h_asChanged,
325  f_b64;
326 };
327 
328 #endif //KNARTICLE_H
KNAttachment::mimeType
QString mimeType()
Definition: knarticle.h:292
KNLocalArticle::endOffset
int endOffset() const
Definition: knarticle.h:253
KNRemoteArticle::isKept
bool isKept()
Definition: knarticle.h:132
KNRemoteArticle::threadMode
bool threadMode()
Definition: knarticle.h:149
KNLocalArticle::setCanceled
void setCanceled(bool b=true)
Definition: knarticle.h:236
KNRemoteArticle::isWatched
bool isWatched()
Definition: knarticle.h:138
KNRemoteArticle::List
QList< KNRemoteArticle::Ptr > List
List of remote articles.
Definition: knarticle.h:109
KNArticle::updateListItem
virtual void updateListItem()
Definition: knarticle.h:71
KNRemoteArticle::incUnreadFollowUps
void incUnreadFollowUps(unsigned short s=1)
Definition: knarticle.h:163
KNRemoteArticle::isFiltered
bool isFiltered()
Definition: knarticle.h:170
KNRemoteArticle::u_nreadFups
unsigned short u_nreadFups
Definition: knarticle.h:196
KNRemoteArticle::s_core
short s_core
Definition: knarticle.h:194
KNAttachment::isAttached
bool isAttached() const
Definition: knarticle.h:309
KNLocalArticle::Ptr
boost::shared_ptr< KNLocalArticle > Ptr
Shared pointer to a KNLocalArticle. To be used instead of raw KNLocalArticle*.
Definition: knarticle.h:214
KNArticle::ATremote
Definition: knarticle.h:45
KNArticle::setNotUnloadable
void setNotUnloadable(bool b=true)
Definition: knarticle.h:79
KNAttachment::KNAttachment
KNAttachment(KMime::Content *c)
KNAttachment::h_asChanged
bool h_asChanged
Definition: knarticle.h:323
KNLocalArticle::posted
bool posted()
Definition: knarticle.h:233
KNRemoteArticle::~KNRemoteArticle
~KNRemoteArticle()
Definition: knarticle.cpp:88
KNLocalArticle::s_Offset
int s_Offset
Definition: knarticle.h:266
KNLocalArticle::doPost
bool doPost()
Definition: knarticle.h:231
KNAttachment::f_ile
QFile * f_ile
Definition: knarticle.h:318
KNArticle::List
QList< KNArticle::Ptr > List
List of articles.
Definition: knarticle.h:41
KNRemoteArticle::thread
void thread(List &f)
Definition: knarticle.cpp:169
KNRemoteArticle::parse
virtual void parse()
Definition: knarticle.cpp:92
KNRemoteArticle::isRead
bool isRead()
Definition: knarticle.h:128
date
time_t date() const
KNAttachment::updateContentInfo
void updateContentInfo()
Definition: knarticle.cpp:375
KNRemoteArticle::n_ewFups
unsigned short n_ewFups
Definition: knarticle.h:196
KNRemoteArticle::setNew
void setNew(bool b=true)
Definition: knarticle.h:126
KNRemoteArticle::threadingLevel
unsigned char threadingLevel()
Definition: knarticle.h:151
KNRemoteArticle::hasChanged
bool hasChanged()
Definition: knarticle.h:134
KNRemoteArticle::updateListItem
void updateListItem()
Definition: knarticle.cpp:130
KNRemoteArticle::unreadFollowUps
unsigned short unreadFollowUps()
Definition: knarticle.h:160
KNRemoteArticle::setThreadingLevel
void setThreadingLevel(unsigned char l)
Definition: knarticle.h:152
KNRemoteArticle::setFilterResult
void setFilterResult(bool b=true)
Definition: knarticle.h:169
KNRemoteArticle::getReadFlag
bool getReadFlag()
Definition: knarticle.h:127
KNArticle::f_lags
KMime::BoolFlags f_lags
Definition: knarticle.h:91
KNAttachment::isFixedBase64
bool isFixedBase64() const
Definition: knarticle.h:303
KNLocalArticle::e_Offset
int e_Offset
Definition: knarticle.h:266
KNRemoteArticle::setRead
void setRead(bool b=true)
Definition: knarticle.h:129
KNArticle::ATmimeContent
Definition: knarticle.h:44
KNLocalArticle::KNLocalArticle
KNLocalArticle(boost::shared_ptr< KNArticleCollection > c=boost::shared_ptr< KNArticleCollection >())
Definition: knarticle.cpp:234
KNAttachment::content
KMime::Content * content() const
Definition: knarticle.h:307
KNRemoteArticle::initListItem
void initListItem()
Definition: knarticle.cpp:113
KNArticle::id
int id() const
Returns the article id.
Definition: knarticle.h:57
KNAttachment
KNAttachment represents a file that is or will be attached to an article.
Definition: knarticle.h:275
KNLocalArticle::isSavedRemoteArticle
bool isSavedRemoteArticle()
Definition: knarticle.h:240
KNGroup
Representation of a news group.
Definition: kngroup.h:41
KNLocalArticle::doMail
bool doMail()
Definition: knarticle.h:225
KNRemoteArticle::t_hrLevel
unsigned char t_hrLevel
Definition: knarticle.h:193
KNRemoteArticle::s_ubThreadChangeDate
time_t s_ubThreadChangeDate
Definition: knarticle.h:198
KNRemoteArticle::setChanged
void setChanged(bool b=true)
Definition: knarticle.h:135
KNRemoteArticle::displayedReference
KNRemoteArticle::Ptr displayedReference()
Definition: knarticle.h:147
KNRemoteArticle::KNRemoteArticle
KNRemoteArticle(boost::shared_ptr< KNGroup > g)
Definition: knarticle.cpp:76
KNLoadHelper
File open helper (includes file open dialog and network download).
Definition: utilities.h:55
KNRemoteArticle::isNew
bool isNew()
Definition: knarticle.h:125
KNAttachment::l_oadHelper
KNLoadHelper * l_oadHelper
Definition: knarticle.h:317
KNRemoteArticle::decUnreadFollowUps
void decUnreadFollowUps(unsigned short s=1)
Definition: knarticle.h:164
KNLocalArticle::filterResult
bool filterResult()
Definition: knarticle.h:247
KNArticle::isOrphant
bool isOrphant() const
Definition: knarticle.h:84
KNAttachment::setName
void setName(const QString &s)
Definition: knarticle.h:289
KNAttachment::encoding
QString encoding()
Definition: knarticle.h:304
KNRemoteArticle::setArticleNumber
void setArticleNumber(int number)
Definition: knarticle.h:122
KNLocalArticle::setMailed
void setMailed(bool b=true)
Definition: knarticle.h:228
KNAttachment::n_ame
QString n_ame
Definition: knarticle.h:320
KNArticle::type
virtual articleType type() const
Definition: knarticle.h:54
KNAttachment::attach
void attach(KMime::Content *c)
Definition: knarticle.cpp:410
KNArticle::setListItem
void setListItem(KNHdrViewItem *i, KNArticle::Ptr a)
Sets the headerview item associated to this article.
Definition: knarticle.cpp:51
KNArticle::KNArticle
KNArticle(boost::shared_ptr< KNArticleCollection > c)
Definition: knarticle.cpp:33
KNArticle::i_d
int i_d
Definition: knarticle.h:87
KNLocalArticle::setEditDisabled
void setEditDisabled(bool b=true)
Definition: knarticle.h:244
KNRemoteArticle::setThreadMode
void setThreadMode(bool b=true)
Definition: knarticle.h:150
knjobdata.h
KNLocalArticle
This class encapsulates an article, that is stored locally in an MBOX-file.
Definition: knarticle.h:210
KNRemoteArticle::score
short score()
Definition: knarticle.h:153
KNRemoteArticle::propagateThreadChangedDate
void propagateThreadChangedDate()
Definition: knarticle.cpp:212
KNArticle::clear
virtual void clear()
Definition: knarticle.cpp:45
KNRemoteArticle::setScore
void setScore(short s)
Definition: knarticle.h:154
KNArticle::ATlocal
Definition: knarticle.h:46
KNAttachment::d_escription
QString d_escription
Definition: knarticle.h:320
KNRemoteArticle::i_dRef
int i_dRef
Definition: knarticle.h:191
KNRemoteArticle::subThreadChangeDate
time_t subThreadChangeDate()
Definition: knarticle.h:184
KNRemoteArticle::hasUnreadFollowUps
bool hasUnreadFollowUps()
Definition: knarticle.h:161
KNArticle::i_tem
KNHdrViewItem * i_tem
Definition: knarticle.h:89
KNRemoteArticle::newFollowUps
unsigned short newFollowUps()
Definition: knarticle.h:155
KNHdrViewItem
Header view item.
Definition: knhdrviewitem.h:26
KNRemoteArticle::hasNewFollowUps
bool hasNewFollowUps()
Definition: knarticle.h:156
KNRemoteArticle::setWatched
void setWatched(bool b=true)
Definition: knarticle.h:139
KNAttachment::i_sAttached
bool i_sAttached
Definition: knarticle.h:323
KNRemoteArticle::setDisplayedReference
void setDisplayedReference(KNRemoteArticle::Ptr dr)
Definition: knarticle.h:148
KNRemoteArticle::hasVisibleFollowUps
bool hasVisibleFollowUps()
Definition: knarticle.h:172
KNLocalArticle::setStartOffset
void setStartOffset(int so)
Definition: knarticle.h:252
KNAttachment::setMimeType
void setMimeType(const QString &s)
Definition: knarticle.cpp:341
KNAttachment::description
const QString & description()
Definition: knarticle.h:296
KNLocalArticle::setEndOffset
void setEndOffset(int eo)
Definition: knarticle.h:254
KNRemoteArticle::type
articleType type() const
Definition: knarticle.h:115
KNRemoteArticle::isExpired
bool isExpired()
Definition: knarticle.h:130
KNRemoteArticle::setIdRef
void setIdRef(int i)
Definition: knarticle.h:143
KNAttachment::c_ontent
KMime::Content * c_ontent
Definition: knarticle.h:316
KNArticle::collection
boost::shared_ptr< KNArticleCollection > collection() const
Definition: knarticle.h:82
KNLocalArticle::canceled
bool canceled()
Definition: knarticle.h:235
KNLocalArticle::List
QList< KNLocalArticle::Ptr > List
List of local articles.
Definition: knarticle.h:216
KNLocalArticle::setDoMail
void setDoMail(bool b=true)
Definition: knarticle.h:226
KNRemoteArticle::setSubThreadChangeDate
void setSubThreadChangeDate(time_t date)
Definition: knarticle.h:185
KNRemoteArticle::setExpired
void setExpired(bool b=true)
Definition: knarticle.h:131
KNRemoteArticle::d_ref
KNRemoteArticle::Ptr d_ref
Definition: knarticle.h:192
KNArticle::listItem
KNHdrViewItem * listItem() const
Definition: knarticle.h:64
KNArticle::articleType
articleType
Definition: knarticle.h:43
KNLocalArticle::setForceDefaultCharset
virtual void setForceDefaultCharset(bool b)
Definition: knarticle.cpp:286
KNArticle
This class encapsulates a generic article.
Definition: knarticle.h:35
KNRemoteArticle::Ptr
boost::shared_ptr< KNRemoteArticle > Ptr
Shared pointer to a KNRemoteArticle. To be used instead of raw KNRemoteArticle*.
Definition: knarticle.h:107
KNLocalArticle::updateListItem
void updateListItem()
Definition: knarticle.cpp:245
KNRemoteArticle::incNewFollowUps
void incNewFollowUps(unsigned short s=1)
Definition: knarticle.h:158
KNRemoteArticle::setFiltered
void setFiltered(bool b=true)
Definition: knarticle.h:171
KNRemoteArticle::a_rticleNumber
int a_rticleNumber
Definition: knarticle.h:190
KNArticle::Ptr
boost::shared_ptr< KNArticle > Ptr
Shared pointer to a KNArticle. To be used instead of raw KNArticle*.
Definition: knarticle.h:39
KNAttachment::contentSize
QString contentSize() const
Definition: knarticle.cpp:360
KNLocalArticle::serverId
int serverId()
Definition: knarticle.h:257
KNLocalArticle::mailed
bool mailed()
Definition: knarticle.h:227
KNLocalArticle::pending
bool pending()
Definition: knarticle.h:239
KNAttachment::setDescription
void setDescription(const QString &s)
Definition: knarticle.h:297
KNRemoteArticle::setKept
void setKept(bool b=true)
Definition: knarticle.h:133
KNRemoteArticle::idRef
int idRef()
Definition: knarticle.h:142
KNLocalArticle::s_erverId
int s_erverId
Definition: knarticle.h:266
KNAttachment::setCte
void setCte(int e)
Definition: knarticle.h:301
KNRemoteArticle::color
QColor color() const
Definition: knarticle.h:181
KNJobItem
Base class for data structures used in jobs.
Definition: knjobdata.h:74
KNRemoteArticle::setIgnored
void setIgnored(bool b=true)
Definition: knarticle.h:137
KNRemoteArticle::setForceDefaultCharset
virtual void setForceDefaultCharset(bool b)
Definition: knarticle.cpp:201
KNArticle::c_ol
boost::shared_ptr< KNArticleCollection > c_ol
Definition: knarticle.h:88
KNLocalArticle::startOffset
int startOffset() const
Definition: knarticle.h:251
KNAttachment::cte
int cte()
Definition: knarticle.h:300
KNRemoteArticle::c_olor
QColor c_olor
Definition: knarticle.h:195
KNRemoteArticle
KNRemoteArticle represents an article, whos body has to be retrieved from a remote host or from the l...
Definition: knarticle.h:103
KNLocalArticle::~KNLocalArticle
~KNLocalArticle()
Definition: knarticle.cpp:241
KNRemoteArticle::setUnreadFollowUps
void setUnreadFollowUps(unsigned short s)
Definition: knarticle.h:162
KNAttachment::mMimeType
QString mMimeType
Definition: knarticle.h:319
KNArticle::setCollection
void setCollection(boost::shared_ptr< KNArticleCollection > c)
Definition: knarticle.h:83
KNArticle::isLocked
bool isLocked()
Definition: knarticle.h:74
KNArticle::isNotUnloadable
bool isNotUnloadable()
Definition: knarticle.h:78
KNAttachment::e_ncoding
KMime::Headers::ContentTransferEncoding e_ncoding
Definition: knarticle.h:322
KNArticleCollection
Abstract base class for article collections, ie.
Definition: knarticlecollection.h:76
KNAttachment::name
const QString & name()
Definition: knarticle.h:288
KNAttachment::hasChanged
bool hasChanged() const
Definition: knarticle.h:310
KNRemoteArticle::isIgnored
bool isIgnored()
Definition: knarticle.h:136
KNLocalArticle::type
articleType type() const
Definition: knarticle.h:222
KNRemoteArticle::setColor
void setColor(const QColor &c)
Definition: knarticle.h:182
KNRemoteArticle::setVisibleFollowUps
void setVisibleFollowUps(bool b=true)
Definition: knarticle.h:173
KNLocalArticle::setFilterResult
void setFilterResult(bool b=true)
Definition: knarticle.h:248
KNArticle::setLocked
void setLocked(bool b=true)
Definition: knarticle.cpp:61
KNAttachment::detach
void detach(KMime::Content *c)
Definition: knarticle.cpp:447
KNRemoteArticle::articleNumber
int articleNumber() const
Definition: knarticle.h:121
KNRemoteArticle::setNewFollowUps
void setNewFollowUps(unsigned short s)
Definition: knarticle.h:157
KNAttachment::Ptr
boost::shared_ptr< KNAttachment > Ptr
Shared pointer to a KNAttachment.
Definition: knarticle.h:281
KNLocalArticle::editDisabled
bool editDisabled()
Definition: knarticle.h:243
KNLocalArticle::setDoPost
void setDoPost(bool b=true)
Definition: knarticle.h:232
KNRemoteArticle::decNewFollowUps
void decNewFollowUps(unsigned short s=1)
Definition: knarticle.h:159
KNAttachment::~KNAttachment
~KNAttachment()
Definition: knarticle.cpp:333
KNRemoteArticle::filterResult
bool filterResult()
Definition: knarticle.h:168
KNLocalArticle::setServerId
void setServerId(int i)
Definition: knarticle.h:258
KNAttachment::f_b64
bool f_b64
Definition: knarticle.h:323
KNLocalArticle::setPosted
void setPosted(bool b=true)
Definition: knarticle.h:234
QList< KNArticle::Ptr >
KNArticle::setId
void setId(int i)
Sets the article id.
Definition: knarticle.h:61
KNArticle::~KNArticle
~KNArticle()
Definition: knarticle.cpp:39
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