/* Eye Of Cafe - Application Facade
 *
 * Copyright (C) 2006 The Free Software Foundation
 *
 * Author: Lucas Rocha <lucasr@gnome.org>
 *
 * Based on evince code (shell/ev-application.h) by:
 * 	- Martin Kretzschmar <martink@gnome.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef __EOC_APPLICATION_H__
#define __EOC_APPLICATION_H__

#include <glib.h>
#include <glib-object.h>

#include <libbean/bean-extension-set.h>
#include <ctk/ctk.h>
#include "eoc-window.h"

G_BEGIN_DECLS

typedef struct _EocApplication EocApplication;
typedef struct _EocApplicationClass EocApplicationClass;
typedef struct _EocApplicationPrivate EocApplicationPrivate;

#define EOC_TYPE_APPLICATION            (eoc_application_get_type ())
#define EOC_APPLICATION(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), EOC_TYPE_APPLICATION, EocApplication))
#define EOC_APPLICATION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),  EOC_TYPE_APPLICATION, EocApplicationClass))
#define EOC_IS_APPLICATION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), EOC_TYPE_APPLICATION))
#define EOC_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  EOC_TYPE_APPLICATION))
#define EOC_APPLICATION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  EOC_TYPE_APPLICATION, EocApplicationClass))

#define EOC_APP				(eoc_application_get_instance ())

struct _EocApplication {
	CtkApplication base_instance;

	EocApplicationPrivate *priv;
};

struct _EocApplicationClass {
	CtkApplicationClass parent_class;
};

GType	          eoc_application_get_type	      (void) G_GNUC_CONST;

EocApplication   *eoc_application_get_instance        (void);

gboolean          eoc_application_open_window         (EocApplication   *application,
						       guint             timestamp,
						       EocStartupFlags   flags,
						       GError          **error);

gboolean          eoc_application_open_uri_list      (EocApplication   *application,
						      GSList           *uri_list,
						      guint             timestamp,
						      EocStartupFlags   flags,
						      GError          **error);

gboolean          eoc_application_open_file_list     (EocApplication  *application,
						      GSList          *file_list,
						      guint           timestamp,
						      EocStartupFlags flags,
						      GError         **error);

gboolean          eoc_application_open_uris           (EocApplication *application,
						       gchar         **uris,
						       guint           timestamp,
						       EocStartupFlags flags,
						       GError        **error);

G_END_DECLS

#endif /* __EOC_APPLICATION_H__ */
