Messagelib

bodyparturlhandler.h
1 /* -*- c++ -*-
2  interfaces/bodyparturlhandler.h
3 
4  This file is part of KMail's plugin interface.
5  SPDX-FileCopyrightText: 2003, 2004 Marc Mutz <[email protected]>
6 
7  SPDX-License-Identifier: GPL-2.0-or-later
8 */
9 
10 #ifndef KMAIL_INTERFACE_BODYPARTURLHANDLER_H
11 #define KMAIL_INTERFACE_BODYPARTURLHANDLER_H
12 
13 class QString;
14 class QPoint;
15 
16 namespace MimeTreeParser {
17 namespace Interface {
18 class BodyPart;
19 }
20 }
21 
22 namespace MessageViewer {
23 class Viewer;
24 }
25 
26 namespace MessageViewer {
27 namespace Interface {
53 {
54 public:
55  virtual ~BodyPartURLHandler()
56  {
57  }
58 
59  virtual QString name() const = 0;
66  virtual bool handleClick(MessageViewer::Viewer *viewerInstance, MimeTreeParser::Interface::BodyPart *part, const QString &path) const = 0;
67 
75  virtual bool handleContextMenuRequest(MimeTreeParser::Interface::BodyPart *part, const QString &path, const QPoint &p) const = 0;
76 
83  virtual QString statusBarMessage(MimeTreeParser::Interface::BodyPart *part, const QString &path) const = 0;
84 };
85 } // namespace Interface
86 }
87 
88 #endif // KMAIL_INTERFACES_BODYPARTURLHANDLER_H
This is the main widget for the viewer.
Definition: viewer.h:85
An interface to body part reader link handlers.
interface of message body parts.
Definition: bodypart.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:14:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.