#ifndef SECTIONCONTENT_H #define SECTIONCONTENT_H #include #include #include #include #include #include "ads/API.h" ADS_NAMESPACE_BEGIN class SectionContent { friend class ContainerWidget; private: SectionContent(QWidget* title, QWidget* content, const QString& uniqueName = QString()); ///< Do not use! public: typedef QSharedPointer RefPtr; typedef QWeakPointer WeakPtr; virtual ~SectionContent(); int uid() const; QString uniqueName() const; QWidget* titleWidget() const; QWidget* contentWidget() const; static RefPtr newSectionContent(QWidget* title, QWidget* content, const QString& uniqueName = QString()); private: const int _uid; const QString _uniqueName; QPointer _title; QPointer _content; static int NextUid; static QHash LookupMap; static QHash LookupMapByName; }; ADS_NAMESPACE_END #endif