source: trunk/third/gaim-encryption/state.h @ 22512

Revision 22512, 1.1 KB checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r22511, which included commits to RCS files with non-trunk default branches.
Line 
1#ifndef GE_STATE_H
2#define GE_STATE_H
3
4#include <gdk/gdk.h>
5
6typedef struct EncryptionState {
7   gboolean incoming_encrypted;
8   gboolean outgoing_encrypted;
9   gboolean has_been_notified;
10   gboolean is_capable;
11} EncryptionState;
12
13void GE_state_init();
14void GE_state_delete();
15
16
17EncryptionState* GE_get_state(const GaimAccount *account, const gchar* name);
18void GE_reset_state(const GaimAccount *account, const gchar* name);
19
20gboolean GE_get_tx_encryption(const GaimAccount *account, const gchar* name);
21void     GE_set_tx_encryption(const GaimAccount *account,
22                              const gchar* name, gboolean new_state);
23
24void     GE_set_capable(const GaimAccount *account, const gchar* name,
25                        gboolean cap);
26
27gboolean GE_has_been_notified(const GaimAccount *account, const gchar* name);
28void     GE_set_notified(const GaimAccount *account, const gchar* name,
29                         gboolean newstate);
30
31void     GE_set_rx_encryption(const GaimAccount *account, const gchar* name,
32                              gboolean encrypted);
33
34gboolean  GE_get_default_notified(const GaimAccount *account, const gchar* name);
35
36#endif
Note: See TracBrowser for help on using the repository browser.