libkdenetwork Library API Documentation

kmime_newsarticle.h

00001 /* 00002 kmime_newsarticle.h 00003 00004 KMime, the KDE internet mail/usenet news message library. 00005 Copyright (c) 2001 the KMime 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US 00015 */ 00016 #ifndef __KMIME_NEWSARTICLE_H__ 00017 #define __KMIME_NEWSARTICLE_H__ 00018 00019 #include "kmime_message.h" 00020 00021 namespace KMime { 00022 00023 class NewsArticle : public Message { 00024 00025 public: 00026 00027 NewsArticle() : Message() { l_ines.setParent(this); } 00028 ~NewsArticle() {}; 00029 00030 virtual void parse(); 00031 virtual void assemble(); 00032 virtual void clear(); 00033 00034 virtual KMime::Headers::Base * getHeaderByType(const char* type); 00035 virtual void setHeader(KMime::Headers::Base *h); 00036 virtual bool removeHeader(const char * type); 00037 00038 virtual KMime::Headers::Control* control(bool create=true) { KMime::Headers::Control *p=0; return getHeaderInstance(p, create); } 00039 virtual KMime::Headers::Supersedes* supersedes(bool create=true) { KMime::Headers::Supersedes *p=0; return getHeaderInstance(p, create); } 00040 virtual KMime::Headers::MailCopiesTo* mailCopiesTo(bool create=true) { KMime::Headers::MailCopiesTo *p=0; return getHeaderInstance(p, create); } 00041 virtual KMime::Headers::Newsgroups* newsgroups(bool create=true) { KMime::Headers::Newsgroups *p=0; return getHeaderInstance(p, create); } 00042 virtual KMime::Headers::FollowUpTo* followUpTo(bool create=true) { KMime::Headers::FollowUpTo *p=0; return getHeaderInstance(p, create); } 00043 virtual KMime::Headers::Lines* lines(bool create=true) { if(!create && l_ines.isEmpty()) return 0; return &l_ines; } 00044 virtual KMime::Headers::UserAgent* userAgent(bool create=true) { KMime::Headers::UserAgent *p=0; return getHeaderInstance(p, create); } 00045 00046 00047 protected: 00048 KMime::Headers::Lines l_ines; 00049 00050 }; // class NewsArticle 00051 00052 } // namespace KMime 00053 00054 #endif // __KMIME_NEWSARTICLE_H__
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:16 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003