ev-application

## ev-application ev-application |

## Synopsis

                        EvApplication;
                        EvApplicationClass;
    #define             EV_APP
    EvApplication *     ev_application_get_instance         (void);
    void                ev_application_shutdown             (EvApplication *application);
    gboolean            ev_application_load_session         (EvApplication *application);
    void                ev_application_open_window          (EvApplication *application,
                                                             GdkScreen *screen,
                                                             guint32 timestamp);
    void                ev_application_open_uri_at_dest     (EvApplication *application,
                                                             const char *uri,
                                                             GdkScreen *screen,
                                                             EvLinkDest *dest,
                                                             EvWindowRunMode mode,
                                                             const gchar *search_string,
                                                             guint32 timestamp);
    void                ev_application_open_uri_list        (EvApplication *application,
                                                             GSList *uri_list,
                                                             GdkScreen *screen,
                                                             guint32 timestamp);
    gboolean            ev_application_has_window           (EvApplication *application);
    const gchar *       ev_application_get_uri              (EvApplication *application);
    GObject *           ev_application_get_media_keys       (EvApplication *application);
    void                ev_application_set_filechooser_uri  (EvApplication *application,
                                                             GtkFileChooserAction action,
                                                             const gchar *uri);
    const gchar *       ev_application_get_filechooser_uri  (EvApplication *application,
                                                             GtkFileChooserAction action);
    void                ev_application_screensaver_enable   (EvApplication *application);
    void                ev_application_screensaver_disable  (EvApplication *application);
    const gchar *       ev_application_get_dot_dir          (EvApplication *application,
                                                             gboolean create);
    const gchar *       ev_application_get_data_dir         (EvApplication *application);

## Object Hierarchy

      GObject
       +----EvApplication

## Description

## Details

### EvApplication

    typedef struct _EvApplication EvApplication;

### EvApplicationClass

    typedef struct _EvApplicationClass EvApplicationClass;

### EV_APP

    #define EV_APP					(ev_application_get_instance ())

### ev_application_get_instance ()

    EvApplication *     ev_application_get_instance         (void);

Checks for EvApplication instance, if it doesn't exist it does create it.

Returns : | an instance of the EvApplication data.

### ev_application_shutdown ()

    void                ev_application_shutdown             (EvApplication *application);

`application` : |

### ev_application_load_session ()

    gboolean            ev_application_load_session         (EvApplication *application);

`application` : |
Returns : |

### ev_application_open_window ()

    void                ev_application_open_window          (EvApplication *application,
                                                             GdkScreen *screen,
                                                             guint32 timestamp);

Creates a new window

`application` : | The instance of the application.
`screen` : |
`timestamp` : | Current time value.

### ev_application_open_uri_at_dest ()

    void                ev_application_open_uri_at_dest     (EvApplication *application,
                                                             const char *uri,
                                                             GdkScreen *screen,
                                                             EvLinkDest *dest,
                                                             EvWindowRunMode mode,
                                                             const gchar *search_string,
                                                             guint32 timestamp);

`application` : | The instance of the application.
`uri` : | The uri to be opened.
`screen` : | Thee screen where the link will be shown.
`dest` : | The EvLinkDest of the document.
`mode` : | The run mode of the window.
`search_string` : |
`timestamp` : | Current time value.

### ev_application_open_uri_list ()

    void                ev_application_open_uri_list        (EvApplication *application,
                                                             GSList *uri_list,
                                                             GdkScreen *screen,
                                                             guint32 timestamp);

`application` : |
`uri_list` : |
`screen` : |
`timestamp` : |

### ev_application_has_window ()

    gboolean            ev_application_has_window           (EvApplication *application);

### ev_application_get_uri ()

    const gchar *       ev_application_get_uri              (EvApplication *application);

### ev_application_get_media_keys ()

    GObject *           ev_application_get_media_keys       (EvApplication *application);

It gives you access to the media player keys handler object.

`application` : | The instance of the application.
Returns : | A EvMediaPlayerKeys.

### ev_application_set_filechooser_uri ()

    void                ev_application_set_filechooser_uri  (EvApplication *application,
                                                             GtkFileChooserAction action,
                                                             const gchar *uri);

`application` : |
`action` : |
`uri` : |

### ev_application_get_filechooser_uri ()

    const gchar *       ev_application_get_filechooser_uri  (EvApplication *application,
                                                             GtkFileChooserAction action);

`application` : |
`action` : |
Returns : |

### ev_application_screensaver_enable ()

    void                ev_application_screensaver_enable   (EvApplication *application);

`application` : |

### ev_application_screensaver_disable ()

    void                ev_application_screensaver_disable  (EvApplication *application);

`application` : |

### ev_application_get_dot_dir ()

    const gchar *       ev_application_get_dot_dir          (EvApplication *application,
                                                             gboolean create);

`application` : |
`create` : |
Returns : |

### ev_application_get_data_dir ()

    const gchar *       ev_application_get_data_dir         (EvApplication *application);

`application` : |
Returns : |