2018-12-25 15:34:59 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/HomePage.h *
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2016 Defnax <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/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
|
|
|
|
2016-12-12 15:16:56 -05:00
|
|
|
#ifndef HOMEPAGE_H
|
|
|
|
#define HOMEPAGE_H
|
|
|
|
|
|
|
|
#include <retroshare-gui/mainpage.h>
|
|
|
|
#include <retroshare/rsfiles.h>
|
|
|
|
#include <retroshare/rspeers.h>
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
|
|
class QAction;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class HomePage;
|
|
|
|
}
|
|
|
|
|
|
|
|
class HomePage : public MainPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit HomePage(QWidget *parent);
|
|
|
|
~HomePage();
|
2019-06-06 15:41:38 -04:00
|
|
|
|
|
|
|
virtual QIcon iconPixmap() const { return QIcon(":/icons/png/home.png") ; } //MainPage
|
|
|
|
virtual QString pageName() const { return tr("Home") ; } //MainPage
|
|
|
|
virtual QString helpText() const { return ""; } //MainPage
|
2016-12-12 15:16:56 -05:00
|
|
|
|
|
|
|
private slots:
|
2018-09-18 15:20:55 -04:00
|
|
|
void certContextMenu(QPoint);
|
2016-12-12 15:16:56 -05:00
|
|
|
void updateOwnCert();
|
2019-09-27 14:21:40 -04:00
|
|
|
void updateOwnId();
|
2016-12-12 15:16:56 -05:00
|
|
|
void runEmailClient();
|
|
|
|
void copyCert();
|
2019-09-27 14:21:40 -04:00
|
|
|
void copyId();
|
2016-12-12 15:16:56 -05:00
|
|
|
void saveCert();
|
2019-06-06 15:41:38 -04:00
|
|
|
void addFriend();
|
|
|
|
void webMail();
|
2019-06-09 18:03:07 -04:00
|
|
|
//void loadCert();
|
2017-03-01 14:36:36 -05:00
|
|
|
void openWebHelp() ;
|
2017-01-22 15:06:11 -05:00
|
|
|
void recommendFriends();
|
2019-06-06 15:41:38 -04:00
|
|
|
void toggleIncludeAllIPs();
|
|
|
|
void toggleUseShortFormat();
|
2019-09-27 14:21:40 -04:00
|
|
|
void doExpand();
|
2016-12-12 15:16:56 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::HomePage *ui;
|
2019-06-06 15:41:38 -04:00
|
|
|
|
|
|
|
bool mIncludeAllIPs;
|
|
|
|
bool mUseShortFormat;
|
2016-12-12 15:16:56 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HomePage_H
|