mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-22 15:59:54 -05:00
removed some dead files and finished license cleaning
This commit is contained in:
parent
45a2d22b45
commit
01c40d2593
@ -11,10 +11,15 @@ Files: libretroshare/*
|
|||||||
Copyright: 2007-2018, Retroshare Team <retroshare.team@gmail.com>
|
Copyright: 2007-2018, Retroshare Team <retroshare.team@gmail.com>
|
||||||
License: LGPL-3+
|
License: LGPL-3+
|
||||||
|
|
||||||
|
Files: src/retroshare-gui/src/TorControl/
|
||||||
|
Copyright: 2014, John Brooks <john.brooks@dereferenced.net>
|
||||||
|
License: BSD-New
|
||||||
|
|
||||||
Files: src/libresapi/src/api/json.h \
|
Files: src/libresapi/src/api/json.h \
|
||||||
libresapi/src/webui-src/app/mithril.min.js \
|
libresapi/src/webui-src/app/mithril.min.js \
|
||||||
src/rapidjson-1.1.0/* \
|
src/rapidjson-1.1.0/* \
|
||||||
retroshare-gui/src/gui/common/PictureFlow.*
|
retroshare-gui/src/gui/common/PictureFlow.* \
|
||||||
|
src/retroshare-gui/src/qss/qdarkstyle.qss
|
||||||
Copyright: 2013 Jeff Weinstein <jeff.weinstein@gmail.com>
|
Copyright: 2013 Jeff Weinstein <jeff.weinstein@gmail.com>
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ echo This script is going to build the debian source package for RetroShare, fro
|
|||||||
|
|
||||||
if test -d "${workdir}" ; then
|
if test -d "${workdir}" ; then
|
||||||
echo Removing the ${workdir} directory...
|
echo Removing the ${workdir} directory...
|
||||||
rm -i -rf ${workdir}
|
rm -rf ${workdir}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Parse options
|
# Parse options
|
||||||
@ -71,29 +71,31 @@ done
|
|||||||
removeIrrelevantFiles() {
|
removeIrrelevantFiles() {
|
||||||
echo Removing irrelevant files in directory ${workdir}...
|
echo Removing irrelevant files in directory ${workdir}...
|
||||||
# remove unised qml code, only needed on Android
|
# remove unised qml code, only needed on Android
|
||||||
rm -i -rf ${workdir}/src/retroshare-qml-app/
|
rm -rf ${workdir}/src/retroshare-qml-app/
|
||||||
rm -i -rf ${workdir}/src/librssimulator/
|
rm -rf ${workdir}/src/librssimulator/
|
||||||
rm -i -rf ${workdir}/src/libretroshare/src/tests/
|
rm -rf ${workdir}/src/libretroshare/src/tests/
|
||||||
rm -i -rf ${workdir}/src/libretroshare/src/unfinished/
|
rm -rf ${workdir}/src/libretroshare/src/unfinished/
|
||||||
rm -i -rf ${workdir}/src/libretroshare/unused/
|
rm -rf ${workdir}/src/libretroshare/unused/
|
||||||
rm -i -rf ${workdir}/src/retroshare-android-notify-service/
|
rm -rf ${workdir}/src/retroshare-android-notify-service/
|
||||||
rm -i -rf ${workdir}/src/retroshare-android-service/
|
rm -rf ${workdir}/src/retroshare-android-service/
|
||||||
rm -i -rf ${workdir}/src/libretroshare/src/unused/
|
rm -rf ${workdir}/src/libretroshare/src/unused/
|
||||||
rm -i -rf ${workdir}/src/supportlibs/
|
rm -rf ${workdir}/src/supportlibs/
|
||||||
rm -i -rf ${workdir}/src/retroshare-service/
|
rm -rf ${workdir}/src/retroshare-service/
|
||||||
rm -i -rf ${workdir}/src/plugins/
|
rm -rf ${workdir}/src/plugins/
|
||||||
rm -i -rf ${workdir}/src/unittests/
|
rm -rf ${workdir}/src/unittests/
|
||||||
rm -i -rf ${workdir}/src/tests/
|
rm -rf ${workdir}/src/tests/
|
||||||
rm -i -rf ${workdir}/src/build_scripts/
|
rm -rf ${workdir}/src/build_scripts/
|
||||||
rm -i -rf ${workdir}/src/libbitdht/src/tests/
|
rm -rf ${workdir}/src/libbitdht/src/tests/
|
||||||
rm -i -rf ${workdir}/src/libbitdht/src/example/
|
rm -rf ${workdir}/src/libbitdht/src/example/
|
||||||
rm -i -f ${workdir}/debian/*~
|
rm -rf ${workdir}/src/retroshare-gui/src/gui/WikiPoos/
|
||||||
rm -i -f ${workdir}/debian/.*.sw?
|
rm -rf ${workdir}/src/retroshare-gui/src/Unused/
|
||||||
rm -i -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble_Compact/private/images.sh
|
rm -f ${workdir}/debian/*~
|
||||||
rm -i -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/src/images.sh
|
rm -f ${workdir}/debian/.*.sw?
|
||||||
rm -i -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/public/images.sh
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble_Compact/private/images.sh
|
||||||
rm -i -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/"history"/images.sh
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/src/images.sh
|
||||||
rm -i -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/private/images.sh
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/public/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/"history"/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/private/images.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
echo Attempting to get revision number...
|
echo Attempting to get revision number...
|
||||||
@ -163,7 +165,7 @@ if ! test "${nodl}" = "yes"; then
|
|||||||
# Various cleaning
|
# Various cleaning
|
||||||
echo Cleaning...
|
echo Cleaning...
|
||||||
|
|
||||||
\rm -i -rf src/.git
|
\rm -rf src/.git
|
||||||
|
|
||||||
if test "${makeorig}" = "yes" ; then
|
if test "${makeorig}" = "yes" ; then
|
||||||
echo making orig archive
|
echo making orig archive
|
||||||
|
@ -1,90 +0,0 @@
|
|||||||
/********************************************************************************************************
|
|
||||||
* PROGRAM : childform
|
|
||||||
* DATE - TIME : Samstag 30 Dezember 2006 - 12h04
|
|
||||||
* AUTHOR : ( )
|
|
||||||
* FILENAME : QSkinMainWindow.h
|
|
||||||
* LICENSE :
|
|
||||||
* COMMENTARY :
|
|
||||||
********************************************************************************************************/
|
|
||||||
#ifndef QSkinObject_H
|
|
||||||
#define QSkinObject_H
|
|
||||||
#include "qskinwidgetresizehandler.h"
|
|
||||||
|
|
||||||
#include <QtCore>
|
|
||||||
#include <QObject>
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QWidget>
|
|
||||||
#include <QMouseEvent>
|
|
||||||
#include <QDesktopWidget>
|
|
||||||
#include <QBitmap>
|
|
||||||
#include <QEvent>
|
|
||||||
#include <QPainter>
|
|
||||||
#include <QPixmap>
|
|
||||||
#include <QSettings>
|
|
||||||
#include <QBasicTimer>
|
|
||||||
#ifdef WIN32
|
|
||||||
#define _WIN32_WINNT 0x0500
|
|
||||||
#define WINVER 0x0500
|
|
||||||
#include <windows.h>
|
|
||||||
#endif
|
|
||||||
class QSkinWidgetResizeHandler;
|
|
||||||
class QSkinObject : public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
friend class QSkinWidgetResizeHandler;
|
|
||||||
public:
|
|
||||||
QSkinObject(QWidget* wgtParent);
|
|
||||||
~QSkinObject(){}
|
|
||||||
void setSkinPath(const QString & skinpath);
|
|
||||||
QString getSkinPath();
|
|
||||||
int customFrameWidth();
|
|
||||||
public slots:
|
|
||||||
void updateStyle();
|
|
||||||
void updateButtons();
|
|
||||||
void startSkinning();
|
|
||||||
void stopSkinning();
|
|
||||||
protected:
|
|
||||||
bool eventFilter(QObject *o, QEvent *e);
|
|
||||||
//Events to filter
|
|
||||||
//void mouseMoveEvent(QMouseEvent *event);
|
|
||||||
void mousePressEvent(QMouseEvent *event);
|
|
||||||
//void mouseReleaseEvent(QMouseEvent *mouseEvent);
|
|
||||||
void paintEvent(QPaintEvent *event);
|
|
||||||
void resizeEvent(QResizeEvent *e);
|
|
||||||
//void closeEvent(QCloseEvent *e);
|
|
||||||
|
|
||||||
void loadSkinIni();
|
|
||||||
void manageRegions();
|
|
||||||
QPixmap drawCtrl(QWidget * widget);
|
|
||||||
QRegion childRegion;
|
|
||||||
void timerEvent ( QTimerEvent * event );
|
|
||||||
private:
|
|
||||||
QRect saveRect;
|
|
||||||
QRect skinGeometry;
|
|
||||||
QPixmap widgetMask;//the pixmap, in which the ready frame is stored on pressed?
|
|
||||||
QString skinPath;
|
|
||||||
QFont titleFont;
|
|
||||||
QColor titleColor;
|
|
||||||
bool milchglas;
|
|
||||||
bool gotMousePress;
|
|
||||||
QRegion quitButton;
|
|
||||||
QRegion maxButton;
|
|
||||||
QRegion minButton;
|
|
||||||
QRect contentsRect;
|
|
||||||
QSkinWidgetResizeHandler * resizeHandler;
|
|
||||||
bool mousePress;
|
|
||||||
QBasicTimer *skinTimer;
|
|
||||||
QWidget *skinWidget;
|
|
||||||
void fastbluralpha(QImage &img, int radius);
|
|
||||||
Qt::WindowFlags flags;
|
|
||||||
int wlong;
|
|
||||||
#ifdef WIN32
|
|
||||||
public slots:
|
|
||||||
void setLayered();
|
|
||||||
void updateAlpha();
|
|
||||||
private:
|
|
||||||
double alpha;
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,115 +0,0 @@
|
|||||||
/****************************************************************
|
|
||||||
* RShare is distributed under the following license:
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006, The RetroShare Team
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation; either version 2
|
|
||||||
* of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program 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 General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
||||||
* Boston, MA 02110-1301, USA.
|
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#ifndef QSKINWIDGETRESIZEHANDLER_P_H
|
|
||||||
#define QSKINWIDGETRESIZEHANDLER_P_H
|
|
||||||
|
|
||||||
//
|
|
||||||
// W A R N I N G
|
|
||||||
// -------------
|
|
||||||
//
|
|
||||||
// This file is not part of the Qt API. This header file may
|
|
||||||
// change from version to version without notice, or even be
|
|
||||||
// removed.
|
|
||||||
//
|
|
||||||
// We mean it.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QPoint>
|
|
||||||
#include "qskinobject.h"
|
|
||||||
class QSkinObject;
|
|
||||||
class QMouseEvent;
|
|
||||||
class QKeyEvent;
|
|
||||||
|
|
||||||
class QSkinWidgetResizeHandler : public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
friend class QSkinObject;
|
|
||||||
public:
|
|
||||||
enum Action {
|
|
||||||
Move = 0x01,
|
|
||||||
Resize = 0x02,
|
|
||||||
Any = Move|Resize
|
|
||||||
};
|
|
||||||
|
|
||||||
explicit QSkinWidgetResizeHandler(QSkinObject * skobj, QWidget *parent, QWidget *cw = 0);
|
|
||||||
void setActive(bool b) { setActive(Any, b); }
|
|
||||||
void setActive(Action ac, bool b);
|
|
||||||
bool isActive() const { return isActive(Any); }
|
|
||||||
bool isActive(Action ac) const;
|
|
||||||
void setMovingEnabled(bool b) { movingEnabled = b; }
|
|
||||||
bool isMovingEnabled() const { return movingEnabled; }
|
|
||||||
|
|
||||||
bool isButtonDown() const { return buttonDown; }
|
|
||||||
|
|
||||||
void setExtraHeight(int h) { extrahei = h; }
|
|
||||||
void setSizeProtection(bool b) { sizeprotect = b; }
|
|
||||||
|
|
||||||
void setFrameWidth(int w) { fw = w; }
|
|
||||||
|
|
||||||
void doResize();
|
|
||||||
void doMove();
|
|
||||||
|
|
||||||
Q_SIGNALS:
|
|
||||||
void activate();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool eventFilter(QObject *o, QEvent *e);
|
|
||||||
void mouseMoveEvent(QMouseEvent *e);
|
|
||||||
void keyPressEvent(QKeyEvent *e);
|
|
||||||
|
|
||||||
private:
|
|
||||||
Q_DISABLE_COPY(QSkinWidgetResizeHandler)
|
|
||||||
QSkinObject *obj;
|
|
||||||
enum MousePosition {
|
|
||||||
Nowhere,
|
|
||||||
TopLeft, BottomRight, BottomLeft, TopRight,
|
|
||||||
Top, Bottom, Left, Right,
|
|
||||||
Center
|
|
||||||
};
|
|
||||||
|
|
||||||
QWidget *widget;
|
|
||||||
QWidget *childWidget;
|
|
||||||
QPoint moveOffset;
|
|
||||||
QPoint invertedMoveOffset;
|
|
||||||
MousePosition mode;
|
|
||||||
int fw;
|
|
||||||
int extrahei;
|
|
||||||
int range;
|
|
||||||
uint buttonDown :1;
|
|
||||||
uint moveResizeMode :1;
|
|
||||||
uint activeForResize :1;
|
|
||||||
uint sizeprotect :1;
|
|
||||||
uint movingEnabled :1;
|
|
||||||
uint activeForMove :1;
|
|
||||||
uint widgetType;
|
|
||||||
void setMouseCursor(MousePosition m);
|
|
||||||
bool isMove() const {
|
|
||||||
return moveResizeMode && mode == Center;
|
|
||||||
}
|
|
||||||
bool isResize() const {
|
|
||||||
return moveResizeMode && !isMove();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // QSkinWidgetResizeHandler_P_H
|
|
@ -1,77 +0,0 @@
|
|||||||
/****************************************************************
|
|
||||||
* This file is distributed under the following license:
|
|
||||||
*
|
|
||||||
* Copyright (C) 2014 RetroShare Team
|
|
||||||
* Copyright (c) 2006-2007, crypton
|
|
||||||
* Copyright (c) 2006, Matt Edman, Justin Hipple
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation; either version 2
|
|
||||||
* of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program 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 General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
||||||
* Boston, MA 02110-1301, USA.
|
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
#include <QtGlobal>
|
|
||||||
|
|
||||||
#include <retroshare/rsdht.h>
|
|
||||||
#include <retroshare/rsconfig.h>
|
|
||||||
#include "dhtgraph.h"
|
|
||||||
|
|
||||||
class DHTGraphSource: public RSGraphSource
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual int n_values() const
|
|
||||||
{
|
|
||||||
return 1 ;
|
|
||||||
}
|
|
||||||
virtual void getValues(std::map<std::string,float>& values) const
|
|
||||||
{
|
|
||||||
RsConfigNetStatus config;
|
|
||||||
rsConfig->getConfigNetStatus(config);
|
|
||||||
|
|
||||||
if (config.DHTActive && config.netDhtOk)
|
|
||||||
{
|
|
||||||
values.insert(std::make_pair(std::string("RS Net size"),(float)config.netDhtRsNetSize)) ;
|
|
||||||
//values.insert(std::make_pair(std::string("GLobal Net size"),(float)config.netDhtNetSize)) ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
values.insert(std::make_pair(std::string("RS Net size"),0.0f)) ;
|
|
||||||
//values.insert(std::make_pair(std::string("GLobal Net size"),0.0f)) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual QString unitName() const { return tr("users"); }
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Default contructor */
|
|
||||||
DhtGraph::DhtGraph(QWidget *parent)
|
|
||||||
: RSGraphWidget(parent)
|
|
||||||
{
|
|
||||||
DHTGraphSource *src = new DHTGraphSource() ;
|
|
||||||
|
|
||||||
src->setCollectionTimeLimit(30*60*1000) ; // 30 mins
|
|
||||||
src->setCollectionTimePeriod(1000) ; // collect every second
|
|
||||||
src->start() ;
|
|
||||||
|
|
||||||
addSource(src) ;
|
|
||||||
|
|
||||||
setTimeScale(1.0f) ; // 1 pixels per second of time.
|
|
||||||
setScaleParams(0) ;
|
|
||||||
|
|
||||||
resetFlags(RSGRAPH_FLAGS_LOG_SCALE_Y) ;
|
|
||||||
setFlags(RSGRAPH_FLAGS_PAINT_STYLE_PLAIN) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,25 +1,26 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* This file is distributed under the following license:
|
* retroshare-gui/src/statistics/dhtgraph.h *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2014 RetroShare Team
|
* libretroshare: retroshare core library *
|
||||||
* Copyright (c) 2006-2007, crypton
|
* *
|
||||||
* Copyright (c) 2006, Matt Edman, Justin Hipple
|
* Copyright (C) 2014 RetroShare Team <retroshare@lunamutt.com> *
|
||||||
*
|
* Copyright (c) 2006-2007, crypton *
|
||||||
* This program is free software; you can redistribute it and/or
|
* Copyright (c) 2006, Matt Edman, Justin Hipple *
|
||||||
* modify it under the terms of the GNU General Public License
|
* *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* of the License, or (at your option) any later version.
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
*
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* License, or (at your option) any later version. *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* GNU General Public License for more details.
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
*
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* You should have received a copy of the GNU General Public License
|
* GNU Affero General Public License for more details. *
|
||||||
* along with this program; if not, write to the Free Software
|
* *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* Boston, MA 02110-1301, USA.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
****************************************************************/
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* RetroShare is distributed under the following license:
|
* util/qthreadutils.h *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2013 RetroShare Team
|
* Copyright (C) 2013 Retroshare Team <retroshare.project@gmail.com> *
|
||||||
*
|
* *
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* modify it under the terms of the GNU General Public License
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* of the License, or (at your option) any later version.
|
* License, or (at your option) any later version. *
|
||||||
*
|
* *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details.
|
* GNU Affero General Public License for more details. *
|
||||||
*
|
* *
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* *
|
||||||
* Boston, MA 02110-1301, USA.
|
*******************************************************************************/
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#ifndef QTVERSION_H
|
#ifndef QTVERSION_H
|
||||||
#define QTVERSION_H
|
#define QTVERSION_H
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* This file is distributed under the following license:
|
* util/RsUserdata.h *
|
||||||
*
|
* *
|
||||||
* Copyright (c) 2014, RetroShare Team
|
* Copyright (C) 2013 Retroshare Team <retroshare.project@gmail.com> *
|
||||||
*
|
* *
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* modify it under the terms of the GNU General Public License
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* of the License, or (at your option) any later version.
|
* License, or (at your option) any later version. *
|
||||||
*
|
* *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details.
|
* GNU Affero General Public License for more details. *
|
||||||
*
|
* *
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* *
|
||||||
* Boston, MA 02110-1301, USA.
|
*******************************************************************************/
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#ifndef _RSUSERDATA_H
|
#ifndef _RSUSERDATA_H
|
||||||
#define _RSUSERDATA_H
|
#define _RSUSERDATA_H
|
||||||
|
@ -1,182 +0,0 @@
|
|||||||
/*
|
|
||||||
* Token Queue.
|
|
||||||
*
|
|
||||||
* Copyright 2012-2012 by Robert Fernie.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* 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".
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "util/TokenQueueVEG.h"
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include <QTimer>
|
|
||||||
|
|
||||||
/******
|
|
||||||
* #define ID_DEBUG 1
|
|
||||||
*****/
|
|
||||||
|
|
||||||
/** Constructor */
|
|
||||||
TokenQueueVEG::TokenQueueVEG(RsTokenServiceVEG *service, TokenResponseVEG *resp)
|
|
||||||
:QWidget(NULL), mService(service), mResponder(resp)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TokenQueueVEG::requestGroupInfo(uint32_t &token, uint32_t anstype, const RsTokReqOptionsVEG &opts, std::list<std::string> ids, uint32_t usertype)
|
|
||||||
{
|
|
||||||
uint32_t basictype = TOKENREQ_GROUPINFO;
|
|
||||||
mService->requestGroupInfo(token, anstype, opts, ids);
|
|
||||||
queueRequest(token, basictype, anstype, usertype);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool TokenQueueVEG::requestMsgInfo(uint32_t &token, uint32_t anstype, const RsTokReqOptionsVEG &opts, std::list<std::string> ids, uint32_t usertype)
|
|
||||||
{
|
|
||||||
uint32_t basictype = TOKENREQ_MSGINFO;
|
|
||||||
mService->requestMsgInfo(token, anstype, opts, ids);
|
|
||||||
queueRequest(token, basictype, anstype, usertype);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool TokenQueueVEG::requestMsgRelatedInfo(uint32_t &token, uint32_t anstype, const RsTokReqOptionsVEG &opts, std::list<std::string> ids, uint32_t usertype)
|
|
||||||
{
|
|
||||||
uint32_t basictype = TOKENREQ_MSGRELATEDINFO;
|
|
||||||
mService->requestMsgRelatedInfo(token, anstype, opts, ids);
|
|
||||||
queueRequest(token, basictype, anstype, usertype);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void TokenQueueVEG::queueRequest(uint32_t token, uint32_t basictype, uint32_t anstype, uint32_t usertype)
|
|
||||||
{
|
|
||||||
std::cerr << "TokenQueueVEG::queueRequest() Token: " << token << " Type: " << basictype;
|
|
||||||
std::cerr << " AnsType: " << anstype << " UserType: " << usertype;
|
|
||||||
std::cerr << std::endl;
|
|
||||||
|
|
||||||
TokenRequestVEG req;
|
|
||||||
req.mToken = token;
|
|
||||||
req.mType = basictype;
|
|
||||||
req.mAnsType = anstype;
|
|
||||||
req.mUserType = usertype;
|
|
||||||
|
|
||||||
gettimeofday(&req.mRequestTs, NULL);
|
|
||||||
req.mPollTs = req.mRequestTs;
|
|
||||||
|
|
||||||
mRequests.push_back(req);
|
|
||||||
|
|
||||||
if (mRequests.size() == 1)
|
|
||||||
{
|
|
||||||
/* start the timer */
|
|
||||||
doPoll(0.1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void TokenQueueVEG::doPoll(float dt)
|
|
||||||
{
|
|
||||||
/* single shot poll */
|
|
||||||
//mTrigger->singlesshot(dt * 1000);
|
|
||||||
QTimer::singleShot((int) (dt * 1000.0), this, SLOT(pollRequests()));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void TokenQueueVEG::pollRequests()
|
|
||||||
{
|
|
||||||
std::list<TokenRequestVEG>::iterator it;
|
|
||||||
|
|
||||||
double pollPeriod = 1.0; // max poll period.
|
|
||||||
for(it = mRequests.begin(); it != mRequests.end();)
|
|
||||||
{
|
|
||||||
if (checkForRequest(it->mToken))
|
|
||||||
{
|
|
||||||
/* clean it up and handle */
|
|
||||||
loadRequest(*it);
|
|
||||||
it = mRequests.erase(it);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* calculate desired poll period */
|
|
||||||
|
|
||||||
/* if less then current poll period, adjust */
|
|
||||||
|
|
||||||
it++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mRequests.size() > 0)
|
|
||||||
{
|
|
||||||
doPoll(pollPeriod);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool TokenQueueVEG::checkForRequest(uint32_t token)
|
|
||||||
{
|
|
||||||
/* check token */
|
|
||||||
return (COMPLETED_REQUEST == mService->requestStatus(token));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void TokenQueueVEG::loadRequest(const TokenRequestVEG &req)
|
|
||||||
{
|
|
||||||
std::cerr << "TokenQueueVEG::loadRequest(): ";
|
|
||||||
std::cerr << "Token: " << req.mToken << " Type: " << req.mType;
|
|
||||||
std::cerr << " AnsType: " << req.mAnsType << " UserType: " << req.mUserType;
|
|
||||||
std::cerr << std::endl;
|
|
||||||
|
|
||||||
mResponder->loadRequest(this, req);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool TokenQueueVEG::cancelRequest(const uint32_t token)
|
|
||||||
{
|
|
||||||
/* cancel at lower level first */
|
|
||||||
mService->cancelRequest(token);
|
|
||||||
|
|
||||||
std::list<TokenRequestVEG>::iterator it;
|
|
||||||
|
|
||||||
for(it = mRequests.begin(); it != mRequests.end(); it++)
|
|
||||||
{
|
|
||||||
if (it->mToken == token)
|
|
||||||
{
|
|
||||||
mRequests.erase(it);
|
|
||||||
|
|
||||||
std::cerr << "TokenQueueVEG::cancelRequest() Cleared Request: " << token;
|
|
||||||
std::cerr << std::endl;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::cerr << "TokenQueueVEG::cancelRequest() Failed to Find Request: " << token;
|
|
||||||
std::cerr << std::endl;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,101 +0,0 @@
|
|||||||
/*
|
|
||||||
* Token Queue.
|
|
||||||
*
|
|
||||||
* Copyright 2012-2012 by Robert Fernie.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* 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".
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef MRK_VEG_TOKEN_QUEUE_H
|
|
||||||
#define MRK_VEG_TOKEN_QUEUE_H
|
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
#include <QTimer>
|
|
||||||
#include <list>
|
|
||||||
#include <string>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <retroshare/rsidentityVEG.h>
|
|
||||||
|
|
||||||
#define COMPLETED_REQUEST 4
|
|
||||||
|
|
||||||
#define TOKENREQ_GROUPINFO 1
|
|
||||||
#define TOKENREQ_MSGINFO 2
|
|
||||||
#define TOKENREQ_MSGRELATEDINFO 3
|
|
||||||
|
|
||||||
class TokenQueueVEG;
|
|
||||||
|
|
||||||
class TokenRequestVEG
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
uint32_t mToken;
|
|
||||||
uint32_t mType;
|
|
||||||
uint32_t mAnsType;
|
|
||||||
uint32_t mUserType;
|
|
||||||
struct timeval mRequestTs;
|
|
||||||
struct timeval mPollTs;
|
|
||||||
};
|
|
||||||
|
|
||||||
class TokenResponseVEG
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
//virtual ~TokenResponse() { return; }
|
|
||||||
// These Functions are overloaded to get results out.
|
|
||||||
virtual void loadRequest(const TokenQueueVEG *queue, const TokenRequestVEG &req) = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class TokenQueueVEG: public QWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
TokenQueueVEG(RsTokenServiceVEG *service, TokenResponseVEG *resp);
|
|
||||||
|
|
||||||
/* generic handling of token / response update behaviour */
|
|
||||||
bool requestGroupInfo(uint32_t &token, uint32_t anstype, const RsTokReqOptionsVEG &opts,
|
|
||||||
std::list<std::string> ids, uint32_t usertype);
|
|
||||||
bool requestMsgInfo(uint32_t &token, uint32_t anstype, const RsTokReqOptionsVEG &opts,
|
|
||||||
std::list<std::string> ids, uint32_t usertype);
|
|
||||||
bool requestMsgRelatedInfo(uint32_t &token, uint32_t anstype, const RsTokReqOptionsVEG &opts,
|
|
||||||
std::list<std::string> ids, uint32_t usertype);
|
|
||||||
bool cancelRequest(const uint32_t token);
|
|
||||||
|
|
||||||
void queueRequest(uint32_t token, uint32_t basictype, uint32_t anstype, uint32_t usertype);
|
|
||||||
bool checkForRequest(uint32_t token);
|
|
||||||
void loadRequest(const TokenRequestVEG &req);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void doPoll(float dt);
|
|
||||||
|
|
||||||
private slots:
|
|
||||||
void pollRequests();
|
|
||||||
|
|
||||||
private:
|
|
||||||
/* Info for Data Requests */
|
|
||||||
std::list<TokenRequestVEG> mRequests;
|
|
||||||
|
|
||||||
RsTokenServiceVEG *mService;
|
|
||||||
TokenResponseVEG *mResponder;
|
|
||||||
|
|
||||||
QTimer *mTrigger;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
@ -1,23 +1,22 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* RetroShare is distributed under the following license:
|
* util/WidgetBackgroundImage.cpp *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2006, 2007 crypton
|
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||||
*
|
* *
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* modify it under the terms of the GNU General Public License
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* of the License, or (at your option) any later version.
|
* License, or (at your option) any later version. *
|
||||||
*
|
* *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details.
|
* GNU Affero General Public License for more details. *
|
||||||
*
|
* *
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* *
|
||||||
* Boston, MA 02110-1301, USA.
|
*******************************************************************************/
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#include <util/WidgetBackgroundImage.h>
|
#include <util/WidgetBackgroundImage.h>
|
||||||
|
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* RetroShare is distributed under the following license:
|
* util/WidgetBackgroundImage.h *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2006,2007 crypton
|
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||||
*
|
* *
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* modify it under the terms of the GNU General Public License
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* of the License, or (at your option) any later version.
|
* License, or (at your option) any later version. *
|
||||||
*
|
* *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details.
|
* GNU Affero General Public License for more details. *
|
||||||
*
|
* *
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* *
|
||||||
* Boston, MA 02110-1301, USA.
|
*******************************************************************************/
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#ifndef WIDGETBACKGROUNDIMAGE_H
|
#ifndef WIDGETBACKGROUNDIMAGE_H
|
||||||
#define WIDGETBACKGROUNDIMAGE_H
|
#define WIDGETBACKGROUNDIMAGE_H
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* RetroShare is distributed under the following license:
|
* util/dllexport.h *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2006,2007 crypton
|
* Copyright (c) 2007 Crypton <retroshare.project@gmail.com> *
|
||||||
*
|
* *
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* modify it under the terms of the GNU General Public License
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* of the License, or (at your option) any later version.
|
* License, or (at your option) any later version. *
|
||||||
*
|
* *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details.
|
* GNU Affero General Public License for more details. *
|
||||||
*
|
* *
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* *
|
||||||
* Boston, MA 02110-1301, USA.
|
*******************************************************************************/
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#ifndef DLLEXPORT_H
|
#ifndef DLLEXPORT_H
|
||||||
#define DLLEXPORT_H
|
#define DLLEXPORT_H
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
/****************************************************************
|
/*******************************************************************************
|
||||||
* RetroShare is distributed under the following license:
|
* util/global.h *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2006,2007 crypton
|
* Copyright (c) 2007 Crypton <retroshare.project@gmail.com> *
|
||||||
*
|
* *
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* modify it under the terms of the GNU General Public License
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* as published by the Free Software Foundation; either version 2
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* of the License, or (at your option) any later version.
|
* License, or (at your option) any later version. *
|
||||||
*
|
* *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details.
|
* GNU Affero General Public License for more details. *
|
||||||
*
|
* *
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* *
|
||||||
* Boston, MA 02110-1301, USA.
|
*******************************************************************************/
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
#ifndef RSGLOBAL_H
|
#ifndef RSGLOBAL_H
|
||||||
#define RSGLOBAL_H
|
#define RSGLOBAL_H
|
||||||
|
@ -1,26 +1,28 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* RetroShare
|
* util/qthreadutils.h *
|
||||||
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org>
|
* *
|
||||||
*
|
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* *
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* it under the terms of the GNU Affero General Public License as *
|
||||||
* License, or (at your option) any later version.
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
*
|
* License, or (at your option) any later version. *
|
||||||
* This program is distributed in the hope that it will be useful,
|
* *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* This program is distributed in the hope that it will be useful, *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* GNU Affero General Public License for more details.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
*
|
* GNU Affero General Public License for more details. *
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* You should have received a copy of the GNU Affero General Public License *
|
||||||
*/
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/* Thanks to KubaO which realeased original C++14 versions of this functions
|
/* Thanks to KubaO which realeased original C++14 versions of this functions
|
||||||
* under public domain license
|
* https://github.com/KubaO/stackoverflown/blob/master/questions/metacall-21646467/main.cpp
|
||||||
* https://github.com/KubaO/stackoverflown/blob/master/questions/metacall-21646467/main.cpp
|
* https://github.com/KubaO/stackoverflown/blob/master/LICENSE
|
||||||
* https://github.com/KubaO/stackoverflown/blob/master/LICENSE
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user