2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsMIMEInfoMac_h_
|
|
|
|
#define nsMIMEInfoMac_h_
|
|
|
|
|
|
|
|
#include "nsMIMEInfoImpl.h"
|
|
|
|
|
|
|
|
class nsMIMEInfoMac : public nsMIMEInfoImpl {
|
|
|
|
public:
|
|
|
|
nsMIMEInfoMac(const char* aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {}
|
|
|
|
nsMIMEInfoMac(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {}
|
2007-07-25 13:40:41 -07:00
|
|
|
nsMIMEInfoMac(const nsACString& aType, HandlerClass aClass) :
|
|
|
|
nsMIMEInfoImpl(aType, aClass) {}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-08-20 17:47:47 -07:00
|
|
|
NS_IMETHOD LaunchWithFile(nsIFile* aFile);
|
2007-03-22 10:30:00 -07:00
|
|
|
protected:
|
2007-07-25 21:24:25 -07:00
|
|
|
virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
|
|
|
|
#ifdef DEBUG
|
2007-03-22 10:30:00 -07:00
|
|
|
virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile* aFile) {
|
|
|
|
NS_NOTREACHED("do not call this method, use LaunchWithFile");
|
|
|
|
return NS_ERROR_UNEXPECTED;
|
|
|
|
}
|
|
|
|
#endif
|
2007-07-28 20:38:52 -07:00
|
|
|
static NS_HIDDEN_(nsresult) OpenApplicationWithURI(nsIFile *aApplication,
|
|
|
|
const nsCString& aURI);
|
2008-09-03 09:22:16 -07:00
|
|
|
|
|
|
|
NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription);
|
2007-07-28 20:38:52 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|