comparison pidgin-twitter.h @ 347:33d2551727ba

embed "in reply to foo" link to each reply message
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 14 Dec 2009 20:14:31 +0900
parents 2e37e715e4a6
children 20fe2a2b677e
comparison
equal deleted inserted replaced
346:dbebabe99035 347:33d2551727ba
49 IMAGE_JISKO, 49 IMAGE_JISKO,
50 IMAGE_FFEED, 50 IMAGE_FFEED,
51 SIZE_128_WASSR, 51 SIZE_128_WASSR,
52 EXCESS_LF, 52 EXCESS_LF,
53 TRAIL_HASH, 53 TRAIL_HASH,
54 MESSAGE_ID 54 PTTAG_TWITTER
55 }; 55 };
56 56
57 /* service id */ 57 /* service id */
58 enum { 58 enum {
59 unknown_service = -1, 59 unknown_service = -1,
93 gchar *text; 93 gchar *text;
94 gchar *screen_name; 94 gchar *screen_name;
95 gchar *profile_image_url; 95 gchar *profile_image_url;
96 time_t time; 96 time_t time;
97 guint64 id; 97 guint64 id;
98 guint64 in_reply_to_status_id;
99 gchar *in_reply_to_screen_name;
98 } status_t; 100 } status_t;
99 101
100 typedef struct _source { 102 typedef struct _source {
101 guint id; 103 guint id;
102 PurpleConversation *conv; 104 PurpleConversation *conv;
171 #define CHANNEL_FORMAT_IDENTICA "%s<a href='http://identi.ca/tag/%s'>%s</a> " 173 #define CHANNEL_FORMAT_IDENTICA "%s<a href='http://identi.ca/tag/%s'>%s</a> "
172 #define TAG_FORMAT_TWITTER "%s<a href='http://twitter.com/search?q=%%23%s'>#%s</a>" 174 #define TAG_FORMAT_TWITTER "%s<a href='http://twitter.com/search?q=%%23%s'>#%s</a>"
173 #define TAG_FORMAT_IDENTICA "#<a href='http://identi.ca/tag/%s'>%s</a>" 175 #define TAG_FORMAT_IDENTICA "#<a href='http://identi.ca/tag/%s'>%s</a>"
174 #define GROUP_FORMAT_IDENTICA "!<a href='http://identi.ca/group/%s'>%s</a>" 176 #define GROUP_FORMAT_IDENTICA "!<a href='http://identi.ca/group/%s'>%s</a>"
175 #define LINK_FORMAT_TWITTER " <a href='PT://reply-twitter/?id=%s&user=%s'>RE</a> <a href='PT://fav-twitter/?id=%s'>FV</a> <a href='PT://retweet-twitter/?id=%s'>RT</a> <a href='PT://quotetweet-twitter/?id=%s&user=%s&msg=%s'>QT</a>" 177 #define LINK_FORMAT_TWITTER " <a href='PT://reply-twitter/?id=%s&user=%s'>RE</a> <a href='PT://fav-twitter/?id=%s'>FV</a> <a href='PT://retweet-twitter/?id=%s'>RT</a> <a href='PT://quotetweet-twitter/?id=%s&user=%s&msg=%s'>QT</a>"
178 #define IN_REPLY_TO_FORMAT_TWITTER " <a href='http://twitter.com/%s/status/%llu'>in reply to %s</al>"
179
176 180
177 #define DEFAULT_LIST "(list of users: separated with ' ,:;')" 181 #define DEFAULT_LIST "(list of users: separated with ' ,:;')"
178 #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>" 182 #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>"
179 #define EMPTY "" 183 #define EMPTY ""
180 184
195 #define P_IMAGE_JISKO "<img src=\"(https?://jisko.net/.+/img/avatar/.+_side\\..+)\" alt=\"Avatar\" />" 199 #define P_IMAGE_JISKO "<img src=\"(https?://jisko.net/.+/img/avatar/.+_side\\..+)\" alt=\"Avatar\" />"
196 #define P_IMAGE_FFEED "<img src=\"(https?://i.friendfeed.com/.+)\" alt=\"" 200 #define P_IMAGE_FFEED "<img src=\"(https?://i.friendfeed.com/.+)\" alt=\""
197 #define P_SIZE_128_WASSR "\\.128\\." 201 #define P_SIZE_128_WASSR "\\.128\\."
198 #define P_EXCESS_LF "([\\r|\\n]{2,})" 202 #define P_EXCESS_LF "([\\r|\\n]{2,})"
199 #define P_TRAIL_HASH "( #\\s+$)" 203 #define P_TRAIL_HASH "( #\\s+$)"
200 #define P_MESSAGE_ID " ptmsgid=([0-9]+)$" 204 /* pttag=msgid:in_reply_to_status_id:in_reply_to_screen_name */
205 #define P_PTTAG_TWITTER " pttag=([0-9]+):([0-9]+):([-A-Za-z0-9_]*)$"
201 206
202 /* twitter API specific macros */ 207 /* twitter API specific macros */
203 #define TWITTER_BASE_URL "http://twitter.com" 208 #define TWITTER_BASE_URL "http://twitter.com"
204 #define TWITTER_API_BASE_URL "http://api.twitter.com" 209 #define TWITTER_API_BASE_URL "http://api.twitter.com"
205 #if 0 210 #if 0