2013-04-13 09:12:13 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Robert Fernie
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ui_CreateMsgLinkDialog.h"
|
|
|
|
|
|
|
|
class FriendSelectionWidget ;
|
|
|
|
|
|
|
|
class CreateMsgLinkDialog : public QDialog, public Ui::CreateMsgLinkDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-06-10 09:27:24 -04:00
|
|
|
CreateMsgLinkDialog();
|
2013-04-13 09:12:13 -04:00
|
|
|
virtual ~CreateMsgLinkDialog() {}
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
/* actions to take.... */
|
|
|
|
void createLink();
|
|
|
|
void update() ;
|
2013-04-13 18:40:17 -04:00
|
|
|
void toggleCreateLink(bool) ;
|
2013-04-14 17:45:02 -04:00
|
|
|
void updateCurrentRow(int) ;
|
2013-06-12 17:10:09 -04:00
|
|
|
void copyLinkToClipboard() ;
|
2013-04-13 09:12:13 -04:00
|
|
|
|
|
|
|
private:
|
2013-04-13 18:40:17 -04:00
|
|
|
time_t computeValidityDuration() const ;
|
|
|
|
|
2013-04-13 09:12:13 -04:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
FriendSelectionWidget *_gpg_selection ;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|