summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/search.h
blob: dde9a043e3419bd0c75fdffc07a079525a441be0 (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
28
29
#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, CSkypeProto* _ppro);

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

	__forceinline void SetProtoInfo(HANDLE _hSearch) {
		hSearch = _hSearch;
	}

	void BlockWhileSearch();

private:
	HANDLE hSearch;
	CSkypeProto* proto;
};