knode
knnntpclient.h
Go to the documentation of this file.00001 /* 00002 knnntpclient.h 00003 00004 KNode, the KDE newsreader 00005 Copyright (c) 1999-2001 the KNode authors. 00006 See file AUTHORS for details 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software Foundation, 00014 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US 00015 */ 00016 00017 #ifndef KNNNTPCLIENT_H 00018 #define KNNNTPCLIENT_H 00019 00020 #include <QMutex> 00021 //Added by qt3to4: 00022 #include <QByteArray> 00023 00024 #include <knprotocolclient.h> 00025 00026 00027 class KNNntpClient : public KNProtocolClient { 00028 00029 public: 00030 00031 KNNntpClient(int NfdPipeIn, int NfdPipeOut, QMutex& nntpMutex); 00032 ~KNNntpClient(); 00033 00034 protected: 00035 00037 virtual void processJob(); 00038 00039 void doLoadGroups(); 00040 void doFetchGroups(); 00041 void doCheckNewGroups(); 00042 void doFetchNewHeaders(); 00043 void doFetchArticle(); 00044 void doPostArticle(); 00045 void doFetchSource(); 00046 00048 virtual bool openConnection(); 00050 virtual bool sendCommand(const QByteArray &cmd, int &rep); 00051 virtual void handleErrors(); 00052 bool switchToGroup(const QString &newGroup); 00053 00054 QString currentGroup; 00055 QMutex& mutex; 00056 00057 }; 00058 00059 #endif
KDE 4.2 API Reference