~abreu-alexandre/libunity-webapps/bump-2.4.4-fix-distcheck

« back to all changes in this revision

Viewing changes to src/unity-webapps-service.h

  • Committer: Robert Carr
  • Date: 2012-02-04 06:17:39 UTC
  • mfrom: (503.1.2 build-system-fixes)
  • Revision ID: racarr@canonical.com-20120204061739-9ws9mbfc1n78f1kw
MergeĀ lp:~robertcarr/libunity-webapps/build-system-fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2
 
/*
3
 
 * unity-webapps-service.h
4
 
 * Copyright (C) Canonical LTD 2011
5
 
 * 
6
 
 * Author: Robert Carr <racarr@canonical.com>
7
 
 * 
8
 
unity-webapps is free software: you can redistribute it and/or modify it
9
 
 * under the terms of the GNU Lesser General Public License as published
10
 
 * by the Free Software Foundation, either version 3 of the License, or
11
 
 * (at your option) any later version.
12
 
 * 
13
 
 * unity-webapps is distributed in the hope that it will be useful, but
14
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
 
 * See the GNU Lesser General Public License for more details.
17
 
 * 
18
 
 * You should have received a copy of the GNU Lesser General Public License
19
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.";
20
 
 */
21
 
 
22
 
#ifndef __UNITY_WEBAPPS_SERVICE_H
23
 
#define __UNITY_WEBAPPS_SERVICE_H
24
 
 
25
 
#include <glib.h>
26
 
#include <glib-object.h>
27
 
 
28
 
#include <gio/gio.h>
29
 
 
30
 
#include "unity-webapps-dbus-defs.h"
31
 
 
32
 
 
33
 
#define UNITY_WEBAPPS_TYPE_SERVICE              (unity_webapps_service_get_type())
34
 
#define UNITY_WEBAPPS_SERVICE(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), UNITY_WEBAPPS_TYPE_SERVICE, UnityWebappsService))
35
 
#define UNITY_WEBAPPS_SERVICE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), UNITY_WEBAPPS_TYPE_SERVICE, UnityWebappsServiceClass))
36
 
#define UNITY_WEBAPPS_IS_SERVICE(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), UNITY_WEBAPPS_TYPE_SERVICE))
37
 
#define UNITY_WEBAPPS_IS_SERVICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_WEBAPPS_TYPE_SERVICE))
38
 
#define UNITY_WEBAPPS_SERVICE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), UNITY_WEBAPPS_TYPE_SERVICE, UnityWebappsServiceClass))
39
 
 
40
 
typedef struct _UnityWebappsServicePrivate UnityWebappsServicePrivate;
41
 
 
42
 
typedef struct _UnityWebappsService UnityWebappsService;
43
 
 
44
 
 
45
 
struct _UnityWebappsService {
46
 
        GObject object;
47
 
 
48
 
        UnityWebappsServicePrivate *priv;
49
 
        //      UnityWebappsGenService *service_proxy;
50
 
        //      GDBusConnection *session_bus;
51
 
};
52
 
 
53
 
typedef struct _UnityWebappsServiceClass UnityWebappsServiceClass;
54
 
 
55
 
struct _UnityWebappsServiceClass
56
 
{
57
 
        GObjectClass parent_class;
58
 
};
59
 
 
60
 
typedef void (*UnityWebappsServiceContextNotifyCallback) (UnityWebappsService *service, const gchar *name, gpointer user_data);
61
 
 
62
 
GType unity_webapps_service_get_type (void) G_GNUC_CONST;
63
 
 
64
 
UnityWebappsService *unity_webapps_service_new ();
65
 
 
66
 
GDBusConnection *unity_webapps_service_get_connection (UnityWebappsService *service);
67
 
GDBusProxy *unity_webapps_service_get_proxy (UnityWebappsService *service);
68
 
 
69
 
void unity_webapps_service_activate_application (UnityWebappsService *service, const gchar *name, const gchar *domain);
70
 
void unity_webapps_service_on_context_appeared (UnityWebappsService *service, UnityWebappsServiceContextNotifyCallback callback, gpointer user_data);
71
 
void unity_webapps_service_on_context_vanished (UnityWebappsService *service, UnityWebappsServiceContextNotifyCallback callback, gpointer user_data);
72
 
gchar **unity_webapps_service_list_contexts (UnityWebappsService *service);
73
 
 
74
 
 
75
 
 
76
 
#endif