Add inlineNestedMessages() method to AttachmentStrategy. When used, changes the "smart" mode to show messages inline. I think this was a bug, but others may think otherwise...

CCMAIL: kmail@kde.org

svn path=/trunk/kdepim/; revision=229273
wilder-work
Marc Mutz 23 years ago
parent 51adc9d01f
commit 04bce6549f
  1. 8
      attachmentstrategy.cpp
  2. 10
      attachmentstrategy.h

@ -52,6 +52,8 @@ namespace KMail {
const char * name() const { return "iconic"; }
const AttachmentStrategy * next() const { return smart(); }
const AttachmentStrategy * prev() const { return hidden(); }
bool inlineNestedMessages() const { return false; }
};
//
@ -70,6 +72,8 @@ namespace KMail {
const char * name() const { return "smart"; }
const AttachmentStrategy * next() const { return inlined(); }
const AttachmentStrategy * prev() const { return iconic(); }
bool inlineNestedMessages() const { return true; }
};
//
@ -87,6 +91,8 @@ namespace KMail {
const char * name() const { return "inlined"; }
const AttachmentStrategy * next() const { return hidden(); }
const AttachmentStrategy * prev() const { return smart(); }
bool inlineNestedMessages() const { return true; }
};
//
@ -104,6 +110,8 @@ namespace KMail {
const char * name() const { return "hidden"; }
const AttachmentStrategy * next() const { return iconic(); }
const AttachmentStrategy * prev() const { return inlined(); }
bool inlineNestedMessages() const { return false; }
};

@ -55,9 +55,19 @@ namespace KMail {
static const AttachmentStrategy * inlined();
static const AttachmentStrategy * hidden();
//
// Navigation methods:
//
virtual const char * name() const = 0;
virtual const AttachmentStrategy * next() const = 0;
virtual const AttachmentStrategy * prev() const = 0;
//
// Bahavioural:
//
virtual bool inlineNestedMessages() const = 0;
};
}; // namespace KMail

Loading…
Cancel
Save