RetroShare/retroshare-gui/src/gui/HomePage.h

75 lines
2.5 KiB
C
Raw Normal View History

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/>. *
* *
*******************************************************************************/
#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();
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
private slots:
2018-09-18 15:20:55 -04:00
void certContextMenu(QPoint);
void updateOwnCert();
void updateOwnId();
void runEmailClient();
void copyCert();
void copyId();
void saveCert();
void addFriend();
void webMail();
//void loadCert();
2017-03-01 14:36:36 -05:00
void openWebHelp() ;
void recommendFriends();
void toggleIncludeAllIPs();
void toggleUseShortFormat();
void doExpand();
private:
Ui::HomePage *ui;
bool mIncludeAllIPs;
bool mUseShortFormat;
};
#endif // HomePage_H