aboutsummaryrefslogtreecommitdiffstats
path: root/lib/history
Commit message (Collapse)AuthorAgeFilesLines
* ephy-history-service: prevent double call to execute_quit()Claudio Saavedra2012-08-021-1/+0
| | | | | | | execute_quit() is called already when the QUIT message is received, there is no need to call it after the thread loop quits. https://bugzilla.gnome.org/show_bug.cgi?id=680529
* e-history-service: print db file when open failsDiego Escalante Urrelo2012-06-151-1/+1
|
* ephy-history: remove spurious castingsClaudio Saavedra2012-05-083-3/+3
|
* ephy-history-service: trim query strings to avoid reaching sqlite limitClaudio Saavedra2012-05-083-3/+3
| | | | | | | Sqlite limits the length of a LIKE pattern to 50000 bytes, therefore we need to make sure that longer strings are not used as queries. https://bugzilla.gnome.org/show_bug.cgi?id=674848
* history-service: remove unnecessary type castClaudio Saavedra2012-03-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672926
* history-service: remove unused variablesClaudio Saavedra2012-03-292-3/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672926
* history: remember visit typesXan Lopez2012-03-143-8/+15
| | | | | | | Instead of hardcoding all visits as 'TYPED' properly distinguish between bookmarks, following links and typing URIs in the entry. We'll use this to compute the frecency of history items.
* history: generate gtypes for the history typesXan Lopez2012-03-141-0/+62
|
* ephy-history-service: make the async API cancellableClaudio Saavedra2012-03-132-40/+77
| | | | | | | | | | | The main purpose of the cancellable API in ephy-history-service is to let the user notify when the results of the operation are no longer needed and the callback call can be omitted. Since performing a read operation, in such cases, makes no sense, we cancel them altogether. However, given the nature of the service, we don't cancel write operations. https://bugzilla.gnome.org/show_bug.cgi?id=671901
* ephy-history-service: Give me a break!Priit Laes2012-03-091-0/+1
| | | | | Signed-off-by: Priit Laes <plaes@plaes.org> Reviewed-by: Xan Lopez <xan@igalia.com>
* ephy-history-service: plug a few more leaksClaudio Saavedra2012-03-082-0/+4
|
* ephy-history-service: add API to query for hostsClaudio Saavedra2012-03-084-2/+156
| | | | | By now, the public API only supports filtering by time range, but filtering by string matching is also possible.
* ephy-history-service: execute_get_hosts() should return TRUEClaudio Saavedra2012-03-081-1/+1
| | | | If there are no hosts, that's not a failure, so return TRUE instead.
* ephy-history-service-hosts-table: init host to NULLDiego Escalante Urrelo2012-03-081-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=671594
* ephy-history-service: remove orphan hosts from databaseClaudio Saavedra2012-03-083-0/+27
| | | | | | | After removing all the urls in a host, we don't need that host anymore. https://bugzilla.gnome.org/show_bug.cgi?id=671559
* ephy-history-service: validate parameters of public methodsXan Lopez2012-03-071-33/+77
|
* ephy-history-service-urls-table: do not g_assert on inputXan Lopez2012-03-071-4/+4
| | | | Simply bail out and don't crash the browser.
* ephy-history-service: default handler for visit-url should be FALSEClaudio Saavedra2012-03-071-1/+1
| | | | So that AFTER handlers are executed as well
* ephy-history-service: add a method to remove a host from the historyClaudio Saavedra2012-03-074-0/+79
| | | | This method will remove all the history related to that host.
* Allow ephy_history_service_find_urls() to filter host specific urlsClaudio Saavedra2012-03-072-2/+3
|
* Add ephy_history_service_get_hosts()Claudio Saavedra2012-03-072-1/+29
| | | | To retrieve all hosts in the history
* Fix typoClaudio Saavedra2012-03-071-1/+1
|
* Allow the visits and urls queries to be host-specificClaudio Saavedra2012-03-074-0/+24
|
* Add missing header include to ephy-history-types.hClaudio Saavedra2012-03-071-0/+2
|
* ephy-history-service: agh, committed this by mistakeXan Lopez2012-03-071-1/+1
|
* ephy-history-service: handle correctly zoom level migrationXan Lopez2012-03-071-0/+9
| | | | | | We need to consider the case of an "invalid" host with a non default zoom level, since the profile migrator will send us that kind of thing.
* ephy-history-service: add a "cleared" signal for the clear methodXan Lopez2012-03-071-0/+14
| | | | And use it in EphyEmbed instead of the legacy signal.
* ephy-history-service: add a method to clear the entire historyClaudio Saavedra2012-03-072-0/+44
|
* ephy-history-service: add 'visit-url' signalXan Lopez2012-03-072-8/+43
| | | | | | | | | Similar to the old EphyHistory 'add-page' signal. It allows blocking the visit by handling the signal, since the actual logic to add the visit is in the class' default handler. The add_visit(s) methods won't emit this signal, but for now we'll assume that whoever is using those knows what he's doing.
* Rename ephy_history_service_add_page to ephy_history_service_visit_urlXan Lopez2012-03-072-3/+6
| | | | Fits much better with the naming model in that class.
* Get rid of EphyBrowseHistoryXan Lopez2012-03-072-0/+44
| | | | | | It was a very thin wrapper on top of the history service, it does not seem to make much sense. For now move the two useful helper methods down to the service without further changes.
* ephy-history-types: use the URL as default titleXan Lopez2012-03-071-1/+1
| | | | | This is what the old history code did. Looks better than an empty string.
* Retrieve the host id from the right columnClaudio Saavedra2012-03-071-1/+1
|
* Remove the set_url_property history methodXan Lopez2012-03-072-66/+0
| | | | It's not really that useful.
* ephy-history-service-hosts-table: drop the favicon columnXan Lopez2012-03-071-1/+0
| | | | It's not used at all. Again, format change.
* Store zoom levels per host, not per URLXan Lopez2012-03-076-65/+96
| | | | | | | | | | Zoom levels have always been stored per host in Epiphany, not per URL (otherwise you'd have to re-apply the zoom level again and again when visiting, say, every news entry in your favorite newspaper). Change things to work like that. Note: this changes the SQL table format for the history, so you'll need to re-migrate your history.
* history-service: make sure we can update pages' titles and urlsClaudio Saavedra2012-03-071-7/+8
| | | | | | | | | | When we retrieve a url from the backend from a user given EphyHistoryURL, it's possible for this to contain updated information for the page. In such case, don't overwrite this with the one stored in the backend. This makes possible to later update this information when saving a new visit.
* history-service: do not join urls and visits table unnecessarilyClaudio Saavedra2012-03-071-6/+10
| | | | | If there is no visit time range there is no need to perform a inner join between these two tables, so spare the hassle.
* history-service: use the sort type during queriesClaudio Saavedra2012-03-071-0/+10
|
* EphyHistoryQuery: add a EphyHistorySortType parameter to the queryClaudio Saavedra2012-03-072-0/+10
|
* history-service: take into account the query's result limitClaudio Saavedra2012-03-071-1/+13
|
* EphyHistoryQuery: copy the limit tooClaudio Saavedra2012-03-071-0/+1
|
* history-service: Ignore queries time range if not setClaudio Saavedra2012-03-071-4/+4
|
* history-service: Count the first url visitClaudio Saavedra2012-03-071-0/+2
|
* ephy-history-service: forgot Makefile.am fileXan Lopez2012-03-071-0/+21
|
* ephy-history-service: change a few functions and variables to use "message"Xan Lopez2012-03-071-40/+40
| | | | They were leftovers from old APIs
* Add EphyHistoryService and helper classesXan Lopez2012-03-078-0/+2085
EphyHistoryService provides a high-level API to store history information. It will processed by a worker thread using SQLite to provide a fast, responsive service to the main UI. Based on the code by Martin Robinson (mrobinson@igalia.com) and Claudio Saavedra (csaavedra@igalia.com).