| 1 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- |
| 2 |
* |
| 3 |
* Copyright (C) 2010 Richard Hughes <[email protected]> |
| 4 |
* |
| 5 |
* Licensed under the GNU General Public License Version 2 |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2 of the License, or |
| 10 |
* (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef __CD_PROFILE_ARRAY_H |
| 23 |
#define __CD_PROFILE_ARRAY_H |
| 24 |
|
| 25 |
#include <glib-object.h> |
| 26 |
|
| 27 |
#include "cd-profile.h" |
| 28 |
|
| 29 |
G_BEGIN_DECLS |
| 30 |
|
| 31 |
#define CD_TYPE_PROFILE_ARRAY (cd_profile_array_get_type ()) |
| 32 |
G_DECLARE_DERIVABLE_TYPE (CdProfileArray, cd_profile_array, CD, PROFILE_ARRAY, GObject) |
| 33 |
|
| 34 |
struct _CdProfileArrayClass |
| 35 |
{ |
| 36 |
GObjectClass parent_class; |
| 37 |
}; |
| 38 |
|
| 39 |
CdProfileArray *cd_profile_array_new (void); |
| 40 |
|
| 41 |
void cd_profile_array_add (CdProfileArray *profile_array, |
| 42 |
CdProfile *profile); |
| 43 |
void cd_profile_array_remove (CdProfileArray *profile_array, |
| 44 |
CdProfile *profile); |
| 45 |
CdProfile *cd_profile_array_get_by_id_owner (CdProfileArray *profile_array, |
| 46 |
const gchar *id, |
| 47 |
guint owner); |
| 48 |
CdProfile *cd_profile_array_get_by_filename (CdProfileArray *profile_array, |
| 49 |
const gchar *filename); |
| 50 |
CdProfile *cd_profile_array_get_by_property (CdProfileArray *profile_array, |
| 51 |
const gchar *key, |
| 52 |
const gchar *value); |
| 53 |
CdProfile *cd_profile_array_get_by_object_path (CdProfileArray *profile_array, |
| 54 |
const gchar *object_path); |
| 55 |
GPtrArray *cd_profile_array_get_by_kind (CdProfileArray *profile_array, |
| 56 |
CdProfileKind kind); |
| 57 |
GPtrArray *cd_profile_array_get_by_metadata (CdProfileArray *profile_array, |
| 58 |
const gchar *key, |
| 59 |
const gchar *value); |
| 60 |
GVariant *cd_profile_array_get_variant (CdProfileArray *profile_array); |
| 61 |
|
| 62 |
G_END_DECLS |
| 63 |
|
| 64 |
#endif /* __CD_PROFILE_ARRAY_H */ |
| 65 |
|