1
/* Representation of a channel request as presented to plugins. This is
2
* deliberately a "smaller" API than McdChannel.
4
* Copyright (C) 2009 Nokia Corporation
5
* Copyright (C) 2009 Collabora Ltd.
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24
#ifndef MCD_PLUGIN_REQUEST_H
25
#define MCD_PLUGIN_REQUEST_H
27
#include <mission-control-plugins/mission-control-plugins.h>
29
#include "mcd-account.h"
30
#include "mcd-channel.h"
34
typedef struct _McdPluginRequest McdPluginRequest;
35
typedef struct _McdPluginRequestClass McdPluginRequestClass;
36
typedef struct _McdPluginRequestPrivate McdPluginRequestPrivate;
38
G_GNUC_INTERNAL GType _mcd_plugin_request_get_type (void);
40
#define MCD_TYPE_PLUGIN_REQUEST \
41
(_mcd_plugin_request_get_type ())
42
#define MCD_PLUGIN_REQUEST(obj) \
43
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MCD_TYPE_PLUGIN_REQUEST, \
45
#define MCD_PLUGIN_REQUEST_CLASS(klass) \
46
(G_TYPE_CHECK_CLASS_CAST ((klass), MCD_TYPE_PLUGIN_REQUEST, \
47
McdPluginRequestClass))
48
#define MCD_IS_PLUGIN_REQUEST(obj) \
49
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MCD_TYPE_PLUGIN_REQUEST))
50
#define MCD_IS_PLUGIN_REQUEST_CLASS(klass) \
51
(G_TYPE_CHECK_CLASS_TYPE ((klass), MCD_TYPE_PLUGIN_REQUEST))
52
#define MCD_PLUGIN_REQUEST_GET_CLASS(obj) \
53
(G_TYPE_INSTANCE_GET_CLASS ((obj), MCD_TYPE_PLUGIN_REQUEST, \
54
McdPluginRequestClass))
56
G_GNUC_INTERNAL McdPluginRequest *_mcd_plugin_request_new (McdAccount *account,
57
McdChannel *real_request);
59
G_GNUC_INTERNAL GError *_mcd_plugin_request_dup_denial (
60
McdPluginRequest *self);