This method takes a subset of the parameters from FindEvents() and returns the amount of results a FindEvents() call with the same parameter would yield if the maximal amount of items to return isn’t limited.
Parameters: |
|
---|---|
Returns: |
list of items |
Return type: |
list of tuples presenting an Item |
Delete items from the database
Parameters: |
|
---|
This Signal is emmitted whenever one or more items have been changed
It contains a tuple, where the first item is one of added, modified and deleted. If the first item is added or modified the second item is a list of Item, otherwise it is a list of uris.
Returns: | added and modified items and URIs of deleted items |
---|---|
Return type: | list of dictionaries |
This method takes a subset of the parameters from FindEvents() and returns the path to the .desktop file of the applications which were used for the matching events.
Parameters: |
|
---|---|
Returns: |
list of tuples containing the path to a .desktop file and the amount of matches for it |
Return type: |
list of tuples containing a string and an integer |
Search for items which match different criterias
Parameters: |
|
---|---|
Returns: |
list of items |
Return type: |
list of tuples presenting an Item |
Get items by URI
Parameters: |
|
---|---|
Returns: |
list of items |
Return type: |
list of tuples presenting an Item |
Returns the timestamp of the last item which was inserted related to the given application. If there is no such record, 0 is returned.
Parameters: |
|
---|---|
Returns: |
timestamp of last insertion date |
Return type: |
integer |
Returns a list containing tuples with the name and the number of occurencies of the tags matching name_filter, or all existing tags in case it’s empty, sorted from most used to least used. amount can base used to limit the amount of results.
Use min_timestamp and max_timestamp to limit the time frames you want to consider.
Parameters: |
|
---|---|
Returns: |
list of tuple containing the name and number of occurencies |
Return type: |
list of tuples |
Returns a list of all different types in the database.
Returns: | list of types |
---|---|
Return type: | list of strings |
Inserts events into the database. Returns the amount of sucessfully inserted events
Parameters: |
|
---|---|
Returns: |
a positive value on success, 0 otherwise |
Return type: |
Integer |
A dict representing an item, with the following elements:
- timestamp (integer) -
- uri (string) -
- text (string) -
- source (string) -
- content (string) -
- mimetype (string) -
- tags (string) -
- comment (string) - (not used)
- bookmark (boolean) -
- use (string) -
- icon (string) -
- app (string) -
- origin (string) -
A dict which can have the following items:
- name (string) -
- uri (string) -
- tags (list of strings) - filter by tags (AND Condition)
- mimetypes (list of strings) - filter by mimetypes (AND Condition)
- source (list of strings) - filter by source (AND Condition)
- content (list of strings) - filter by source (AND Condition)
- application (list of strings) - filter by application (ie., path to its .desktop file) (AND Condition)
- bookmarked (boolean) -