1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3
* unity-webapps-dpkg-available-application.h
4
* Copyright (C) Canonical LTD 2011
6
* Author: Robert Carr <racarr@canonical.com>
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.
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.
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/>.";
23
#ifndef __UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION_H
24
#define __UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION_H
27
#define UNITY_WEBAPPS_TYPE_DPKG_AVAILABLE_APPLICATION (unity_webapps_dpkg_available_application_get_type())
28
#define UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), UNITY_WEBAPPS_TYPE_DPKG_AVAILABLE_APPLICATION, UnityWebappsDpkgAvailableApplication))
29
#define UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), UNITY_WEBAPPS_TYPE_DPKG_AVAILABLE_APPLICATION, UnityWebappsDpkgAvailableApplicationClass))
30
#define UNITY_WEBAPPS_IS_DPKG_AVAILABLE_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), UNITY_WEBAPPS_TYPE_DPKG_AVAILABLE_APPLICATION))
31
#define UNITY_WEBAPPS_IS_DPKG_AVAILABLE_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_WEBAPPS_TYPE_DPKG_AVAILABLE_APPLICATION))
32
#define UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), UNITY_WEBAPPS_TYPE_DPKG_AVAILABLE_APPLICATION, UnityWebappsDpkgAvailableApplicationClass))
34
#include "unity-webapps-available-application.h"
35
#include "unity-webapps-package-mechanism.h"
37
typedef struct _UnityWebappsDpkgAvailableApplicationPrivate UnityWebappsDpkgAvailableApplicationPrivate;
39
typedef struct _UnityWebappsDpkgAvailableApplication UnityWebappsDpkgAvailableApplication;
42
struct _UnityWebappsDpkgAvailableApplication {
43
UnityWebappsAvailableApplication app;
45
UnityWebappsDpkgAvailableApplicationPrivate *priv;
48
typedef struct _UnityWebappsDpkgAvailableApplicationClass UnityWebappsDpkgAvailableApplicationClass;
50
struct _UnityWebappsDpkgAvailableApplicationClass
52
UnityWebappsAvailableApplicationClass parent_class;
55
GType unity_webapps_dpkg_available_application_get_type (void) G_GNUC_CONST;
57
UnityWebappsAvailableApplication *unity_webapps_dpkg_available_application_new (const gchar *name, UnityWebappsPackageMechanism *package_mechanism);
60
unity_webapps_dpkg_available_application_install (UnityWebappsDpkgAvailableApplication *application,
61
UnityWebappsAvailableApplicationInstalledQueryCallback callback,