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 QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
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 Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
QList< KNComposer * > | mCompList |
KNSendErrorDialog * | s_endErrDlg |
Protected Attributes inherited from KNJobConsumer | |
QList< KNJobData * > | mJobs |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
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-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.