LeechCraft Monocle 0.6.70-17609-g3dde4097dd
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
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.

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 24 of file ihaveoptionalcontent.h.

Constructor & Destructor Documentation

◆ ~IHaveOptionalContent()

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

Definition at line 27 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:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/plugins/monocle/interfaces/monocle/ihaveoptionalcontent.h