ukui-search/libsearch/searchinterface/result-item.cpp

45 lines
875 B
C++
Raw Normal View History

2021-12-28 15:56:41 +08:00
#include "result-item.h"
#include "result-item-private.h"
using namespace UkuiSearch;
2022-01-11 16:20:40 +08:00
ResultItemPrivate::ResultItemPrivate::ResultItemPrivate(ResultItem *parent) : q(parent)
2021-12-31 17:38:02 +08:00
{
}
ResultItemPrivate::~ResultItemPrivate()
{
}
2022-01-11 16:20:40 +08:00
void ResultItemPrivate::setSearchId(size_t searchId)
{
m_searchId = searchId;
}
void ResultItemPrivate::setItemKey(QString itemKey)
{
m_itemKey = itemKey;
}
ResultItem::ResultItem() : d(new ResultItemPrivate(this))
{
}
ResultItem::ResultItem(const size_t searchId) : d(new ResultItemPrivate(this))
{
d->setSearchId(searchId);
}
ResultItem::ResultItem(const QString itemKey) : d(new ResultItemPrivate(this))
{
d->setItemKey(itemKey);
}
ResultItem::ResultItem(const size_t searchId, const QString itemKey) : d(new ResultItemPrivate(this))
2021-12-28 15:56:41 +08:00
{
2022-01-11 16:20:40 +08:00
d->setSearchId(searchId);
d->setItemKey(itemKey);
2021-12-28 15:56:41 +08:00
}
ResultItem::~ResultItem()
{
}