diff options
author | George Hazan <george.hazan@gmail.com> | 2013-01-29 17:05:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-01-29 17:05:30 +0000 |
commit | 136628cf7ac5148ebdd8c8ecd25757c594d1bca8 (patch) | |
tree | 0de8058fe6fcc48ccbd3ae8b49046626309c8fa6 /protocols/MSN/src/msn_avatar.cpp | |
parent | aa89e9fdf2e61a855116d9c13e17879dbdad7b6f (diff) |
MSN HTTP avatars, part I
git-svn-id: http://svn.miranda-ng.org/main/trunk@3341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_avatar.cpp')
-rw-r--r-- | protocols/MSN/src/msn_avatar.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/protocols/MSN/src/msn_avatar.cpp b/protocols/MSN/src/msn_avatar.cpp new file mode 100644 index 0000000000..2734b2a8a4 --- /dev/null +++ b/protocols/MSN/src/msn_avatar.cpp @@ -0,0 +1,35 @@ +/*
+Plugin for Miranda NG for communicating with users of the MSN Messenger protocol.
+Copyright (c) 2013 Miranda NG Team
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "msn_global.h"
+#include "msn_proto.h"
+
+void CMsnProto::pushAvatarRequest(HANDLE hContact, LPCSTR pszUrl)
+{
+ SendBroadcast(hContact, ACKTYPE_AVATAR, ACKRESULT_STATUS, NULL, 0);
+
+ if (pszUrl != NULL && *pszUrl != 0) {
+ mir_cslock lck(csAvatarQueue);
+
+ for (int i=0; i < lsAvatarQueue.getCount(); i++)
+ if (lsAvatarQueue[i].hContact == hContact)
+ return;
+
+ lsAvatarQueue.insert(new AvatarQueueEntry(hContact, pszUrl));
+ }
+}
|