From 4ae19a4155e936aa1d243360581f9511eb061336 Mon Sep 17 00:00:00 2001 From: "ROBYER@gmail.com" Date: Sun, 20 Nov 2011 18:39:38 +0000 Subject: Added Facebook RM git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@191 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- FacebookRM/entities.h | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 FacebookRM/entities.h (limited to 'FacebookRM/entities.h') diff --git a/FacebookRM/entities.h b/FacebookRM/entities.h new file mode 100644 index 0000000..432af9f --- /dev/null +++ b/FacebookRM/entities.h @@ -0,0 +1,105 @@ +/* + +Facebook plugin for Miranda Instant Messenger +_____________________________________________ + +Copyright © 2009-11 Michal Zelinka + +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 . + +File name : $HeadURL: http://eternityplugins.googlecode.com/svn/trunk/facebook/entities.h $ +Revision : $Revision: 91 $ +Last change by : $Author: n3weRm0re.ewer $ +Last change on : $Date: 2011-01-08 11:10:34 +0100 (so, 08 1 2011) $ + +*/ + +#pragma once + +struct facebook_user +{ + HANDLE handle; + + std::string user_id; + std::string real_name; + + unsigned int status_id; + unsigned int gender; + + std::string image_url; + + + facebook_user( ) + { + this->handle = NULL; + this->user_id = this->real_name = this->image_url = ""; + this->status_id = ID_STATUS_OFFLINE; + this->gender = 0; + } + + facebook_user( facebook_user* fu ) + { + this->handle = fu->handle; + this->image_url = fu->image_url; + this->real_name = fu->real_name; + this->status_id = fu->status_id; + this->user_id = fu->user_id; + this->gender = fu->gender; + } +}; + +struct facebook_message +{ + std::string user_id; + std::string message_text; + time_t time; + + facebook_message( ) + { + this->user_id = this->message_text = ""; + this->time = 0; + } + + facebook_message( const facebook_message& msg ) + { + this->user_id = msg.user_id; + this->message_text = msg.message_text; + this->time = msg.time; + } +}; + +struct facebook_notification +{ + std::string user_id; + std::string text; + std::string link; + + facebook_notification( ) + { + this->user_id = this->text = this->link = ""; + } +}; + +struct facebook_newsfeed +{ + std::string user_id; + std::string title; + std::string text; + std::string link; + + facebook_newsfeed( ) + { + this->user_id = this->title = this->text = this->link = ""; + } +}; -- cgit v1.2.3