~ubuntu-branches/ubuntu/precise/ubuntuone-client/precise-201112142106

« back to all changes in this revision

Viewing changes to nautilus/file-watcher.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2011-08-09 12:47:56 UTC
  • mfrom: (1.1.53 upstream)
  • Revision ID: james.westby@ubuntu.com-20110809124756-7nzilp3oix0a1yl9
Tags: 1.7.1-0ubuntu1
* New upstream release.
* debian/*:
  - Removed obsolete pycompat file
  - Removed ubuntuone-client-gnome deps and binary packaging, as it was
    moved out to separate project upstream.
  - Updated copyright to remove obsolete file reference
* debian/patches:
  - Removed patches which have been included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * UbuntuOne Nautilus plugin
3
 
 *
4
 
 * Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
5
 
 *
6
 
 * Copyright 2009-2010 Canonical Ltd.
7
 
 *
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.
11
 
 *
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.
16
 
 *
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/>.
19
 
 *
20
 
 */
21
 
 
22
 
#ifndef __FILE_WATCHER_H__
23
 
#define __FILE_WATCHER_H__
24
 
 
25
 
#include <libnautilus-extension/nautilus-file-info.h>
26
 
 
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))
33
 
 
34
 
typedef struct _UbuntuOneNautilus UbuntuOneNautilus;
35
 
 
36
 
typedef struct {
37
 
        GObject parent;
38
 
 
39
 
        /* Private data */
40
 
        UbuntuOneNautilus *uon;
41
 
        GHashTable *files;
42
 
} FileWatcher;
43
 
 
44
 
typedef struct {
45
 
        GObjectClass parent_class;
46
 
} FileWatcherClass;
47
 
 
48
 
GType        file_watcher_get_type (void);
49
 
 
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);
53
 
 
54
 
#endif