Mercurial > pidgin
comparison libpurple/protocols/myspace/myspace.h @ 20096:2a9f3a499b0d
merge of '34d642b12b7215d55fd032cd513a7e225715f19a'
and '7868c3b2b7d17c52916e4bb76305b7e3b68d3904'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 17 Sep 2007 03:47:45 +0000 |
parents | 191fa8a8c0bc 43a8cd1f708c |
children | e86f136e880e |
comparison
equal
deleted
inserted
replaced
19936:191fa8a8c0bc | 20096:2a9f3a499b0d |
---|---|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 13 * GNU General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License | 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 | 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 | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
18 */ | 18 */ |
19 | 19 |
20 #ifndef _MYSPACE_MYSPACE_H | 20 #ifndef _MYSPACE_MYSPACE_H |
21 #define _MYSPACE_MYSPACE_H | 21 #define _MYSPACE_MYSPACE_H |
22 | 22 |
73 /* Define to cause init_plugin() to run some tests and print | 73 /* Define to cause init_plugin() to run some tests and print |
74 * the results to the Purple debug log, then exit. Useful to | 74 * the results to the Purple debug log, then exit. Useful to |
75 * run with 'pidgin -d' to see the output. Don't define if | 75 * run with 'pidgin -d' to see the output. Don't define if |
76 * you want to actually use the plugin! */ | 76 * you want to actually use the plugin! */ |
77 /*#define MSIM_SELF_TEST */ | 77 /*#define MSIM_SELF_TEST */ |
78 | |
79 /* Use the attention API for zaps? */ | |
80 /* Can't have until >=2.2.0, since is a new API. */ | |
81 #define MSIM_USE_ATTENTION_API | |
82 | 78 |
83 /* Constants */ | 79 /* Constants */ |
84 | 80 |
85 /* Maximum length of a password that is acceptable. This is the limit | 81 /* Maximum length of a password that is acceptable. This is the limit |
86 * on the official client (build 679) and on the 'new password' field at | 82 * on the official client (build 679) and on the 'new password' field at |
181 /* Codes for msim_got_contact_list(), to tell what to do afterwards. */ | 177 /* Codes for msim_got_contact_list(), to tell what to do afterwards. */ |
182 #define MSIM_CONTACT_LIST_INITIAL_FRIENDS 0 | 178 #define MSIM_CONTACT_LIST_INITIAL_FRIENDS 0 |
183 #define MSIM_CONTACT_LIST_IMPORT_ALL_FRIENDS 1 | 179 #define MSIM_CONTACT_LIST_IMPORT_ALL_FRIENDS 1 |
184 #define MSIM_CONTACT_LIST_IMPORT_TOP_FRIENDS 2 | 180 #define MSIM_CONTACT_LIST_IMPORT_TOP_FRIENDS 2 |
185 | 181 |
186 #ifdef MSIM_USE_ATTENTION_API | |
187 #define MsimAttentionType PurpleAttentionType | 182 #define MsimAttentionType PurpleAttentionType |
188 #else | |
189 /* Different kinds of attention alerts. Not yet in libpurple, so define | |
190 * our own structure here. */ | |
191 typedef struct _MsimAttentionType MsimAttentionType; | |
192 | |
193 /** A type of "attention" message (zap, nudge, buzz, etc. depending on the | |
194 * protocol) that can be sent and received. */ | |
195 struct _MsimAttentionType { | |
196 const gchar *name; /**< Shown before sending. */ | |
197 const gchar *incoming_description; /**< Shown when sent. */ | |
198 const gchar *outgoing_description; /**< Shown when received. */ | |
199 const gchar *icon_name; | |
200 }; | |
201 #endif | |
202 | 183 |
203 /* Functions */ | 184 /* Functions */ |
204 gboolean msim_load(PurplePlugin *plugin); | 185 gboolean msim_load(PurplePlugin *plugin); |
205 GList *msim_status_types(PurpleAccount *acct); | 186 GList *msim_status_types(PurpleAccount *acct); |
206 | 187 |