ewebkit2  1.11.0
Web engine based on WebKit2 for EFL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
ewk_favicon_database.h File Reference

Describes the Ewk Favicon Database API. More...

#include <Evas.h>

Go to the source code of this file.

Typedefs

typedef struct EwkFaviconDatabase Ewk_Favicon_Database
 
typedef void(* Ewk_Favicon_Database_Icon_Change_Cb )(Ewk_Favicon_Database *database, const char *url, void *data)
 Callback type for use with ewk_favicon_database_icon_change_callback_add and ewk_favicon_database_icon_change_callback_del.
 

Functions

EAPI Evas_Object * ewk_favicon_database_icon_get (Ewk_Favicon_Database *database, const char *url, Evas *evas)
 
EAPI void ewk_favicon_database_icon_change_callback_add (Ewk_Favicon_Database *database, Ewk_Favicon_Database_Icon_Change_Cb callback, void *data)
 
EAPI void ewk_favicon_database_icon_change_callback_del (Ewk_Favicon_Database *database, Ewk_Favicon_Database_Icon_Change_Cb callback)
 

Detailed Description

Describes the Ewk Favicon Database API.

Typedef Documentation

typedef struct EwkFaviconDatabase Ewk_Favicon_Database

Creates a type name for Ewk_Favicon_Database.

Function Documentation

EAPI void ewk_favicon_database_icon_change_callback_add ( Ewk_Favicon_Database database,
Ewk_Favicon_Database_Icon_Change_Cb  callback,
void *  data 
)

Add (register) a callback function to a icon change event

Parameters
databasedatabase object to register the callback
callbackcallback function to be called when an icon changes
datathe data pointer that was to be passed to the callback
Note
In order to enable the favicons database, ewk_context_favicon_database_direct_set must be called.
See Also
ewk_context_favicon_database_directory_set
ewk_context_favicon_database_get
EAPI void ewk_favicon_database_icon_change_callback_del ( Ewk_Favicon_Database database,
Ewk_Favicon_Database_Icon_Change_Cb  callback 
)

Delete (unregister) a callback function registered to a icon change event

Parameters
databasedatabase object to unregister the callback.
callbackcallback function to unregister
See Also
ewk_favicon_database_icon_change_callback_add
ewk_context_favicon_database_directory_set
ewk_context_favicon_database_get
EAPI Evas_Object* ewk_favicon_database_icon_get ( Ewk_Favicon_Database database,
const char *  url,
Evas *  evas 
)

Retrieves from the database the favicon for the given url

Parameters
databasedatabase object to query
urlURL of the page to get the favicon for
evasThe canvas to add the favicon to
Returns
The favicon as an Evas_Object if successful, NULL otherwise. The returned Evas_Object needs to be freed after use.
Note
In order to enable the favicons database, ewk_context_favicon_database_direct_set must be called.
See Also
ewk_context_favicon_database_directory_set
ewk_context_favicon_database_get