~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to messageviewer/objecttreesourceif.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define MAILVIEWER_OBJECTTREESOURCE_IF_H
22
22
 
23
23
#include "messageviewer_export.h"
 
24
#include "util.h"
24
25
 
25
 
namespace KMime {
26
 
  class Message;
27
 
}
 
26
#include <KMime/Message>
28
27
 
29
28
class QObject;
30
29
class QTextCodec;
36
35
}
37
36
 
38
37
namespace MessageViewer {
39
 
/** @author Andras Mantia <amantia@kdab.net> */
40
38
 
41
 
/** Interface for object tree sources.*/
 
39
/**
 
40
 * Interface for object tree sources.
 
41
 * @author Andras Mantia <amantia@kdab.net>
 
42
 */
42
43
class MESSAGEVIEWER_EXPORT ObjectTreeSourceIf  {
43
44
 
44
45
public:
 
46
 
45
47
    ObjectTreeSourceIf() {};
46
48
    virtual ~ObjectTreeSourceIf() {};
47
49
 
 
50
    /**
 
51
      * Sets the type of mail that is currently displayed. Applications can display this
 
52
      * information to the user, for example KMail displays a HTML status bar.
 
53
      * Note: This is not called when the mode is "Normal".
 
54
      */
 
55
    virtual void setHtmlMode( Util::HtmlMode mode ) = 0;
 
56
 
48
57
    /** Return true if the mail should be parsed as a html mail */
49
58
    virtual bool htmlMail() = 0;
50
59
 
58
67
    /** Return true to include the signature detailes in the generated html */
59
68
    virtual bool showSignatureDetails() = 0;
60
69
 
61
 
    /** Enable html mode (html statusbar) */
62
 
    virtual void setHtmlMode( bool htmlMode ) = 0;
63
 
 
64
70
    virtual int levelQuote() = 0;
65
71
 
66
72
    /** The override codec that should be used for the mail */
67
73
    virtual const QTextCodec * overrideCodec() = 0;
68
74
    
69
 
    virtual QString createMessageHeader( KMime::Message* message) = 0;
70
 
 
71
 
    /** Disable drag and drop in the sourceObject */
72
 
    virtual void emitNoDrag() = 0;
 
75
    virtual QString createMessageHeader( KMime::Message *message ) = 0;
73
76
 
74
77
    /** Return the wanted attachment startegy */
75
78
    virtual const AttachmentStrategy * attachmentStrategy() = 0;