Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/interfaces/bodypart.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 70 | public: | |||
---|---|---|---|---|---|
71 | virtual ~BodyPart(); | 71 | virtual ~BodyPart(); | ||
72 | 72 | | |||
73 | /** | 73 | /** | ||
74 | @return the BodyPartMemento set for this part, or null, if | 74 | @return the BodyPartMemento set for this part, or null, if | ||
75 | none is set. | 75 | none is set. | ||
76 | */ | 76 | */ | ||
77 | virtual BodyPartMemento *memento() const = 0; | 77 | virtual BodyPartMemento *memento() const = 0; | ||
78 | 78 | | |||
79 | enum Display { | | |||
80 | None, AsIcon, Inline | | |||
81 | }; | | |||
82 | /** | | |||
83 | @return whether this body part should be displayed iconic or inline | | |||
84 | */ | | |||
85 | virtual Display defaultDisplay() const = 0; | | |||
86 | | ||||
87 | /** Returns the KMime::Content node represented here. Makes most of the above obsolete | 79 | /** Returns the KMime::Content node represented here. Makes most of the above obsolete | ||
88 | and probably should be used in the interfaces in the first place. | 80 | and probably should be used in the interfaces in the first place. | ||
89 | */ | 81 | */ | ||
90 | virtual KMime::Content *content() const = 0; | 82 | virtual KMime::Content *content() const = 0; | ||
91 | 83 | | |||
92 | /** | 84 | /** | ||
93 | * Returns the top-level content. | 85 | * Returns the top-level content. | ||
94 | * Note that this is _not_ necessarily the same as content()->topLevel(), for example the later | 86 | * Note that this is _not_ necessarily the same as content()->topLevel(), for example the later | ||
Show All 23 Lines |