LeechCraft Monocle  0.6.70-10870-g558588d6ec
Modular document viewer for LeechCraft
LeechCraft::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 LeechCraft::Monocle::IHaveOptionalContent::~IHaveOptionalContent ( )
inlinevirtual

Definition at line 48 of file ihaveoptionalcontent.h.

Member Function Documentation

◆ GetOptContentModel()

virtual QAbstractItemModel* LeechCraft::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: