2
* Off-the-Record Messaging plugin for pidgin
3
* Copyright (C) 2004-2005 Nikita Borisov and Ian Goldberg
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of version 2 of the GNU General Public License as
8
* published by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#include <libotr/context.h>
26
void (*update_fingerprint)(void);
28
void (*update_keylist)(void);
30
void (*config_buddy)(PurpleBuddy *buddy);
32
OtrlPolicy (*find_policy)(PurpleAccount *account, const char *name);
36
void otrg_ui_set_ui_ops(const OtrgUiUiOps *ops);
39
const OtrgUiUiOps *otrg_ui_get_ui_ops(void);
41
/* Call this function when the DSA key is updated; it will redraw the
43
void otrg_ui_update_fingerprint(void);
45
/* Update the keylist, if it's visible */
46
void otrg_ui_update_keylist(void);
48
/* Send an OTR Query Message to attempt to start a connection */
49
void otrg_ui_connect_connection(ConnContext *context);
51
/* Drop a context to PLAINTEXT state */
52
void otrg_ui_disconnect_connection(ConnContext *context);
54
/* Forget a fingerprint */
55
void otrg_ui_forget_fingerprint(Fingerprint *fingerprint);
57
/* Configure OTR for a particular buddy */
58
void otrg_ui_config_buddy(PurpleBuddy *buddy);
60
/* Calculate the policy for a particular account / username */
61
OtrlPolicy otrg_ui_find_policy(PurpleAccount *account, const char *name);