2008-03-31 17:29:17 -04:00
|
|
|
#ifndef PQI_NOTIFY_INTERFACE_H
|
|
|
|
#define PQI_NOTIFY_INTERFACE_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* libretroshare/src/rsserver: pqinotify.h
|
|
|
|
*
|
|
|
|
* RetroShare C++ Interface.
|
|
|
|
*
|
|
|
|
* Copyright 2007-2008 by Robert Fernie.
|
|
|
|
*
|
|
|
|
* 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".
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-08-06 05:40:23 -04:00
|
|
|
#include "retroshare/rsnotify.h" /* for ids */
|
2008-03-31 17:29:17 -04:00
|
|
|
|
|
|
|
/* Interface for System Notification: Implemented in rsserver */
|
|
|
|
/* Global Access -> so we don't need everyone to have a pointer to this! */
|
|
|
|
|
|
|
|
|
|
|
|
class pqiNotify
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
pqiNotify() { return; }
|
|
|
|
virtual ~pqiNotify() { return; }
|
|
|
|
|
|
|
|
/* Input from libretroshare */
|
2010-06-13 06:14:04 -04:00
|
|
|
virtual bool AddPopupMessage(uint32_t ptype, std::string name, std::string title, std::string msg) = 0;
|
2008-03-31 17:29:17 -04:00
|
|
|
virtual bool AddSysMessage(uint32_t sysid, uint32_t type, std::string title, std::string msg) = 0;
|
2009-05-05 09:35:36 -04:00
|
|
|
virtual bool AddLogMessage(uint32_t sysid, uint32_t type, std::string title, std::string msg) = 0;
|
2008-06-20 08:38:11 -04:00
|
|
|
virtual bool AddFeedItem(uint32_t type, std::string id1, std::string id2, std::string id3) = 0;
|
2010-05-23 12:35:42 -04:00
|
|
|
virtual bool ClearFeedItems(uint32_t type) = 0;
|
2008-03-31 17:29:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern pqiNotify *getPqiNotify();
|
|
|
|
|
|
|
|
#endif
|