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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* Miranda-IM Vypress Chat/quickChat plugins
* Copyright (C) Saulius Menkevicius
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: contacts.h,v 1.13 2005/03/15 02:03:47 bobas Exp $
*/
#ifndef __CONTACTS_H
#define __CONTACTS_H
#include <time.h>
void contacts_connected(vqp_link_t link);
void contacts_disconnected();
void contacts_hook_modules_loaded();
void contacts_set_all_offline();
HANDLE contacts_add_contact(const char * nickname, int permanent);
HANDLE contacts_find_contact(const char * nickname);
void contacts_set_contact_status(HANDLE hContact, int new_status);
void contacts_set_contact_nickname(HANDLE hContact, const char * new_nickname);
void contacts_set_contact_addr(HANDLE hContact, vqp_addr_t addr);
void contacts_set_contact_about(HANDLE hContact, const char * about_text);
void contacts_set_contact_gender(HANDLE hContact, enum vqp_gender gender);
enum contact_property_enum {
CONTACT_COMPUTER, CONTACT_USER, CONTACT_WORKGROUP,
CONTACT_PLATFORM, CONTACT_SOFTWARE
};
void contacts_set_contact_property(
HANDLE hContact, enum contact_property_enum property, const char * string);
char * contacts_get_contact_property(HANDLE hContact, enum contact_property_enum property);
int contacts_get_contact_info(HANDLE hContact, WPARAM flags);
int contacts_get_contact_status(HANDLE hContact);
char * contacts_get_nickname(HANDLE hContact);
void contacts_input_contact_message(HANDLE hContact, const char * message_text);
int contacts_send_contact_message(
HANDLE hContact, const char * message_text, WPARAM flags, int is_queued);
void contacts_send_beep(HANDLE hContact);
int contacts_is_user_contact(HANDLE hContact);
int contacts_is_chatroom_contact(HANDLE hContact);
#endif
|