summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_search.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-07 04:59:17 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-07 04:59:17 +0000
commit74a853fd31f1fd7356fb3fd041b5e6722ab80eed (patch)
treec6a40c16bb06d494160ae3ef6e9c10325ca6a7aa /protocols/VKontakte/src/vk_search.cpp
parent00714f1a92044866135cd75e599ff3fac75fe33f (diff)
VKontakte:
move search proto function to vk_search.cpp move TFakeAckParams to vk_proto.h git-svn-id: http://svn.miranda-ng.org/main/trunk@10723 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_search.cpp')
-rw-r--r--protocols/VKontakte/src/vk_search.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_search.cpp b/protocols/VKontakte/src/vk_search.cpp
index be75b5e3ff..7c3c86ad6d 100644
--- a/protocols/VKontakte/src/vk_search.cpp
+++ b/protocols/VKontakte/src/vk_search.cpp
@@ -17,6 +17,33 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
+HWND CVkProto::SearchAdvanced(HWND owner) { return NULL; }
+HWND CVkProto::CreateExtendedSearchUI(HWND owner) { return NULL; }
+
+HANDLE CVkProto::SearchBasic(const PROTOCHAR* id)
+{
+ ForkThread(&CVkProto::SearchBasicThread, (void *)id);
+ return (HANDLE)1;
+}
+
+HANDLE CVkProto::SearchByEmail(const PROTOCHAR* email)
+{
+ ForkThread(&CVkProto::SearchByMailThread, (void *)email);
+ return (HANDLE)1;
+}
+
+HANDLE CVkProto::SearchByName(const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* lastName)
+{
+ PROTOSEARCHBYNAME * psr = new (PROTOSEARCHBYNAME);
+
+ psr->pszFirstName = mir_wstrdup(firstName);
+ psr->pszLastName = mir_wstrdup(lastName);
+ psr->pszNick = mir_wstrdup(nick);
+
+ ForkThread(&CVkProto::SearchThread, (void *)psr);
+ return (HANDLE)1;
+}
+
void CVkProto::SearchBasicThread(void* id)
{