about summary refs log tree commit diff stats
path: root/src/config/accounts.h
Commit message (Expand)AuthorAgeFilesLines
* Added /account clear [account] portJames Booth2014-10-231-0/+1
* Added /account clear [account] serverJames Booth2014-10-231-0/+1
* Added license exemption for OpenSSL to source headersJames Booth2014-08-241-0/+12
* Added /otr policy for contacts in account preferencesJames Booth2014-05-111-0/+1
* Added otr to /account clear propertiesJames Booth2014-05-111-0/+1
* Added OTR policy account preferenceJames Booth2014-05-111-0/+1
* Updated copyrightJames Booth2014-03-091-1/+1
* Refactored ProfAccount creationJames Booth2014-01-221-22/+1
* Fixed test compilationJames Booth2014-01-181-1/+1
* WIP - Adding port to account optionsJames Booth2014-01-181-1/+3
* Added mock_accounts and fixed testsJames Booth2013-12-261-33/+35
* Moved fulljid logic to accountsJames Booth2013-12-151-0/+1
* Added clear command to /account for password clearingJames Booth2013-12-081-0/+1
* Added /account set <account> password <password>James Booth2013-11-071-0/+1
* Added MAX_PASSWORD_SIZE set to 64James Booth2013-11-071-0/+2
* Use passwords from the accounts fileTomás Senart2013-10-141-0/+1
* Allow users to set default muc service and nickname per accountJames Booth2013-09-121-0/+4
* Added rooms history to ProfAccountJames Booth2013-05-231-0/+1
* Added resource_presence_t and contact_presence_tJames Booth2013-02-101-3/+3
* Renamed jabber_presence_t->presence_tJames Booth2013-02-101-3/+3
* Added config dir to sourceJames Booth2013-02-021-0/+75
span> * * This file is part of Profanity. * * Profanity is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Profanity is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Profanity. If not, see <https://www.gnu.org/licenses/>. * * In addition, as a special exception, the copyright holders give permission to * link the code of portions of this program with the OpenSSL library under * certain conditions as described in each individual source file, and * distribute linked combinations including the two. * * You must obey the GNU General Public License in all respects for all of the * code used other than OpenSSL. If you modify file(s) with this exception, you * may extend this exception to your version of the file(s), but you are not * obligated to do so. If you do not wish to do so, delete this exception * statement from your version. If you delete this exception statement from all * source files in the program, then also delete it here. * */ #ifndef UI_BUFFER_H #define UI_BUFFER_H #include <glib.h> #include "config.h" #include "config/theme.h" typedef struct delivery_receipt_t { gboolean received; } DeliveryReceipt; typedef struct prof_buff_entry_t { // pointer because it could be a unicode symbol as well char* show_char; int pad_indent; GDateTime* time; int flags; theme_item_t theme_item; // from as it is displayed // might be nick, jid.. char* display_from; char* from_jid; char* message; DeliveryReceipt* receipt; // message id, in case we have it char* id; } ProfBuffEntry; typedef struct prof_buff_t* ProfBuff; ProfBuff buffer_create(); void buffer_free(ProfBuff buffer); void buffer_append(ProfBuff buffer, const char* show_char, int pad_indent, GDateTime* time, int flags, theme_item_t theme_item, const char* const display_from, const char* const barejid, const char* const message, DeliveryReceipt* receipt, const char* const id); void buffer_remove_entry_by_id(ProfBuff buffer, const char* const id); int buffer_size(ProfBuff buffer); ProfBuffEntry* buffer_get_entry(ProfBuff buffer, int entry); ProfBuffEntry* buffer_get_entry_by_id(ProfBuff buffer, const char* const id); gboolean buffer_mark_received(ProfBuff buffer, const char* const id); #endif