2013-03-15 17:02:43 -04:00
|
|
|
/*
|
|
|
|
* Retroshare Gxs Support
|
2012-11-19 17:14:45 -05:00
|
|
|
*
|
2013-03-15 17:02:43 -04:00
|
|
|
* Copyright 2012-2013 by Robert Fernie.
|
2012-11-19 17:14:45 -05:00
|
|
|
*
|
2013-03-15 17:02:43 -04:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License Version 2.1 as published by the Free Software Foundation.
|
2012-11-19 17:14:45 -05:00
|
|
|
*
|
2013-03-15 17:02:43 -04:00
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
2012-11-19 17:14:45 -05:00
|
|
|
*
|
2013-03-15 17:02:43 -04:00
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA.
|
|
|
|
*
|
|
|
|
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
|
|
|
*
|
|
|
|
*/
|
2012-11-19 17:14:45 -05:00
|
|
|
|
|
|
|
#include "GxsIdChooser.h"
|
2014-02-02 06:25:11 -05:00
|
|
|
#include "GxsIdDetails.h"
|
2014-07-06 07:19:58 -04:00
|
|
|
#include "RsGxsUpdateBroadcastBase.h"
|
2012-11-19 17:14:45 -05:00
|
|
|
|
2013-06-23 14:55:30 -04:00
|
|
|
#include <QTimer>
|
|
|
|
#include <QSortFilterProxyModel>
|
2012-11-19 17:14:45 -05:00
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
#include <retroshare/rspeers.h>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2013-06-23 14:55:30 -04:00
|
|
|
#define MAX_TRY 10 // 5 seconds
|
|
|
|
|
|
|
|
#define ROLE_SORT Qt::UserRole + 1 // Qt::UserRole is reserved for data
|
2014-07-06 07:19:58 -04:00
|
|
|
#define ROLE_TYPE Qt::UserRole + 2 //
|
|
|
|
|
|
|
|
#define TYPE_NO_ID 1
|
|
|
|
#define TYPE_FOUND_ID 2
|
|
|
|
#define TYPE_UNKNOWN_ID 3
|
|
|
|
|
|
|
|
#define IDCHOOSER_REFRESH 1
|
2013-06-23 14:55:30 -04:00
|
|
|
|
2012-11-19 17:14:45 -05:00
|
|
|
/** Constructor */
|
|
|
|
GxsIdChooser::GxsIdChooser(QWidget *parent)
|
2014-04-26 12:32:33 -04:00
|
|
|
: QComboBox(parent), mFlags(IDCHOOSER_ANON_DEFAULT)
|
2012-11-19 17:14:45 -05:00
|
|
|
{
|
2014-07-06 07:19:58 -04:00
|
|
|
mBase = new RsGxsUpdateBroadcastBase(rsIdentity, this);
|
|
|
|
connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool)));
|
|
|
|
|
|
|
|
mIdQueue = NULL;
|
|
|
|
mFirstLoad=true;
|
|
|
|
|
2014-04-26 12:32:33 -04:00
|
|
|
mDefaultId.clear() ;
|
2014-07-06 07:19:58 -04:00
|
|
|
mDefaultIdName.clear();
|
2013-06-23 14:55:30 -04:00
|
|
|
mTimer = NULL;
|
|
|
|
mTimerCount = 0;
|
|
|
|
|
|
|
|
/* Enable sort with own role */
|
|
|
|
QSortFilterProxyModel *proxy = new QSortFilterProxyModel(this);
|
|
|
|
proxy->setSourceModel(model());
|
|
|
|
model()->setParent(proxy);
|
|
|
|
setModel(proxy);
|
|
|
|
|
|
|
|
proxy->setSortRole(ROLE_SORT);
|
2014-07-06 07:19:58 -04:00
|
|
|
connect(this, SIGNAL(currentIndexChanged(int)),this,SLOT(myCurrentIndexChanged(int)));
|
|
|
|
|
|
|
|
mIdQueue = new TokenQueue(rsIdentity->getTokenService(), this);
|
|
|
|
}
|
|
|
|
|
|
|
|
GxsIdChooser::~GxsIdChooser()
|
|
|
|
{
|
2014-08-29 07:22:54 -04:00
|
|
|
if (mIdQueue) {
|
|
|
|
delete(mIdQueue);
|
|
|
|
mIdQueue = NULL;
|
|
|
|
}
|
2014-07-06 07:19:58 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void GxsIdChooser::setUpdateWhenInvisible(bool update)
|
|
|
|
{
|
|
|
|
mBase->setUpdateWhenInvisible(update);
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::list<RsGxsGroupId> &GxsIdChooser::getGrpIds()
|
|
|
|
{
|
|
|
|
return mBase->getGrpIds();
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &GxsIdChooser::getMsgIds()
|
|
|
|
{
|
|
|
|
return mBase->getMsgIds();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GxsIdChooser::fillDisplay(bool complete)
|
|
|
|
{
|
|
|
|
updateDisplay(complete);
|
|
|
|
update(); // Qt flush
|
|
|
|
}
|
|
|
|
|
|
|
|
void GxsIdChooser::showEvent(QShowEvent *event)
|
|
|
|
{
|
|
|
|
mBase->showEvent(event);
|
|
|
|
QComboBox::showEvent(event);
|
2012-11-19 17:14:45 -05:00
|
|
|
}
|
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
|
2012-11-19 17:14:45 -05:00
|
|
|
void GxsIdChooser::loadIds(uint32_t chooserFlags, RsGxsId defId)
|
|
|
|
{
|
|
|
|
mFlags = chooserFlags;
|
|
|
|
mDefaultId = defId;
|
2013-02-27 18:52:27 -05:00
|
|
|
clear();
|
2014-07-06 07:19:58 -04:00
|
|
|
mFirstLoad = true;
|
2012-11-19 17:14:45 -05:00
|
|
|
}
|
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
bool GxsIdChooser::makeIdDesc(const RsGxsId &gxsId, QString &desc)
|
2012-11-19 17:14:45 -05:00
|
|
|
{
|
2014-02-02 06:25:11 -05:00
|
|
|
std::list<QIcon> icons;
|
2014-09-13 10:07:59 -04:00
|
|
|
QString comment ;
|
|
|
|
if (!GxsIdDetails::MakeIdDesc(gxsId, false, desc, icons,comment)) {
|
2014-07-06 07:19:58 -04:00
|
|
|
if (mTimerCount > MAX_TRY) {
|
2013-06-23 14:55:30 -04:00
|
|
|
desc = QString("%1 ... [").arg(tr("Not found"));
|
2014-07-06 07:19:58 -04:00
|
|
|
desc += QString::fromStdString(gxsId.toStdString().substr(0,5));
|
2014-02-02 06:25:11 -05:00
|
|
|
desc += "...]";
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (mTimerCount > MAX_TRY)
|
2014-02-02 06:25:11 -05:00
|
|
|
return false;
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (!GxsIdDetails::MakeIdDesc(gxsId, false, desc, icons))
|
2014-02-02 06:25:11 -05:00
|
|
|
return true;
|
2012-11-19 17:14:45 -05:00
|
|
|
}
|
|
|
|
|
2013-06-23 14:55:30 -04:00
|
|
|
void GxsIdChooser::addPrivateId(const RsGxsId &gxsId, bool replace)
|
|
|
|
{
|
|
|
|
QString str;
|
2014-07-06 07:19:58 -04:00
|
|
|
bool found = makeIdDesc(gxsId, str);
|
|
|
|
if (!found) {
|
2013-06-23 14:55:30 -04:00
|
|
|
/* Add to pending id's */
|
|
|
|
mPendingId.push_back(gxsId);
|
|
|
|
if (replace && mTimerCount <= MAX_TRY) {
|
|
|
|
/* Retry */
|
|
|
|
return;
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (replace && mTimerCount <= MAX_TRY)
|
|
|
|
}//if (!found)
|
2013-06-23 14:55:30 -04:00
|
|
|
|
2014-03-17 16:56:06 -04:00
|
|
|
QString id = QString::fromStdString(gxsId.toStdString());
|
2013-06-23 14:55:30 -04:00
|
|
|
|
|
|
|
if (replace) {
|
|
|
|
/* Find and replace text of exisiting item */
|
|
|
|
int index = findData(id);
|
|
|
|
if (index >= 0) {
|
|
|
|
setItemText(index, str);
|
|
|
|
setItemData(index, QString("%1_%2").arg(found ? "1" : "2").arg(str), ROLE_SORT);
|
2014-07-06 07:19:58 -04:00
|
|
|
setItemData(index, found ? TYPE_FOUND_ID : TYPE_UNKNOWN_ID, ROLE_TYPE);
|
2013-06-23 14:55:30 -04:00
|
|
|
model()->sort(0);
|
|
|
|
return;
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (index >= 0)
|
|
|
|
//If not found create a new item.
|
|
|
|
}//if (replace)
|
2013-06-23 14:55:30 -04:00
|
|
|
|
|
|
|
/* Add new item */
|
|
|
|
addItem(str, id);
|
|
|
|
setItemData(count() - 1, QString("%1_%2").arg(found ? "1" : "2").arg(str), ROLE_SORT);
|
2014-07-06 07:19:58 -04:00
|
|
|
setItemData(count() - 1, found ? TYPE_FOUND_ID : TYPE_UNKNOWN_ID, ROLE_TYPE);
|
2013-06-23 14:55:30 -04:00
|
|
|
model()->sort(0);
|
|
|
|
}
|
2012-11-19 17:14:45 -05:00
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
void GxsIdChooser::loadPrivateIds(uint32_t token)
|
2012-11-19 17:14:45 -05:00
|
|
|
{
|
2013-06-23 14:55:30 -04:00
|
|
|
mPendingId.clear();
|
2014-07-06 07:19:58 -04:00
|
|
|
if (mFirstLoad) { clear();}
|
2013-06-23 14:55:30 -04:00
|
|
|
mTimerCount = 0;
|
|
|
|
if (mTimer) {
|
|
|
|
delete(mTimer);
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (mTimer)
|
2013-06-23 14:55:30 -04:00
|
|
|
|
2012-11-19 17:14:45 -05:00
|
|
|
std::list<RsGxsId> ids;
|
2014-07-06 07:19:58 -04:00
|
|
|
//rsIdentity->getOwnIds(ids);
|
|
|
|
std::vector<RsGxsIdGroup> datavector;
|
|
|
|
if (!rsIdentity->getGroupData(token, datavector)) {
|
|
|
|
std::cerr << "GxsIdChooser::loadPrivateIds() Error getting GroupData";
|
2012-11-19 17:14:45 -05:00
|
|
|
std::cerr << std::endl;
|
|
|
|
return;
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (!rsIdentity->getGroupData(token, datavector))
|
|
|
|
|
|
|
|
for (std::vector<RsGxsIdGroup>::iterator vit = datavector.begin();
|
|
|
|
vit != datavector.end(); ++vit) {
|
|
|
|
RsGxsIdGroup data = (*vit);
|
|
|
|
if (data.mMeta.mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_ADMIN) {
|
|
|
|
ids.push_back((RsGxsId) data.mMeta.mGroupId);
|
|
|
|
}//if (data.mMeta.mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_ADMIN)
|
|
|
|
|
|
|
|
if (mDefaultIdName == data.mMeta.mGroupName) {
|
|
|
|
mDefaultId=(RsGxsId) data.mMeta.mGroupId;
|
|
|
|
}//if (mDefaultIdName == data.mMeta.mGroupName)
|
|
|
|
}//for (std::vector<RsGxsIdGroup>::iterator vit
|
2012-11-19 17:14:45 -05:00
|
|
|
|
|
|
|
//rsIdentity->getDefaultId(defId);
|
|
|
|
// Prefer to use an application specific default???
|
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
if (mFirstLoad) {
|
|
|
|
if (!(mFlags & IDCHOOSER_ID_REQUIRED)) {
|
2012-11-19 17:14:45 -05:00
|
|
|
/* add No Signature option */
|
2013-06-23 14:55:30 -04:00
|
|
|
QString str = tr("No Signature");
|
2012-11-19 17:14:45 -05:00
|
|
|
QString id = "";
|
|
|
|
|
|
|
|
addItem(str, id);
|
2013-06-23 14:55:30 -04:00
|
|
|
setItemData(count() - 1, QString("0_%2").arg(str), ROLE_SORT);
|
2014-07-06 07:19:58 -04:00
|
|
|
setItemData(count() - 1, TYPE_NO_ID, ROLE_TYPE);
|
|
|
|
}//if (!(mFlags & IDCHOOSER_ID_REQUIRED)
|
|
|
|
}//if (mFirstLoad)
|
|
|
|
|
|
|
|
if (!mFirstLoad) {
|
2014-10-21 18:33:02 -04:00
|
|
|
for (int idx=0; idx < count(); ++idx) {
|
2014-07-06 07:19:58 -04:00
|
|
|
QVariant type = itemData(idx,ROLE_TYPE);
|
|
|
|
switch (type.toInt()) {
|
|
|
|
case TYPE_NO_ID:
|
|
|
|
break;
|
|
|
|
case TYPE_FOUND_ID:
|
|
|
|
case TYPE_UNKNOWN_ID:
|
|
|
|
default: {
|
|
|
|
QVariant var = itemData(idx);
|
|
|
|
RsGxsId gxsId = RsGxsId(var.toString().toStdString());
|
|
|
|
std::list<RsGxsId>::iterator lit = std::find( ids.begin(), ids.end(), gxsId);
|
|
|
|
if (lit == ids.end()) {
|
|
|
|
removeItem(idx);
|
|
|
|
idx--;
|
|
|
|
}//if (lit == ids.end())
|
|
|
|
}//default:
|
|
|
|
}//switch (type.toInt())
|
2014-10-21 18:33:02 -04:00
|
|
|
}//for (int idx=0; idx < count(); ++idx)
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (!mFirstLoad)
|
|
|
|
|
|
|
|
if (ids.empty()) {
|
|
|
|
std::cerr << "GxsIdChooser::loadPrivateIds() ERROR no ids";
|
|
|
|
std::cerr << std::endl;
|
|
|
|
mFirstLoad = false;
|
|
|
|
return;
|
|
|
|
}//if (ids.empty())
|
2012-11-19 17:14:45 -05:00
|
|
|
|
2014-10-21 18:33:02 -04:00
|
|
|
for(std::list<RsGxsId>::iterator it = ids.begin(); it != ids.end(); ++it) {
|
2014-07-06 07:19:58 -04:00
|
|
|
/* add to Chooser */
|
|
|
|
addPrivateId(*it, !mFirstLoad);
|
|
|
|
}//for(std::list<RsGxsId>::iterator it
|
2013-06-23 14:55:30 -04:00
|
|
|
|
|
|
|
if (!mPendingId.empty()) {
|
|
|
|
/* Create and start timer to load pending id's */
|
|
|
|
mTimerCount = 0;
|
|
|
|
mTimer = new QTimer();
|
|
|
|
mTimer->setSingleShot(true);
|
|
|
|
mTimer->setInterval(500);
|
|
|
|
connect(mTimer, SIGNAL(timeout()), this, SLOT(timer()));
|
|
|
|
mTimer->start();
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (!mPendingId.empty())
|
|
|
|
|
|
|
|
setDefaultItem();
|
|
|
|
|
|
|
|
mFirstLoad=false;
|
2012-11-19 17:14:45 -05:00
|
|
|
}
|
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
void GxsIdChooser::setDefaultItem()
|
2012-11-19 17:14:45 -05:00
|
|
|
{
|
2014-07-06 07:19:58 -04:00
|
|
|
int def = -1;
|
|
|
|
|
|
|
|
if ((mFlags & IDCHOOSER_ANON_DEFAULT) && !(mFlags & IDCHOOSER_ID_REQUIRED)) {
|
|
|
|
def = findData(TYPE_NO_ID, ROLE_TYPE);
|
|
|
|
} else {
|
|
|
|
QString id = QString::fromStdString(mDefaultId.toStdString());
|
|
|
|
def = findData(id);
|
|
|
|
}//if ((mFlags & IDCHOOSER_ANON_DEFAULT)
|
|
|
|
|
|
|
|
if (def >= 0) {
|
|
|
|
setCurrentIndex(def);
|
|
|
|
}//if (def >= 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
bool GxsIdChooser::setChosenId(RsGxsId &gxsId)
|
2012-11-19 17:14:45 -05:00
|
|
|
{
|
2014-07-06 07:19:58 -04:00
|
|
|
QString id = QString::fromStdString(gxsId.toStdString());
|
|
|
|
|
|
|
|
/* Find text of exisiting item */
|
|
|
|
int index = findData(id);
|
|
|
|
if (index >= 0) {
|
|
|
|
setCurrentIndex(index);
|
|
|
|
return true;
|
|
|
|
}//if (index >= 0)
|
2012-11-19 17:14:45 -05:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
GxsIdChooser::ChosenId_Ret GxsIdChooser::getChosenId(RsGxsId &gxsId)
|
|
|
|
{
|
|
|
|
if (count() < 1) {
|
|
|
|
return None;
|
|
|
|
}//if (count() < 1)
|
|
|
|
|
2012-11-19 17:14:45 -05:00
|
|
|
int idx = currentIndex();
|
|
|
|
|
|
|
|
QVariant var = itemData(idx);
|
2014-07-06 07:19:58 -04:00
|
|
|
gxsId = RsGxsId(var.toString().toStdString());
|
|
|
|
QVariant type = itemData(idx,ROLE_TYPE);
|
|
|
|
switch (type.toInt()) {
|
|
|
|
case TYPE_NO_ID:
|
|
|
|
return NoId;
|
|
|
|
case TYPE_FOUND_ID:
|
|
|
|
return KnowId;
|
|
|
|
case TYPE_UNKNOWN_ID:
|
|
|
|
return UnKnowId;
|
|
|
|
}//switch (type.toInt())
|
|
|
|
|
|
|
|
return None;
|
|
|
|
}
|
2012-11-19 17:14:45 -05:00
|
|
|
|
2014-07-06 07:19:58 -04:00
|
|
|
void GxsIdChooser::myCurrentIndexChanged(int index)
|
|
|
|
{
|
|
|
|
Q_UNUSED(index)
|
|
|
|
QFontMetrics fm = QFontMetrics(font());
|
|
|
|
QString text = currentText();
|
|
|
|
if (width()<fm.boundingRect(text).width()) {
|
|
|
|
setToolTip(text);
|
|
|
|
} else {
|
|
|
|
setToolTip("");
|
|
|
|
}//if (width()<fm.boundingRect(text).width())
|
2012-11-19 17:14:45 -05:00
|
|
|
}
|
|
|
|
|
2013-06-23 14:55:30 -04:00
|
|
|
void GxsIdChooser::timer()
|
|
|
|
{
|
|
|
|
++mTimerCount;
|
|
|
|
|
|
|
|
QList<RsGxsId> pendingId = mPendingId;
|
|
|
|
mPendingId.clear();
|
|
|
|
|
|
|
|
/* Process pending id's */
|
|
|
|
while (!pendingId.empty()) {
|
|
|
|
RsGxsId id = pendingId.front();
|
|
|
|
pendingId.pop_front();
|
|
|
|
|
|
|
|
addPrivateId(id, true);
|
2014-07-06 07:19:58 -04:00
|
|
|
}//while (!pendingId.empty())
|
|
|
|
|
|
|
|
setDefaultItem();
|
2013-06-23 14:55:30 -04:00
|
|
|
|
|
|
|
if (mPendingId.empty()) {
|
|
|
|
/* All pending id's processed */
|
|
|
|
delete(mTimer);
|
|
|
|
mTimer = NULL;
|
|
|
|
mTimerCount = 0;
|
2014-07-06 07:19:58 -04:00
|
|
|
} else {//if (mPendingId.empty())
|
2013-06-23 14:55:30 -04:00
|
|
|
if (mTimerCount <= MAX_TRY) {
|
|
|
|
/* Restart timer */
|
|
|
|
mTimer->start();
|
2014-07-06 07:19:58 -04:00
|
|
|
} else {//if (mTimerCount <= MAX_TRY)
|
2013-06-23 14:55:30 -04:00
|
|
|
delete(mTimer);
|
|
|
|
mTimer = NULL;
|
|
|
|
mTimerCount = 0;
|
|
|
|
mPendingId.clear();
|
2014-07-06 07:19:58 -04:00
|
|
|
}//if (mTimerCount <= MAX_TRY)
|
|
|
|
}//if (mPendingId.empty())
|
2013-06-23 14:55:30 -04:00
|
|
|
}
|
2014-07-06 07:19:58 -04:00
|
|
|
|
|
|
|
void GxsIdChooser::updateDisplay(bool complete)
|
|
|
|
{
|
|
|
|
Q_UNUSED(complete)
|
|
|
|
/* Update identity list */
|
|
|
|
requestIdList();
|
2013-06-23 14:55:30 -04:00
|
|
|
}
|
2014-07-06 07:19:58 -04:00
|
|
|
|
|
|
|
void GxsIdChooser::requestIdList()
|
|
|
|
{
|
|
|
|
if (!mIdQueue) return;
|
|
|
|
|
|
|
|
mIdQueue->cancelActiveRequestTokens(IDCHOOSER_REFRESH);
|
|
|
|
|
|
|
|
RsTokReqOptions opts;
|
|
|
|
opts.mReqType = GXS_REQUEST_TYPE_GROUP_DATA;
|
|
|
|
|
|
|
|
uint32_t token;
|
|
|
|
|
|
|
|
mIdQueue->requestGroupInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, IDCHOOSER_REFRESH);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GxsIdChooser::loadRequest(const TokenQueue *queue, const TokenRequest &req)
|
|
|
|
{
|
|
|
|
Q_UNUSED(queue)
|
|
|
|
std::cerr << "IdDialog::loadRequest() UserType: " << req.mUserType;
|
|
|
|
std::cerr << std::endl;
|
|
|
|
|
|
|
|
switch(req.mUserType) {
|
|
|
|
case IDCHOOSER_REFRESH:
|
|
|
|
insertIdList(req.mToken);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
std::cerr << "IdDialog::loadRequest() ERROR";
|
|
|
|
std::cerr << std::endl;
|
|
|
|
break;
|
|
|
|
}//switch(req.mUserType)
|
|
|
|
}
|
|
|
|
|
|
|
|
void GxsIdChooser::insertIdList(uint32_t token)
|
|
|
|
{
|
|
|
|
loadPrivateIds(token);
|
2013-06-23 14:55:30 -04:00
|
|
|
}
|