Tempus XPI für StPölten Extern

This commit is contained in:
Andreas Österreicher
2008-01-18 11:25:50 +00:00
parent b80a2aeda8
commit 53463204d8
6 changed files with 95 additions and 0 deletions
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<RDF:Seq about="urn:mozilla:package:root">
<RDF:li resource="urn:mozilla:package:tempusextern" />
</RDF:Seq>
<RDF:Description about="urn:mozilla:package:tempusextern"
chrome:extension="false"
chrome:name="TempusExtern"
chrome:displayName="TempusExtern"
chrome:author="TW"
/>
</RDF:RDF>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!DOCTYPE window >
<window id="fas" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="TempusExtern"
width="800"
height="600"
persist="screenX screenY width height sizemode"
onclose="return document.getElementById('fas_browser').contentWindow.closeWindow()"
>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<browser id="tempus_browser" type="content-primary" flex="1" src="https://tempus.fhstp.ac.at:80/content/tempus.xul.php"/>
</window>
@@ -0,0 +1,43 @@
/* !!!
* DIESE WERTE MUESSEN GEAENDERT WERDEN
*/
const APP_DISPLAY_NAME = "TempusExtern";
const APP_NAME = "TempusExtern";
const APP_PACKAGE = "/tw/tempusextern";
const APP_VERSION = "V2.0";
const APP_JAR_FILE = "tempusextern.jar";
const APP_CONTENT_FOLDER = "content/";
const APP_LOCALE_FOLDER = "locale/de-AT/Tempus/";
const APP_SKIN_FOLDER = "skin/";
/* aus
*/
initInstall(APP_NAME, APP_PACKAGE, APP_VERSION);
var chromef = getFolder("Profile", "chrome");
var instFlags = PROFILE_CHROME;
var err = addFile(APP_PACKAGE, APP_VERSION, "chrome/" + APP_JAR_FILE, chromef, null);
if(err >= SUCCESS) {
var jar = getFolder(chromef, APP_JAR_FILE);
registerChrome(CONTENT | instFlags, jar, APP_CONTENT_FOLDER);
//registerChrome(LOCALE | instFlags, jar, APP_LOCALE_FOLDER);
//registerChrome(SKIN | instFlags, jar, APP_SKIN_FOLDER);
err = performInstall();
if(err == SUCCESS) {
alert(APP_NAME + " " + APP_VERSION + " wurde erfolgreich installiert.\n"
+"Bitte starten Sie den Browser neu bevor Sie die Anwendung starten.");
} else {
alert("Install failed. Error code:" + err);
cancelInstall(err);
}
} else {
alert("Failed to create " +APP_JAR_FILE +"\n"
+"You probably don't have appropriate permissions \n"
+"(write access to Profile/chrome directory). \n"
+"_____________________________\nError code:" + err);
cancelInstall(err);
}
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>{84cb81c9-6c90-4654-b2c4-87cdaa829281}</em:id>
<em:name>TempusExtern</em:name>
<em:version>2.0</em:version>
<em:description>TempusExtern</em:description>
<em:file>
<Description about="urn:mozilla:extension:file:tempusextern.jar">
<em:package>content/</em:package>
<em:skin>skin/</em:skin>
</Description>
</em:file>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.7</em:minVersion>
<em:maxVersion>1.8+</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>