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

Describes the Ewk File Chooser API. More...

#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkObject Ewk_File_Chooser_Request
 

Functions

EAPI Eina_Bool ewk_file_chooser_request_allow_multiple_files_get (const Ewk_File_Chooser_Request *request)
 
EAPI Eina_List * ewk_file_chooser_request_accepted_mimetypes_get (const Ewk_File_Chooser_Request *request)
 
EAPI Eina_Bool ewk_file_chooser_request_cancel (Ewk_File_Chooser_Request *request)
 
EAPI Eina_Bool ewk_file_chooser_request_files_choose (Ewk_File_Chooser_Request *request, const Eina_List *chosen_files)
 
EAPI Eina_Bool ewk_file_chooser_request_file_choose (Ewk_File_Chooser_Request *request, const char *chosen_file)
 

Detailed Description

Describes the Ewk File Chooser API.

Typedef Documentation

typedef struct EwkObject Ewk_File_Chooser_Request

Declare Ewk_File_Chooser_Request as Ewk_Object.

See Also
Ewk_Object

Function Documentation

EAPI Eina_List* ewk_file_chooser_request_accepted_mimetypes_get ( const Ewk_File_Chooser_Request request)

Queries the list of accepted MIME types.

Possible MIME types are:

  • "audio\/\*": All sound files are accepted
  • "video\/\*": All video files are accepted
  • "image\/\*": All image files are accepted
  • standard IANA MIME type (see http://www.iana.org/assignments/media-types/ for a complete list)
Parameters
requestrequest object to query
Returns
The list of accepted MIME types. The list items are guaranteed to be stringshared. The caller needs to free the list and its items after use
EAPI Eina_Bool ewk_file_chooser_request_allow_multiple_files_get ( const Ewk_File_Chooser_Request request)

Queries if it is allowed to select multiple files or not.

Parameters
requestrequest object to query
Returns
EINA_TRUE if it is allowed to select multiple files, EINA_FALSE otherwise
EAPI Eina_Bool ewk_file_chooser_request_cancel ( Ewk_File_Chooser_Request request)

Cancels the file chooser request.

Parameters
requestrequest object to cancel
Returns
EINA_TRUE if successful, EINA_FALSE otherwise
EAPI Eina_Bool ewk_file_chooser_request_file_choose ( Ewk_File_Chooser_Request request,
const char *  chosen_file 
)

Sets the file chosen by the user.

This is a convenience function in case only one file needs to be set.

Parameters
requestrequest object to update
Returns
EINA_TRUE if successful, EINA_FALSE otherwise
See Also
ewk_file_chooser_request_files_choose()
EAPI Eina_Bool ewk_file_chooser_request_files_choose ( Ewk_File_Chooser_Request request,
const Eina_List *  chosen_files 
)

Sets the files chosen by the user.

Parameters
requestrequest object to update
Returns
EINA_TRUE if successful, EINA_FALSE otherwise
See Also
ewk_file_chooser_request_file_choose()