LeechCraft Monocle  0.6.70-13729-g7046a9d2a7
Modular document viewer for LeechCraft
LC::Monocle::IHaveOptionalContent Class Referenceabstract

Interface for documents that can toggle showing some of their contents. More...

#include "ihaveoptionalcontent.h"

Public Member Functions

virtual ~IHaveOptionalContent ()
 
virtual QAbstractItemModel * GetOptContentModel ()=0
 Returns the optional contents model for the document. More...
 

Detailed Description

Interface for documents that can toggle showing some of their contents.

The list of togglable contents is returned via the GetOptContentModel(), returning a model whose items can be checked or unchecked (and, possibly, edited).

Definition at line 45 of file ihaveoptionalcontent.h.

Constructor & Destructor Documentation

◆ ~IHaveOptionalContent()

virtual LC::Monocle::IHaveOptionalContent::~IHaveOptionalContent ( )
inlinevirtual

Definition at line 48 of file ihaveoptionalcontent.h.

Member Function Documentation

◆ GetOptContentModel()

virtual QAbstractItemModel* LC::Monocle::IHaveOptionalContent::GetOptContentModel ( )
pure virtual

Returns the optional contents model for the document.

Returns
The contents model, or a nullptr if no optional content is present in this document.

The documentation for this class was generated from the following file: