michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsMIMEInfoMac_h_ michael@0: #define nsMIMEInfoMac_h_ michael@0: michael@0: #include "nsMIMEInfoImpl.h" michael@0: michael@0: class nsMIMEInfoMac : public nsMIMEInfoImpl { michael@0: public: michael@0: nsMIMEInfoMac(const char* aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {} michael@0: nsMIMEInfoMac(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {} michael@0: nsMIMEInfoMac(const nsACString& aType, HandlerClass aClass) : michael@0: nsMIMEInfoImpl(aType, aClass) {} michael@0: michael@0: NS_IMETHOD LaunchWithFile(nsIFile* aFile); michael@0: protected: michael@0: virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI); michael@0: #ifdef DEBUG michael@0: virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile* aFile) { michael@0: NS_NOTREACHED("do not call this method, use LaunchWithFile"); michael@0: return NS_ERROR_UNEXPECTED; michael@0: } michael@0: #endif michael@0: static NS_HIDDEN_(nsresult) OpenApplicationWithURI(nsIFile *aApplication, michael@0: const nsCString& aURI); michael@0: michael@0: NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription); michael@0: michael@0: }; michael@0: michael@0: michael@0: #endif