37 #include "packets/Bookmarks.h"
84 result->
Dump(BOOKMARK__RSP_DUMP,
" ");
89 call.
Dump(BOOKMARK__CALL_DUMP);
90 Call_UpdateBookmark
args;
91 if (!args.Decode(&call.
tuple)) {
92 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
102 call.
Dump(BOOKMARK__CALL_DUMP);
103 Call_UpdateBookmark
args;
104 if (!args.Decode(&call.
tuple)) {
105 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
117 call.
Dump(BOOKMARK__CALL_DUMP);
118 Call_MoveBookmarksToFolder
args;
119 if (!args.Decode(&call.
tuple)) {
120 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
125 if (args.object->IsNone())
130 std::vector<int32> bmIDs;
131 for (
size_t i = 0; i < bmList->
size(); ++i)
142 call.
Dump(BOOKMARK__CALL_DUMP);
143 Call_UpdateFolder
args;
144 if (!args.Decode(&call.
tuple)) {
145 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
159 call.
Dump(BOOKMARK__CALL_DUMP);
164 Rsp_CreateFolder result;
165 result.ownerID = ownerID;
167 result.folderName = name;
168 result.creatorID = ownerID;
170 result.Dump(BOOKMARK__RSP_DUMP,
" ");
171 return result.Encode();
176 call.
Dump(BOOKMARK__CALL_DUMP);
183 call.
Dump(BOOKMARK__CALL_DUMP);
190 call.
Dump(BOOKMARK__CALL_DUMP);
197 call.
Dump(BOOKMARK__CALL_DUMP);
198 Call_DeleteBookmarks
args;
199 if (!args.Decode(&call.
tuple)) {
200 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
204 if (args.object->IsNone())
208 for (
size_t i = 0; i < bmList->
size(); ++i)
Dispatcher *const m_dispatch
static std::string StringContent(PyRep *pRep)
PyRep * GetItem(size_t index) const
Returns Python object.
PyRep * GetBookmarksInFolder(uint32 folderID)
Dispatcher *const m_dispatch
uint32 SaveNewFolder(std::string folderName, uint32 ownerID)
int32 GetCharacterID() const
bool UpdateBookmark(uint32 bookmarkID, uint32 ownerID, std::string memo, std::string note, uint32 folderID=0)
int32 GetCorporationID() const
const char * GetName() const
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
PyRep * GetItem(size_t index) const
Returns Python object.
void ChangeOwner(uint32 bookmarkID, uint32 ownerID=1)
bool UpdateFolder(int32 folderID, std::string folderName)
#define codelog(type, fmt,...)
void SetItem(size_t index, PyRep *object)
Stores Python object.
#define PyCallable_REG_CALL(c, m)
PyRep * GetBookmarks(uint32 ownerID)
PyCallable_Make_InnerDispatcher(CorpBookmarkMgr) CorpBookmarkMgr
virtual ~CorpBookmarkMgr()
PyRep * GetFolders(uint32 ownerID)
void Dump(LogType type) const
void MoveBookmarkToFolder(int32 folderID, std::vector< int32 > *bookmarkList)