RetroShare/retroshare-gui/src/gui/Identity/IdDetailsDialog.h
defnax f90ebb1dfc update Person details window used on Statistics.
clean up look and feel of Friend Details to get more user friendly for normal users.
2017-01-24 16:17:53 +01:00

72 lines
1.9 KiB
C++

/****************************************************************
* RetroShare is distributed under the following license:
*
* Copyright (C) 2014 - 2010 RetroShare Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
#ifndef _IDDETAILSDIALOG_H
#define _IDDETAILSDIALOG_H
#include <QDialog>
#include "util/TokenQueue.h"
#include <retroshare/rsidentity.h>
namespace Ui {
class IdDetailsDialog;
}
class UIStateHelper;
class IdDetailsDialog : public QDialog, public TokenResponse
{
Q_OBJECT
public:
/** Default constructor */
IdDetailsDialog(const RsGxsGroupId &id, QWidget *parent = 0);
/** Default destructor */
~IdDetailsDialog();
/* TokenResponse */
void loadRequest(const TokenQueue *queue, const TokenRequest &req);
private slots:
void modifyReputation();
void toggleAutoBanIdentities(bool b);
static QString inviteMessage();
void sendInvite();
private :
void requestIdDetails();
void insertIdDetails(uint32_t token);
void requestRepList();
void insertRepList(uint32_t token);
private:
RsGxsGroupId mId;
TokenQueue *mIdQueue;
UIStateHelper *mStateHelper;
/** Qt Designer generated object */
Ui::IdDetailsDialog *ui;
};
#endif