void CRepositoryFilterView::DoSearch(CRepositoryFilterView *self, std::_tstring searchText, std::_tstring searchModule, std::_tstring searchUser, DoSearchOptions searchOptions, std::_tstring dateTime)
{
    CComPtr<IRepository> rep = AttachRepository();
    IAttributeVectorPtr * results = new IAttributeVectorPtr();	//This is released in the submit done.
    int foundCount = rep->FindAttributes(searchText, searchModule, searchUser, searchOptions.mode, searchOptions.sandboxed, searchOptions.checkedout, searchOptions.locked, searchOptions.orphaned, searchOptions.modifiedSince ? dateTime.c_str() : _T(""), *results);
    ::PostMessage(self->m_hWnd, CWM_SUBMITDONE, (WPARAM)(results), foundCount);
}
Beispiel #2
0
	bool GetAutoC(const std::_tstring & partialLabel, StdStringVector &set)
	{
		CComPtr<IRepository> rep = AttachRepository();
		rep->GetModulesAutoC(partialLabel, set);
		if (!partialLabel.empty())
			rep->GetAttributesAutoC(partialLabel, set);
		return true;
	}
void CAttributeNode::Refresh()
{
	CComPtr<IRepository> rep = AttachRepository();
	m_sigConn.disconnect();
	CComPtr<IAttribute> attr = rep->GetAttribute(m_attribute->GetQualifiedLabel(), m_attribute->GetType());
	m_sigConn = m_attribute->on_refresh_connect(boost::ref(*this));
	operator ()(m_attribute, false, NULL, false);
	if (IsExpanded())
	{
		Expand(TVE_COLLAPSE | TVE_COLLAPSERESET);
		Expand();
	}
}