2
* UbuntuOne Nautilus plugin
4
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
6
* Copyright 2009-2010 Canonical Ltd.
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __FILE_WATCHER_H__
23
#define __FILE_WATCHER_H__
25
#include <libnautilus-extension/nautilus-file-info.h>
27
#define TYPE_FILE_WATCHER (file_watcher_get_type ())
28
#define FILE_WATCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_WATCHER, FileWatcher))
29
#define IS_FILE_WATCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_WATCHER))
30
#define FILE_WATCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_WATCHER, FileWatcherClass))
31
#define IS_FILE_WATCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_WATCHER))
32
#define FILE_WATCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_WATCHER, FileWatcherClass))
34
typedef struct _UbuntuOneNautilus UbuntuOneNautilus;
40
UbuntuOneNautilus *uon;
45
GObjectClass parent_class;
48
GType file_watcher_get_type (void);
50
FileWatcher *file_watcher_new (UbuntuOneNautilus *uon);
51
void file_watcher_add_file (FileWatcher *watcher, NautilusFileInfo *file);
52
void file_watcher_update_path (FileWatcher *watcher, const gchar *path);