• 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
nntpjobs.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2005 by Volker Krause <vkrause@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  You should have received a copy of the GNU General Public License
9  along with this program; if not, write to the Free Software Foundation,
10  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
11 */
12 
13 #ifndef KNODE_NNTPJOBS_H
14 #define KNODE_NNTPJOBS_H
15 
16 #include "knjobdata.h"
17 #include "kngroupmanager.h"
18 
19 #include <kio/job.h>
20 
21 #include <QList>
22 
23 class KJob;
24 
25 namespace KNode {
26 
28 class GroupListJob : public KNJobData
29 {
30  Q_OBJECT
31  public:
32  GroupListJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool incremental = false );
33 
34  virtual void execute();
35 
36  private slots:
37  void slotEntries( KIO::Job *job, const KIO::UDSEntryList &list );
38  void slotResult( KJob *job );
39 
40  private:
41  QList<KNGroupInfo> mGroupList;
42  bool mIncremental;
43 };
44 
45 
46 
48 class GroupLoadJob : public KNJobData
49 {
50  public:
51  GroupLoadJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i );
52 
53  virtual void execute();
54 };
55 
56 
57 
61 class ArticleListJob : public KNJobData
62 {
63  Q_OBJECT
64  public:
65  ArticleListJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool silent = false );
66 
67  virtual void execute();
69  bool silent() { return mSilent; }
70 
71  private slots:
72  void slotEntries( KIO::Job *job, const KIO::UDSEntryList &list );
73  void slotResult( KJob *_job );
74 
75  private:
76  KIO::UDSEntryList mArticleList;
77  bool mSilent;
78 };
79 
80 
81 
83 class ArticleFetchJob : public KNJobData
84 {
85  Q_OBJECT
86  public:
87  ArticleFetchJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool parse = true );
88 
89  virtual void execute();
90 
91  private slots:
92  void slotResult( KJob *job );
93 
94  private:
95  bool mParseArticle;
96 };
97 
98 
99 
101 class ArticlePostJob : public KNJobData
102 {
103  Q_OBJECT
104  public:
105  ArticlePostJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i );
106 
107  virtual void execute();
108 
109  private slots:
110  void slotResult( KJob *job );
111 };
112 
113 }
114 #endif
KNode::ArticleFetchJob
Downloads one specific article from the news server.
Definition: nntpjobs.h:83
KNJobData
Abstract base class for all KNode internal jobs.
Definition: knjobdata.h:101
KNode::ArticleListJob::silent
bool silent()
Returns whether an error message should be shown.
Definition: nntpjobs.h:69
KNode::ArticleListJob
Downloads all or a selected part of the article list for a specific newsgroup.
Definition: nntpjobs.h:61
kngroupmanager.h
KNode::GroupLoadJob
Loads the newsgroup list from the disk.
Definition: nntpjobs.h:48
KNode::ArticlePostJob
Post a article to the given news server.
Definition: nntpjobs.h:101
knjobdata.h
KNode::GroupListJob::execute
virtual void execute()
Performs the actual operation of a job, needs to be reimplemented for every job.
Definition: nntpjobs.cpp:28
KNode::GroupLoadJob::GroupLoadJob
GroupLoadJob(KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i)
Definition: nntpjobs.cpp:118
KNode::GroupLoadJob::execute
virtual void execute()
Performs the actual operation of a job, needs to be reimplemented for every job.
Definition: nntpjobs.cpp:123
KNode::ArticlePostJob::ArticlePostJob
ArticlePostJob(KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i)
Definition: nntpjobs.cpp:250
KNode::ArticleFetchJob::execute
virtual void execute()
Performs the actual operation of a job, needs to be reimplemented for every job.
Definition: nntpjobs.cpp:209
KNJobConsumer
Base class for classes that want to create and schedule jobs.
Definition: knjobdata.h:39
KNJobItem::Ptr
boost::shared_ptr< KNJobItem > Ptr
Shared pointer to a KNJobItem.
Definition: knjobdata.h:80
KNode::ArticleFetchJob::ArticleFetchJob
ArticleFetchJob(KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool parse=true)
Definition: nntpjobs.cpp:203
KNode::ArticleListJob::execute
virtual void execute()
Performs the actual operation of a job, needs to be reimplemented for every job.
Definition: nntpjobs.cpp:143
KNode::ArticlePostJob::execute
virtual void execute()
Performs the actual operation of a job, needs to be reimplemented for every job.
Definition: nntpjobs.cpp:255
KNServerInfo::Ptr
boost::shared_ptr< KNServerInfo > Ptr
Shared pointer to a KNServerInfo.
Definition: knserverinfo.h:37
KNode::ArticleListJob::ArticleListJob
ArticleListJob(KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool silent=false)
Definition: nntpjobs.cpp:137
KJob
KNode::GroupListJob::GroupListJob
GroupListJob(KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool incremental=false)
Definition: nntpjobs.cpp:22
KNode::GroupListJob
Download and update newsgroups lists.
Definition: nntpjobs.h:28
QList< KNGroupInfo >
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