~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-service-node-property-page.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
 
 
3
/*
 
4
 * cong-service-node-property-dialog.h
 
5
 *
 
6
 * Copyright (C) 2005 David Malcolm
 
7
 *
 
8
 * Conglomerate is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU General Public License as
 
10
 * published by the Free Software Foundation; either version 2 of the
 
11
 * License, or (at your option) any later version.
 
12
 *
 
13
 * Conglomerate is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program; if not, write to the Free Software
 
20
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
 *
 
22
 * Authors: David Malcolm <david@davemalcolm.demon.co.uk>
 
23
 */
 
24
 
 
25
#ifndef __CONG_SERVICE_NODE_PROPERTY_PAGE_H__
 
26
#define __CONG_SERVICE_NODE_PROPERTY_PAGE_H__
 
27
 
 
28
#include "cong-plugin.h"
 
29
#include <gtk/gtkwidget.h>
 
30
#include "cong-document.h"
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
#define CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE      (cong_service_node_property_page_get_type ())
 
35
#define CONG_SERVICE_NODE_PROPERTY_PAGE(obj)         G_TYPE_CHECK_INSTANCE_CAST (obj, CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE, CongServiceNodePropertyPage)
 
36
#define CONG_SERVICE_NODE_PROPERTY_PAGE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE, CongServiceNodePropertyPageClass)
 
37
#define IS_CONG_SERVICE_NODE_PROPERTY_PAGE(obj)      G_TYPE_CHECK_INSTANCE_TYPE (obj, CONG_SERVICE_NODE_PROPERTY_PAGE_TYPE)
 
38
CONG_DECLARE_CLASS (CongServiceNodePropertyPage, cong_service_node_property_page, CongService)
 
39
 
 
40
typedef GtkWidget* 
 
41
(*CongCustomPropertyPageFactoryMethod) (CongServiceNodePropertyPage *custom_property_page, 
 
42
                                        CongDocument *doc); 
 
43
 
 
44
CongServiceNodePropertyPage*
 
45
cong_service_node_property_page_construct (CongServiceNodePropertyPage* node_property_page,
 
46
                                           const gchar *name, 
 
47
                                           const gchar *description,
 
48
                                           const gchar *service_id,
 
49
                                           CongCustomPropertyPageFactoryMethod factory_method,
 
50
                                           gpointer user_data);
 
51
 
 
52
CongServiceNodePropertyPage*
 
53
cong_plugin_register_custom_property_page (CongPlugin *plugin,
 
54
                                           const gchar *name, 
 
55
                                           const gchar *description,
 
56
                                           const gchar *service_id,
 
57
                                           CongCustomPropertyPageFactoryMethod factory_method,
 
58
                                           gpointer user_data);
 
59
 
 
60
/* 
 
61
   Utility to reduce the number of strings needing translation (addressing bug #124780); this
 
62
   is a wrapper around cong_plugin_register_custom_property_page 
 
63
*/
 
64
CongServiceNodePropertyPage*
 
65
cong_plugin_register_custom_property_page_for_element (CongPlugin *plugin,
 
66
                                                       const gchar *element_name,
 
67
                                                       const gchar *service_id,
 
68
                                                       CongCustomPropertyPageFactoryMethod factory_method,
 
69
                                                       gpointer user_data);
 
70
 
 
71
void 
 
72
cong_plugin_for_each_custom_property_page (CongPlugin *plugin, 
 
73
                                           void 
 
74
                                           (*callback) (CongServiceNodePropertyPage *custom_property_page, 
 
75
                                                        gpointer user_data), 
 
76
                                           gpointer user_data);
 
77
 
 
78
GtkWidget*
 
79
cong_custom_property_page_make (CongServiceNodePropertyPage *custom_property_page,
 
80
                                CongDocument *doc);
 
81
 
 
82
G_END_DECLS
 
83
 
 
84
#endif
 
85
 
 
86
 
 
87