2007-11-15 03:18:48 +00:00
|
|
|
/*
|
2007-12-12 01:29:14 +00:00
|
|
|
* libretroshare/src/pqi pqi.h
|
2007-11-15 03:18:48 +00:00
|
|
|
*
|
|
|
|
* 3P/PQI network interface for RetroShare.
|
|
|
|
*
|
2007-12-12 01:29:14 +00:00
|
|
|
* Copyright 2004-2008 by Robert Fernie.
|
2007-11-15 03:18:48 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License Version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA.
|
|
|
|
*
|
|
|
|
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2007-12-12 01:29:14 +00:00
|
|
|
#ifndef PQI_TOP_HEADER
|
|
|
|
#define PQI_TOP_HEADER
|
2007-11-15 03:18:48 +00:00
|
|
|
|
2017-04-26 11:40:46 +02:00
|
|
|
#include "rsitems/rsitem.h"
|
2007-11-15 03:18:48 +00:00
|
|
|
|
2016-08-25 11:33:11 +02:00
|
|
|
class P3Interface
|
2007-11-15 03:18:48 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
P3Interface() {return; }
|
|
|
|
virtual ~P3Interface() {return; }
|
|
|
|
|
|
|
|
virtual int tick() { return 1; }
|
|
|
|
virtual int status() { return 1; }
|
|
|
|
|
2007-12-12 01:29:14 +00:00
|
|
|
virtual int SendRsRawItem(RsRawItem *) = 0;
|
2007-11-15 03:18:48 +00:00
|
|
|
};
|
|
|
|
|
2013-10-01 10:11:34 +00:00
|
|
|
|
2016-08-25 11:33:11 +02:00
|
|
|
/**
|
|
|
|
* @brief Interface to allow outgoing messages to be sent directly through to
|
|
|
|
* the pqiperson, rather than being queued
|
2013-10-01 10:11:34 +00:00
|
|
|
*/
|
|
|
|
class pqiPublisher
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~pqiPublisher() { return; }
|
|
|
|
virtual bool sendItem(RsRawItem *item) = 0;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-12-12 01:29:14 +00:00
|
|
|
#endif // PQI_TOP_HEADER
|