blob: 60b920130d9a08e15bf30cc422987914605c80e4 (
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
30
31
32
33
|
#pragma once
#include "common.h"
#include "contact.h"
class CContactSearch : public ContactSearch
{
public:
typedef void (CSkypeProto::* OnSearchCompleted)(HANDLE hSearch);
typedef void (CSkypeProto::* OnContactFinded)(CContact::Ref contact, HANDLE hSearch);
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 SetOnSearchCompleatedCallback(OnSearchCompleted callback);
void SetOnContactFindedCallback(OnContactFinded callback);
void BlockWhileSearch();
private:
HANDLE hSearch;
CSkypeProto* proto;
OnSearchCompleted SearchCompletedCallback;
OnContactFinded ContactFindedCallback;
};
|