2016-02-12 15:00:31 +08:00
|
|
|
#ifndef ADS_INTERNAL_HEADER
|
|
|
|
#define ADS_INTERNAL_HEADER
|
|
|
|
|
2016-02-15 18:32:35 +08:00
|
|
|
#include <QSharedPointer>
|
|
|
|
#include <QWeakPointer>
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
#include "ads/API.h"
|
2016-02-26 19:43:14 +08:00
|
|
|
|
2016-04-11 13:27:02 +08:00
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
2016-02-26 19:48:10 +08:00
|
|
|
#else
|
|
|
|
#include "ads/SectionContent.h"
|
|
|
|
#endif
|
|
|
|
|
2016-02-26 19:43:14 +08:00
|
|
|
#define SCLookupMapById(X) X->_scLookupMapById
|
|
|
|
#define SCLookupMapByName(X) X->_scLookupMapByName
|
|
|
|
#define SWLookupMapById(X) X->_swLookupMapById
|
2016-02-12 15:00:31 +08:00
|
|
|
|
|
|
|
ADS_NAMESPACE_BEGIN
|
|
|
|
class SectionContent;
|
|
|
|
class SectionTitleWidget;
|
|
|
|
class SectionContentWidget;
|
|
|
|
|
|
|
|
|
|
|
|
class InternalContentData
|
|
|
|
{
|
|
|
|
public:
|
2016-02-15 18:32:35 +08:00
|
|
|
typedef QSharedPointer<InternalContentData> RefPtr;
|
|
|
|
typedef QWeakPointer<InternalContentData> WeakPtr;
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
InternalContentData();
|
|
|
|
~InternalContentData();
|
|
|
|
|
2016-02-26 19:43:14 +08:00
|
|
|
QSharedPointer<SectionContent> content;
|
2016-02-12 15:00:31 +08:00
|
|
|
SectionTitleWidget* titleWidget;
|
|
|
|
SectionContentWidget* contentWidget;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-02-18 22:06:00 +08:00
|
|
|
class HiddenSectionItem
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
HiddenSectionItem() :
|
|
|
|
preferredSectionId(-1),
|
|
|
|
preferredSectionIndex(-1)
|
|
|
|
{}
|
|
|
|
|
|
|
|
int preferredSectionId;
|
|
|
|
int preferredSectionIndex;
|
|
|
|
InternalContentData data;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
ADS_NAMESPACE_END
|
|
|
|
#endif
|