1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef GIO_MOUNT_HXX 29 #define GIO_MOUNT_HXX 30 31 #include <com/sun/star/ucb/XCommandEnvironment.hpp> 32 #include <gio/gio.h> 33 34 G_BEGIN_DECLS 35 36 #define OOO_TYPE_MOUNT_OPERATION (ooo_mount_operation_get_type ()) 37 #define OOO_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperation)) 38 #define OOO_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass)) 39 #define OOO_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OOO_TYPE_MOUNT_OPERATION)) 40 #define OOO_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OOO_TYPE_MOUNT_OPERATION)) 41 #define OOO_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass)) 42 43 typedef struct OOoMountOperation OOoMountOperation; 44 typedef struct OOoMountOperationClass OOoMountOperationClass; 45 typedef struct OOoMountOperationPrivate OOoMountOperationPrivate; 46 47 struct OOoMountOperation 48 { 49 GMountOperation parent_instance; 50 51 const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > *pEnv; 52 char *m_pPrevUsername; 53 char *m_pPrevPassword; 54 }; 55 56 struct OOoMountOperationClass 57 { 58 GMountOperationClass parent_class; 59 60 /* Padding for future expansion */ 61 void (*_gtk_reserved1) (void); 62 void (*_gtk_reserved2) (void); 63 void (*_gtk_reserved3) (void); 64 void (*_gtk_reserved4) (void); 65 }; 66 67 68 GType ooo_mount_operation_get_type (void); 69 GMountOperation *ooo_mount_operation_new(const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rEnv); 70 71 G_END_DECLS 72 #endif 73