2 * Copyright © 2001 Philip Langdale
3 * Copyright © 2003 Christian Persch
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This program 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
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: FilePicker.h 6952 2007-03-11 19:42:02Z chpe $
22 #ifndef EPHY_FILEPICKER_H
23 #define EPHY_FILEPICKER_H
25 #include <nsIFilePicker.h>
29 #include "ephy-file-chooser.h"
31 #define G_FILEPICKER_CID \
32 { /* 3636dc79-0b42-4bad-8a3f-ae15d3671d17 */ \
36 {0x8a, 0x3f, 0xae, 0x15, 0xd3, 0x67, 0x1d, 0x17} \
39 #define G_FILEPICKER_CONTRACTID "@mozilla.org/filepicker;1"
40 #define G_FILEPICKER_CLASSNAME "Epiphany File Picker Implementation"
44 extern nsresult
NS_NewFilePickerFactory(nsIFactory
** aFactory
);
46 class GFilePicker
: public nsIFilePicker
53 virtual ~GFilePicker();
56 EphyFileChooser
*mDialog
;
58 nsString mDefaultString
;
59 nsCOMPtr
<nsIDOMWindow
> mParent
;