• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

go-cmd-context.h

Go to the documentation of this file.
00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
00002 /*
00003  * go-cmd-context.h:
00004  *
00005  * Copyright (C) 2004 Jody Goldberg (jody@gnome.org)
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of version 2 of the GNU General Public
00009  * License as published by the Free Software Foundation.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00019  * USA
00020  */
00021 #ifndef GO_CMD_CONTEXT_H
00022 #define GO_CMD_CONTEXT_H
00023 
00024 #include <goffice/app/goffice-app.h>
00025 #include <glib-object.h>
00026 
00027 G_BEGIN_DECLS
00028 
00029 #define GO_CMD_CONTEXT_TYPE        (go_cmd_context_get_type ())
00030 #define GO_CMD_CONTEXT(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_CMD_CONTEXT_TYPE, GOCmdContext))
00031 #define IS_GO_CMD_CONTEXT(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_CMD_CONTEXT_TYPE))
00032 
00033 GType  go_cmd_context_get_type (void);
00034 
00035 void   go_cmd_context_error     (GOCmdContext *cc, GError *err);
00036 char  *go_cmd_context_get_password  (GOCmdContext *cc, char const *fname);
00037 void   go_cmd_context_set_sensitive (GOCmdContext *cc, gboolean flag);
00038 
00039 /* utility routines for common errors */
00040 void   go_cmd_context_error_system  (GOCmdContext *cc, char const *msg);
00041 void   go_cmd_context_error_import  (GOCmdContext *cc, char const *msg);
00042 void   go_cmd_context_error_export  (GOCmdContext *cc, char const *msg);
00043 void   go_cmd_context_error_invalid (GOCmdContext *cc,
00044                      char const *msg, char const *val);
00045 void   go_cmd_context_error_info    (GOCmdContext *cc, ErrorInfo *stack);
00046 
00047 /* An initial set of std errors */
00048 GQuark go_error_system  (void);
00049 GQuark go_error_import  (void);
00050 GQuark go_error_export  (void);
00051 GQuark go_error_invalid (void);
00052 
00053 G_END_DECLS
00054 
00055 #endif /* GO_CMD_CONTEXT_H */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1