2013-02-22 21:42:27 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
2014-03-17 20:56:06 +00:00
|
|
|
#include <retroshare/rstypes.h>
|
2013-02-22 21:42:27 +00:00
|
|
|
#include <gui/common/FriendSelectionWidget.h>
|
|
|
|
|
|
|
|
class FriendSelectionDialog : public QDialog
|
|
|
|
{
|
|
|
|
public:
|
2014-03-17 20:56:06 +00:00
|
|
|
static std::list<RsPgpId> selectFriends_PGP(QWidget *parent,const QString& caption,const QString& header_string,
|
|
|
|
FriendSelectionWidget::Modus modus = FriendSelectionWidget::MODUS_MULTI,
|
|
|
|
FriendSelectionWidget::ShowTypes = FriendSelectionWidget::SHOW_GROUP | FriendSelectionWidget::SHOW_SSL,
|
|
|
|
const std::list<RsPgpId>& pre_selected_ids = std::list<RsPgpId>()) ;
|
|
|
|
|
|
|
|
static std::list<RsPeerId> selectFriends_SSL(QWidget *parent,const QString& caption,const QString& header_string,
|
|
|
|
FriendSelectionWidget::Modus modus = FriendSelectionWidget::MODUS_MULTI,
|
|
|
|
FriendSelectionWidget::ShowTypes = FriendSelectionWidget::SHOW_GROUP | FriendSelectionWidget::SHOW_SSL,
|
|
|
|
const std::list<RsPeerId>& pre_selected_ids = std::list<RsPeerId>()) ;
|
|
|
|
private:
|
2013-02-22 21:42:27 +00:00
|
|
|
virtual ~FriendSelectionDialog() ;
|
2013-05-29 21:32:02 +00:00
|
|
|
FriendSelectionDialog(QWidget *parent,const QString& header_string,FriendSelectionWidget::Modus modus,FriendSelectionWidget::ShowTypes show_type,
|
|
|
|
FriendSelectionWidget::IdType pre_selected_id_type,
|
|
|
|
const std::list<std::string>& pre_selected_ids) ;
|
2013-02-22 21:42:27 +00:00
|
|
|
|
|
|
|
FriendSelectionWidget *friends_widget ;
|
|
|
|
};
|
|
|
|
|