• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • viewer
attachmentstrategy.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  attachmentstrategy.h
3 
4  This file is part of KMail, the KDE mail client.
5  Copyright (c) 2003 Marc Mutz <mutz@kde.org>
6  Copyright (C) 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
7  Copyright (c) 2009 Andras Mantia <andras@kdab.net>
8 
9  KMail is free software; you can redistribute it and/or modify it
10  under the terms of the GNU General Public License, version 2, as
11  published by the Free Software Foundation.
12 
13  KMail is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 
22  In addition, as a special exception, the copyright holders give
23  permission to link the code of this program with any edition of
24  the Qt library by Trolltech AS, Norway (or with modified versions
25  of Qt that use the same license as Qt), and distribute linked
26  combinations including the two. You must obey the GNU General
27  Public License in all respects for all of the code used other than
28  Qt. If you modify this file, you may extend this exception to
29  your version of the file, but you are not obligated to do so. If
30  you do not wish to do so, delete this exception statement from
31  your version.
32 */
33 
34 #ifndef __MESSAGEVIEWER_ATTACHMENTSTRATEGY_H__
35 #define __MESSAGEVIEWER_ATTACHMENTSTRATEGY_H__
36 
37 #include "messageviewer_export.h"
38 
39 class QString;
40 namespace KMime {
41 class Content;
42 }
43 
44 namespace MessageViewer {
45 
46 class MESSAGEVIEWER_EXPORT AttachmentStrategy
47 {
48 protected:
49  AttachmentStrategy();
50  virtual ~AttachmentStrategy();
51 
52 public:
53  //
54  // Factory methods:
55  //
56  enum Type { Iconic, Smart, Inlined, Hidden, HeaderOnly };
57 
58  static const AttachmentStrategy * create( Type type );
59  static const AttachmentStrategy * create( const QString & type );
60 
61  static const AttachmentStrategy * iconic();
62  static const AttachmentStrategy * smart();
63  static const AttachmentStrategy * inlined();
64  static const AttachmentStrategy * hidden();
65  static const AttachmentStrategy * headerOnly();
66 
67  //
68  // Navigation methods:
69  //
70 
71  virtual const char * name() const = 0;
72  virtual const AttachmentStrategy * next() const = 0;
73  virtual const AttachmentStrategy * prev() const = 0;
74 
75  //
76  // Bahavioural:
77  //
78 
79  enum Display { None, AsIcon, Inline };
80 
81  virtual bool inlineNestedMessages() const = 0;
82  virtual Display defaultDisplay( KMime::Content * node ) const = 0;
83  virtual bool requiresAttachmentListInHeader() const {
84  return false;
85  }
86 };
87 
88 }
89 
90 #endif // __MESSAGEVIEWER_ATTACHMENTSTRATEGY_H__
MessageViewer::AttachmentStrategy::requiresAttachmentListInHeader
virtual bool requiresAttachmentListInHeader() const
Definition: attachmentstrategy.h:83
MessageViewer::AttachmentStrategy::None
Definition: attachmentstrategy.h:79
MessageViewer::AttachmentStrategy::Type
Type
Definition: attachmentstrategy.h:56
MessageViewer::AttachmentStrategy::Display
Display
Definition: attachmentstrategy.h:79
QString
MESSAGEVIEWER_EXPORT
#define MESSAGEVIEWER_EXPORT
Definition: messageviewer_export.h:37
type
const char * type
Definition: bodypartformatter.cpp:192
MessageViewer::AttachmentStrategy
Definition: attachmentstrategy.h:46
messageviewer_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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
  • pimprint

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