From b164d030ace150aa292e8009d2d55c05005072b0 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Wed, 1 Feb 2012 14:22:03 +0000 Subject: FacebookRM: version bump Reworked options Added Photos and Links newsfeed types Fixed setting newsfeed type Updated copyrights. git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@267 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- FacebookRM/chat.cpp | 49 +++++++++++++++++++------------------------------ 1 file changed, 19 insertions(+), 30 deletions(-) (limited to 'FacebookRM/chat.cpp') diff --git a/FacebookRM/chat.cpp b/FacebookRM/chat.cpp index 8e0e007..a7c2ca5 100644 --- a/FacebookRM/chat.cpp +++ b/FacebookRM/chat.cpp @@ -3,7 +3,7 @@ Facebook plugin for Miranda Instant Messenger _____________________________________________ -Copyright © 2011 Robert Pösel +Copyright © 2011-12 Robert Pösel 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 @@ -17,6 +17,7 @@ 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 . + */ #include "common.h" @@ -214,6 +215,22 @@ void FacebookProto::AddChat(const char *id, const char *name) mir_free(const_cast(gcd.ptszID)); } +/*void FacebookProto::SetTopic(const char *topic) +{ + GCDEST gcd = { m_szModuleName }; + gcd.ptszID = const_cast(m_tszUserName); + gcd.iType = GC_EVENT_TOPIC; + + GCEVENT gce = {sizeof(gce)}; + gce.pDest = &gcd; + gce.dwFlags = GC_TCHAR; + gce.time = ::time(NULL); + + std::string top = Translate(topic); + gce.ptszText = mir_a2t(top.c_str()); + CallServiceSync(MS_GC_EVENT,0, reinterpret_cast(&gce)); +} +*/ int FacebookProto::OnJoinChat(WPARAM,LPARAM suppress) { @@ -255,22 +272,6 @@ int FacebookProto::OnJoinChat(WPARAM,LPARAM suppress) return 0; } -/*void FacebookProto::SetTopic(const char *topic) -{ - GCDEST gcd = { m_szModuleName }; - gcd.ptszID = const_cast(m_tszUserName); - gcd.iType = GC_EVENT_TOPIC; - - GCEVENT gce = {sizeof(gce)}; - gce.pDest = &gcd; - gce.dwFlags = GC_TCHAR; - gce.time = ::time(NULL); - - std::string top = Translate(topic); - gce.ptszText = mir_a2t(top.c_str()); - CallServiceSync(MS_GC_EVENT,0, reinterpret_cast(&gce)); -} -*/ int FacebookProto::OnLeaveChat(WPARAM,LPARAM) { GCDEST gcd = { m_szModuleName }; @@ -287,6 +288,7 @@ int FacebookProto::OnLeaveChat(WPARAM,LPARAM) return 0; } + /* void FacebookProto::SetChatStatus(int status) { @@ -312,17 +314,4 @@ void FacebookProto::SetChatStatus(int status) CallServiceSync(MS_GC_EVENT,SESSION_OFFLINE,reinterpret_cast(&gce)); } } -/* -void FacebookProto::ClearChat() -{ - GCDEST gcd = { m_szModuleName }; - gcd.ptszID = const_cast(m_tszUserName); - gcd.iType = GC_EVENT_CONTROL; - - GCEVENT gce = {sizeof(gce)}; - gce.dwFlags = GC_TCHAR; - gce.pDest = &gcd; - - CallServiceSync(MS_GC_EVENT,WINDOW_CLEARLOG,reinterpret_cast(&gce)); -} */ \ No newline at end of file -- cgit v1.2.3