MessageViewer::AttachmentStrategy Class
The AttachmentStrategy class. More...
| Header: | #include <MessageViewer/AttachmentStrategy> |
| CMake: | find_package(KPim6MessageViewer REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MessageViewer) |
Public Functions
| virtual MessageViewer::AttachmentStrategy::Display | defaultDisplay(KMime::Content *node) const = 0 |
| virtual bool | inlineNestedMessages() const = 0 |
| virtual const char * | name() const = 0 |
| virtual bool | requiresAttachmentListInHeader() const |
Static Public Members
| const MessageViewer::AttachmentStrategy * | create(MessageViewer::AttachmentStrategy::Type type) |
| const MessageViewer::AttachmentStrategy * | create(const QString &type) |
| const MessageViewer::AttachmentStrategy * | headerOnly() |
| const MessageViewer::AttachmentStrategy * | hidden() |
| const MessageViewer::AttachmentStrategy * | iconic() |
| const MessageViewer::AttachmentStrategy * | inlined() |
| const MessageViewer::AttachmentStrategy * | smart() |
Protected Functions
| AttachmentStrategy() | |
| virtual | ~AttachmentStrategy() |
Detailed Description
Member Function Documentation
[protected] AttachmentStrategy::AttachmentStrategy()
Constructor (protected)
[virtual noexcept protected] AttachmentStrategy::~AttachmentStrategy()
Destructor (virtual)
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::create(MessageViewer::AttachmentStrategy::Type type)
Creates an AttachmentStrategy of the given type type the strategy type Returns const AttachmentStrategy pointer
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::create(const QString &type)
Creates an AttachmentStrategy of the given type name type the strategy type name Returns const AttachmentStrategy pointer
[pure virtual] MessageViewer::AttachmentStrategy::Display AttachmentStrategy::defaultDisplay(KMime::Content *node) const
Returns the default display mode for an attachment node the MIME content node Returns display mode
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::headerOnly()
Returns the header only attachment strategy Returns const AttachmentStrategy pointer
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::hidden()
Returns the hidden attachment strategy Returns const AttachmentStrategy pointer
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::iconic()
Returns the iconic attachment strategy Returns const AttachmentStrategy pointer
[pure virtual] bool AttachmentStrategy::inlineNestedMessages() const
Checks if nested messages should be inlined Returns true if nested messages should be inlined
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::inlined()
Returns the inlined attachment strategy Returns const AttachmentStrategy pointer
[pure virtual] const char *AttachmentStrategy::name() const
Returns the name of the strategy Returns strategy name
[virtual] bool AttachmentStrategy::requiresAttachmentListInHeader() const
Checks if attachment list is required in the header Returns true if attachment list is required
[static] const MessageViewer::AttachmentStrategy *AttachmentStrategy::smart()
Returns the smart attachment strategy Returns const AttachmentStrategy pointer