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

knode

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

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