rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); error (rc); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR10); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());
rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); error (rc); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR10); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());
rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); error (rc); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR10); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());
rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); error (rc); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR10); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR1_9_2); rc = XPCOM.NS_InitXPCOM2 (0, localFile.getAddress(), LocationProvider.getAddress ());
if (rc == XPCOM.NS_OK && result[0] != 0) { new nsISupports (result[0]).Release (); MozillaVersion.SetCurrentVersion (i); break;
if (rc == XPCOM.NS_OK && result[0] != 0) { new nsISupports (result[0]).Release (); MozillaVersion.SetCurrentVersion (i); break;
if (rc == XPCOM.NS_OK && result[0] != 0) { new nsISupports (result[0]).Release (); MozillaVersion.SetCurrentVersion (i); break;
if (rc == XPCOM.NS_OK && result[0] != 0) { new nsISupports (result[0]).Release (); MozillaVersion.SetCurrentVersion (i); break;