2018-12-25 15:10:15 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/toaster/OnlineToaster.h *
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2007 Crypton <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2010-05-05 07:47:29 -04:00
|
|
|
|
|
|
|
#ifndef ONLINETOASTER_H
|
|
|
|
#define ONLINETOASTER_H
|
2008-04-08 08:20:33 -04:00
|
|
|
|
2014-03-17 16:56:06 -04:00
|
|
|
#include <retroshare/rstypes.h>
|
2010-12-07 19:14:12 -05:00
|
|
|
#include "ui_OnlineToaster.h"
|
2008-04-08 08:20:33 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Shows a toaster when friend is Online .
|
|
|
|
*
|
|
|
|
*
|
2010-05-05 07:47:29 -04:00
|
|
|
*/
|
2010-12-07 19:14:12 -05:00
|
|
|
class OnlineToaster : public QWidget
|
|
|
|
{
|
2010-05-05 07:47:29 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
2010-12-07 19:14:12 -05:00
|
|
|
public:
|
2014-03-17 16:56:06 -04:00
|
|
|
OnlineToaster(const RsPeerId &peerId);
|
2008-04-08 08:20:33 -04:00
|
|
|
|
2010-12-07 19:14:12 -05:00
|
|
|
private slots:
|
2008-04-08 08:20:33 -04:00
|
|
|
void chatButtonSlot();
|
|
|
|
|
2010-05-05 07:47:29 -04:00
|
|
|
private:
|
2014-03-17 16:56:06 -04:00
|
|
|
RsPeerId peerId;
|
2008-04-08 08:20:33 -04:00
|
|
|
|
2010-12-07 19:14:12 -05:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::OnlineToaster ui;
|
2010-05-05 07:47:29 -04:00
|
|
|
};
|
2008-04-08 08:20:33 -04:00
|
|
|
|
2010-05-05 07:47:29 -04:00
|
|
|
#endif //MESSAGETOASTER_H
|