Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / embed / mozilla / FilePicker.h
blob7b1964510dd726c3e197d9a669e63df9a3966e51
1 /*
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)
8 * any later version.
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>
27 class nsIDOMWindow;
29 #include "ephy-file-chooser.h"
31 #define G_FILEPICKER_CID \
32 { /* 3636dc79-0b42-4bad-8a3f-ae15d3671d17 */ \
33 0x3636dc79, \
34 0x0b42, \
35 0x4bad, \
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"
42 class nsIFactory;
44 extern nsresult NS_NewFilePickerFactory(nsIFactory** aFactory);
46 class GFilePicker : public nsIFilePicker
48 public:
49 NS_DECL_ISUPPORTS
50 NS_DECL_NSIFILEPICKER
52 GFilePicker();
53 virtual ~GFilePicker();
55 private:
56 EphyFileChooser *mDialog;
57 PRInt16 mMode;
58 nsString mDefaultString;
59 nsCOMPtr<nsIDOMWindow> mParent;
62 #endif