1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef GIO_MOUNT_HXX 25 #define GIO_MOUNT_HXX 26 27 #include <com/sun/star/ucb/XCommandEnvironment.hpp> 28 #include <gio/gio.h> 29 30 G_BEGIN_DECLS 31 32 #define OOO_TYPE_MOUNT_OPERATION (ooo_mount_operation_get_type ()) 33 #define OOO_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperation)) 34 #define OOO_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass)) 35 #define OOO_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OOO_TYPE_MOUNT_OPERATION)) 36 #define OOO_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OOO_TYPE_MOUNT_OPERATION)) 37 #define OOO_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass)) 38 39 typedef struct OOoMountOperation OOoMountOperation; 40 typedef struct OOoMountOperationClass OOoMountOperationClass; 41 typedef struct OOoMountOperationPrivate OOoMountOperationPrivate; 42 43 struct OOoMountOperation 44 { 45 GMountOperation parent_instance; 46 47 const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > *pEnv; 48 char *m_pPrevUsername; 49 char *m_pPrevPassword; 50 }; 51 52 struct OOoMountOperationClass 53 { 54 GMountOperationClass parent_class; 55 56 /* Padding for future expansion */ 57 void (*_gtk_reserved1) (void); 58 void (*_gtk_reserved2) (void); 59 void (*_gtk_reserved3) (void); 60 void (*_gtk_reserved4) (void); 61 }; 62 63 64 GType ooo_mount_operation_get_type (void); 65 GMountOperation *ooo_mount_operation_new(const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rEnv); 66 67 G_END_DECLS 68 #endif 69