doc fixes found while translating
[kdepim.git] / knode / nntpjobs.h
blob6a879606afbe69ad8bc4f35e82bc0b6d4b939b45
1 /*
2 Copyright (c) 2005 by Volker Krause <vkrause@kde.org>
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
13 #ifndef KNODE_NNTPJOBS_H
14 #define KNODE_NNTPJOBS_H
16 #include "knjobdata.h"
17 #include "kngroupmanager.h"
19 #include <kio/job.h>
21 #include <QList>
23 class KJob;
25 namespace KNode {
27 /** Download and update newsgroups lists */
28 class GroupListJob : public KNJobData
30 Q_OBJECT
31 public:
32 GroupListJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool incremental = false );
34 virtual void execute();
36 private slots:
37 void slotEntries( KIO::Job *job, const KIO::UDSEntryList &list );
38 void slotResult( KJob *job );
40 private:
41 QList<KNGroupInfo> mGroupList;
42 bool mIncremental;
47 /** Loads the newsgroup list from the disk. */
48 class GroupLoadJob : public KNJobData
50 public:
51 GroupLoadJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i );
53 virtual void execute();
58 /** Downloads all or a selected part of the article list for a specific
59 * newsgroup.
61 class ArticleListJob : public KNJobData
63 Q_OBJECT
64 public:
65 ArticleListJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool silent = false );
67 virtual void execute();
68 /** Returns whether an error message should be shown. */
69 bool silent() { return mSilent; }
71 private slots:
72 void slotEntries( KIO::Job *job, const KIO::UDSEntryList &list );
73 void slotResult( KJob *_job );
75 private:
76 KIO::UDSEntryList mArticleList;
77 bool mSilent;
82 /** Downloads one specific article from the news server. */
83 class ArticleFetchJob : public KNJobData
85 Q_OBJECT
86 public:
87 ArticleFetchJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i, bool parse = true );
89 virtual void execute();
91 private slots:
92 void slotResult( KJob *job );
94 private:
95 bool mParseArticle;
100 /** Post a article to the given news server. */
101 class ArticlePostJob : public KNJobData
103 Q_OBJECT
104 public:
105 ArticlePostJob( KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i );
107 virtual void execute();
109 private slots:
110 void slotResult( KJob *job );
114 #endif