2
* @file ui_subscription.h default subscription dialogs for feed subscriptions
4
* Copyright (C) 2007-2009 Lars Lindner <lars.lindner@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#ifndef _UI_SUBSCRIPTION_H
22
#define _UI_SUBSCRIPTION_H
26
#include "subscription.h"
30
typedef struct SubscriptionDialogPrivate SubscriptionDialogPrivate;
32
#define SUBSCRIPTION_PROP_DIALOG_TYPE (subscription_prop_dialog_get_type ())
33
#define SUBSCRIPTION_PROP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SUBSCRIPTION_PROP_DIALOG_TYPE, SubscriptionPropDialog))
34
#define SUBSCRIPTION_PROP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SUBSCRIPTION_PROP_DIALOG_TYPE, SubscriptionPropDialogClass))
35
#define IS_SUBSCRIPTION_PROP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SUBSCRIPTION_PROP_DIALOG_TYPE))
36
#define IS_SUBSCRIPTION_PROP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SUBSCRIPTION_PROP_DIALOG_TYPE))
38
typedef struct SubscriptionPropDialog SubscriptionPropDialog;
39
typedef struct SubscriptionPropDialogClass SubscriptionPropDialogClass;
41
struct SubscriptionPropDialog
46
SubscriptionDialogPrivate *priv;
49
struct SubscriptionPropDialogClass
51
GtkObjectClass parent_class;
54
GType subscription_prop_dialog_get_type (void);
57
* Creates a feed properties dialog (FIXME: handle
58
* generic subscriptions too)
60
* @param subscription the subscription to load into the dialog
62
* @returns a properties dialog
64
SubscriptionPropDialog *ui_subscription_prop_dialog_new (subscriptionPtr subscription);
67
#define NEW_SUBSCRIPTION_DIALOG_TYPE (new_subscription_dialog_get_type ())
68
#define NEW_SUBSCRIPTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEW_SUBSCRIPTION_DIALOG_TYPE, NewSubscriptionDialog))
69
#define NEW_SUBSCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NEW_SUBSCRIPTION_DIALOG_TYPE, NewSubscriptionDialogClass))
70
#define IS_NEW_SUBSCRIPTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEW_SUBSCRIPTION_DIALOG_TYPE))
71
#define IS_NEW_SUBSCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NEW_SUBSCRIPTION_DIALOG_TYPE))
73
typedef struct NewSubscriptionDialog NewSubscriptionDialog;
74
typedef struct NewSubscriptionDialogClass NewSubscriptionDialogClass;
76
struct NewSubscriptionDialog
81
SubscriptionDialogPrivate *priv;
84
struct NewSubscriptionDialogClass
86
GtkObjectClass parent_class;
89
GType new_subscription_dialog_get_type (void);
92
* Create a new complex subscription dialog. Used only
93
* when requested by user from simple subscription dialog.
95
* @returns dialog instance
97
NewSubscriptionDialog *ui_complex_subscription_dialog_new (void);
100
#define SIMPLE_SUBSCRIPTION_DIALOG_TYPE (simple_subscription_dialog_get_type ())
101
#define SIMPLE_SUBSCRIPTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIMPLE_SUBSCRIPTION_DIALOG_TYPE, SimpleSubscriptionDialog))
102
#define SIMPLE_SUBSCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIMPLE_SUBSCRIPTION_DIALOG_TYPE, SimpleSubscriptionDialogClass))
103
#define IS_SIMPLE_SUBSCRIPTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIMPLE_SUBSCRIPTION_DIALOG_TYPE))
104
#define IS_SIMPLE_SUBSCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIMPLE_SUBSCRIPTION_DIALOG_TYPE))
106
typedef struct SimpleSubscriptionDialog SimpleSubscriptionDialog;
107
typedef struct SimpleSubscriptionDialogClass SimpleSubscriptionDialogClass;
109
struct SimpleSubscriptionDialog
114
SubscriptionDialogPrivate *priv;
117
struct SimpleSubscriptionDialogClass
119
GtkObjectClass parent_class;
122
GType simple_subscription_dialog_get_type (void);
125
* Create a simple subscription dialog.
127
* @returns dialog instance
129
SimpleSubscriptionDialog *ui_subscription_dialog_new (void);
134
#endif /* _UI_SUBSCRIPTION_H */