added latest retrochess to master

This commit is contained in:
defnax 2019-10-16 22:27:18 +02:00
parent 488b382522
commit 033405c761
46 changed files with 6700 additions and 0 deletions

View file

@ -0,0 +1,57 @@
/* this is a simple class to make it easy for any part of the plugin to call its services */
/****************************************************************
* RetroShare is distributed under the following license:
*
* Copyright (C) 2015
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
// interface class for p3RetroChess service
//
#pragma once
#include <stdint.h>
#include <string>
#include <list>
#include <vector>
#include <retroshare/rstypes.h>
class RsRetroChess ;
extern RsRetroChess *rsRetroChess;
static const uint32_t CONFIG_TYPE_RetroChess_PLUGIN = 0xe001 ;
class RsRetroChess
{
public:
virtual void ping_all() = 0;
virtual void broadcast_paint(int x, int y) = 0;
virtual void msg_all(std::string msg) = 0;
virtual void chess_click(std::string peer_id, int col, int row, int count) = 0;
virtual void qvm_msg_peer(RsPeerId peerID, QVariantMap data) = 0;
virtual void str_msg_peer(RsPeerId peerID, QString strdata) = 0;
virtual void raw_msg_peer(RsPeerId peerID, std::string msg) = 0;
virtual bool hasInviteFrom(RsPeerId peerID) = 0;
virtual bool hasInviteTo(RsPeerId peerID) = 0;
virtual void acceptedInvite(RsPeerId peerID) = 0;
virtual void gotInvite(RsPeerId peerID) = 0;
virtual void sendInvite(RsPeerId peerID) = 0;
};