diff pidgin-twitter.h @ 95:ab612180e7d0

- added identica support. linkfy and character counter work. icon support has not implemented yet. - put common code together.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 10 Jul 2008 00:12:03 +0900
parents 31cddb2c2acc
children 24ad534e438e
line wrap: on
line diff
--- a/pidgin-twitter.h	Wed Jul 09 16:13:02 2008 +0900
+++ b/pidgin-twitter.h	Thu Jul 10 00:12:03 2008 +0900
@@ -48,10 +48,12 @@
 #define OPT_PASSWORD            OPT_PIDGINTWITTER "/password"
 
 /* formats and templates */
-#define RECIPIENT_FORMAT        "@<a href='http://twitter.com/%s'>%s</a>"
-#define SENDER_FORMAT           "%s<a href='http://twitter.com/%s'>%s</a>: "
+#define RECIPIENT_FORMAT_TWITTER "@<a href='http://twitter.com/%s'>%s</a>"
+#define SENDER_FORMAT_TWITTER   "%s<a href='http://twitter.com/%s'>%s</a>: "
 #define RECIPIENT_FORMAT_WASSR  "@<a href='http://wassr.jp/user/%s'>%s</a>"
 #define SENDER_FORMAT_WASSR     "%s<a href='http://wassr.jp/user/%s'>%s</a>: "
+#define RECIPIENT_FORMAT_IDENTICA "@<a href='http://identi.ca/%s'>%s</a>"
+#define SENDER_FORMAT_IDENTICA  "%s<a href='http://identi.ca/%s'>%s</a>: "
 #define DEFAULT_LIST            "(list of users: separated with ' ,:;')"
 #define OOPS_MESSAGE            "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>"
 #define EMPTY                   ""
@@ -87,6 +89,8 @@
 static gboolean is_twitter_conv(PurpleConversation *conv);
 static gboolean is_wassr_account(PurpleAccount *account, const char *name);
 static gboolean is_wassr_conv(PurpleConversation *conv);
+static gboolean is_identica_account(PurpleAccount *account, const char *name);
+static gboolean is_identica_conv(PurpleConversation *conv);
 static void conv_created_cb(PurpleConversation *conv, gpointer null);
 static void deleting_conv_cb(PurpleConversation *conv);
 static gboolean receiving_im_cb(PurpleAccount *account, char **sender, char **buffer, PurpleConversation *conv, PurpleMessageFlags *flags, void *data);