mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 07:40:21 -04:00
added paste multiple links
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2516 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ff0b797248
commit
0705d9dfc7
7 changed files with 74 additions and 75 deletions
|
@ -27,11 +27,12 @@
|
|||
#include <stdint.h>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QUrl>
|
||||
|
||||
class RetroShareLink
|
||||
{
|
||||
public:
|
||||
RetroShareLink(const QString& url);
|
||||
RetroShareLink(const QUrl& url);
|
||||
RetroShareLink(const QString& name, uint64_t size, const QString& hash);
|
||||
|
||||
uint64_t size() const { return _size ; }
|
||||
|
@ -39,10 +40,9 @@ class RetroShareLink
|
|||
const QString& hash() const { return _hash ; }
|
||||
|
||||
QString toString() const ;
|
||||
QUrl toUrl() const ;
|
||||
|
||||
bool valid() const { return _size > 0 ; }
|
||||
|
||||
static void parseForLinks(const QString& text,QList<RetroShareLink>& link_list) ;
|
||||
private:
|
||||
void check() ;
|
||||
static bool checkHash(const QString& hash) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue