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 */
|
2011-06-29 18:54:44 -04:00
|
|
|
virtual bool AddPopupMessage(uint32_t ptype, const std::string& name, const std::string& title, const std::string& msg) = 0;
|
|
|
|
virtual bool AddSysMessage(uint32_t sysid, uint32_t type, const std::string& title, const std::string& msg) = 0;
|
|
|
|
virtual bool AddLogMessage(uint32_t sysid, uint32_t type, const std::string& title, const std::string& msg) = 0;
|
|
|
|
virtual bool AddFeedItem(uint32_t type, const std::string& id1, const std::string& id2, const 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
|