knode
#include <knarticlefactory.h>
Public Types | |
enum | replyType { RTgroup, RTmail, RTboth } |
Public Member Functions | |
KNArticleFactory (QObject *parent=0) | |
~KNArticleFactory () | |
bool | closeComposeWindows () |
void | configChanged () |
void | createCancel (KNArticle::Ptr a) |
void | createForward (KNArticle::Ptr a) |
void | createMail (KMime::Types::Mailbox *address) |
void | createPosting (KNNntpAccount::Ptr a) |
void | createPosting (KNGroup::Ptr g) |
void | createReply (KNRemoteArticle::Ptr a, const QString &selectedText=QString(), bool post=true, bool mail=false) |
void | createSupersede (KNArticle::Ptr a) |
void | deleteComposerForArticle (KNLocalArticle::Ptr a) |
void | edit (KNLocalArticle::Ptr a) |
KNComposer * | findComposer (KNLocalArticle::Ptr a) |
void | sendArticles (KNLocalArticle::List &l, bool now=true) |
void | sendMailExternal (const QString &address=QString(), const QString &subject=QString(), const QString &body=QString()) |
void | sendOutbox () |
Public Member Functions inherited from KNJobConsumer | |
KNJobConsumer () | |
virtual | ~KNJobConsumer () |
void | cancelJobs (boost::shared_ptr< KNJobItem > item) |
void | emitJob (KNJobData *j) |
void | jobDone (KNJobData *j) |
bool | jobsPending () const |
Protected Slots | |
void | slotComposerDone (KNComposer *com) |
void | slotSendErrorDialogDone () |
Protected Member Functions | |
bool | cancelAllowed (KNArticle::Ptr a) |
KNLocalArticle::Ptr | newArticle (KNCollection::Ptr col, const QByteArray &defChset, bool withXHeaders=true, KNArticle::Ptr origPost=KNArticle::Ptr()) |
void | processJob (KNJobData *j) |
void | showSendErrorDialog () |
Protected Attributes | |
QList< KNComposer * > | mCompList |
KNSendErrorDialog * | s_endErrDlg |
Protected Attributes inherited from KNJobConsumer | |
QList< KNJobData * > | mJobs |
Detailed Description
Article factory, responsible for creating and sending news articles.
Definition at line 35 of file knarticlefactory.h.
Member Enumeration Documentation
Enumerator | |
---|---|
RTgroup | |
RTmail | |
RTboth |
Definition at line 40 of file knarticlefactory.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 53 of file knarticlefactory.cpp.
KNArticleFactory::~KNArticleFactory | ( | ) |
Definition at line 59 of file knarticlefactory.cpp.
Member Function Documentation
|
protected |
Definition at line 883 of file knarticlefactory.cpp.
bool KNArticleFactory::closeComposeWindows | ( | ) |
Definition at line 676 of file knarticlefactory.cpp.
void KNArticleFactory::configChanged | ( | ) |
Definition at line 707 of file knarticlefactory.cpp.
void KNArticleFactory::createCancel | ( | KNArticle::Ptr | a | ) |
Definition at line 353 of file knarticlefactory.cpp.
void KNArticleFactory::createForward | ( | KNArticle::Ptr | a | ) |
Definition at line 277 of file knarticlefactory.cpp.
void KNArticleFactory::createMail | ( | KMime::Types::Mailbox * | address | ) |
Definition at line 506 of file knarticlefactory.cpp.
void KNArticleFactory::createPosting | ( | KNNntpAccount::Ptr | a | ) |
Definition at line 67 of file knarticlefactory.cpp.
void KNArticleFactory::createPosting | ( | KNGroup::Ptr | g | ) |
Definition at line 88 of file knarticlefactory.cpp.
void KNArticleFactory::createReply | ( | KNRemoteArticle::Ptr | a, |
const QString & | selectedText = QString() , |
||
bool | post = true , |
||
bool | mail = false |
||
) |
Definition at line 110 of file knarticlefactory.cpp.
void KNArticleFactory::createSupersede | ( | KNArticle::Ptr | a | ) |
Definition at line 431 of file knarticlefactory.cpp.
void KNArticleFactory::deleteComposerForArticle | ( | KNLocalArticle::Ptr | a | ) |
Definition at line 688 of file knarticlefactory.cpp.
void KNArticleFactory::edit | ( | KNLocalArticle::Ptr | a | ) |
Definition at line 560 of file knarticlefactory.cpp.
KNComposer * KNArticleFactory::findComposer | ( | KNLocalArticle::Ptr | a | ) |
Definition at line 698 of file knarticlefactory.cpp.
|
protected |
Generate a new article to edit before posting.
- Parameters
-
col the group or server this article article will be sent to. defChset the default charset of the message withXHeaders origPost original article (in case of reply).
Definition at line 771 of file knarticlefactory.cpp.
|
protectedvirtual |
The actual work is done here.
Reimplemented from KNJobConsumer.
Definition at line 714 of file knarticlefactory.cpp.
void KNArticleFactory::sendArticles | ( | KNLocalArticle::List & | l, |
bool | now = true |
||
) |
Definition at line 590 of file knarticlefactory.cpp.
void KNArticleFactory::sendMailExternal | ( | const QString & | address = QString() , |
const QString & | subject = QString() , |
||
const QString & | body = QString() |
||
) |
Send a mail via an external program.
Definition at line 530 of file knarticlefactory.cpp.
void KNArticleFactory::sendOutbox | ( | ) |
Definition at line 658 of file knarticlefactory.cpp.
|
protected |
Definition at line 952 of file knarticlefactory.cpp.
|
protectedslot |
Definition at line 962 of file knarticlefactory.cpp.
|
protectedslot |
Definition at line 1022 of file knarticlefactory.cpp.
Member Data Documentation
|
protected |
Definition at line 87 of file knarticlefactory.h.
|
protected |
Definition at line 88 of file knarticlefactory.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.