mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 16:45:11 -04:00
Added new RetroShare link format to start a search
retroshare://search?keywords=... Enabled key "delete" to remove search results. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4185 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
73daae5992
commit
cd8188bf09
18 changed files with 276 additions and 156 deletions
|
@ -47,17 +47,18 @@
|
|||
class RetroShareLink
|
||||
{
|
||||
public:
|
||||
enum enumType { TYPE_UNKNOWN, TYPE_FILE, TYPE_PERSON, TYPE_FORUM, TYPE_CHANNEL };
|
||||
enum enumType { TYPE_UNKNOWN, TYPE_FILE, TYPE_PERSON, TYPE_FORUM, TYPE_CHANNEL, TYPE_SEARCH };
|
||||
|
||||
public:
|
||||
RetroShareLink();
|
||||
RetroShareLink(const QUrl& url);
|
||||
RetroShareLink(const QString& url);
|
||||
// file
|
||||
RetroShareLink(const QString& name, uint64_t size, const QString& hash);
|
||||
// person
|
||||
RetroShareLink(const QString& name, const QString& hash);
|
||||
// forum, channel
|
||||
RetroShareLink(enumType type, const QString& name, const QString& id, const QString& msgId);
|
||||
|
||||
bool createFile(const QString& name, uint64_t size, const QString& hash);
|
||||
bool createPerson(const QString& name, const QString& hash);
|
||||
bool createForum(const QString& name, const QString& id, const QString& msgId);
|
||||
bool createChannel(const QString& name, const QString& id, const QString& msgId);
|
||||
bool createSearch(const QString& keywords);
|
||||
|
||||
enumType type() const {return _type; }
|
||||
uint64_t size() const { return _size ; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue