ui: bookmarks
can now bookmark tokens
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef MESSAGE_ACTIVATE_BOOKMARK_H
|
||||
#define MESSAGE_ACTIVATE_BOOKMARK_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
#include "data/bookmark/Bookmark.h"
|
||||
|
||||
class MessageActivateBookmark
|
||||
: public Message<MessageActivateBookmark>
|
||||
{
|
||||
public:
|
||||
MessageActivateBookmark(const std::shared_ptr<Bookmark>& bookmark)
|
||||
: bookmark(bookmark)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~MessageActivateBookmark()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageActivateBookmark";
|
||||
}
|
||||
|
||||
const std::shared_ptr<Bookmark> bookmark;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_ACTIVATE_BOOKMARK_H
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef MESSAGE_CREATE_BOOKMARK_H
|
||||
#define MESSAGE_CREATE_BOOKMARK_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageCreateBookmark
|
||||
: public Message<MessageCreateBookmark>
|
||||
{
|
||||
public:
|
||||
MessageCreateBookmark(const std::string& comment, const std::string& displayName, const std::string& categoryName)
|
||||
: comment(comment)
|
||||
, displayName(displayName)
|
||||
, categoryName(categoryName)
|
||||
{
|
||||
}
|
||||
|
||||
~MessageCreateBookmark()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageCreateBookmark";
|
||||
}
|
||||
|
||||
const std::string comment;
|
||||
const std::string displayName;
|
||||
const std::string categoryName;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_CREATE_BOOKMARK_H
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef MESSAGE_CREATE_BOOKMARK_CATEGORY_H
|
||||
#define MESSAGE_CREATE_BOOKMARK_CATEGORY_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageCreateBookmarkCategory
|
||||
: public Message<MessageCreateBookmarkCategory>
|
||||
{
|
||||
public:
|
||||
MessageCreateBookmarkCategory(const std::string& name)
|
||||
: name(name)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageCreateBookmarkCategory";
|
||||
}
|
||||
|
||||
const std::string name;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_CREATE_BOOKMARK_CATEGORY_H
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef MESSAGE_DELETE_BOOKMARK_H
|
||||
#define MESSAGE_DELETE_BOOKMARK_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageDeleteBookmark
|
||||
: public Message<MessageDeleteBookmark>
|
||||
{
|
||||
public:
|
||||
MessageDeleteBookmark(const Id bookmarkId, const bool isEdge)
|
||||
: bookmarkId(bookmarkId)
|
||||
, isEdge(isEdge)
|
||||
{
|
||||
}
|
||||
|
||||
~MessageDeleteBookmark()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDeleteBookmark";
|
||||
}
|
||||
|
||||
const Id bookmarkId;
|
||||
const bool isEdge;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DELETE_BOOKMARK_H
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef MESSAGE_DELETE_BOOKMARK_CATEGORY_WITH_BOOKMARKS_H
|
||||
#define MESSAGE_DELETE_BOOKMARK_CATEGORY_WITH_BOOKMARKS_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageDeleteBookmarkCategoryWithBookmarks
|
||||
: public Message<MessageDeleteBookmarkCategoryWithBookmarks>
|
||||
{
|
||||
public:
|
||||
MessageDeleteBookmarkCategoryWithBookmarks(const Id id)
|
||||
: categoryId(id)
|
||||
{
|
||||
}
|
||||
|
||||
~MessageDeleteBookmarkCategoryWithBookmarks()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDeleteBookmarkCategoryWithBookmarks";
|
||||
}
|
||||
|
||||
const Id categoryId;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DELETE_BOOKMARK_CATEGORY_WITH_BOOKMARKS_H
|
||||
@@ -0,0 +1,24 @@
|
||||
#ifndef MESSAGE_DELETE_BOOKMARK_FOR_ACTIVE_TOKENS
|
||||
#define MESSAGE_DELETE_BOOKMARK_FOR_ACTIVE_TOKENS
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageDeleteBookmarkForActiveTokens
|
||||
: public Message<MessageDeleteBookmarkForActiveTokens>
|
||||
{
|
||||
public:
|
||||
MessageDeleteBookmarkForActiveTokens()
|
||||
{
|
||||
}
|
||||
|
||||
~MessageDeleteBookmarkForActiveTokens()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDeleteBookmarkForActiveTokens";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DELETE_BOOKMARK_FOR_ACTIVE_TOKENS
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef MESSAGE_DISPLAY_BOOKMARK_CREATOR_H
|
||||
#define MESSAGE_DISPLAY_BOOKMARK_CREATOR_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageDisplayBookmarkCreator
|
||||
: public Message<MessageDisplayBookmarkCreator>
|
||||
{
|
||||
public:
|
||||
MessageDisplayBookmarkCreator()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDisplayBookmarkCreator";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DISPLAY_BOOKMARK_CREATOR_H
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef MESSAGE_DISPLAY_BOOKMARK_EDITOR_H
|
||||
#define MESSAGE_DISPLAY_BOOKMARK_EDITOR_H
|
||||
|
||||
#include "data/bookmark/Bookmark.h"
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageDisplayBookmarkEditor
|
||||
: public Message<MessageDisplayBookmarkEditor>
|
||||
{
|
||||
public:
|
||||
MessageDisplayBookmarkEditor(std::shared_ptr<Bookmark> bookmark)
|
||||
: bookmark(bookmark)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDisplayBookmarkEditor";
|
||||
}
|
||||
|
||||
std::shared_ptr<Bookmark> bookmark;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DISPLAY_BOOKMARK_EDITOR_H
|
||||
@@ -0,0 +1,42 @@
|
||||
#ifndef MESSAGE_DISPLAY_BOOKMARKS_H
|
||||
#define MESSAGE_DISPLAY_BOOKMARKS_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageDisplayBookmarks
|
||||
: public Message<MessageDisplayBookmarks>
|
||||
{
|
||||
public:
|
||||
enum BookmarkFilter
|
||||
{
|
||||
UNKNOWN = 0,
|
||||
ALL,
|
||||
NODES,
|
||||
EDGES
|
||||
};
|
||||
|
||||
enum BookmarkOrder
|
||||
{
|
||||
NONE = 0,
|
||||
DATE_ASCENDING,
|
||||
DATE_DESCENDING,
|
||||
NAME_ASCENDING,
|
||||
NAME_DESCENDING
|
||||
};
|
||||
|
||||
MessageDisplayBookmarks(const BookmarkFilter& filter, const BookmarkOrder& order)
|
||||
: filter(filter)
|
||||
, order(order)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDisplayBookmarks";
|
||||
}
|
||||
|
||||
const BookmarkFilter filter;
|
||||
const BookmarkOrder order;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DISPLAY_BOOKMARKS_H
|
||||
@@ -0,0 +1,36 @@
|
||||
#ifndef MESSAGE_EDIT_BOOKMARK_H
|
||||
#define MESSAGE_EDIT_BOOKMARK_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageEditBookmark
|
||||
: public Message<MessageEditBookmark>
|
||||
{
|
||||
public:
|
||||
MessageEditBookmark(const Id id, const std::string& comment, const std::string& displayName, const std::string& categoryName, const bool isEdge)
|
||||
: bookmarkId(id)
|
||||
, comment(comment)
|
||||
, displayName(displayName)
|
||||
, categoryName(categoryName)
|
||||
, isEdge(isEdge)
|
||||
{
|
||||
}
|
||||
|
||||
~MessageEditBookmark()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageEditBookmark";
|
||||
}
|
||||
|
||||
const Id bookmarkId;
|
||||
const std::string comment;
|
||||
const std::string displayName;
|
||||
const std::string categoryName;
|
||||
const bool isEdge;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_EDIT_BOOKMARK_H
|
||||
@@ -9,6 +9,7 @@ class MessagePingReceived
|
||||
public:
|
||||
MessagePingReceived()
|
||||
: ideId("")
|
||||
, ideName("")
|
||||
{
|
||||
}
|
||||
|
||||
@@ -18,6 +19,7 @@ public:
|
||||
}
|
||||
|
||||
std::string ideId;
|
||||
std::string ideName;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_PING_RECEIVED_H
|
||||
Reference in New Issue
Block a user