EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BookmarkDB.h
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit https://evemu.dev
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Bloody.Rabbit
24  Updates: Allan
25 */
26 
27 #ifndef __EVEMU_SYSTEM_BOOKMARKDB_H_
28 #define __EVEMU_SYSTEM_BOOKMARKDB_H_
29 
30 #include "ServiceDB.h"
31 
32 /*
33 validCategories =
34  const.categoryCelestial,
35  const.categoryAsteroid,
36  const.categoryStation,
37  const.categoryShip,
38  const.categoryStructure,
39  const.categoryPlanetaryInteraction
40 */
41 
42 struct BmData {
43  // uint8 flag;
53  std::string memo;
54  std::string note;
55 };
56 
58 : public ServiceDB
59 {
60 public:
62  PyRep* GetBookmarks(uint32 ownerID);
63  PyRep* GetFolders(uint32 ownerID);
64 
65  static PyTuple* GetBookmarkDescription(uint32 bookmarkID);
66  static const char* GetBookmarkName(uint32 bookmarkID);
67  bool GetBookmarkInformation(uint32 bookmarkID, uint32& itemID, uint16& typeID, uint32& locationID, double& x, double& y, double& z);
68 
69  bool UpdateBookmark(uint32 bookmarkID, uint32 ownerID, std::string memo, std::string note, uint32 folderID=0);
70  bool DeleteBookmark(uint32 ownerID, uint32 bookmarkID);
71  bool DeleteBookmarks(std::vector<int32>* bookmarkList);
72 
73  bool UpdateFolder(int32 folderID, std::string folderName);
74  bool DeleteFolder(int32 folderID);
75 
76  uint32 SaveNewFolder(std::string folderName, uint32 ownerID);
77  void SaveNewBookmark(BmData &data);
78 
79  void ChangeOwner(uint32 bookmarkID, uint32 ownerID=1);
80  void MoveBookmarkToFolder(int32 folderID, std::vector< int32 >* bookmarkList);
81 
82  void GetBookmarkByFolderID(int32 folderID, std::vector< int32 >& bmIDs);
83 
84  void GetVoucherData(BmData &data);
85 };
86 
87 #endif // __EVEMU_SYSTEM_BOOKMARKDB_H_
88 
Base Python wire object.
Definition: PyRep.h:66
int64 created
Definition: BookmarkDB.h:51
void GetVoucherData(BmData &data)
Definition: BookmarkDB.cpp:383
itemID[count] Create count or of the specified() x() y(z)-Jump to the specified position in space.Stopped." ) COMMAND( translocate
std::string memo
Definition: BookmarkDB.h:53
void GetBookmarkByFolderID(int32 folderID, std::vector< int32 > &bmIDs)
Definition: BookmarkDB.cpp:66
PyRep * GetBookmarksInFolder(uint32 folderID)
Definition: BookmarkDB.cpp:34
uint32 SaveNewFolder(std::string folderName, uint32 ownerID)
Definition: BookmarkDB.cpp:323
bool UpdateBookmark(uint32 bookmarkID, uint32 ownerID, std::string memo, std::string note, uint32 folderID=0)
Definition: BookmarkDB.cpp:307
uint32 folderID
Definition: BookmarkDB.h:49
Python tuple.
Definition: PyRep.h:567
bool GetBookmarkInformation(uint32 bookmarkID, uint32 &itemID, uint16 &typeID, uint32 &locationID, double &x, double &y, double &z)
Definition: BookmarkDB.cpp:205
signed __int32 int32
Definition: eve-compat.h:49
bool DeleteBookmarks(std::vector< int32 > *bookmarkList)
Definition: BookmarkDB.cpp:280
uint32 creatorID
Definition: BookmarkDB.h:50
uint32 locationID
Definition: BookmarkDB.h:48
uint32 ownerID
Definition: BookmarkDB.h:46
Definition: gpoint.h:33
GPoint point
Definition: BookmarkDB.h:52
void ChangeOwner(uint32 bookmarkID, uint32 ownerID=1)
Definition: BookmarkDB.cpp:301
bool DeleteBookmark(uint32 ownerID, uint32 bookmarkID)
Definition: BookmarkDB.cpp:266
bool UpdateFolder(int32 folderID, std::string folderName)
Definition: BookmarkDB.cpp:340
void SaveNewBookmark(BmData &data)
Definition: BookmarkDB.cpp:236
static const char * GetBookmarkName(uint32 bookmarkID)
Definition: BookmarkDB.cpp:165
bool DeleteFolder(int32 folderID)
Definition: BookmarkDB.cpp:356
unsigned __int32 uint32
Definition: eve-compat.h:50
PyRep * GetBookmarks(uint32 ownerID)
Definition: BookmarkDB.cpp:79
PyRep * GetFolders(uint32 ownerID)
Definition: BookmarkDB.cpp:134
signed __int64 int64
Definition: eve-compat.h:51
uint32 bookmarkID
Definition: BookmarkDB.h:45
typeID Spawn an NPC with the specified type text Search for items matching the specified query() type()() itemID() copy() materialLevel()() itemID(attributeID)-Retrieves attribute value." ) COMMAND( setattr
uint16 typeID
Definition: BookmarkDB.h:44
void MoveBookmarkToFolder(int32 folderID, std::vector< int32 > *bookmarkList)
Definition: BookmarkDB.cpp:369
unsigned __int16 uint16
Definition: eve-compat.h:48
uint32 itemID
Definition: BookmarkDB.h:47
static PyTuple * GetBookmarkDescription(uint32 bookmarkID)
Definition: BookmarkDB.cpp:180
std::string note
Definition: BookmarkDB.h:54