Mercurial > pidgin-twitter
comparison pidgin-twitter.h @ 203:6c6fe6375ce4
revised identi.ca tag support.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 12 Aug 2008 18:01:36 +0900 |
parents | 67d8eaba446d |
children | bc1448e72b1b |
comparison
equal
deleted
inserted
replaced
202:67d8eaba446d | 203:6c6fe6375ce4 |
---|---|
31 COMMAND, | 31 COMMAND, |
32 PSEUDO, | 32 PSEUDO, |
33 USER, | 33 USER, |
34 USER_FIRST_LINE, | 34 USER_FIRST_LINE, |
35 USER_FORMATTED, | 35 USER_FORMATTED, |
36 CHANNEL, | 36 CHANNEL_WASSR, |
37 IMAGE_TWITTER, | 37 IMAGE_TWITTER, |
38 IMAGE_WASSR, | 38 IMAGE_WASSR, |
39 IMAGE_IDENTICA | 39 IMAGE_IDENTICA, |
40 TAG_IDENTICA | |
40 }; | 41 }; |
41 | 42 |
42 /* service id */ | 43 /* service id */ |
43 enum { | 44 enum { |
44 unknown_service = -1, | 45 unknown_service = -1, |
127 #define SENDER_FORMAT_WASSR "%s<a href='http://wassr.jp/user/%s'>%s</a>: " | 128 #define SENDER_FORMAT_WASSR "%s<a href='http://wassr.jp/user/%s'>%s</a>: " |
128 #define RECIPIENT_FORMAT_IDENTICA "@<a href='http://identi.ca/%s'>%s</a>" | 129 #define RECIPIENT_FORMAT_IDENTICA "@<a href='http://identi.ca/%s'>%s</a>" |
129 #define SENDER_FORMAT_IDENTICA "%s<a href='http://identi.ca/%s'>%s</a>: " | 130 #define SENDER_FORMAT_IDENTICA "%s<a href='http://identi.ca/%s'>%s</a>: " |
130 #define CHANNEL_FORMAT_WASSR "%s<a href='http://wassr.jp/channel/%s'>%s</a> " | 131 #define CHANNEL_FORMAT_WASSR "%s<a href='http://wassr.jp/channel/%s'>%s</a> " |
131 #define CHANNEL_FORMAT_IDENTICA "%s<a href='http://identi.ca/tag/%s'>%s</a> " | 132 #define CHANNEL_FORMAT_IDENTICA "%s<a href='http://identi.ca/tag/%s'>%s</a> " |
133 #define TAG_FORMAT_IDENTICA "#<a href='http://identi.ca/tag/%s'>%s</a>" | |
134 | |
132 #define DEFAULT_LIST "(list of users: separated with ' ,:;')" | 135 #define DEFAULT_LIST "(list of users: separated with ' ,:;')" |
133 #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>" | 136 #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>" |
134 #define EMPTY "" | 137 #define EMPTY "" |
135 | 138 |
136 /* patterns */ | 139 /* patterns */ |
143 #define P_USER_FORMATTED "^.*?<a .+?>([A-Za-z0-9_]+)</a>:" | 146 #define P_USER_FORMATTED "^.*?<a .+?>([A-Za-z0-9_]+)</a>:" |
144 #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) " | 147 #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) " |
145 #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" | 148 #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" |
146 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" | 149 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" |
147 #define P_IMAGE_IDENTICA "<img src=\"(http://avatar.identi.ca/[A-Za-z0-9-.]+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>" | 150 #define P_IMAGE_IDENTICA "<img src=\"(http://avatar.identi.ca/[A-Za-z0-9-.]+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>" |
151 #define P_TAG_IDENTICA "#([A-Za-z0-9]+)" | |
152 | |
148 | 153 |
149 /* twitter API specific macros */ | 154 /* twitter API specific macros */ |
150 #define TWITTER_BASE_URL "http://twitter.com" | 155 #define TWITTER_BASE_URL "http://twitter.com" |
151 #define TWITTER_STATUS_GET "GET /statuses/friends_timeline.xml HTTP/1.1\r\n" \ | 156 #define TWITTER_STATUS_GET "GET /statuses/friends_timeline.xml HTTP/1.1\r\n" \ |
152 "Host: twitter.com\r\n" \ | 157 "Host: twitter.com\r\n" \ |