@Override String parseAString (int /*long*/ string) { return new nsEmbedString (string).toString (); } }
@Override String parseAString (int /*long*/ string) { return new nsEmbedString (string).toString (); } }
@Override String parseAString (long /*int*/ string) { return new nsEmbedString (string).toString (); } }
@Override String parseAString (int /*long*/ string) { return new nsEmbedString (string).toString (); } }
int GetDisplayDirectory (long /*int*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (int /*long*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
int SetDisplayDirectory (int /*long*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
int GetFile (long /*int*/ aFile) { String filename = ""; //$NON-NLS-1$ if (directory != null) filename += directory + SEPARATOR; if (files != null && files.length > 0) filename += files[0]; nsEmbedString path = new nsEmbedString (filename); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aFile, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int GetDisplayDirectory (int /*long*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int GetDisplayDirectory (int /*long*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (long /*int*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
int GetDisplayDirectory (long /*int*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (int /*long*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
int GetDisplayDirectory (int /*long*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int GetFile (int /*long*/ aFile) { String filename = ""; //$NON-NLS-1$ if (directory != null) filename += directory + SEPARATOR; if (files != null && files.length > 0) filename += files[0]; nsEmbedString path = new nsEmbedString (filename); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aFile, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int GetFile (int /*long*/ aFile) { String filename = ""; //$NON-NLS-1$ if (directory != null) filename += directory + SEPARATOR; if (files != null && files.length > 0) filename += files[0]; nsEmbedString path = new nsEmbedString (filename); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aFile, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int GetFile (int /*long*/ aFile) { String filename = ""; //$NON-NLS-1$ if (directory != null) filename += directory + SEPARATOR; if (files != null && files.length > 0) filename += files[0]; nsEmbedString path = new nsEmbedString (filename); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aFile, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int GetFile (long /*int*/ aFile) { String filename = ""; //$NON-NLS-1$ if (directory != null) filename += directory + SEPARATOR; if (files != null && files.length > 0) filename += files[0]; nsEmbedString path = new nsEmbedString (filename); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aFile, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
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 (); }
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 (); }