~ubuntu-branches/debian/experimental/thunar/experimental

« back to all changes in this revision

Viewing changes to thunar-vfs/thunar-vfs-user.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2006-01-02 23:42:32 UTC
  • Revision ID: james.westby@ubuntu.com-20060102234232-8xeq0lqhyn70syr0
Tags: upstream-0.1.4svn+r18850
ImportĀ upstreamĀ versionĀ 0.1.4svn+r18850

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: thunar-vfs-user.h 18843 2005-11-14 14:25:58Z benny $ */
 
2
/*-
 
3
 * Copyright (c) 2005 Benedikt Meurer <benny@xfce.org>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public
 
16
 * License along with this library; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef __THUNAR_VFS_USER_H__
 
22
#define __THUNAR_VFS_USER_H__
 
23
 
 
24
#include <thunar-vfs/thunar-vfs-info.h>
 
25
 
 
26
G_BEGIN_DECLS;
 
27
 
 
28
typedef struct _ThunarVfsGroupClass ThunarVfsGroupClass;
 
29
typedef struct _ThunarVfsGroup      ThunarVfsGroup;
 
30
 
 
31
#define THUNAR_VFS_TYPE_GROUP             (thunar_vfs_group_get_type ())
 
32
#define THUNAR_VFS_GROUP(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_VFS_TYPE_GROUP, ThunarVfsGroup))
 
33
#define THUNAR_VFS_GROUP_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_VFS_TYPE_GROUP, ThunarVfsGroupClass))
 
34
#define THUNAR_VFS_IS_GROUP(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_VFS_TYPE_GROUP))
 
35
#define THUNAR_VFS_IS_GROUP_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_VFS_TYPE_GROUP))
 
36
#define THUNAR_VFS_GROUP_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_VFS_TYPE_GROUP, ThunarVfsGroupClass))
 
37
 
 
38
GType            thunar_vfs_group_get_type  (void) G_GNUC_CONST;
 
39
 
 
40
ThunarVfsGroupId thunar_vfs_group_get_id    (ThunarVfsGroup *group);
 
41
const gchar     *thunar_vfs_group_get_name  (ThunarVfsGroup *group);
 
42
 
 
43
 
 
44
typedef struct _ThunarVfsUserClass ThunarVfsUserClass;
 
45
typedef struct _ThunarVfsUser      ThunarVfsUser;
 
46
 
 
47
#define THUNAR_VFS_TYPE_USER            (thunar_vfs_user_get_type ())
 
48
#define THUNAR_VFS_USER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_VFS_TYPE_USER, ThunarVfsUser))
 
49
#define THUNAR_VFS_USER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_VFS_TYPE_USER, ThunarVfsUserClass))
 
50
#define THUNAR_VFS_IS_USER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_VFS_TYPE_USER))
 
51
#define THUNAR_VFS_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_VFS_TYPE_USER))
 
52
#define THUNAR_VFS_USER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_VFS_TYPE_USER, ThunarVfsUserClass))
 
53
 
 
54
GType            thunar_vfs_user_get_type          (void) G_GNUC_CONST;
 
55
 
 
56
GList           *thunar_vfs_user_get_groups        (ThunarVfsUser *user);
 
57
ThunarVfsGroup  *thunar_vfs_user_get_primary_group (ThunarVfsUser *user);
 
58
ThunarVfsUserId  thunar_vfs_user_get_id            (ThunarVfsUser *user);
 
59
const gchar     *thunar_vfs_user_get_name          (ThunarVfsUser *user);
 
60
const gchar     *thunar_vfs_user_get_real_name     (ThunarVfsUser *user);
 
61
gboolean         thunar_vfs_user_is_me             (ThunarVfsUser *user);
 
62
 
 
63
 
 
64
typedef struct _ThunarVfsUserManagerClass ThunarVfsUserManagerClass;
 
65
typedef struct _ThunarVfsUserManager      ThunarVfsUserManager;
 
66
 
 
67
#define THUNAR_VFS_TYPE_USER_MANAGER            (thunar_vfs_user_manager_get_type ())
 
68
#define THUNAR_VFS_USER_MANAGER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_VFS_TYPE_USER_MANAGER, ThunarVfsUserManager))
 
69
#define THUNAR_VFS_USER_MANAGER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_VFS_TYPE_USER_MANAGER, ThunarVfsUserManagerClass))
 
70
#define THUNAR_VFS_IS_USER_MANAGER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_VFS_TYPE_USER_MANAGER))
 
71
#define THUNAR_VFS_IS_USER_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_VFS_TYPE_USER_MANAGER))
 
72
#define THUNAR_VFS_USER_MANAGER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_VFS_TYPE_USER_MANAGER, ThunarVfsUserManagerClass))
 
73
 
 
74
GType                 thunar_vfs_user_manager_get_type        (void) G_GNUC_CONST;
 
75
 
 
76
ThunarVfsUserManager *thunar_vfs_user_manager_get_default     (void);
 
77
 
 
78
ThunarVfsGroup       *thunar_vfs_user_manager_get_group_by_id (ThunarVfsUserManager *manager,
 
79
                                                               ThunarVfsGroupId      id);
 
80
ThunarVfsUser        *thunar_vfs_user_manager_get_user_by_id  (ThunarVfsUserManager *manager,
 
81
                                                               ThunarVfsUserId       id);
 
82
 
 
83
G_END_DECLS;
 
84
 
 
85
#endif /* !__THUNAR_VFS_USER_H__ */