mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
merged upstream/master
This commit is contained in:
commit
a498d4e370
@ -20,6 +20,11 @@ DESTDIR = lib
|
|||||||
#QMAKE_CFLAGS += -Werror
|
#QMAKE_CFLAGS += -Werror
|
||||||
#QMAKE_CXXFLAGS += -Werror
|
#QMAKE_CXXFLAGS += -Werror
|
||||||
|
|
||||||
|
## Uncomment to enable Unfinished Services.
|
||||||
|
#CONFIG += wikipoos
|
||||||
|
#CONFIG += gxsthewire
|
||||||
|
#CONFIG += gxsphotoshare
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
# DEFINES *= DEBUG
|
# DEFINES *= DEBUG
|
||||||
# DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG
|
# DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG
|
||||||
@ -763,6 +768,8 @@ SOURCES += services/p3gxschannels.cc \
|
|||||||
rsitems/rsgxschannelitems.cc \
|
rsitems/rsgxschannelitems.cc \
|
||||||
|
|
||||||
wikipoos {
|
wikipoos {
|
||||||
|
DEFINES *= RS_USE_WIKI
|
||||||
|
|
||||||
# Wiki Service
|
# Wiki Service
|
||||||
HEADERS += retroshare/rswiki.h \
|
HEADERS += retroshare/rswiki.h \
|
||||||
services/p3wiki.h \
|
services/p3wiki.h \
|
||||||
@ -773,6 +780,8 @@ wikipoos {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gxsthewire {
|
gxsthewire {
|
||||||
|
DEFINES *= RS_USE_WIRE
|
||||||
|
|
||||||
# Wire Service
|
# Wire Service
|
||||||
HEADERS += retroshare/rswire.h \
|
HEADERS += retroshare/rswire.h \
|
||||||
services/p3wire.h \
|
services/p3wire.h \
|
||||||
@ -793,6 +802,8 @@ SOURCES += services/p3postbase.cc \
|
|||||||
rsitems/rsposteditems.cc
|
rsitems/rsposteditems.cc
|
||||||
|
|
||||||
gxsphotoshare {
|
gxsphotoshare {
|
||||||
|
DEFINES *= RS_USE_PHOTO
|
||||||
|
|
||||||
#Photo Service
|
#Photo Service
|
||||||
HEADERS += services/p3photoservice.h \
|
HEADERS += services/p3photoservice.h \
|
||||||
retroshare/rsphoto.h \
|
retroshare/rsphoto.h \
|
||||||
|
@ -51,6 +51,12 @@ void RsGxsWireGroupItem::serial_process(RsGenericSerializer::SerializeJob j,RsGe
|
|||||||
RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_DESCR,group.mDescription,"group.mDescription") ;
|
RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_DESCR,group.mDescription,"group.mDescription") ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RsGxsWirePulseItem::clear()
|
||||||
|
{
|
||||||
|
pulse.mPulseText.clear();
|
||||||
|
pulse.mHashTags.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void RsGxsWirePulseItem::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx)
|
void RsGxsWirePulseItem::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx)
|
||||||
{
|
{
|
||||||
RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_MSG,pulse.mPulseText,"pulse.mPulseText") ;
|
RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_MSG,pulse.mPulseText,"pulse.mPulseText") ;
|
||||||
|
@ -737,12 +737,13 @@ RsGRouter *rsGRouter = NULL ;
|
|||||||
#include "pgp/pgpauxutils.h"
|
#include "pgp/pgpauxutils.h"
|
||||||
#include "services/p3idservice.h"
|
#include "services/p3idservice.h"
|
||||||
#include "services/p3gxscircles.h"
|
#include "services/p3gxscircles.h"
|
||||||
#include "services/p3wiki.h"
|
|
||||||
#include "services/p3posted.h"
|
#include "services/p3posted.h"
|
||||||
#include "services/p3photoservice.h"
|
|
||||||
#include "services/p3gxsforums.h"
|
#include "services/p3gxsforums.h"
|
||||||
#include "services/p3gxschannels.h"
|
#include "services/p3gxschannels.h"
|
||||||
|
|
||||||
|
#include "services/p3wiki.h"
|
||||||
#include "services/p3wire.h"
|
#include "services/p3wire.h"
|
||||||
|
#include "services/p3photoservice.h"
|
||||||
|
|
||||||
#endif // RS_ENABLE_GXS
|
#endif // RS_ENABLE_GXS
|
||||||
|
|
||||||
@ -1361,35 +1362,35 @@ int RsServer::StartupRetroShare()
|
|||||||
|
|
||||||
mGxsChannels->setNetworkExchangeService(gxschannels_ns) ;
|
mGxsChannels->setNetworkExchangeService(gxschannels_ns) ;
|
||||||
|
|
||||||
#if 0 // PHOTO IS DISABLED FOR THE MOMENT
|
#ifdef RS_USE_PHOTO
|
||||||
/**** Photo service ****/
|
/**** Photo service ****/
|
||||||
RsGeneralDataService* photo_ds = new RsDataService(currGxsDir + "/", "photoV2_db",
|
RsGeneralDataService* photo_ds = new RsDataService(currGxsDir + "/", "photoV2_db",
|
||||||
RS_SERVICE_GXS_TYPE_PHOTO, NULL, rsInitConfig->gxs_passwd);
|
RS_SERVICE_GXS_TYPE_PHOTO, NULL, rsInitConfig->gxs_passwd);
|
||||||
|
|
||||||
// init gxs services
|
// init gxs services
|
||||||
mPhoto = new p3PhotoService(photo_ds, NULL, mGxsIdService);
|
p3PhotoService *mPhoto = new p3PhotoService(photo_ds, NULL, mGxsIdService);
|
||||||
|
|
||||||
// create GXS photo service
|
// create GXS photo service
|
||||||
RsGxsNetService* photo_ns = new RsGxsNetService(
|
RsGxsNetService* photo_ns = new RsGxsNetService(
|
||||||
RS_SERVICE_GXS_TYPE_PHOTO, photo_ds, nxsMgr,
|
RS_SERVICE_GXS_TYPE_PHOTO, photo_ds, nxsMgr,
|
||||||
mPhoto, mPhoto->getServiceInfo(),
|
mPhoto, mPhoto->getServiceInfo(),
|
||||||
mGxsIdService, mGxsCircles,mGxsIdService,
|
mReputations, mGxsCircles,mGxsIdService,
|
||||||
pgpAuxUtils);
|
pgpAuxUtils);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0 // WIRE IS DISABLED FOR THE MOMENT
|
#ifdef RS_USE_WIRE
|
||||||
/**** Wire GXS service ****/
|
/**** Wire GXS service ****/
|
||||||
RsGeneralDataService* wire_ds = new RsDataService(currGxsDir + "/", "wire_db",
|
RsGeneralDataService* wire_ds = new RsDataService(currGxsDir + "/", "wire_db",
|
||||||
RS_SERVICE_GXS_TYPE_WIRE,
|
RS_SERVICE_GXS_TYPE_WIRE,
|
||||||
NULL, rsInitConfig->gxs_passwd);
|
NULL, rsInitConfig->gxs_passwd);
|
||||||
|
|
||||||
mWire = new p3Wire(wire_ds, NULL, mGxsIdService);
|
p3Wire *mWire = new p3Wire(wire_ds, NULL, mGxsIdService);
|
||||||
|
|
||||||
// create GXS photo service
|
// create GXS photo service
|
||||||
RsGxsNetService* wire_ns = new RsGxsNetService(
|
RsGxsNetService* wire_ns = new RsGxsNetService(
|
||||||
RS_SERVICE_GXS_TYPE_WIRE, wire_ds, nxsMgr,
|
RS_SERVICE_GXS_TYPE_WIRE, wire_ds, nxsMgr,
|
||||||
mWire, mWire->getServiceInfo(),
|
mWire, mWire->getServiceInfo(),
|
||||||
mGxsIdService, mGxsCircles,mGxsIdService,
|
mReputations, mGxsCircles,mGxsIdService,
|
||||||
pgpAuxUtils);
|
pgpAuxUtils);
|
||||||
#endif
|
#endif
|
||||||
// now add to p3service
|
// now add to p3service
|
||||||
@ -1401,7 +1402,12 @@ int RsServer::StartupRetroShare()
|
|||||||
#endif
|
#endif
|
||||||
pqih->addService(gxsforums_ns, true);
|
pqih->addService(gxsforums_ns, true);
|
||||||
pqih->addService(gxschannels_ns, true);
|
pqih->addService(gxschannels_ns, true);
|
||||||
//pqih->addService(photo_ns, true);
|
#ifdef RS_USE_PHOTO
|
||||||
|
pqih->addService(photo_ns, true);
|
||||||
|
#endif
|
||||||
|
#ifdef RS_USE_WIRE
|
||||||
|
pqih->addService(wire_ns, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
# ifdef RS_GXS_TRANS
|
# ifdef RS_GXS_TRANS
|
||||||
RsGeneralDataService* gxstrans_ds = new RsDataService(
|
RsGeneralDataService* gxstrans_ds = new RsDataService(
|
||||||
@ -1630,8 +1636,12 @@ int RsServer::StartupRetroShare()
|
|||||||
#ifdef RS_USE_WIKI
|
#ifdef RS_USE_WIKI
|
||||||
mConfigMgr->addConfiguration("wiki.cfg", wiki_ns);
|
mConfigMgr->addConfiguration("wiki.cfg", wiki_ns);
|
||||||
#endif
|
#endif
|
||||||
//mConfigMgr->addConfiguration("photo.cfg", photo_ns);
|
#ifdef RS_USE_PHOTO
|
||||||
//mConfigMgr->addConfiguration("wire.cfg", wire_ns);
|
mConfigMgr->addConfiguration("photo.cfg", photo_ns);
|
||||||
|
#endif
|
||||||
|
#ifdef RS_USE_WIRE
|
||||||
|
mConfigMgr->addConfiguration("wire.cfg", wire_ns);
|
||||||
|
#endif
|
||||||
#endif //RS_ENABLE_GXS
|
#endif //RS_ENABLE_GXS
|
||||||
mConfigMgr->addConfiguration("I2PBOB.cfg", mI2pBob);
|
mConfigMgr->addConfiguration("I2PBOB.cfg", mI2pBob);
|
||||||
|
|
||||||
@ -1793,8 +1803,12 @@ int RsServer::StartupRetroShare()
|
|||||||
rsGxsChannels = mGxsChannels;
|
rsGxsChannels = mGxsChannels;
|
||||||
rsGxsTrans = mGxsTrans;
|
rsGxsTrans = mGxsTrans;
|
||||||
|
|
||||||
//rsPhoto = mPhoto;
|
#if RS_USE_PHOTO
|
||||||
//rsWire = mWire;
|
rsPhoto = mPhoto;
|
||||||
|
#endif
|
||||||
|
#if RS_USE_WIRE
|
||||||
|
rsWire = mWire;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*** start up GXS core runner ***/
|
/*** start up GXS core runner ***/
|
||||||
|
|
||||||
@ -1808,8 +1822,12 @@ int RsServer::StartupRetroShare()
|
|||||||
startServiceThread(mGxsForums, "gxs forums");
|
startServiceThread(mGxsForums, "gxs forums");
|
||||||
startServiceThread(mGxsChannels, "gxs channels");
|
startServiceThread(mGxsChannels, "gxs channels");
|
||||||
|
|
||||||
//createThread(*mPhoto);
|
#if RS_USE_PHOTO
|
||||||
//createThread(*mWire);
|
startServiceThread(mPhoto, "gxs photo");
|
||||||
|
#endif
|
||||||
|
#if RS_USE_WIRE
|
||||||
|
startServiceThread(mPhoto, "gxs wire");
|
||||||
|
#endif
|
||||||
|
|
||||||
// cores ready start up GXS net servers
|
// cores ready start up GXS net servers
|
||||||
startServiceThread(gxsid_ns, "gxs id ns");
|
startServiceThread(gxsid_ns, "gxs id ns");
|
||||||
@ -1821,8 +1839,12 @@ int RsServer::StartupRetroShare()
|
|||||||
startServiceThread(gxsforums_ns, "gxs forums ns");
|
startServiceThread(gxsforums_ns, "gxs forums ns");
|
||||||
startServiceThread(gxschannels_ns, "gxs channels ns");
|
startServiceThread(gxschannels_ns, "gxs channels ns");
|
||||||
|
|
||||||
//createThread(*photo_ns);
|
#if RS_USE_PHOTO
|
||||||
//createThread(*wire_ns);
|
startServiceThread(photo_ns, "gxs photo ns");
|
||||||
|
#endif
|
||||||
|
#if RS_USE_WIRE
|
||||||
|
startServiceThread(photo_ns, "gxs wire ns");
|
||||||
|
#endif
|
||||||
|
|
||||||
# ifdef RS_GXS_TRANS
|
# ifdef RS_GXS_TRANS
|
||||||
startServiceThread(mGxsTrans, "gxs trans");
|
startServiceThread(mGxsTrans, "gxs trans");
|
||||||
|
@ -40,7 +40,7 @@ RsWiki *rsWiki = NULL;
|
|||||||
|
|
||||||
p3Wiki::p3Wiki(RsGeneralDataService* gds, RsNetworkExchangeService* nes, RsGixs *gixs)
|
p3Wiki::p3Wiki(RsGeneralDataService* gds, RsNetworkExchangeService* nes, RsGixs *gixs)
|
||||||
:RsGenExchange(gds, nes, new RsGxsWikiSerialiser(), RS_SERVICE_GXS_TYPE_WIKI, gixs, wikiAuthenPolicy()),
|
:RsGenExchange(gds, nes, new RsGxsWikiSerialiser(), RS_SERVICE_GXS_TYPE_WIKI, gixs, wikiAuthenPolicy()),
|
||||||
RsWiki(this)
|
RsWiki(static_cast<RsGxsIface&>(*this))
|
||||||
{
|
{
|
||||||
// Setup of dummy Pages.
|
// Setup of dummy Pages.
|
||||||
mAboutActive = false;
|
mAboutActive = false;
|
||||||
|
@ -33,7 +33,7 @@ RsWire *rsWire = NULL;
|
|||||||
|
|
||||||
p3Wire::p3Wire(RsGeneralDataService* gds, RsNetworkExchangeService* nes, RsGixs *gixs)
|
p3Wire::p3Wire(RsGeneralDataService* gds, RsNetworkExchangeService* nes, RsGixs *gixs)
|
||||||
:RsGenExchange(gds, nes, new RsGxsWireSerialiser(), RS_SERVICE_GXS_TYPE_WIRE, gixs, wireAuthenPolicy()),
|
:RsGenExchange(gds, nes, new RsGxsWireSerialiser(), RS_SERVICE_GXS_TYPE_WIRE, gixs, wireAuthenPolicy()),
|
||||||
RsWire(this), mWireMtx("WireMtx")
|
RsWire(static_cast<RsGxsIface&>(*this)), mWireMtx("WireMtx")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,12 @@
|
|||||||
#ifdef RS_USE_WIKI
|
#ifdef RS_USE_WIKI
|
||||||
#include "gui/WikiPoos/WikiDialog.h"
|
#include "gui/WikiPoos/WikiDialog.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RS_USE_WIRE
|
||||||
|
#include "gui/TheWire/WireDialog.h"
|
||||||
|
#endif
|
||||||
|
#ifdef RS_USE_PHOTO
|
||||||
|
#include "gui/PhotoShare/PhotoShare.h"
|
||||||
|
#endif
|
||||||
#include "gui/Posted/PostedDialog.h"
|
#include "gui/Posted/PostedDialog.h"
|
||||||
#include "gui/statistics/StatisticsWindow.h"
|
#include "gui/statistics/StatisticsWindow.h"
|
||||||
|
|
||||||
@ -423,6 +429,17 @@ void MainWindow::initStackedPage()
|
|||||||
addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, ¬ify);
|
addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, ¬ify);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RS_USE_WIRE
|
||||||
|
WireDialog *wireDialog = NULL;
|
||||||
|
addPage(wireDialog = new WireDialog(ui->stackPages), grp, ¬ify);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef RS_USE_PHOTO
|
||||||
|
PhotoShare *photoDialog = NULL;
|
||||||
|
addPage(photoDialog = new PhotoShare(ui->stackPages), grp, ¬ify);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
std::cerr << "Looking for interfaces in existing plugins:" << std::endl;
|
std::cerr << "Looking for interfaces in existing plugins:" << std::endl;
|
||||||
for(int i = 0;i<rsPlugins->nbPlugins();++i)
|
for(int i = 0;i<rsPlugins->nbPlugins();++i)
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,7 @@ void AlbumDialog::setUp()
|
|||||||
|
|
||||||
|
|
||||||
QPixmap qtn;
|
QPixmap qtn;
|
||||||
GxsIdDetails::loadPixmapFromData(mAlbum.mThumbnail.data, mAlbum.mThumbnail.size, mAlbum.mThumbnail.type.c_str(),qtn);
|
GxsIdDetails::loadPixmapFromData(mAlbum.mThumbnail.data, mAlbum.mThumbnail.size,qtn, GxsIdDetails::ORIGINAL);
|
||||||
|
|
||||||
if(mAlbum.mThumbnail.size != 0)
|
if(mAlbum.mThumbnail.size != 0)
|
||||||
{
|
{
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
#include "util/TokenQueue.h"
|
#include "util/TokenQueue.h"
|
||||||
#include "PhotoShareItemHolder.h"
|
#include "PhotoShareItemHolder.h"
|
||||||
|
|
||||||
|
#define IMAGE_PHOTO ":/images/lphoto.png"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class PhotoShare;
|
class PhotoShare;
|
||||||
}
|
}
|
||||||
@ -51,6 +53,10 @@ public:
|
|||||||
PhotoShare(QWidget *parent = 0);
|
PhotoShare(QWidget *parent = 0);
|
||||||
~PhotoShare();
|
~PhotoShare();
|
||||||
|
|
||||||
|
virtual QIcon iconPixmap() const { return QIcon(IMAGE_PHOTO) ; }
|
||||||
|
virtual QString pageName() const { return tr("Photo Albums") ; }
|
||||||
|
virtual QString helpText() const { return ""; }
|
||||||
|
|
||||||
void notifySelection(PhotoShareItem* selection);
|
void notifySelection(PhotoShareItem* selection);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
#include "gui/TheWire/PulseItem.h"
|
#include "gui/TheWire/PulseItem.h"
|
||||||
#include "gui/TheWire/PulseAddDialog.h"
|
#include "gui/TheWire/PulseAddDialog.h"
|
||||||
|
|
||||||
|
#define IMAGE_WIRE ":/images/kgames.png"
|
||||||
|
|
||||||
class WireDialog : public MainPage, public PulseHolder
|
class WireDialog : public MainPage, public PulseHolder
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -38,6 +40,10 @@ class WireDialog : public MainPage, public PulseHolder
|
|||||||
public:
|
public:
|
||||||
WireDialog(QWidget *parent = 0);
|
WireDialog(QWidget *parent = 0);
|
||||||
|
|
||||||
|
virtual QIcon iconPixmap() const { return QIcon(IMAGE_WIRE) ; }
|
||||||
|
virtual QString pageName() const { return tr("The Wire") ; }
|
||||||
|
virtual QString helpText() const { return ""; }
|
||||||
|
|
||||||
virtual void deletePulseItem(PulseItem *, uint32_t type);
|
virtual void deletePulseItem(PulseItem *, uint32_t type);
|
||||||
virtual void notifySelection(PulseItem *item, int ptype);
|
virtual void notifySelection(PulseItem *item, int ptype);
|
||||||
|
|
||||||
|
@ -436,8 +436,8 @@ void WikiDialog::requestWikiPage(const RsGxsGrpMsgIdPair &msgId)
|
|||||||
uint32_t token;
|
uint32_t token;
|
||||||
|
|
||||||
GxsMsgReq msgIds;
|
GxsMsgReq msgIds;
|
||||||
std::vector<RsGxsMessageId> &vect_msgIds = msgIds[msgId.first];
|
std::set<RsGxsMessageId> &set_msgIds = msgIds[msgId.first];
|
||||||
vect_msgIds.push_back(msgId.second);
|
set_msgIds.insert(msgId.second);
|
||||||
|
|
||||||
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIDIALOG_WIKI_PAGE);
|
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIDIALOG_WIKI_PAGE);
|
||||||
}
|
}
|
||||||
@ -698,10 +698,10 @@ void WikiDialog::updateDisplay(bool complete)
|
|||||||
requestGroupMeta();
|
requestGroupMeta();
|
||||||
} else {
|
} else {
|
||||||
/* Update all groups of changed messages */
|
/* Update all groups of changed messages */
|
||||||
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > msgIds;
|
std::map<RsGxsGroupId, std::set<RsGxsMessageId> > msgIds;
|
||||||
getAllMsgIds(msgIds);
|
getAllMsgIds(msgIds);
|
||||||
|
|
||||||
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >::iterator msgIt;
|
std::map<RsGxsGroupId, std::set<RsGxsMessageId> >::iterator msgIt;
|
||||||
for (msgIt = msgIds.begin(); msgIt != msgIds.end(); ++msgIt) {
|
for (msgIt = msgIds.begin(); msgIt != msgIds.end(); ++msgIt) {
|
||||||
wikiGroupChanged(QString::fromStdString(msgIt->first.toStdString()));
|
wikiGroupChanged(QString::fromStdString(msgIt->first.toStdString()));
|
||||||
}
|
}
|
||||||
|
@ -622,8 +622,8 @@ void WikiEditDialog::requestPage(const RsGxsGrpMsgIdPair &msgId)
|
|||||||
opts.mReqType = GXS_REQUEST_TYPE_MSG_DATA;
|
opts.mReqType = GXS_REQUEST_TYPE_MSG_DATA;
|
||||||
|
|
||||||
GxsMsgReq msgIds;
|
GxsMsgReq msgIds;
|
||||||
std::vector<RsGxsMessageId> &vect_msgIds = msgIds[msgId.first];
|
std::set<RsGxsMessageId> &set_msgIds = msgIds[msgId.first];
|
||||||
vect_msgIds.push_back(msgId.second);
|
set_msgIds.insert(msgId.second);
|
||||||
|
|
||||||
uint32_t token;
|
uint32_t token;
|
||||||
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIEDITDIALOG_PAGE);
|
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIEDITDIALOG_PAGE);
|
||||||
|
@ -53,7 +53,7 @@ public:
|
|||||||
//GxsChannelPostItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsChannelPost &post, bool isHome, bool autoUpdate);
|
//GxsChannelPostItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsChannelPost &post, bool isHome, bool autoUpdate);
|
||||||
virtual ~GxsChannelPostItem();
|
virtual ~GxsChannelPostItem();
|
||||||
|
|
||||||
uint64_t uniqueIdentifier() const override { hash_64bits("GxsChannelPostItem " + messageId().toStdString()) ; }
|
uint64_t uniqueIdentifier() const override { return hash_64bits("GxsChannelPostItem " + messageId().toStdString()) ; }
|
||||||
|
|
||||||
bool setGroup(const RsGxsChannelGroup &group, bool doFill = true);
|
bool setGroup(const RsGxsChannelGroup &group, bool doFill = true);
|
||||||
bool setPost(const RsGxsChannelPost &post, bool doFill = true);
|
bool setPost(const RsGxsChannelPost &post, bool doFill = true);
|
||||||
|
@ -114,6 +114,11 @@ CONFIG += gxscircles
|
|||||||
#CONFIG += framecatcher
|
#CONFIG += framecatcher
|
||||||
#CONFIG += blogs
|
#CONFIG += blogs
|
||||||
|
|
||||||
|
## To enable unfinished services
|
||||||
|
#CONFIG += wikipoos
|
||||||
|
#CONFIG += gxsthewire
|
||||||
|
#CONFIG += gxsphotoshare
|
||||||
|
|
||||||
DEFINES += RS_RELEASE_VERSION
|
DEFINES += RS_RELEASE_VERSION
|
||||||
RCC_DIR = temp/qrc
|
RCC_DIR = temp/qrc
|
||||||
UI_DIR = temp/ui
|
UI_DIR = temp/ui
|
||||||
@ -342,6 +347,7 @@ openbsd-* {
|
|||||||
wikipoos {
|
wikipoos {
|
||||||
PRE_TARGETDEPS *= $$OUT_PWD/../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
PRE_TARGETDEPS *= $$OUT_PWD/../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
||||||
LIBS *= $$OUT_PWD/../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
LIBS *= $$OUT_PWD/../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
||||||
|
LIBS *= -lglib-2.0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Tor controller
|
# Tor controller
|
||||||
@ -1144,7 +1150,8 @@ unfinished_services {
|
|||||||
|
|
||||||
|
|
||||||
gxsphotoshare {
|
gxsphotoshare {
|
||||||
#DEFINES += RS_USE_PHOTOSHARE
|
#DEFINES += RS_USE_PHOTOSHARE # to enable in unfinished.
|
||||||
|
DEFINES += RS_USE_PHOTO # enable in MainWindow
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
gui/PhotoShare/PhotoDrop.h \
|
gui/PhotoShare/PhotoDrop.h \
|
||||||
@ -1189,6 +1196,7 @@ gxsphotoshare {
|
|||||||
|
|
||||||
|
|
||||||
wikipoos {
|
wikipoos {
|
||||||
|
DEFINES += RS_USE_WIKI
|
||||||
|
|
||||||
DEPENDPATH += ../../supportlibs/pegmarkdown
|
DEPENDPATH += ../../supportlibs/pegmarkdown
|
||||||
INCLUDEPATH += ../../supportlibs/pegmarkdown
|
INCLUDEPATH += ../../supportlibs/pegmarkdown
|
||||||
@ -1215,6 +1223,8 @@ wikipoos {
|
|||||||
|
|
||||||
gxsthewire {
|
gxsthewire {
|
||||||
|
|
||||||
|
DEFINES += RS_USE_WIRE
|
||||||
|
|
||||||
HEADERS += gui/TheWire/PulseItem.h \
|
HEADERS += gui/TheWire/PulseItem.h \
|
||||||
gui/TheWire/WireDialog.h \
|
gui/TheWire/WireDialog.h \
|
||||||
gui/TheWire/PulseAddDialog.h \
|
gui/TheWire/PulseAddDialog.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user