~alexlauni/libunity-webapps/multiple-messaging-menu-accounts

« back to all changes in this revision

Viewing changes to src/libunity-webapps-repository/unity-webapps-dpkg-available-application.h

MergeĀ lp:~robertcarr/libunity-webapps/package-support

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-dpkg-available-application.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
 
 
23
#ifndef __UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION_H
 
24
#define __UNITY_WEBAPPS_DPKG_AVAILABLE_APPLICATION_H
 
25
 
 
26
 
 
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))
 
33
 
 
34
#include "unity-webapps-available-application.h"
 
35
#include "unity-webapps-package-mechanism.h"
 
36
 
 
37
typedef struct _UnityWebappsDpkgAvailableApplicationPrivate UnityWebappsDpkgAvailableApplicationPrivate;
 
38
 
 
39
typedef struct _UnityWebappsDpkgAvailableApplication UnityWebappsDpkgAvailableApplication;
 
40
 
 
41
 
 
42
struct _UnityWebappsDpkgAvailableApplication {
 
43
        UnityWebappsAvailableApplication app;
 
44
 
 
45
        UnityWebappsDpkgAvailableApplicationPrivate *priv;
 
46
};
 
47
 
 
48
typedef struct _UnityWebappsDpkgAvailableApplicationClass UnityWebappsDpkgAvailableApplicationClass;
 
49
 
 
50
struct _UnityWebappsDpkgAvailableApplicationClass
 
51
{
 
52
        UnityWebappsAvailableApplicationClass parent_class;
 
53
};
 
54
 
 
55
GType unity_webapps_dpkg_available_application_get_type (void) G_GNUC_CONST;
 
56
 
 
57
UnityWebappsAvailableApplication *unity_webapps_dpkg_available_application_new (const gchar *name, UnityWebappsPackageMechanism *package_mechanism);
 
58
 
 
59
gboolean
 
60
unity_webapps_dpkg_available_application_install (UnityWebappsDpkgAvailableApplication *application,
 
61
                                                  UnityWebappsAvailableApplicationInstalledQueryCallback callback,
 
62
                                                                                                  gpointer user_data);
 
63
 
 
64
 
 
65
#endif