mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
Added new RetroShare link formats:
retroshare://forum? retroshare://channel?... Added "Go to" from the news feed of forums and channels. Added "Copy RetroShare Link" to the forum/channel tree and messagees. Fixed style sheet of the auto download button in ChannelFeed. Fixed german language. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4162 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d058bf9511
commit
e5f3518225
20 changed files with 1826 additions and 1207 deletions
|
@ -47,7 +47,7 @@
|
|||
class RetroShareLink
|
||||
{
|
||||
public:
|
||||
enum enumType { TYPE_UNKNOWN, TYPE_FILE, TYPE_PERSON };
|
||||
enum enumType { TYPE_UNKNOWN, TYPE_FILE, TYPE_PERSON, TYPE_FORUM, TYPE_CHANNEL };
|
||||
|
||||
public:
|
||||
RetroShareLink(const QUrl& url);
|
||||
|
@ -56,11 +56,15 @@ class RetroShareLink
|
|||
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);
|
||||
|
||||
enumType type() const {return _type; }
|
||||
uint64_t size() const { return _size ; }
|
||||
const QString& name() const { return _name ; }
|
||||
const QString& hash() const { return _hash ; }
|
||||
const QString& id() const { return _hash ; }
|
||||
const QString& msgId() const { return _msgId ; }
|
||||
|
||||
// get nice name for anchor
|
||||
QString niceName() const;
|
||||
|
@ -97,7 +101,8 @@ class RetroShareLink
|
|||
enumType _type;
|
||||
QString _name;
|
||||
uint64_t _size;
|
||||
QString _hash;
|
||||
QString _hash; // or id (forum, channel)
|
||||
QString _msgId; // id of the message (forum, channel)
|
||||
};
|
||||
|
||||
/// This class handles the copy/paste of links. Every member is static to ensure unicity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue