GObject.Object
Epiphany.EphyEmbedPersist
Import line: | Epiphany = imports.gi.Epiphany; |
GIR File: | Epiphany-2.29.gir |
C documentation: | EphyEmbedPersist |
Class : | EphyEmbedPersist |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
dest : String
|
Epiphany.EphyEmbedPersist | |
embed : GObject.Object
|
Epiphany.EphyEmbedPersist | |
filechooser_parent : Gtk.Window
|
Epiphany.EphyEmbedPersist | |
filechooser_title : String
|
Epiphany.EphyEmbedPersist | |
flags : Epiphany.EphyEmbedPersistFlags
|
Epiphany.EphyEmbedPersist | |
max_size : Number
|
Epiphany.EphyEmbedPersist | |
parent : GObject.Object
read only
|
Epiphany.EphyEmbedPersist | |
persist_key : String
|
Epiphany.EphyEmbedPersist | |
priv : Epiphany.EphyEmbedPersistPrivate
read only
|
Epiphany.EphyEmbedPersist | |
source : String
|
Epiphany.EphyEmbedPersist | |
user_time : Number
|
Epiphany.EphyEmbedPersist |
Method / Constructor | Defined By | |
---|---|---|
new Epiphany.EphyEmbedPersist
(Object properties)
Create a new Epiphany.EphyEmbedPersist
Create a new Epiphany.EphyEmbedPersist
|
||
cancel
()
:
none
Cancels persist's download.
Cancels persist's download. This will not delete the partially downloaded file.
|
Epiphany.EphyEmbedPersist | |
get_dest
()
:
String
Returns the destination filename to which persist will save its download.
Returns the destination filename to which persist will save its download.
|
Epiphany.EphyEmbedPersist | |
get_embed
()
:
Epiphany.EphyEmbed
Returns the EphyEmbed from which persist will download.
Returns the EphyEmbed from which persist will download.
|
Epiphany.EphyEmbedPersist | |
get_fc_parent
()
:
Gtk.Window
Returns the EphyWindow which should serve as a parent for persist's filechooser.
Returns the EphyWindow which should serve as a parent for persist's filechooser.
|
Epiphany.EphyEmbedPersist | |
get_fc_title
()
:
String
Returns the title to be displayed in persist's filechooser.
Returns the title to be displayed in persist's filechooser.
|
Epiphany.EphyEmbedPersist | |
get_flags
()
:
Epiphany.EphyEmbedPersistFlags
Returns persist's EphyEmbedPersistFlags.
Returns persist's EphyEmbedPersistFlags.
|
Epiphany.EphyEmbedPersist | |
get_max_size
()
:
Number
Returns the maximum size of persist's requested download, in bytes.
Returns the maximum size of persist's requested download, in bytes.
|
Epiphany.EphyEmbedPersist | |
get_persist_key
()
:
String
Returns the GConf key which determines Epiphany's default download directory.
Returns the GConf key which determines Epiphany's default download directory.
|
Epiphany.EphyEmbedPersist | |
get_source
()
:
String
Returns the source URL of the file to download.
Returns the source URL of the file to download.
|
Epiphany.EphyEmbedPersist | |
get_user_time
()
:
Number
Returns the timestamp of the user action which created persist.
Returns the timestamp of the user action which created persist. If not set explicitly, defaults to gtk_get_current_event_time () at the time of creation of persist.
|
Epiphany.EphyEmbedPersist | |
save
()
:
Boolean
Begins saving the file specified in persist.
Begins saving the file specified in persist. If persist's EphyEmbedPersistFlags include EPHY_EMBED_PERSIST_ASK_DESTINATION, a filechooser dialog will be shown first. If this flag is not set and no destination has been set, the target will be saved to the default download directory using the suggested name, if no suggested name can be get the download will fail. The file will continue to download in the background until either the ::completed or the ::cancelled signals are emitted by persist.
|
Epiphany.EphyEmbedPersist | |
set_dest
(String value)
:
none
Sets the path to which persist should save data.
Sets the path to which persist should save data.
|
Epiphany.EphyEmbedPersist | |
set_embed
(EphyEmbed value)
:
none
Sets the EphyEmbed from which persist will download data.
Sets the EphyEmbed from which persist will download data. An EphyEmbed is absolutely required to download if persist's EphyEmbedPersistFlags include EPHY_EMBED_PERSIST_COPY_PAGE. Regardless, an EphyEmbed should be set for
|
Epiphany.EphyEmbedPersist | |
set_fc_parent
(Window value)
:
none
Sets the EphyWindow which should be persist's filechooser's parent.
Sets the EphyWindow which should be persist's filechooser's parent. The filechooser will only be displayed if EPHY_EMBED_PERSIST_ASK_DESTINATION has been set with ephy_embed_persist_set_flags().
|
Epiphany.EphyEmbedPersist | |
set_fc_title
(String value)
:
none
Sets the title of the filechooser window.
Sets the title of the filechooser window. The filechooser will only be displayed if EPHY_EMBED_PERSIST_ASK_DESTINATION has been set with ephy_embed_persist_set_flags().
|
Epiphany.EphyEmbedPersist | |
set_flags
(EphyEmbedPersistFlags value)
:
none
Sets the flags to be used for persist's download.
Sets the flags to be used for persist's download.
|
Epiphany.EphyEmbedPersist | |
set_max_size
(Number value)
:
none
Sets the maximum size of persist's download.
Sets the maximum size of persist's download. If the requested file is discovered to be larger than value, the download will be aborted. Note that persist will have to actually begin downloading before it can abort, since it doesn't know the filesize before the download starts.
|
Epiphany.EphyEmbedPersist | |
set_persist_key
(String value)
:
none
Sets the GConf key from which persist will determine the default download directory.
Sets the GConf key from which persist will determine the default download directory.
|
Epiphany.EphyEmbedPersist | |
set_source
(String value)
:
none
Sets the URL from which persist should download.
Sets the URL from which persist should download. This should be used in conjunction with ephy_embed_persist_set_embed().
|
Epiphany.EphyEmbedPersist | |
set_user_time
(Number user_time)
:
none
Sets the time stamp of the user action which created persist.
Sets the time stamp of the user action which created persist. Defaults to gtk_get_current_event_time() when persist is created.
|
Epiphany.EphyEmbedPersist | |
to_string
()
:
String
Returns the download specified by persist as a string instead of downloading it to a file.
Returns the download specified by persist as a string instead of downloading it to a file. The download is synchronous. An EphyEmbed must be specified with ephy_embed_persist_set_embed(). The function implicitly assumes that EphyEmbed has not finished downloading, this function will only return the portion of data which has already been downloaded. will be encoded as UTF-8.
|
Epiphany.EphyEmbedPersist |
Event | Defined By | |
---|---|---|
cancelled (EphyEmbedPersist self)
:
none
The ::cancelled signal is emitted when persist's download has been cancelled with ephy_embed_persist_cancel().
The ::cancelled signal is emitted when persist's download has been cancelled with ephy_embed_persist_cancel().
|
Epiphany.EphyEmbedPersist | |
completed (EphyEmbedPersist self)
:
none
The ::completed signal is emitted when persist has finished downloading.
The ::completed signal is emitted when persist has finished downloading. The download must have started with ephy_embed_persist_save().
|
Epiphany.EphyEmbedPersist |