~ubuntu-branches/ubuntu/precise/telepathy-mission-control-5/precise

« back to all changes in this revision

Viewing changes to src/plugin-request.h

Tags: upstream-5.5.2
ImportĀ upstreamĀ versionĀ 5.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Representation of a channel request as presented to plugins. This is
 
2
 * deliberately a "smaller" API than McdChannel.
 
3
 *
 
4
 * Copyright (C) 2009 Nokia Corporation
 
5
 * Copyright (C) 2009 Collabora Ltd.
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
20
 * 02110-1301 USA
 
21
 *
 
22
 */
 
23
 
 
24
#ifndef MCD_PLUGIN_REQUEST_H
 
25
#define MCD_PLUGIN_REQUEST_H
 
26
 
 
27
#include <mission-control-plugins/mission-control-plugins.h>
 
28
 
 
29
#include "mcd-account.h"
 
30
#include "mcd-channel.h"
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
typedef struct _McdPluginRequest McdPluginRequest;
 
35
typedef struct _McdPluginRequestClass McdPluginRequestClass;
 
36
typedef struct _McdPluginRequestPrivate McdPluginRequestPrivate;
 
37
 
 
38
G_GNUC_INTERNAL GType _mcd_plugin_request_get_type (void);
 
39
 
 
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, \
 
44
                               McdPluginRequest))
 
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))
 
55
 
 
56
G_GNUC_INTERNAL McdPluginRequest *_mcd_plugin_request_new (McdAccount *account,
 
57
    McdChannel *real_request);
 
58
 
 
59
G_GNUC_INTERNAL GError *_mcd_plugin_request_dup_denial (
 
60
    McdPluginRequest *self);
 
61
 
 
62
G_END_DECLS
 
63
 
 
64
#endif