Update ooo320-m1
[ooovba.git] / ucb / source / ucp / gio / gio_mount.hxx
blob3890e49a58638870e46e6eb688ab9edc8545f5a9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: gio_mount.hxx,v $
10 * $Revision: 1.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef GIO_MOUNT_HXX
32 #define GIO_MOUNT_HXX
34 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
35 #include <gio/gio.h>
37 G_BEGIN_DECLS
39 #define OOO_TYPE_MOUNT_OPERATION (ooo_mount_operation_get_type ())
40 #define OOO_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperation))
41 #define OOO_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass))
42 #define OOO_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OOO_TYPE_MOUNT_OPERATION))
43 #define OOO_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OOO_TYPE_MOUNT_OPERATION))
44 #define OOO_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass))
46 typedef struct OOoMountOperation OOoMountOperation;
47 typedef struct OOoMountOperationClass OOoMountOperationClass;
48 typedef struct OOoMountOperationPrivate OOoMountOperationPrivate;
50 struct OOoMountOperation
52 GMountOperation parent_instance;
54 const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > *pEnv;
55 char *m_pPrevUsername;
56 char *m_pPrevPassword;
59 struct OOoMountOperationClass
61 GMountOperationClass parent_class;
63 /* Padding for future expansion */
64 void (*_gtk_reserved1) (void);
65 void (*_gtk_reserved2) (void);
66 void (*_gtk_reserved3) (void);
67 void (*_gtk_reserved4) (void);
71 GType ooo_mount_operation_get_type (void);
72 GMountOperation *ooo_mount_operation_new(const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rEnv);
74 G_END_DECLS
75 #endif