2008-05-22 22:17:10 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
See the file COPYING for the full license text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MIDORI_APP_H__
|
|
|
|
#define __MIDORI_APP_H__
|
|
|
|
|
|
|
|
#include <katze/katze.h>
|
|
|
|
|
|
|
|
#include "midori-browser.h"
|
|
|
|
#include "midori-websettings.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define MIDORI_TYPE_APP \
|
|
|
|
(midori_app_get_type ())
|
|
|
|
#define MIDORI_APP(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_APP, MidoriApp))
|
|
|
|
#define MIDORI_APP_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_APP, MidoriAppClass))
|
|
|
|
#define MIDORI_IS_APP(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_APP))
|
|
|
|
#define MIDORI_IS_APP_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_APP))
|
|
|
|
#define MIDORI_APP_GET_CLASS(obj) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_APP, MidoriAppClass))
|
|
|
|
|
|
|
|
typedef struct _MidoriApp MidoriApp;
|
|
|
|
typedef struct _MidoriAppClass MidoriAppClass;
|
|
|
|
|
|
|
|
GType
|
2010-01-16 06:05:16 +00:00
|
|
|
midori_app_get_type (void) G_GNUC_CONST;
|
2008-05-22 22:17:10 +00:00
|
|
|
|
|
|
|
MidoriApp*
|
|
|
|
midori_app_new (void);
|
|
|
|
|
2008-08-22 01:59:07 +00:00
|
|
|
gboolean
|
|
|
|
midori_app_instance_is_running (MidoriApp* app);
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
midori_app_instance_send_activate (MidoriApp* app);
|
|
|
|
|
2008-09-10 17:48:45 +00:00
|
|
|
gboolean
|
|
|
|
midori_app_instance_send_new_browser (MidoriApp* app);
|
|
|
|
|
2008-08-22 01:59:07 +00:00
|
|
|
gboolean
|
|
|
|
midori_app_instance_send_uris (MidoriApp* app,
|
|
|
|
gchar** uris);
|
|
|
|
|
2009-06-16 21:31:35 +00:00
|
|
|
gboolean
|
|
|
|
midori_app_send_command (MidoriApp* app,
|
|
|
|
gchar** command);
|
|
|
|
|
2008-06-07 23:25:57 +00:00
|
|
|
void
|
2008-06-24 19:54:01 +00:00
|
|
|
midori_app_add_browser (MidoriApp* app,
|
|
|
|
MidoriBrowser* browser);
|
2008-06-07 23:25:57 +00:00
|
|
|
|
2008-12-24 23:39:35 +00:00
|
|
|
MidoriBrowser*
|
|
|
|
midori_app_create_browser (MidoriApp* app);
|
|
|
|
|
2008-06-07 23:25:57 +00:00
|
|
|
void
|
2008-06-24 19:54:01 +00:00
|
|
|
midori_app_quit (MidoriApp* app);
|
2008-06-07 23:25:57 +00:00
|
|
|
|
2009-05-09 13:55:10 +00:00
|
|
|
void
|
|
|
|
midori_app_send_notification (MidoriApp* app,
|
|
|
|
const gchar* title,
|
|
|
|
const gchar* message);
|
|
|
|
|
2008-05-22 22:17:10 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MIDORI_APP_H__ */
|