LeechCraft Monocle  0.6.70-6645-gcd10d7e
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

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

Definition at line 48 of file ihaveoptionalcontent.h.

References GetOptContentModel(), and Q_DECLARE_INTERFACE().

+ Here is the call graph for this function:

Member Function Documentation

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.

Referenced by ~IHaveOptionalContent().

+ Here is the caller graph for this function:


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