@Override public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} @Override
@Override public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);} @Override
@Override public int /*long*/ method2 (int /*long*/[] args) {return Release ();} @Override
LocationProvider = new AppFileLocProvider (MozillaPath, profilePath, cacheParentPath, IsXULRunner); LocationProvider.AddRef ();
int Release () { refCount--; if (refCount == 0) disposeCOMInterfaces (); return refCount; }
AppFileLocProvider (String mozillaPath, String profilePath, String cacheParentPath, boolean isXULRunner) { this.mozillaPath = mozillaPath + SEPARATOR_OS; this.profilePath = profilePath + SEPARATOR_OS; this.cacheParentPath = cacheParentPath; this.isXULRunner = isXULRunner; if (!Compatibility.fileExists (profilePath, "")) { //$NON-NLS-1$ long /*int*/[] result = new long /*int*/[1]; nsEmbedString pathString = new nsEmbedString (profilePath); int rc = XPCOM.NS_NewLocalFile (pathString.getAddress (), 1, result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (result[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); pathString.dispose (); nsILocalFile file = new nsILocalFile (result [0]); rc = file.Create (nsILocalFile.DIRECTORY_TYPE, 0700); if (rc != XPCOM.NS_OK) Mozilla.error (rc); file.Release (); } createCOMInterfaces (); }
rc = XPCOM.Call (functionPtr, localFile.getAddress (), localFile.getAddress (), LocationProvider.getAddress (), 0, 0); } else { rc = XPCOM.Call (functionPtr, localFile.getAddress (), localFile.getAddress (), LocationProvider.getAddress ()); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());
@Override public long /*int*/ method3 (long /*int*/[] args) {return getFile (args[0], args[1], args[2]);} @Override
@Override public int /*long*/ method4 (int /*long*/[] args) {return getFiles (args[0], args[1]);} };
LocationProvider = new AppFileLocProvider (MozillaPath, profilePath, cacheParentPath, IsXULRunner); LocationProvider.AddRef ();
int Release () { refCount--; if (refCount == 0) disposeCOMInterfaces (); return refCount; }
AppFileLocProvider (String mozillaPath, String profilePath, String cacheParentPath, boolean isXULRunner) { this.mozillaPath = mozillaPath + SEPARATOR_OS; this.profilePath = profilePath + SEPARATOR_OS; this.cacheParentPath = cacheParentPath; this.isXULRunner = isXULRunner; if (!Compatibility.fileExists (profilePath, "")) { //$NON-NLS-1$ int /*long*/[] result = new int /*long*/[1]; nsEmbedString pathString = new nsEmbedString (profilePath); int rc = XPCOM.NS_NewLocalFile (pathString.getAddress (), 1, result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (result[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); pathString.dispose (); nsILocalFile file = new nsILocalFile (result [0]); rc = file.Create (nsILocalFile.DIRECTORY_TYPE, 0700); if (rc != XPCOM.NS_OK) Mozilla.error (rc); file.Release (); } createCOMInterfaces (); }
rc = XPCOM.Call (functionPtr, localFile.getAddress (), localFile.getAddress (), LocationProvider.getAddress ()); } else { rc = XPCOM.Call (functionPtr, localFile.getAddress (), localFile.getAddress (), LocationProvider.getAddress (), 0, 0); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());
public long /*int*/ method3 (long /*int*/[] args) {return getFile (args[0], args[1], args[2]);} };
@Override public long /*int*/ method4 (long /*int*/[] args) {return getFiles (args[0], args[1]);} };
@Override public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} @Override
LocationProvider = new AppFileLocProvider (MozillaPath, profilePath, cacheParentPath, IsXULRunner); LocationProvider.AddRef ();
int Release () { refCount--; if (refCount == 0) disposeCOMInterfaces (); return refCount; }
AppFileLocProvider (String mozillaPath, String profilePath, String cacheParentPath, boolean isXULRunner) { this.mozillaPath = mozillaPath + SEPARATOR_OS; this.profilePath = profilePath + SEPARATOR_OS; this.cacheParentPath = cacheParentPath; this.isXULRunner = isXULRunner; if (!Compatibility.fileExists (profilePath, "")) { //$NON-NLS-1$ long /*int*/[] result = new long /*int*/[1]; nsEmbedString pathString = new nsEmbedString (profilePath); int rc = XPCOM.NS_NewLocalFile (pathString.getAddress (), 1, result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (result[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); pathString.dispose (); nsILocalFile file = new nsILocalFile (result [0]); rc = file.Create (nsILocalFile.DIRECTORY_TYPE, 0700); if (rc != XPCOM.NS_OK) Mozilla.error (rc); file.Release (); } createCOMInterfaces (); }
rc = XPCOM.Call (functionPtr, localFile.getAddress (), localFile.getAddress (), LocationProvider.getAddress ()); } else { rc = XPCOM.Call (functionPtr, localFile.getAddress (), localFile.getAddress (), LocationProvider.getAddress (), 0, 0); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());