mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-10 23:30:14 -04:00
Merge pull request #1187 from csoler/master
merge of reviewed parts of PR1103
This commit is contained in:
commit
4dfeab2781
5 changed files with 16 additions and 9 deletions
|
@ -187,6 +187,7 @@ class RsGixsReputation
|
||||||
public:
|
public:
|
||||||
// get Reputation.
|
// get Reputation.
|
||||||
virtual RsReputations::ReputationLevel overallReputationLevel(const RsGxsId& id,uint32_t *identity_flags=NULL) = 0;
|
virtual RsReputations::ReputationLevel overallReputationLevel(const RsGxsId& id,uint32_t *identity_flags=NULL) = 0;
|
||||||
|
virtual ~RsGixsReputation(){}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*** This Class pulls all the GXS Interfaces together ****/
|
/*** This Class pulls all the GXS Interfaces together ****/
|
||||||
|
@ -210,6 +211,7 @@ virtual ~RsGxsIdExchange() { return; }
|
||||||
class RsGcxs
|
class RsGcxs
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~RsGcxs(){}
|
||||||
|
|
||||||
/* GXS Interface - for working out who can receive */
|
/* GXS Interface - for working out who can receive */
|
||||||
virtual bool isLoaded(const RsGxsCircleId &circleId) = 0;
|
virtual bool isLoaded(const RsGxsCircleId &circleId) = 0;
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
class PgpAuxUtils
|
class PgpAuxUtils
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~PgpAuxUtils(){}
|
||||||
|
|
||||||
virtual const RsPgpId &getPGPOwnId() = 0;
|
virtual const RsPgpId &getPGPOwnId() = 0;
|
||||||
virtual RsPgpId getPGPId(const RsPeerId& sslid) = 0;
|
virtual RsPgpId getPGPId(const RsPeerId& sslid) = 0;
|
||||||
|
|
|
@ -84,10 +84,9 @@
|
||||||
//static const unsigned int ROLE_SORT = Qt::UserRole + 1 ;
|
//static const unsigned int ROLE_SORT = Qt::UserRole + 1 ;
|
||||||
|
|
||||||
/** Constructor */
|
/** Constructor */
|
||||||
NetworkDialog::NetworkDialog(QWidget *parent)
|
NetworkDialog::NetworkDialog(QWidget */*parent*/)
|
||||||
{
|
{
|
||||||
/* Invoke the Qt Designer generated object setup routine */
|
/* Invoke the Qt Designer generated object setup routine */
|
||||||
Q_UNUSED(parent);
|
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
connect( ui.filterLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(filterItems(QString)));
|
connect( ui.filterLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(filterItems(QString)));
|
||||||
|
|
|
@ -10,6 +10,7 @@ public:
|
||||||
: mPeerId(val), mTestHub(hub){
|
: mPeerId(val), mTestHub(hub){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
virtual ~NotifyWithPeerId(){}
|
||||||
|
|
||||||
void notifyNewMessages(std::vector<RsNxsMsg*>& messages)
|
void notifyNewMessages(std::vector<RsNxsMsg*>& messages)
|
||||||
{
|
{
|
||||||
|
|
|
@ -166,7 +166,9 @@ template<class ItemClass,class ItemSerialiser> int test_RsItem()
|
||||||
rsfi.print(std::cerr,0) ;
|
rsfi.print(std::cerr,0) ;
|
||||||
}
|
}
|
||||||
if (outfi)
|
if (outfi)
|
||||||
|
{
|
||||||
EXPECT_TRUE(*outfi == rsfi) ;
|
EXPECT_TRUE(*outfi == rsfi) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sersize2 = MAX_BUFSIZE;
|
sersize2 = MAX_BUFSIZE;
|
||||||
|
@ -232,7 +234,9 @@ template<class ItemClass,class ItemSerialiser> int test_RsItem(uint16_t servtype
|
||||||
EXPECT_TRUE(outfi != NULL);
|
EXPECT_TRUE(outfi != NULL);
|
||||||
|
|
||||||
if (outfi)
|
if (outfi)
|
||||||
|
{
|
||||||
EXPECT_TRUE(*outfi == rsfi) ;
|
EXPECT_TRUE(*outfi == rsfi) ;
|
||||||
|
}
|
||||||
|
|
||||||
sersize2 = MAX_BUFSIZE;
|
sersize2 = MAX_BUFSIZE;
|
||||||
bool done2 = srl.serialise(outfi, (void *) &(buffer[16*8]), &sersize2);
|
bool done2 = srl.serialise(outfi, (void *) &(buffer[16*8]), &sersize2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue