summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/search.h
blob: fa5819ccee02e1fe2013a3ba19942892ae3522cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "common.h"
#include "contact.h"

class CContactSearch : public ContactSearch
{
public:
	typedef DRef<CContactSearch, ContactSearch> Ref;
	typedef DRefs<CContactSearch, ContactSearch> Refs;
	
	bool isSeachFinished;
	bool isSeachFailed;

	CContactSearch(unsigned int oid, SERootObject* root);

	void OnChange(int prop);
	void OnNewResult(const ContactRef &contact, const uint &rankValue);

	void SetProtoInfo(CSkypeProto* proto, HANDLE hSearch);

	void BlockWhileSearch();

private:
	HANDLE hSearch;
	CSkypeProto* proto;
};