1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * Nemo 4 * 5 * Copyright (C) 2011 Red Hat, Inc. 6 * 7 * Nemo is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of the 10 * License, or (at your option) any later version. 11 * 12 * Nemo 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 GNU 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public 18 * License along with this program; see the file COPYING. If not, 19 * write to the Free Software Foundation, Inc., 51 Franklin Street - Suite 500, 20 * Boston, MA 02110-1335, USA. 21 * 22 * Author: Cosimo Cecchi <cosimoc@redhat.com> 23 */ 24 25 #ifndef __NEMO_PROGRESS_INFO_MANAGER_H__ 26 #define __NEMO_PROGRESS_INFO_MANAGER_H__ 27 28 #include <glib-object.h> 29 30 #include <libnemo-private/nemo-progress-info.h> 31 32 #define NEMO_TYPE_PROGRESS_INFO_MANAGER nemo_progress_info_manager_get_type() 33 #define NEMO_PROGRESS_INFO_MANAGER(obj) \ 34 (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_PROGRESS_INFO_MANAGER, NemoProgressInfoManager)) 35 #define NEMO_PROGRESS_INFO_MANAGER_CLASS(klass) \ 36 (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_PROGRESS_INFO_MANAGER, NemoProgressInfoManagerClass)) 37 #define NEMO_IS_PROGRESS_INFO_MANAGER(obj) \ 38 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_PROGRESS_INFO_MANAGER)) 39 #define NEMO_IS_PROGRESS_INFO_MANAGER_CLASS(klass) \ 40 (G_TYPE_CHECK_CLASS_TYPE ((klass), NEMO_TYPE_PROGRESS_INFO_MANAGER)) 41 #define NEMO_PROGRESS_INFO_MANAGER_GET_CLASS(obj) \ 42 (G_TYPE_INSTANCE_GET_CLASS ((obj), NEMO_TYPE_PROGRESS_INFO_MANAGER, NemoProgressInfoManagerClass)) 43 44 typedef struct _NemoProgressInfoManager NemoProgressInfoManager; 45 typedef struct _NemoProgressInfoManagerClass NemoProgressInfoManagerClass; 46 typedef struct _NemoProgressInfoManagerPriv NemoProgressInfoManagerPriv; 47 48 struct _NemoProgressInfoManager { 49 GObject parent; 50 51 /* private */ 52 NemoProgressInfoManagerPriv *priv; 53 }; 54 55 struct _NemoProgressInfoManagerClass { 56 GObjectClass parent_class; 57 }; 58 59 GType nemo_progress_info_manager_get_type (void); 60 61 NemoProgressInfoManager* nemo_progress_info_manager_new (void); 62 63 void nemo_progress_info_manager_add_new_info (NemoProgressInfoManager *self, 64 NemoProgressInfo *info); 65 GList *nemo_progress_info_manager_get_all_infos (NemoProgressInfoManager *self); 66 67 G_END_DECLS 68 69 #endif /* __NEMO_PROGRESS_INFO_MANAGER_H__ */ 70