#ifndef CONTENTPRESENT_H #define CONTENTPRESENT_H #include namespace ContentPresent { /** * @brief 具有多种显示模式的视图组件 */ class ModeView { public: virtual ~ModeView() = default; /** * @brief 设置视图显示模式 * @param type */ virtual void modeReset(const QString &type) const = 0; /** * @brief 获取所有视图模式 * @return */ virtual QList modes() const = 0; virtual QString currentMode() const = 0; /** * @brief 标题 * @return */ virtual QString title() const = 0; }; } #endif // CONTENTPRESENT_H