summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-store-empathy.c
Commit message (Collapse)AuthorAgeFilesLines
* Split legacy Empathy log reader into its own classWill Thompson2013-01-161-0/+67
| | | | | | | | | | | | My commit eaefb26 introduced a regression: by assuming that any class that implements add_event is writable, logs were being written to the legacy Empathy location. By splitting the legacy location handling into a subclass, we can override add_event to un-implement it and make the subclass read-only, as well as removing special cases from the XML store itself. Thanks to Debarshi Ray for catching this!
* Removing LogStoreEmpathyCosimo Alfarano2010-03-121-989/+0
| | | | the current default LogStore (to be renamed) will manage both legacy and the newer XML version
* Fixing a leak in TplLogStoreEmpathyCosimo Alfarano2010-03-121-0/+2
|
* Changed create_message_token timestamp type from str to gint64Cosimo Alfarano2010-03-121-1/+1
| | | | | | This way it is passed a unique repr of the data. With the str if any other format string was used, a different token would be produced
* Using gint instead of gint64 pending messages ID for TplLogEntryCosimo Alfarano2010-03-121-1/+1
| | | | | TplLogEntry P.M.ID cannot be unsigned since it needs a way to recognized ACK'd messages and other special values
* Using constants where possible for time formats and special valuesCosimo Alfarano2010-03-121-1/+1
|
* TplLogEntry/TplLogEntryText: added several fields/propsCosimo Alfarano2010-03-121-249/+12
| | | | | | | | | | | | | | | | | | pending_msg_id: the entry's pending msd_id or -1 if sent/ack'd channel_path: the channel path relative to the channel originating the entry log_id: changed type, from guint to (gchar *), to represent a literal token, thus the constructor for TplLogEntry changed to follow the log_id type change. Due to the type change, a small amend has been done on TplLogStoreEmapthy. TplLogStoreDefault has been created since with the introduction of log_id as a literal token, TplLogStoreEmpathy won't be compatible anymore with the current TPL default LS. A utility function has been added to util.c, returning a message_token which TPL clients can trust to be unique within TPL, this until Bug#26838 will be solved. TplLogManager has been updated with the new TPL_LOG_STORE_DEFAULT instance. TpLChannelText has been updated with the TplLogStoreText constructor update.
* log-store: add common properties to the LogStore GInterfaceDanielle Madeley2010-03-051-83/+11
| | | | Remove is_{readable,writable} from iface use properties instead
* Improving debug messaes for log-manager and log-store-emapthyCosimo Alfarano2010-02-251-1/+1
| | | | Plus some typos in comments
* Fixed a bug with tpl_log_entry_set_chat_id at construct timeCosimo Alfarano2010-02-251-2/+1
| | | | | | Now it's not a G_PROP_CONSTRUCT property anymore and tpl_log_entry_text_new does now need chat_id anymore. This way the default value for chat-id is NULL, unless differently set.
* Fix chat_id conversion when chat_id is 1-1 conversation from a chatroomCosimo Alfarano2010-02-221-1/+8
| | | | | | In other words: avoid that 1-1 conversation generated from a chatroom, having id similar to room@conference.domain/My_Alias (in XMPP) are threated as a directory path, creating My_Alias as a subdirectory of room@conference.domain
* TP Style fixes and gtk-doc src documentation improvedCosimo Alfarano2010-02-221-3/+6
|
* Improved error managing in log-manager and log-store-empathyCosimo Alfarano2010-02-221-4/+4
|
* Added Empathy legacy LogStore support into LogManager.Cosimo Alfarano2010-02-221-7/+5
| | | | | | | Added is_readable/is_writable method to LogStore interface. Also removed ack_message from LogStore since no destructive calls should be made from an Observer cotext. The method was an Empathy's reminiscence.
* added account-path property/member to TplLogStoreCosimo Alfarano2010-02-221-25/+41
| | | | | | | | | That way a client needing to obtain a TpAccount, can acquire it from its object-path. account-path is a PROP_CONSTRUCT_ONLY property, thus the _new method has been updated as well. Setting the avatar_token for queried log entries. Also, cleaned up some code and TP style fixes.
* Fixing LogStore->add_message method using TplLogEntry instead of gpointerCosimo Alfarano2010-02-161-3/+2
|
* Removal of util.c module.Cosimo Alfarano2010-02-151-1/+2
| | | | | | | | Use the normal approach to unreferencing objects. Use g_str_equal instead of tpl_strequal (which was useless and now removed). Removed any inclusion of util.h from headers files, and properly including util.h in .c files
* include config.hCosimo Alfarano2010-02-151-0/+1
| | | | Also alphabetic ordering for TPL_DEBUG_XXX constant and GDebugKey array
* using obj = g_object_ref (obj)Cosimo Alfarano2010-02-151-2/+1
|
* break missing in switchCosimo Alfarano2010-02-121-0/+1
|
* Telepathy restylingCosimo Alfarano2010-02-121-1/+0
|
* Fix prop's getters/setters and flagsCosimo Alfarano2010-02-121-6/+6
|
* Replace uses of g_debug with DEBUGDanielle Madeley2010-02-121-1/+1
|
* Fixed check-coding-styleCosimo Alfarano2010-02-101-50/+36
| | | | * now it only fails the dbus-binding-tool generated code
* created gtk-doc infrastructureCosimo Alfarano2010-02-101-0/+27
| | | | | | * created doc/ infrastructure * added several doc comments * fixed some tests
* TplChannelText actionchain order fixedCosimo Alfarano2010-02-081-84/+171
| | | | | | | | * it's a recommit or 5084ee671ed91648423651260c5d929597861cb3, which for some reason wasn't right. * added _prepend method to ActionChain * fixed a action insertion order in TplChannelText, so that TpContacts are retrieved BEFORE the message pending retrieval * improved TplChannelText debugging
* Add support for multi logstoreCosimo Alfarano2010-02-041-165/+313
|
* Refactored TplChannelText using ActionChainCosimo Alfarano2010-01-281-28/+27
| | | | | | | * refactored TplChannelText as implementation of the abstract TplChannel * added tpl_channel_text_call_when_ready method in order to prepare tpl_channel, its internal objects, connect signals, etc * added TplActionChain struct and related functions to util.[ch]
* Merge branch 'logentry-refactoring'Cosimo Alfarano2010-01-261-111/+42
|\ | | | | | | | | | | Conflicts: telepathy-logger/log-manager-priv.h telepathy-logger/log-manager.c
| * Started the TplLogEntry refactoringCosimo Alfarano2010-01-221-111/+42
| |
* | g_fprintf fix for non-literalsCosimo Alfarano2010-01-221-1/+1
| |
* | decreased log-store-empathy verbosityCosimo Alfarano2010-01-201-2/+0
|/
* Fixed channel map removal bugCosimo Alfarano2010-01-201-1/+1
| | | | * removed all leading \n in g_print family func calls
* GConf enabledCosimo Alfarano2010-01-141-14/+14
| | | | | | * gconf enabled using TplConf. Schema defined in telepathy-logger.schemas file * fixes for the Async API * add_message and add_message_async modified: chat_id, is_chatroom not needed anymore, while using TplLogEntry
* Async API infrastructureCosimo Alfarano2010-01-131-0/+1097
* moved code from libtelepathy-logger/ to telepathy-logger/ * used /usr/bin/indent filter with GNU style for source formatting * added log-manager's async APIs infrastructure using GIO * addes some async method using the async infrastructure * added gconf infrastructure in the telepathy-logger/conf module