|
EvEmu
0.8.4
11 September 2021
|
#include "BookmarkDB.h"


Public Member Functions | |
| PyRep * | GetBookmarksInFolder (uint32 folderID) |
| PyRep * | GetBookmarks (uint32 ownerID) |
| PyRep * | GetFolders (uint32 ownerID) |
| bool | GetBookmarkInformation (uint32 bookmarkID, uint32 &itemID, uint16 &typeID, uint32 &locationID, double &x, double &y, double &z) |
| bool | UpdateBookmark (uint32 bookmarkID, uint32 ownerID, std::string memo, std::string note, uint32 folderID=0) |
| bool | DeleteBookmark (uint32 ownerID, uint32 bookmarkID) |
| bool | DeleteBookmarks (std::vector< int32 > *bookmarkList) |
| bool | UpdateFolder (int32 folderID, std::string folderName) |
| bool | DeleteFolder (int32 folderID) |
| uint32 | SaveNewFolder (std::string folderName, uint32 ownerID) |
| void | SaveNewBookmark (BmData &data) |
| void | ChangeOwner (uint32 bookmarkID, uint32 ownerID=1) |
| void | MoveBookmarkToFolder (int32 folderID, std::vector< int32 > *bookmarkList) |
| void | GetBookmarkByFolderID (int32 folderID, std::vector< int32 > &bmIDs) |
| void | GetVoucherData (BmData &data) |
Public Member Functions inherited from ServiceDB | |
| uint32 | GetStationOwner (uint32 stationID) |
Static Public Member Functions | |
| static PyTuple * | GetBookmarkDescription (uint32 bookmarkID) |
| static const char * | GetBookmarkName (uint32 bookmarkID) |
Static Public Member Functions inherited from ServiceDB | |
| static bool | GetAccountInformation (CryptoChallengePacket &ccp, AccountData &aData, std::string &failMsg) |
| static bool | UpdateAccountHash (const char *username, std::string &hash) |
| static bool | IncrementLoginCount (uint32 accountID) |
| static void | UpdatePassword (uint32 accountID, const char *pass) |
| static void | SaveKillOrLoss (CharKillData &data) |
| static bool | GetConstant (const char *name, uint32 &into) |
| static void | SetServerOnlineStatus (bool online=false) |
| static void | SetCharacterOnlineStatus (uint32 char_id, bool online=false) |
| static void | SetAccountOnlineStatus (uint32 accountID, bool online=false) |
| static void | SetAccountBanStatus (uint32 accountID, bool banned=false) |
| static void | SaveServerStats (double threads, float rss, float vm, float user, float kernel, uint32 items, uint32 bubbles) |
| static uint32 | SetClientSeed () |
| static PyRep * | LookupChars (const char *match, bool exact=false) |
| static PyRep * | LookupOwners (const char *match, bool exact=false) |
| static PyRep * | LookupCorporations (const std::string &) |
| static PyRep * | LookupFactions (const std::string &) |
| static PyRep * | LookupCorporationTickers (const std::string &) |
| static PyRep * | LookupStations (const std::string &) |
| static PyRep * | LookupKnownLocationsByGroup (const std::string &, uint32) |
| static PyRep * | PrimeOwners (std::vector< int32 > &itemIDs) |
| static bool | ValidateAccountName (CryptoChallengePacket &ccp, std::string &failMsg) |
| static void | GetCorpHangarNames (uint32 corpID, std::map< uint8, std::string > &hangarNames) |
Additional Inherited Members | |
Protected Member Functions inherited from ServiceDB | |
| void | ProcessStringChange (const char *key, const std::string &oldValue, std::string newValue, PyDict *notif, std::vector< std::string > &dbQ) |
| void | ProcessRealChange (const char *key, double oldValue, double newValue, PyDict *notif, std::vector< std::string > &dbQ) |
| void | ProcessIntChange (const char *key, uint32 oldValue, uint32 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
| void | ProcessLongChange (const char *key, int64 oldValue, int64 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
Static Protected Member Functions inherited from ServiceDB | |
| static uint32 | CreateNewAccount (const char *login, const char *pass, const char *passHash, int64 role) |
Definition at line 57 of file BookmarkDB.h.
Definition at line 301 of file BookmarkDB.cpp.
References sDatabase.
Definition at line 266 of file BookmarkDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.

| bool BookmarkDB::DeleteBookmarks | ( | std::vector< int32 > * | bookmarkList | ) |
Definition at line 280 of file BookmarkDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.

| bool BookmarkDB::DeleteFolder | ( | int32 | folderID | ) |
Definition at line 356 of file BookmarkDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.

Definition at line 66 of file BookmarkDB.cpp.
References DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), sDatabase, and sLog.

Definition at line 180 of file BookmarkDB.cpp.
References DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::IsNull(), PyStatic, sDatabase, PyTuple::SetItem(), and sLog.

| bool BookmarkDB::GetBookmarkInformation | ( | uint32 | bookmarkID, |
| uint32 & | itemID, | ||
| uint16 & | typeID, | ||
| uint32 & | locationID, | ||
| double & | x, | ||
| double & | y, | ||
| double & | z | ||
| ) |
Definition at line 205 of file BookmarkDB.cpp.
References DBerror::c_str(), DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), sDatabase, and sLog.
Referenced by BookmarkService::LookupBookmark().


|
static |
Definition at line 165 of file BookmarkDB.cpp.
References DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), sDatabase, and sLog.

Definition at line 79 of file BookmarkDB.cpp.
References PyList::AddItem(), DBerror::c_str(), DBQueryResult::error, DBResultRow::GetFloat(), DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::IsNull(), PyStatic, sDatabase, PyDict::SetItemString(), and sLog.

Definition at line 34 of file BookmarkDB.cpp.
References PyList::AddItem(), DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), DBResultRow::IsNull(), PyStatic, sDatabase, PyDict::SetItemString(), and sLog.

Definition at line 134 of file BookmarkDB.cpp.
References PyList::AddItem(), DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), DBResultRow::GetText(), sDatabase, PyDict::SetItemString(), and sLog.

| void BookmarkDB::GetVoucherData | ( | BmData & | data | ) |
Definition at line 383 of file BookmarkDB.cpp.
References BmData::bookmarkID, DBerror::c_str(), BmData::created, BmData::creatorID, DBQueryResult::error, BmData::folderID, DBResultRow::GetFloat(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), DBResultRow::IsNull(), BmData::itemID, BmData::locationID, BmData::memo, BmData::note, BmData::ownerID, BmData::point, sDatabase, sLog, BmData::typeID, Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.

Definition at line 369 of file BookmarkDB.cpp.
References DBerror::c_str(), and sDatabase.

| void BookmarkDB::SaveNewBookmark | ( | BmData & | data | ) |
Definition at line 236 of file BookmarkDB.cpp.
References BmData::bookmarkID, DBerror::c_str(), BmData::creatorID, BmData::folderID, GetFileTimeNow(), BmData::itemID, BmData::locationID, BmData::memo, BmData::note, BmData::ownerID, BmData::point, sDatabase, sLog, BmData::typeID, Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.

Definition at line 323 of file BookmarkDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.

| bool BookmarkDB::UpdateBookmark | ( | uint32 | bookmarkID, |
| uint32 | ownerID, | ||
| std::string | memo, | ||
| std::string | note, | ||
| uint32 | folderID = 0 |
||
| ) |
Definition at line 307 of file BookmarkDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.

| bool BookmarkDB::UpdateFolder | ( | int32 | folderID, |
| std::string | folderName | ||
| ) |
Definition at line 340 of file BookmarkDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.
