aboutsummaryrefslogtreecommitdiff
path: root/src/guiChatConsole.cpp
Commit message (Expand)AuthorAge
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
* Replace std::list to std::vector into tile.cpp (m_texture_trash) and move til...Loic Blot2015-03-05
* Grab GUIChatConsole::m_font, fixes segfault when changing font_sizeKahrl2015-02-18
* Reduce gettext wide/narrow and string/char* conversionsShadowNinja2015-02-05
* Fix use of uninit data in Sky and (potentially) GUIChatConsole constructorsKahrl2015-01-18
* Add paste command (Ctrl-V) in GUIChatConsoleKahrl2014-12-10
* Make hud use fontengine toosapier2014-11-30
* Implement proper font handlingsapier2014-11-30
* Make freetype usage configureable by a settingPilzAdam2013-08-04
* Add basic unicode support to the console (linux workaround)Esteban I. Ruiz Moreno2013-06-15
* Close console when it loses focus but it is still on screenEsteban I. Ruiz Moreno2013-06-05
* Dont drop fonts with ENABLE_FREETYPE=0PilzAdam2013-05-16
* Fix memory leaks: delete font in main and GUIChatConsolePilzAdam2013-05-10
* Fix nick completionPilzAdam2013-04-05
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Add Freetype supportIlya Zhuravlev2013-02-14
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* Chat console, including a number of rebases and modifications.Kahrl2012-03-10
opt">::string *block); bool deleteBlock(const v3s16 &pos); void listAllLoadableBlocks(std::vector<v3s16> &dst); bool initialized() const; private: // Database initialization void connectToDatabase(); void initStatements(); void createDatabase(); inline void prepareStatement(const std::string &name, const std::string &sql) { checkResults(PQprepare(m_conn, name.c_str(), sql.c_str(), 0, NULL)); } // Database connectivity checks void ping(); void verifyDatabase(); // Database usage PGresult *checkResults(PGresult *res, bool clear = true); inline PGresult *execPrepared(const char *stmtName, const int paramsNumber, const void **params, const int *paramsLengths = NULL, const int *paramsFormats = NULL, bool clear = true, bool nobinary = true) { return checkResults(PQexecPrepared(m_conn, stmtName, paramsNumber, (const char* const*) params, paramsLengths, paramsFormats, nobinary ? 1 : 0), clear); } // Conversion helpers inline int pg_to_int(PGresult *res, int row, int col) { return atoi(PQgetvalue(res, row, col)); } inline v3s16 pg_to_v3s16(PGresult *res, int row, int col) { return v3s16( pg_to_int(res, row, col), pg_to_int(res, row, col + 1), pg_to_int(res, row, col + 2) ); } // Attributes std::string m_connect_string; PGconn *m_conn; int m_pgversion; }; #endif