Source file: src/mime_msg_viewer.h
/* Copyright (C) 2004-2010 Daniel Verite
This file is part of Manitou-Mail (see http://www.manitou-mail.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef INC_MIME_MSG_VIEWER_H
#define INC_MIME_MSG_VIEWER_H
#include <QWidget>
#include <QString>
#include "mail_displayer.h"
class message_view;
class attch_listview;
class mime_msg_viewer: public QWidget
{
Q_OBJECT
public:
mime_msg_viewer(const char* rawmsg, const display_prefs& prefs);
virtual ~mime_msg_viewer();
private:
/* Appends to 'html_output' an html representation of 'body' which is
the body of a raw rfc822 message (proper encoding information should
come along, FIXME) */
void format_body(QString& html_output, const char* body, const display_prefs& prefs);
message_view* m_view;
attch_listview* m_attchview;
QString m_header;
private slots:
void edit_copy();
};
#endif // INC_MIME_MSG_VIEWER_H
HTML source code generated by GNU Source-Highlight plus some custom post-processing
List of all available source files