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