diff options
Diffstat (limited to 'lib/src/GeckoDownload.h')
-rw-r--r-- | lib/src/GeckoDownload.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/src/GeckoDownload.h b/lib/src/GeckoDownload.h new file mode 100644 index 0000000..24bff54 --- /dev/null +++ b/lib/src/GeckoDownload.h @@ -0,0 +1,39 @@ +#ifndef __GECKO_DOWNLOAD_H__ +#define __GECKO_DOWNLOAD_H__ + +#include <nsCOMPtr.h> +#include <nsIInterfaceRequestor.h> +#include <nsITransfer.h> +#include <nsIWebProgressListener.h> +#include <nsIMIMEInfo.h> +#include <nsIURL.h> +#include <nsILocalFile.h> +#include <nsStringAPI.h> + +#define GECKODOWNLOAD_CID \ +{ /* b1813bbe-6518-11db-967e-00e08161165f */ \ + 0xb1813bbe, \ + 0x6518, \ + 0x11db, \ + {0x96, 0x7e, 0x0, 0xe0, 0x81, 0x61, 0x16, 0x5f} \ +} + +class GeckoDownload : public nsITransfer +{ +public: + GeckoDownload(); + virtual ~GeckoDownload(); + + NS_DECL_ISUPPORTS + NS_DECL_NSIWEBPROGRESSLISTENER + NS_DECL_NSIWEBPROGRESSLISTENER2 + NS_DECL_NSITRANSFER + +protected: + nsIURI *mSource; + nsCString mTargetFileName; + nsIMIMEInfo *mMIMEInfo; + nsILocalFile *mTempFile; +}; + +#endif // __GECKO_DOWNLOAD_H__ |