1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_UCB_SOURCE_UCP_GIO_GIO_MOUNT_HXX
21 #define INCLUDED_UCB_SOURCE_UCP_GIO_GIO_MOUNT_HXX
23 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
28 #define OOO_TYPE_MOUNT_OPERATION (ooo_mount_operation_get_type ())
29 #define OOO_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperation))
30 #define OOO_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass))
31 #define OOO_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OOO_TYPE_MOUNT_OPERATION))
32 #define OOO_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OOO_TYPE_MOUNT_OPERATION))
33 #define OOO_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OOO_TYPE_MOUNT_OPERATION, OOoMountOperationClass))
35 struct OOoMountOperation
37 GMountOperation parent_instance
;
39 const com::sun::star::uno::Reference
< com::sun::star::ucb::XCommandEnvironment
> *pEnv
;
40 char *m_pPrevUsername
;
41 char *m_pPrevPassword
;
44 struct OOoMountOperationClass
46 GMountOperationClass parent_class
;
48 /* Padding for future expansion */
49 void (*_gtk_reserved1
) (void);
50 void (*_gtk_reserved2
) (void);
51 void (*_gtk_reserved3
) (void);
52 void (*_gtk_reserved4
) (void);
56 GType
ooo_mount_operation_get_type();
57 GMountOperation
*ooo_mount_operation_new(const com::sun::star::uno::Reference
< com::sun::star::ucb::XCommandEnvironment
>& rEnv
);
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */