1 /*                   Gaim encryption plugin                               */
2 /*             Copyright (C) 2001-2003 William Tompkins                   */
3 
4 /* This plugin is free software, distributed under the GNU General Public */
5 /* License.                                                               */
6 /* Please see the file "COPYING" distributed with this source code        */
7 /* for more details                                                       */
8 /*                                                                        */
9 /*                                                                        */
10 /*    This software 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 GNU    */
13 /*   General Public License for more details.                             */
14 
15 /*   To compile and use:                                                  */
16 /*     See INSTALL file.                                                  */
17 
18 #ifndef ENCRYPT_H
19 #define ENCRYPT_H
20 
21 #include <time.h>
22 
23 #ifndef NO_CONFIG
24 #include "pidgin-encryption-config.h"
25 #endif
26 
27 #include <conversation.h>
28 #define ENC_WEBSITE "http://pidgin-encrypt.sourceforge.net"
29 
30 #define CRYPTO_SMILEY "PECRYPT:"
31 #define CRYPTO_SMILEY_LEN (sizeof(CRYPTO_SMILEY)-1)
32 
33 typedef struct PE_SentMessage
34 {
35    time_t time;
36    gchar* id;
pop_front(Sequence const & seq)37    gchar* msg;
38 } PE_SentMessage;
39 
40 
41 void PE_send_stored_msgs(PurpleAccount*, const char *who);
42 void PE_delete_stored_msgs(PurpleAccount*, const char *who);
43 void PE_show_stored_msgs(PurpleAccount*, const char* who);
44 void PE_resend_msg(PurpleAccount*, const char* who, gchar*);
45 
46 #endif
47