2018-11-17 14:10:08 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* retroshare-gui/src/gui/profile/ProfileManager.h *
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2012 by Retroshare Team <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/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2012-08-13 15:37:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef _PROFILEMANAGER_H
|
|
|
|
#define _PROFILEMANAGER_H
|
|
|
|
|
|
|
|
#include <retroshare/rstypes.h>
|
|
|
|
|
|
|
|
#include "ui_ProfileManager.h"
|
|
|
|
|
|
|
|
class ProfileManager : public QDialog
|
|
|
|
{
|
2012-09-12 11:17:00 +00:00
|
|
|
Q_OBJECT
|
2012-08-13 15:37:21 +00:00
|
|
|
|
|
|
|
public:
|
2012-09-12 11:17:00 +00:00
|
|
|
/** Default constructor */
|
2012-11-06 23:26:47 +00:00
|
|
|
ProfileManager(QWidget *parent = 0);
|
2012-08-13 15:37:21 +00:00
|
|
|
|
|
|
|
private slots:
|
2012-08-13 22:53:55 +00:00
|
|
|
void identityTreeWidgetCostumPopupMenu( QPoint point );
|
2012-09-12 11:17:00 +00:00
|
|
|
void identityItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
2012-08-13 15:37:21 +00:00
|
|
|
|
|
|
|
void selectFriend();
|
|
|
|
void importIdentity();
|
|
|
|
void exportIdentity();
|
|
|
|
void checkChanged(int i);
|
2012-08-13 22:53:55 +00:00
|
|
|
void newIdentity();
|
2012-08-13 15:37:21 +00:00
|
|
|
|
|
|
|
private:
|
2012-08-13 22:53:55 +00:00
|
|
|
QTreeWidgetItem *getCurrentIdentity();
|
2012-08-13 15:37:21 +00:00
|
|
|
|
2012-09-12 11:17:00 +00:00
|
|
|
void fillIdentities();
|
2012-08-13 15:37:21 +00:00
|
|
|
|
2012-09-12 11:17:00 +00:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::ProfileManager ui;
|
2012-08-13 15:37:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|