diff --git a/ucc/ucc.api/.classpath b/ucc/ucc.api/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..055ab88b47c463d04379e9012c9988e1ee094256 --- /dev/null +++ b/ucc/ucc.api/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/java"/> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"/> + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> + <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ucc/ucc.api/.project b/ucc/ucc.api/.project new file mode 100644 index 0000000000000000000000000000000000000000..7926ee25e70ce83717dd300d0919a22a028c9b75 --- /dev/null +++ b/ucc/ucc.api/.project @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ucc.api</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.wst.common.project.facet.core.builder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.maven.ide.eclipse.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.maven.ide.eclipse.maven2Nature</nature> + <nature>org.eclipse.wst.common.project.facet.core.nature</nature> + </natures> +</projectDescription> diff --git a/ucc/ucc.api/.settings/org.eclipse.jdt.core.prefs b/ucc/ucc.api/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..74d46f7a8b39ce807bfa6fba6ff8628a44c77862 --- /dev/null +++ b/ucc/ucc.api/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,13 @@ +#Mon Jul 25 12:22:18 CEST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/ucc/ucc.api/.settings/org.maven.ide.eclipse.prefs b/ucc/ucc.api/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 0000000000000000000000000000000000000000..e465529f355e4e437928261ed5371ed8b58cc31b --- /dev/null +++ b/ucc/ucc.api/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,9 @@ +#Fri Jul 15 11:05:10 CEST 2011 +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +includeModules=false +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/ucc/ucc.api/pom.xml b/ucc/ucc.api/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..fac677ee00b9079b5b542a906aec9046aac54eb2 --- /dev/null +++ b/ucc/ucc.api/pom.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.pom</artifactId> + <version>1.0.0</version> + <relativePath>../ucc.pom/pom.xml</relativePath> + </parent> + <artifactId>ucc.api</artifactId> + <version>0.0.1</version> + <name>API for the uCC</name> + <description>This API contains of interfaces for a model, a view and the core itself.</description> + <packaging>bundle</packaging> + <dependencies> + <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.osgi.core</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>org.universAAL.middleware</groupId> + <artifactId>mw.data.representation</artifactId> + <version>0.3.0-SNAPSHOT</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-Name>${project.name}</Bundle-Name> + <Bundle-Activator>org.universAAL.ucc.api.Activator</Bundle-Activator> + <Bundle-Description>${project.description}</Bundle-Description> + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> + <Private-Package>org.universAAL.ucc.api.*</Private-Package> + <Export-Package>org.universAAL.ucc.api.core.*,org.universAAL.ucc.api.model.*,org.universAAL.ucc.api.view.*</Export-Package> + </instructions> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <id>central</id> + <name>Central Maven Repository</name> + <url>http://repo1.maven.org/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>apache-snapshots</id> + <name>Apache Snapshots</name> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <updatePolicy>daily</updatePolicy> + </snapshots> + </repository> + <repository> + <id>uaal</id> + <name>universAAL Repositories</name> + <url>http://depot.universaal.org/maven-repo/releases/</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>uaal-snapshots</id> + <name>universAAL Snapshot Repositories</name> + <url>http://depot.universaal.org/maven-repo/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> +</project> diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/Activator.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/Activator.java new file mode 100644 index 0000000000000000000000000000000000000000..ec5d176da4f6372fde5d2e2a8236a0c45447fa60 --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/Activator.java @@ -0,0 +1,16 @@ +package org.universAAL.ucc.api; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator{ + public static BundleContext context=null; + + public void start(BundleContext context) throws Exception { + Activator.context=context; + } + + public void stop(BundleContext arg0) throws Exception { + } + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IConfigurator.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IConfigurator.java new file mode 100644 index 0000000000000000000000000000000000000000..43b1db3151b2ac7487d5035efdf1bf4a7bb817e2 --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IConfigurator.java @@ -0,0 +1,15 @@ +package org.universAAL.ucc.api.core; + +import java.util.ArrayList; +import java.util.HashMap; + +import org.osgi.framework.Bundle; +import org.universAAL.middleware.owl.ManagedIndividual; + +public interface IConfigurator { + + public ManagedIndividual[] getOntologyContent(String uri); + public void performConfiguration(String Path); + public String finishConfiguration(String appName, ArrayList<Bundle> bundles, HashMap<String,String> conf); + public void testAMethod(); +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IDeinstaller.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IDeinstaller.java new file mode 100644 index 0000000000000000000000000000000000000000..3619fc0d23d4ac6cafaf3aab4ee442c1b4908f90 --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IDeinstaller.java @@ -0,0 +1,7 @@ +package org.universAAL.ucc.api.core; + +public interface IDeinstaller { + + public boolean deinstallAppication(String appName); + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IInformation.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IInformation.java new file mode 100644 index 0000000000000000000000000000000000000000..101a2c94c349bdefa79616c1cfc727ffa6a338dd --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IInformation.java @@ -0,0 +1,10 @@ +package org.universAAL.ucc.api.core; + +import org.osgi.framework.Bundle; + +public interface IInformation { + + public String[] activeBundles(); + public Bundle[] bundles(); + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IInstaller.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IInstaller.java new file mode 100644 index 0000000000000000000000000000000000000000..2737e90d07f6e0a0b69f1cd0b0e9dc9b6df47941 --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/core/IInstaller.java @@ -0,0 +1,15 @@ +package org.universAAL.ucc.api.core; + +import java.io.File; +import java.util.ArrayList; + +import org.osgi.framework.Bundle; + +public interface IInstaller { + + public String installApplication(String path) throws Exception; + public ArrayList<Bundle> getInstalledBundles(); + public void resetBundles(); + public void revertInstallation(File folder); + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IApplicationManagment.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IApplicationManagment.java new file mode 100644 index 0000000000000000000000000000000000000000..c9a5df51366cd28e3166a12a2ee4e09531972908 --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IApplicationManagment.java @@ -0,0 +1,18 @@ +package org.universAAL.ucc.api.model; + +import java.util.List; +import java.util.Map; + +public interface IApplicationManagment { + + public List<String> getInstalledApplications(); + public List<String> getAllInstalledBundles(); + public List<String> getInstalledBundles(String appName); + public boolean containsApplication(String appName); + public List<String> getBundles(String appName); + public boolean isEmpty(); + public Map<String, String> getConfiguration(String bundleName); + + + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IApplicationRegistration.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IApplicationRegistration.java new file mode 100644 index 0000000000000000000000000000000000000000..04171cae9bbba0925ea39d0c1cf2c55fadf0361d --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IApplicationRegistration.java @@ -0,0 +1,16 @@ +package org.universAAL.ucc.api.model; + +import java.util.Map; + +public interface IApplicationRegistration { + + public boolean unregisterApplication(String appName); + public boolean unregisterBundle(String appName, String bundleName); + public boolean registerBundle(String appName, String bundleName); + public boolean registerApplication(String appName, Map<String, String> configuration); + public boolean writeToConfigFile(String appName, String rundir); + public boolean removeConfigFile(String appName, String rundir); + + + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IModel.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IModel.java new file mode 100644 index 0000000000000000000000000000000000000000..8f32585816dce47a5ef26127f4d10b3001d2c4fa --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/model/IModel.java @@ -0,0 +1,8 @@ +package org.universAAL.ucc.api.model; + +public interface IModel { + + public IApplicationRegistration getApplicationRegistration(); + public IApplicationManagment getApplicationManagment(); + +} diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/view/IMainWindow.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/view/IMainWindow.java new file mode 100644 index 0000000000000000000000000000000000000000..cf8c2d852b4ba844335671c218647027054feed0 --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/view/IMainWindow.java @@ -0,0 +1,24 @@ +package org.universAAL.ucc.api.view; + +/** + * @author Alex + * @version 1.0 + * @created 11-Jul-2011 16:45:44 + */ +public interface IMainWindow { + + /** + * + * @param subWindow + */ + public void addSubWindow(ISubWindow subWindow); + + /** + * + * @param subWindow + */ + public void closeSubWindow(ISubWindow subWindow); + + public boolean initialize(); + +} \ No newline at end of file diff --git a/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/view/ISubWindow.java b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/view/ISubWindow.java new file mode 100644 index 0000000000000000000000000000000000000000..9ba0450daf19efd74f994f9da58205f915171a2c --- /dev/null +++ b/ucc/ucc.api/src/main/java/org/universAAL/ucc/api/view/ISubWindow.java @@ -0,0 +1,14 @@ +package org.universAAL.ucc.api.view; + +/** + * @author Alex + * @version 1.0 + * @created 11-Jul-2011 16:45:44 + */ +public interface ISubWindow { + + public boolean close(); + + public void initialize(); + +} \ No newline at end of file diff --git a/ucc/ucc.api/target/surefire/surefire2583154354675666403tmp b/ucc/ucc.api/target/surefire/surefire2583154354675666403tmp new file mode 100644 index 0000000000000000000000000000000000000000..86dc02d2f1ebdfbf43de8e7218e533b378e8f461 --- /dev/null +++ b/ucc/ucc.api/target/surefire/surefire2583154354675666403tmp @@ -0,0 +1,5 @@ +#surefire +#Fri Jul 29 13:35:00 CEST 2011 +user.dir=C\:\\workspaces\\uAAL\\ucc\\ucc.api +localRepository=C\:\\Users\\yumusak\\.m2\\repository +basedir=C\:\\workspaces\\uAAL\\ucc\\ucc.api diff --git a/ucc/ucc.api/target/surefire/surefire8662281098044749752tmp b/ucc/ucc.api/target/surefire/surefire8662281098044749752tmp new file mode 100644 index 0000000000000000000000000000000000000000..ee69c5c152865030a31efc9e0b69bcbf998dda5d --- /dev/null +++ b/ucc/ucc.api/target/surefire/surefire8662281098044749752tmp @@ -0,0 +1,26 @@ +#surefire +#Fri Jul 29 13:34:59 CEST 2011 +testClassesDirectory=C\:\\workspaces\\uAAL\\ucc\\ucc.api\\target\\test-classes +classPathUrl.4=C\:\\Users\\yumusak\\.m2\\repository\\org\\ops4j\\pax\\logging\\pax-logging-api\\1.4\\pax-logging-api-1.4.jar +forkMode=once +classPathUrl.3=C\:\\Users\\yumusak\\.m2\\repository\\org\\universAAL\\middleware\\mw.data.representation\\0.3.0-SNAPSHOT\\mw.data.representation-0.3.0-SNAPSHOT.jar +classPathUrl.2=C\:\\Users\\yumusak\\.m2\\repository\\org\\apache\\felix\\org.osgi.core\\1.0.1\\org.osgi.core-1.0.1.jar +useManifestOnlyJar=true +classPathUrl.1=C\:\\workspaces\\uAAL\\ucc\\ucc.api\\target\\classes +reportsDirectory=C\:\\workspaces\\uAAL\\ucc\\ucc.api\\target\\surefire-reports +classPathUrl.0=C\:\\workspaces\\uAAL\\ucc\\ucc.api\\target\\test-classes +providerConfiguration=org.apache.maven.surefire.junit.JUnit3Provider +testSuiteDefinitionTestSourceDirectory=C\:\\workspaces\\uAAL\\ucc\\ucc.api\\src\\test\\java +surefireClassPathUrl.1=C\:\\Users\\yumusak\\.m2\\repository\\org\\apache\\maven\\surefire\\surefire-api\\2.9\\surefire-api-2.9.jar +surefireClassPathUrl.0=C\:\\Users\\yumusak\\.m2\\repository\\org\\apache\\maven\\surefire\\surefire-junit3\\2.9\\surefire-junit3-2.9.jar +runOrder=filesystem +useSystemClassLoader=true +excludes0=**/*$* +isTrimStackTrace=true +enableAssertions=true +includes2=**/*TestCase.java +failIfNoTests=false +includes1=**/*Test.java +includes0=**/Test*.java +childDelegation=false +classPathUrl.5=C\:\\Users\\yumusak\\.m2\\repository\\org\\ops4j\\pax\\logging\\pax-logging-service\\1.4\\pax-logging-service-1.4.jar diff --git a/ucc/ucc.api/target/surefire/surefirebooter7398767704529591451.jar b/ucc/ucc.api/target/surefire/surefirebooter7398767704529591451.jar new file mode 100644 index 0000000000000000000000000000000000000000..9071d96d5797864a7fd6be14970b3abbcbcc0dcd Binary files /dev/null and b/ucc/ucc.api/target/surefire/surefirebooter7398767704529591451.jar differ diff --git a/ucc/ucc.api/target/ucc.api-0.0.1.jar b/ucc/ucc.api/target/ucc.api-0.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..5dcaf32e2ee123857417a0c733324f01a0da709e Binary files /dev/null and b/ucc/ucc.api/target/ucc.api-0.0.1.jar differ diff --git a/ucc/ucc.core/.classpath b/ucc/ucc.core/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..505c7192a516c57aff1e56ee8f44ccc0f9f7b4fd --- /dev/null +++ b/ucc/ucc.core/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/java"/> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"/> + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/> + <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ucc/ucc.core/.project b/ucc/ucc.core/.project new file mode 100644 index 0000000000000000000000000000000000000000..18ce0de92e0e8e0f7f9d50e3407c1784fc04f9dc --- /dev/null +++ b/ucc/ucc.core/.project @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ucc.core</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.wst.common.project.facet.core.builder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.maven.ide.eclipse.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.maven.ide.eclipse.maven2Nature</nature> + <nature>org.eclipse.wst.common.project.facet.core.nature</nature> + </natures> +</projectDescription> diff --git a/ucc/ucc.core/.settings/org.eclipse.jdt.core.prefs b/ucc/ucc.core/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..2883c40863fa80083551c37d6eecfa0bb7535722 --- /dev/null +++ b/ucc/ucc.core/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,13 @@ +#Fri Jul 15 17:23:12 CEST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/ucc/ucc.core/.settings/org.maven.ide.eclipse.prefs b/ucc/ucc.core/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 0000000000000000000000000000000000000000..f46ba52d64bafe8f841053f8eed388c59ead79c6 --- /dev/null +++ b/ucc/ucc.core/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,9 @@ +#Fri Jul 15 11:49:55 CEST 2011 +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +includeModules=false +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/ucc/ucc.core/pom.xml b/ucc/ucc.core/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..66ad584d4894d8f5b5393f644388a1ec121de748 --- /dev/null +++ b/ucc/ucc.core/pom.xml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.pom</artifactId> + <version>1.0.0</version> + <relativePath>../ucc.pom/pom.xml</relativePath> + </parent> + <artifactId>ucc.core</artifactId> + <version>0.0.1</version> + <name>Core of the uCC</name> + <description>Provides the main functionalities of the uCC.</description> + <packaging>bundle</packaging> + <dependencies> + <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.osgi.core</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>org.universAAL.middleware</groupId> + <artifactId>mw.data.representation</artifactId> + <version>0.3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.universAAL.middleware</groupId> + <artifactId>mw.bus.model</artifactId> + <version>0.3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.universAAL.middleware</groupId> + <artifactId>mw.bus.io</artifactId> + <version>0.3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.api</artifactId> + <version>0.0.1</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-Name>${project.name}</Bundle-Name> + <Bundle-Activator>org.universAAL.ucc.core.Activator</Bundle-Activator> + <Bundle-Description>${project.description}</Bundle-Description> + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> + <Private-Package>org.universAAL.ucc.core.*</Private-Package> + </instructions> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <id>central</id> + <name>Central Maven Repository</name> + <url>http://repo1.maven.org/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>apache-snapshots</id> + <name>Apache Snapshots</name> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <updatePolicy>daily</updatePolicy> + </snapshots> + </repository> + <repository> + <id>uaal</id> + <name>universAAL Repositories</name> + <url>http://depot.universaal.org/maven-repo/releases/</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>uaal-snapshots</id> + <name>universAAL Snapshot Repositories</name> + <url>http://depot.universaal.org/maven-repo/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> +</project> diff --git a/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/Activator.java b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/Activator.java new file mode 100644 index 0000000000000000000000000000000000000000..7b4efab7f7378a875e28d091220095e256cb4e80 --- /dev/null +++ b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/Activator.java @@ -0,0 +1,121 @@ +package org.universAAL.ucc.core; + +import java.io.File; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; +import org.osgi.framework.ServiceReference; +import org.universAAL.middleware.io.rdf.Form; +import org.universAAL.middleware.io.rdf.Group; +import org.universAAL.middleware.io.rdf.InputField; +import org.universAAL.middleware.io.rdf.Label; +import org.universAAL.middleware.io.rdf.Select1; +import org.universAAL.middleware.io.rdf.Submit; +import org.universAAL.middleware.io.rdf.TextArea; +import org.universAAL.middleware.rdf.PropertyPath; +import org.universAAL.middleware.sodapop.msg.MessageContentSerializer; + +import org.universAAL.ucc.api.core.IConfigurator; +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.api.core.IInformation; +import org.universAAL.ucc.api.core.IInstaller; +import org.universAAL.ucc.api.model.IModel; +import org.universAAL.ucc.core.configuration.Configurator; +import org.universAAL.ucc.core.information.Information; +import org.universAAL.ucc.core.installation.Deinstaller; +import org.universAAL.ucc.core.installation.Installer; + +/** + * The uCCCore is the connection to the OSGi Framework and therefore need to have + * an Activator. Other part of the uCC (View and Plug-Ins) not necessary need to + * be valid bundles and maybe can get there information from the core (if needed). + * @author amarinc + * @version 1.0 + * @updated 11-Jul-2011 16:37:33 + */ +public class Activator implements BundleActivator { + private static BundleContext context = null; + private static String rundir = "c:"+File.separator; + + private static MessageContentSerializer contentSerializer = null; + + private static IModel model = null; + + private IInstaller installer = null; + private IDeinstaller deinstaller = null; + private IInformation information = null; + private IConfigurator configurator = null; + + public static IModel getModel() { + return model; + } + + public static synchronized void testForm() { + //if (Constants.debugMode()) { + if (contentSerializer == null) { + ServiceReference sr = context.getServiceReference(MessageContentSerializer.class.getName()); + if (sr == null) + return; + + contentSerializer = (MessageContentSerializer) context.getService(sr); + } + + Form f = Form.newDialog("TestForm", (String)null); + Group controls = f.getIOControls(); + Group submits = f.getSubmits(); + + new InputField(controls,new Label("Your Adress:",(String)null),new PropertyPath(null,false,new String[]{"http://myinput#InputField1"}),null,""); + new InputField(controls,new Label("Your Phone-Number:",(String)null),new PropertyPath(null,false,new String[]{"http://myinput#InputField2"}),null,""); + Select1 ms1=new Select1(controls,new Label("Enable SMS Messages:",(String)null),new PropertyPath(null, false, new String[]{"http://myinput#MySelect"}),null,""); + ms1.generateChoices(new String[]{"Yes", "No"}); + new TextArea(controls,new Label("SMS message text (optional)",(String)null),new PropertyPath(null,false,new String[]{"http://myinput#MyTextArea"}),null,""); + + Label labelBoton = new Label("OK",null); + new Submit(submits,labelBoton,"OK_TEST"); + + String str = contentSerializer.serialize(f); + System.out.println(); + System.out.println(str); + System.out.println(); + //} + } + + public static String getRundir() { + return rundir; + } + + public void start(BundleContext context) throws Exception { + Activator.context = context; + ServiceReference sr = context.getServiceReference(IModel.class.getName()); + if (sr == null) + return; + Object o = context.getService(sr); + Activator.model = (IModel)o; + + String bundlePath = Activator.context.getBundle().getLocation(); + Activator.rundir = bundlePath.substring(bundlePath.indexOf("/")+1,bundlePath.lastIndexOf("/")); + Activator.rundir= Activator.rundir.replace("/", "\\"); + + this.installer = new Installer(context); + this.deinstaller = new Deinstaller(context); + this.information = new Information(context); + this.configurator = new Configurator(context); + + context.registerService(new String[] { IInstaller.class.getName() }, installer, null); + context.registerService(new String[] { IDeinstaller.class.getName() }, deinstaller, null); + context.registerService(new String[] { IInformation.class.getName() }, information, null); + context.registerService(new String[] { IConfigurator.class.getName() }, configurator, null); + + + + + + //Activator.model.getApplicationRegistration().registerApplicaton("testApp"); + + } + + public void stop(BundleContext arg0) throws Exception { + + } + +} \ No newline at end of file diff --git a/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/configuration/Configurator.java b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/configuration/Configurator.java new file mode 100644 index 0000000000000000000000000000000000000000..cb8ce439286f90af285c943b6bd19d330256095d --- /dev/null +++ b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/configuration/Configurator.java @@ -0,0 +1,90 @@ +package org.universAAL.ucc.core.configuration; + +import java.util.ArrayList; +import java.util.Dictionary; +import java.util.HashMap; +import java.util.Iterator; + +import org.osgi.framework.Bundle; +import org.osgi.framework.BundleContext; +import org.osgi.framework.BundleException; +import org.universAAL.middleware.owl.ManagedIndividual; +import org.universAAL.ucc.api.core.IConfigurator; +import org.universAAL.ucc.core.Activator; + + +/** + * @author Alex + * @version 1.0 + * @created 11-Jul-2011 15:57:26 + */ +public class Configurator implements IConfigurator { + private BundleContext context; + + public Configurator(BundleContext con){ + context=con; + } + + public void finalize() throws Throwable { + + } + + /** + * Path = Path to configuration file + * + * @param Path Path to Configuration-File is needed + */ + private void checkIfConfigurationNeeded(String Path){ + + } + + /** + * Solve meta-information for concepts (like "this field should contains all + * instances of oven") + * + * @param uri + */ + public ManagedIndividual[] getOntologyContent(String uri){ + return null; + } + + public String finishConfiguration(String appName, ArrayList<Bundle> bundles, HashMap<String,String> conf){ + if(!Activator.getModel().getApplicationRegistration().registerApplication(appName, conf)) + return "App Registration failed!"; + if(!Activator.getModel().getApplicationRegistration().writeToConfigFile(appName,Activator.getRundir())) + return "Error writing Configuration File!"; + Iterator<Bundle> itr=bundles.iterator(); + while(itr.hasNext()){ + Bundle b=itr.next(); + if(!Activator.getModel().getApplicationRegistration().registerBundle(appName, generateBundleName(b))) + return "Bundle Registration failed!"; + if(b.getState()==Bundle.INSTALLED){ + try { + b.start(); + } catch (BundleException e) { + + return "Error starting Bundle "+b.getSymbolicName()+": "+e.getMessage(); + } + } + } + + return null; + } + private String generateBundleName(Bundle bundle){ + Dictionary dict = bundle.getHeaders(); + return(bundle.getSymbolicName()+"_"+dict.get("Bundle-Version")); + } + + /** + * + * @param Path + */ + public void performConfiguration(String Path){ + + } + + public void testAMethod(){ + System.out.println("This is a Test!"); + } + +} \ No newline at end of file diff --git a/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/information/Information.java b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/information/Information.java new file mode 100644 index 0000000000000000000000000000000000000000..d600a1139aafb00eb606c262898c7cfaede55741 --- /dev/null +++ b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/information/Information.java @@ -0,0 +1,36 @@ +package org.universAAL.ucc.core.information; + +import java.util.ArrayList; + +import org.osgi.framework.Bundle; +import org.osgi.framework.BundleContext; +import org.universAAL.ucc.api.core.IInformation; + +public class Information implements IInformation { + + private BundleContext context = null; + + public Information(BundleContext context) { + this.context = context; + } + + @Override + public String[] activeBundles() { + Bundle[] bundles = context.getBundles(); + ArrayList<String> activeBundles = new ArrayList<String>(); + + for (int i = 0; i<bundles.length; i++) + if (bundles[i].getState() == Bundle.ACTIVE) + activeBundles.add(bundles[i].getSymbolicName()); + + String[] result = new String[activeBundles.size()]; + + return activeBundles.toArray(result); + } + + @Override + public Bundle[] bundles() { + return context.getBundles(); + } + +} diff --git a/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/ApplicationManager.java b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/ApplicationManager.java new file mode 100644 index 0000000000000000000000000000000000000000..8f2d1cbd46e18e9f654c522e3c473de70000c8c1 --- /dev/null +++ b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/ApplicationManager.java @@ -0,0 +1,19 @@ +package org.universAAL.ucc.core.installation; + +import java.io.File; + +public class ApplicationManager { + + public String[] getInstalledApps() { + return new String[0]; + } + + protected String[] getRelatedFiles(String appName) { + return new String[0]; + } + + protected String generateAppName(String path) { + return path; + } + +} diff --git a/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/Deinstaller.java b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/Deinstaller.java new file mode 100644 index 0000000000000000000000000000000000000000..e9e9577b989f5f11d2792e78a8ac2f04507ed22a --- /dev/null +++ b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/Deinstaller.java @@ -0,0 +1,87 @@ +package org.universAAL.ucc.core.installation; + +import java.io.File; +import java.util.ArrayList; +import java.util.Dictionary; +import java.util.Iterator; +import java.util.List; + +import org.osgi.framework.Bundle; +import org.osgi.framework.BundleContext; +import org.osgi.framework.BundleException; +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.api.model.IApplicationManagment; +import org.universAAL.ucc.api.model.IApplicationRegistration; +import org.universAAL.ucc.core.Activator; + + +public class Deinstaller extends ApplicationManager implements IDeinstaller { + private IApplicationManagment manager=Activator.getModel().getApplicationManagment(); + private IApplicationRegistration register= Activator.getModel().getApplicationRegistration(); + private BundleContext context; + + public Deinstaller(BundleContext con){ + context=con; + } + + public boolean deinstallAppication(String appName) { + if(manager.containsApplication(appName)){ + List<String> bundles=manager.getBundles(appName); +// Iterator<String> itr=bundles.iterator(); +// while(itr.hasNext()){ +// String bundleName = itr.next(); +// if(!deinstallBundle(appName, bundleName)) +// return false; +// } + removeData(appName, bundles); + Activator.getModel().getApplicationRegistration().removeConfigFile(appName,Activator.getRundir()); + register.unregisterApplication(appName); + System.out.println("Deinstalled "+appName); + return true; + }else{ + return false; + } + + } + +// private boolean deinstallBundle(String appName, String bundleName) { +// List<String> list = new ArrayList<String>(); +// list.add(bundleName); +// removeData("real Dir to come..", list); +// return register.unregisterBundle(appName, bundleName); +// } + + private boolean removeData(String appDir, List<String> bundles){ + Bundle[] installedBundles=context.getBundles(); + Iterator<String> itr= bundles.iterator(); + String version,name; + String versionInstalled,nameInstalled; + while(itr.hasNext()){ + String[] temp=itr.next().split("_"); + name=temp[0]; + version=temp[1]; + for(int i=0;i<installedBundles.length;i++){ + Dictionary dict = installedBundles[i].getHeaders(); + nameInstalled=installedBundles[i].getSymbolicName(); + versionInstalled=(String) dict.get("Bundle-Version"); + if(name.equals(nameInstalled)& version.equals(versionInstalled)) + try { + installedBundles[i].uninstall(); + } catch (BundleException e) { + return false; + } + } + } +// deleteFolder(new File(appDir)); + return true; + } + public static void deleteFolder(File folder){ + File[] df=folder.listFiles(); + if(df==null) return; + for(int i=0;i<df.length;i++){ + df[i].delete(); + } + folder.delete(); + } + +} diff --git a/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/Installer.java b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/Installer.java new file mode 100644 index 0000000000000000000000000000000000000000..5897d9e8bfc5cad302af568dd6d0be27105459c7 --- /dev/null +++ b/ucc/ucc.core/src/main/java/org/universAAL/ucc/core/installation/Installer.java @@ -0,0 +1,187 @@ +package org.universAAL.ucc.core.installation; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.Enumeration; +import java.util.Iterator; +import java.util.jar.JarEntry; +import java.util.jar.JarFile; + + +import org.osgi.framework.Bundle; +import org.osgi.framework.BundleContext; +import org.osgi.framework.BundleException; +import org.universAAL.ucc.api.core.IInstaller; +import org.universAAL.ucc.core.Activator; + + +/** + * @author Alex + * @version 1.0 + * @created 11-Jul-2011 15:57:26 + */ +public class Installer extends ApplicationManager implements IInstaller { + + private BundleContext context; + private ArrayList<Bundle> installedBundles=new ArrayList<Bundle>(); + public Installer(BundleContext con) { + context=con; + } + + public Installer(String path) throws Exception { + installApplication(path); + } + + public void finalize() throws Throwable { + System.out.println(); + } + + /** + * + * @param Path + * @throws Exception + */ + public String installApplication(String path) throws Exception { + //Activator.getModel().getApplicationRegistration().writeToConfigFile("test"); + + String exdir=extractBundles(path); + if(exdir==null)throw new Exception("Error extracting uaal Package"); + File appDir=new File(exdir); + checkApplicationForInstall(appDir); + String[] bundlelist=appDir.list(); + for(int i=0;i<bundlelist.length;i++){ + if(bundlelist[i].endsWith(".jar")){ + Bundle temp=installBundle(exdir+File.separator+bundlelist[i]); + if(temp==null){ + revertInstallation(appDir); + throw new Exception("Error installing Bundle "+ bundlelist[i]); + } + installedBundles.add(temp); + } + } + return exdir; + } + + /** + * Is bundle valid? All need files available? Dependencies to check and all + * right? Check if concrete instances available (but how)? + * + * @param Path + * @throws Exception + */ + private void checkApplicationForInstall(File folder) throws Exception { + String[] content = folder.list(); + boolean jarok=false; + boolean configok=false; + boolean eulaok=false; + for(int i=0;i<content.length;i++){ + if(content[i].endsWith(".jar")) jarok=true; + if(content[i].equals("config.xml")) configok=true; + if(content[i].equals("EULA.txt")) eulaok=true; + } + if(!jarok) throw new Exception("There is no installable jar File in uaal Package!"); + if(!configok) throw new Exception("config.xml file not found!"); + if(!eulaok) throw new Exception("No License agreement found!"); + } + + + + /** + * + * @param Path + */ + private Bundle installBundle(String path) { + try { + + Bundle neu=context.installBundle("file:"+path); + System.out.println("===================================="); + System.out.println("BundleID: "+neu.getBundleId()); + System.out.println("Location: "+neu.getLocation()); + System.out.println("state: "+neu.getState()); + System.out.println("symbolic Name: "+neu.getSymbolicName()); + System.out.println("===================================="); + return neu; + } catch (BundleException e) { + System.out.println("Error installing bundle"); + return null; + } + } + public ArrayList<Bundle> getInstalledBundles(){ + return installedBundles; + } + public void resetBundles(){ + installedBundles.clear(); + } + + public boolean copy(File inputFile, File outputFile) { + try { + FileReader in = new FileReader(inputFile); + FileWriter out = new FileWriter(outputFile); + int c; + + while ((c = in.read()) != -1) + out.write(c); + + in.close(); + out.close(); + } catch (Exception e) { + return false; + } + return true; + } + + +private String extractBundles(String path) { + + String destDir = path.substring(path.lastIndexOf(File.separator) + 1,path.lastIndexOf(".")); + destDir =Activator.getRundir() + File.separator + destDir; + File appDir=new File(destDir); + int suffix=1; + while(appDir.exists()){ + destDir=destDir.substring(0, destDir.length())+suffix; + appDir=new File(destDir); + suffix++; + } + appDir.mkdir(); + try { + JarFile jar; + jar = new JarFile(path); + Enumeration<JarEntry> e = jar.entries(); + while (e.hasMoreElements()) { + JarEntry file = (JarEntry) e.nextElement(); + File f = new File(destDir + File.separator + file.getName()); + InputStream is = jar.getInputStream(file); // get the input stream + FileOutputStream fos = new java.io.FileOutputStream(f); + while (is.available() > 0) { // write contents of 'is' to 'fos' + fos.write(is.read()); + } + fos.close(); + is.close(); + } + return destDir; + } catch (IOException e1) { + Deinstaller.deleteFolder(appDir); + return null; + } + } + +public void revertInstallation(File folder){ + Iterator<Bundle> itr=installedBundles.iterator(); + while(itr.hasNext()){ + try { + Bundle b=itr.next(); + if(!(b.getState()==Bundle.UNINSTALLED)) + b.uninstall(); + } catch (BundleException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + Deinstaller.deleteFolder(folder); +} +} \ No newline at end of file diff --git a/ucc/ucc.core/target/ucc.core-0.0.1.jar b/ucc/ucc.core/target/ucc.core-0.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..f7eb5f72f273b8215d457f5d1376b60bb2860435 Binary files /dev/null and b/ucc/ucc.core/target/ucc.core-0.0.1.jar differ diff --git a/ucc/ucc.model/.classpath b/ucc/ucc.model/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..505c7192a516c57aff1e56ee8f44ccc0f9f7b4fd --- /dev/null +++ b/ucc/ucc.model/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/java"/> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"/> + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/> + <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ucc/ucc.model/.project b/ucc/ucc.model/.project new file mode 100644 index 0000000000000000000000000000000000000000..9f094e60890c4fd272bf679264cb682e93b47670 --- /dev/null +++ b/ucc/ucc.model/.project @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ucc.model</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.wst.common.project.facet.core.builder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.maven.ide.eclipse.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.maven.ide.eclipse.maven2Nature</nature> + <nature>org.eclipse.wst.common.project.facet.core.nature</nature> + </natures> +</projectDescription> diff --git a/ucc/ucc.model/.settings/org.eclipse.jdt.core.prefs b/ucc/ucc.model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..922656a558897b507ad0f52dfaf05f45603ad1a2 --- /dev/null +++ b/ucc/ucc.model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,13 @@ +#Fri Jul 15 17:22:59 CEST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/ucc/ucc.model/.settings/org.maven.ide.eclipse.prefs b/ucc/ucc.model/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 0000000000000000000000000000000000000000..f46ba52d64bafe8f841053f8eed388c59ead79c6 --- /dev/null +++ b/ucc/ucc.model/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,9 @@ +#Fri Jul 15 11:49:55 CEST 2011 +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +includeModules=false +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/ucc/ucc.model/pom.xml b/ucc/ucc.model/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..eeec937a3d904652dbfb4b5bad877a31ccd8fe4d --- /dev/null +++ b/ucc/ucc.model/pom.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.pom</artifactId> + <version>1.0.0</version> + <relativePath>../ucc.pom/pom.xml</relativePath> + </parent> + <artifactId>ucc.model</artifactId> + <version>0.0.1</version> + <name>Model of the uCC</name> + <description>This bundle is responsible to manage all needed data for the uCC like listing of installed applications.</description> + <packaging>bundle</packaging> + <dependencies> + <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.osgi.core</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>org.universAAL.middleware</groupId> + <artifactId>mw.data.representation</artifactId> + <version>0.3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.api</artifactId> + <version>0.0.1</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-Name>${project.name}</Bundle-Name> + <Bundle-Activator>org.universAAL.ucc.model.Activator</Bundle-Activator> + <Bundle-Description>${project.description}</Bundle-Description> + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> + <Private-Package>org.universAAL.ucc.model.*</Private-Package> + </instructions> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <id>central</id> + <name>Central Maven Repository</name> + <url>http://repo1.maven.org/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>apache-snapshots</id> + <name>Apache Snapshots</name> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <updatePolicy>daily</updatePolicy> + </snapshots> + </repository> + <repository> + <id>uaal</id> + <name>universAAL Repositories</name> + <url>http://depot.universaal.org/maven-repo/releases/</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>uaal-snapshots</id> + <name>universAAL Snapshot Repositories</name> + <url>http://depot.universaal.org/maven-repo/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> +</project> diff --git a/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/Activator.java b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/Activator.java new file mode 100644 index 0000000000000000000000000000000000000000..14d07e7577a9e13fbc502f6f587ffcafc497463d --- /dev/null +++ b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/Activator.java @@ -0,0 +1,28 @@ +package org.universAAL.ucc.model; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; +import org.universAAL.ucc.api.model.IModel; + +public class Activator implements BundleActivator { + public static BundleContext context=null; + + private static IModel model; + + public void start(BundleContext context) throws Exception { + Activator.context=context; + + model = new Model(); + + context.registerService(new String[] { IModel.class.getName() }, model, null); + } + + public void stop(BundleContext arg0) throws Exception { + + } + + public static IModel getModel() { + return model; + } + +} diff --git a/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/ApplicationManagment.java b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/ApplicationManagment.java new file mode 100644 index 0000000000000000000000000000000000000000..22f3ee6e05bacaf874f46d51b133d4c6d81de47a --- /dev/null +++ b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/ApplicationManagment.java @@ -0,0 +1,154 @@ +package org.universAAL.ucc.model; + +import java.util.List; +import java.io.File; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; + +import org.universAAL.ucc.api.model.IApplicationManagment; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +public class ApplicationManagment implements IApplicationManagment{ + + public List<String> getInstalledApplications(){ + if(new File(Model.FILENAME).exists()){ + List<String> list = new ArrayList<String>(); + Document doc = Model.getDocument(); + NodeList nodeList = doc.getElementsByTagName("application"); + for(int i = 0; i < nodeList.getLength(); i++){ + Element element = (Element) nodeList.item(i); + list.add(element.getAttribute("name")); + } + + return list; + + }else{ + return new ArrayList<String>(); + } + } + + public List<String> getAllInstalledBundles(){ + if(new File(Model.FILENAME).exists()){ + List<String> list = new ArrayList<String>(); + Document doc = Model.getDocument(); + NodeList nodeList = doc.getElementsByTagName("application"); + for(int i = 0; i < nodeList.getLength(); i++){ + NodeList nl = nodeList.item(i).getChildNodes(); + for(int j = 0; j < nl.getLength(); j++){ + Element element = (Element) nl.item(j); + list.add(element.getAttribute("name")); + } + } + + return list; + }else{ + return new ArrayList<String>(); + } + } + + public List<String> getInstalledBundles(String appName){ + List<String> list = new ArrayList<String>(); + if(new File(Model.FILENAME).exists()){ + Document doc = Model.getDocument(); + NodeList nodeList = doc.getElementsByTagName("application"); + for(int i = 0; i < nodeList.getLength(); i++){ + Element el = (Element) nodeList.item(i); + if(el.getAttribute("name").equals(appName)){ + NodeList nl = el.getChildNodes(); + for(int j = 0; j < nl.getLength(); j++){ + Element element = (Element) nl.item(j); + list.add(element.getAttribute("name")); + } + } + } + } + return list; + } + + public boolean containsApplication(String appName){ + + Document doc = Model.getDocument(); + NodeList nodeList = null; + + try{ + nodeList = doc.getChildNodes(); + }catch(Exception e){ + return false; + } + + for(int i = 0; i< nodeList.getLength(); i++){ + Element el = (Element) nodeList.item(i); + try{ + if(el.getAttribute("name").equals(appName)){ + return true; + } + }catch(Exception e){ + } + } + return false; + } + + public boolean isEmpty(){ + try{ + Document doc = Model.getDocument(); + doc.getChildNodes(); + }catch(Exception e){ + return false; + } + return true; + } + + public static Element getApplication(String appName, Document doc){ + NodeList nodeList = doc.getChildNodes(); + for(int i = 0; i < nodeList.getLength() ; i++){ + Element el = (Element) nodeList.item(i); + if(el.getAttribute("name").equals(appName)){ + return el; + } + } + return null; + } + + public static Element getBundle(String bundleName, Document doc){ + NodeList nodeList = doc.getChildNodes(); + + for(int i = 0 ; i < nodeList.getLength() ; i++){ + NodeList nl = nodeList.item(i).getChildNodes(); + for(int j = 0 ; i < nl.getLength() ; j++){ + Element el = (Element) nl.item(j); + if(el.getAttribute("name").equals(bundleName)){ + return el; + } + } + } + return null; + + } + + public Map<String, String> getConfiguration(String appName){ + Document doc = Model.getDocument(); + NamedNodeMap nodeMap = getApplication(appName, doc).getAttributes(); + Map<String, String> returnMap = new HashMap<String, String>(); + for(int i = 0; i < nodeMap.getLength(); i++){ + Node node = nodeMap.item(i); + returnMap.put(node.getNodeName(), node.getNodeValue()); + } + return returnMap; + } + + public List<String> getBundles(String appName){ + Document doc = Model.getDocument(); + NodeList nodeList = getApplication(appName, doc).getChildNodes(); + List<String> returnList = new ArrayList<String>(); + for(int i = 0; i < nodeList.getLength(); i++){ + Element el = (Element) nodeList.item(i); + returnList.add(el.getAttribute("name")); + } + return returnList; + } +} diff --git a/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/ApplicationRegistration.java b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/ApplicationRegistration.java new file mode 100644 index 0000000000000000000000000000000000000000..da37ec2dfa9a8db5120fc583fa4c04ad59b39fa2 --- /dev/null +++ b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/ApplicationRegistration.java @@ -0,0 +1,185 @@ +package org.universAAL.ucc.model; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.Map.Entry; + +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; + +import org.universAAL.ucc.api.model.IApplicationRegistration; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + +public class ApplicationRegistration implements IApplicationRegistration { + + public boolean unregisterApplication(String appName) { + Document doc = Model.getDocument(); + doc.removeChild(ApplicationManagment.getApplication(appName, doc)); + + if(!doc.hasChildNodes()){ + File file = new File(Model.FILENAME); + file.delete(); + return true; + }else{ + + try { + TransformerFactory.newInstance().newTransformer().transform( + new DOMSource(doc), new StreamResult(Model.FILENAME)); + } catch (Exception e){ + e.printStackTrace(); + return false; + } + return true; + } + } + + public boolean unregisterBundle(String appName, String bundleName) { + Document doc = Model.getDocument(); + Node appNode = ApplicationManagment.getApplication(appName, doc); + Node bundleNode = ApplicationManagment.getBundle(bundleName, doc); + appNode.removeChild(bundleNode); + + try { + TransformerFactory.newInstance().newTransformer().transform( + new DOMSource(doc), new StreamResult(Model.FILENAME)); + } catch (Exception e){ + e.printStackTrace(); + return false; + } + return true; +} + + + public boolean registerBundle(String appName, String bundleName) { + if(Activator.getModel().getApplicationManagment().containsApplication(appName) + && !Activator.getModel().getApplicationManagment().getInstalledBundles(appName).contains(bundleName)){ + + return addBundleToXML(appName, bundleName); + }else{ + return false; + } + } + + public boolean registerApplication(String appName, Map<String, String> configuration) { + return addApplicationToXML(appName, configuration); + } + + private boolean addBundleToXML(String appName, String bundleName){ + boolean success = true; + try { + + Document doc = Model.getDocument(); + + Element element = ApplicationManagment.getApplication(appName, doc); + Element bundleRoot = doc.createElement("bundle"); + element.appendChild(bundleRoot); + + bundleRoot.setAttribute("name", bundleName); + + TransformerFactory.newInstance().newTransformer().transform( + new DOMSource(doc), new StreamResult(Model.FILENAME)); + + } catch (Exception e){ + e.printStackTrace(); + success = false; + } + return success; + } + + private boolean addApplicationToXML(String appName, Map<String, String> configuration){ + boolean success = true; + try { + Document doc = Model.getDocument(); + Element appRoot = doc.createElement("application"); + doc.appendChild(appRoot); + appRoot.setAttribute("name", appName); + + for(Entry<String, String> entry : configuration.entrySet()){ + appRoot.setAttribute(entry.getKey(), entry.getValue()); + } + + TransformerFactory.newInstance().newTransformer().transform( + new DOMSource(doc), new StreamResult(Model.FILENAME)); + + } catch (Exception e){ + e.printStackTrace(); + success = false; + } + return success; + } + + public boolean writeToConfigFile(String appName, String rundir){ + String path=getConfPath(rundir); + if(!new File(path+appName).mkdirs()) + return false; + File conf = new File(path+appName+"/tta.risk.properties"); + Map<String,String> attributes=Activator.getModel().getApplicationManagment().getConfiguration(appName); + Set<String> keys=attributes.keySet(); + Iterator<String> itr=keys.iterator(); + try{ + // Create file + FileWriter fstream = new FileWriter(conf); + BufferedWriter out = new BufferedWriter(fstream); + String key; + while(itr.hasNext()){ + key=itr.next(); + if(!key.equals("appName")){ + if(!key.equals("install_base")){ + if(!key.equals("name")){ + out.write(key+"="+attributes.get(key)); + out.newLine(); + } + } + } + } + + out.write("RISK.Room@Bathroom=00\\:60,06\\:150,12\\:60"); + out.newLine(); + out.write("RISK.Room@Default=00\\:0,01\\:23"); + out.newLine(); + out.write("RISK.Room@Kitchen=00\\:1"); + out.newLine(); + out.write("RISK.delay=1"); + out.close(); + }catch (Exception e){//Catch exception if any + System.err.println("Error: " + e.getMessage()); + } + return true; + } + public boolean removeConfigFile(String appName, String rundir){ + String path=getConfPath(rundir); + File folder=new File(path+appName); + if(folder.exists()){ + deleteFolder(folder); + } + return true; + } + private void deleteFolder(File folder){ + + String[] children=folder.list(); + if(!(children==null)){ + for(int i=0;i<children.length;i++){ + File child=new File(folder,children[i]); + if(child.isFile())child.delete(); + if(child.isDirectory())deleteFolder(child); + } + } + folder.delete(); + + } + private String getConfPath(String rundir){ + for(int i=0;i<3;i++) + rundir=rundir.substring(0, rundir.lastIndexOf("\\")); + return rundir+"\\confadmin\\"; + } + + + +} diff --git a/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/Model.java b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/Model.java new file mode 100644 index 0000000000000000000000000000000000000000..186aeb6ca4c592abd7b7b566d4f4fa7e8744f0a0 --- /dev/null +++ b/ucc/ucc.model/src/main/java/org/universAAL/ucc/model/Model.java @@ -0,0 +1,52 @@ +package org.universAAL.ucc.model; + +import java.io.File; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + +import org.universAAL.ucc.api.model.IApplicationManagment; +import org.universAAL.ucc.api.model.IApplicationRegistration; +import org.universAAL.ucc.api.model.IModel; +import org.w3c.dom.Document; + +public class Model implements IModel { + + private IApplicationRegistration appReg; + private IApplicationManagment appMan; + public final static String FILENAME = "applications.xml"; + private static Document doc; + + public Model() { + appReg = (IApplicationRegistration)(new ApplicationRegistration()); + appMan = (IApplicationManagment) (new ApplicationManagment()); + } + + public IApplicationRegistration getApplicationRegistration() { + return appReg; + } + + public IApplicationManagment getApplicationManagment() { + return appMan; + } + + static protected Document getDocument(){ + if(doc == null){ + File file = new File(FILENAME); + try { + if(file.exists()){ + DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); + DocumentBuilder db; + db = dbf.newDocumentBuilder(); + doc = db.parse(file); + }else{ + doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); + } + + } catch (Exception e) { + return null; + } + } + return doc; + } +} diff --git a/ucc/ucc.model/target/surefire/surefire7529478299851739267tmp b/ucc/ucc.model/target/surefire/surefire7529478299851739267tmp new file mode 100644 index 0000000000000000000000000000000000000000..5a9d705ce6e1a2b8c73f1331e5ced1a2a9d325c6 --- /dev/null +++ b/ucc/ucc.model/target/surefire/surefire7529478299851739267tmp @@ -0,0 +1,27 @@ +#surefire +#Fri Jul 29 13:35:03 CEST 2011 +testClassesDirectory=C\:\\workspaces\\uAAL\\ucc\\ucc.model\\target\\test-classes +classPathUrl.4=C\:\\Users\\yumusak\\.m2\\repository\\org\\ops4j\\pax\\logging\\pax-logging-api\\1.4\\pax-logging-api-1.4.jar +forkMode=once +classPathUrl.3=C\:\\Users\\yumusak\\.m2\\repository\\org\\universAAL\\middleware\\mw.data.representation\\0.3.0-SNAPSHOT\\mw.data.representation-0.3.0-SNAPSHOT.jar +classPathUrl.2=C\:\\Users\\yumusak\\.m2\\repository\\org\\apache\\felix\\org.osgi.core\\1.0.1\\org.osgi.core-1.0.1.jar +useManifestOnlyJar=true +classPathUrl.1=C\:\\workspaces\\uAAL\\ucc\\ucc.model\\target\\classes +reportsDirectory=C\:\\workspaces\\uAAL\\ucc\\ucc.model\\target\\surefire-reports +classPathUrl.0=C\:\\workspaces\\uAAL\\ucc\\ucc.model\\target\\test-classes +providerConfiguration=org.apache.maven.surefire.junit.JUnit3Provider +testSuiteDefinitionTestSourceDirectory=C\:\\workspaces\\uAAL\\ucc\\ucc.model\\src\\test\\java +surefireClassPathUrl.1=C\:\\Users\\yumusak\\.m2\\repository\\org\\apache\\maven\\surefire\\surefire-api\\2.9\\surefire-api-2.9.jar +surefireClassPathUrl.0=C\:\\Users\\yumusak\\.m2\\repository\\org\\apache\\maven\\surefire\\surefire-junit3\\2.9\\surefire-junit3-2.9.jar +runOrder=filesystem +useSystemClassLoader=true +excludes0=**/*$* +isTrimStackTrace=true +enableAssertions=true +includes2=**/*TestCase.java +failIfNoTests=false +includes1=**/*Test.java +includes0=**/Test*.java +childDelegation=false +classPathUrl.6=C\:\\workspaces\\uAAL\\ucc\\ucc.api\\target\\ucc.api-0.0.1.jar +classPathUrl.5=C\:\\Users\\yumusak\\.m2\\repository\\org\\ops4j\\pax\\logging\\pax-logging-service\\1.4\\pax-logging-service-1.4.jar diff --git a/ucc/ucc.model/target/ucc.model-0.0.1.jar b/ucc/ucc.model/target/ucc.model-0.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..fcbfe1dccde8d9b2c12e3b92da25904249ddcd1f Binary files /dev/null and b/ucc/ucc.model/target/ucc.model-0.0.1.jar differ diff --git a/ucc/ucc.pom/.launches/uCC.launch b/ucc/ucc.pom/.launches/uCC.launch new file mode 100644 index 0000000000000000000000000000000000000000..fc29869b8bdee3b01b31d271d54cab5c2511151b --- /dev/null +++ b/ucc/ucc.pom/.launches/uCC.launch @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<launchConfiguration type="org.eclipse.pde.ui.EquinoxLauncher"> +<booleanAttribute key="append.args" value="true"/> +<booleanAttribute key="automaticAdd" value="true"/> +<booleanAttribute key="automaticValidate" value="false"/> +<stringAttribute key="bootstrap" value=""/> +<stringAttribute key="checked" value="[NONE]"/> +<booleanAttribute key="clearConfig" value="false"/> +<stringAttribute key="configLocation" value="${workspace_loc}/rundir/smp.lighting"/> +<booleanAttribute key="default_auto_start" value="true"/> +<intAttribute key="default_start_level" value="8"/> +<booleanAttribute key="includeOptional" value="true"/> +<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.pde.ui.launcher.PDESourceLookupDirector"/> +<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;ucc.api&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;ucc.core&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;ucc.model&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;ucc.viewjambi&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/mw.bus.context/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/mw.bus.model/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/mw.bus.service/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/mw.data.representation/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/mw.data.serialization/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/ont.lighting/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/ont.phWorld/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/smp.lighting.client/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;folder nest=&quot;false&quot; path=&quot;/smp.lighting.server/src/main/java&quot;/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.folder"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;default/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.default"/> </sourceContainers> </sourceLookupDirector> "/> +<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> +<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-console --obrRepositories=http://a1gforge.igd.fraunhofer.de/nexus/content/repositories/snapshots/repository.xml,http://a1gforge.igd.fraunhofer.de/nexus/content/repositories/releases/repository.xml,http://bundles.osgi.org/obr/browse?_xml=1&amp;cmd=repository --org.ops4j.pax.url.mvn.repositories=+http://a1gforge.igd.fraunhofer.de/nexus/content/groups/public,http://a1gforge.igd.fraunhofer.de/nexus/content/repositories/snapshots@snapshots@noreleases --log=DEBUG --sp=sun.audio"/> +<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.noShutdown=true -Dfelix.log.level=4 -Dorg.universAAL.middleware.peer.is_coordinator=true -Dorg.universAAL.middleware.peer.member_of=urn:org.universAAL.aal_space:test_env -Dbundles.configuration.location=${workspace_loc}/rundir/confadmin"/> +<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}/rundir/smp.lighting"/> +<stringAttribute key="org.ops4j.pax.cursor.logLevel" value="DEBUG"/> +<booleanAttribute key="org.ops4j.pax.cursor.overwrite" value="false"/> +<booleanAttribute key="org.ops4j.pax.cursor.overwriteSystemBundles" value="false"/> +<booleanAttribute key="org.ops4j.pax.cursor.overwriteUserBundles" value="false"/> +<listAttribute key="org.ops4j.pax.cursor.profiles"> +<listEntry value="obr"/> +</listAttribute> +<mapAttribute key="org.ops4j.pax.cursor.provisionItems"> +<mapEntry key="mvn:org.universAAL.middleware/mw.data.serialization" value="true@true@4@false"/> +<mapEntry key="mvn:org.universAAL.ucc/ucc.viewjambi" value="true@true@7@true"/> +<mapEntry key="mvn:org.apache.felix/org.apache.felix.configadmin/1.2.4" value="true@true@2@false"/> +<mapEntry key="mvn:org.universAAL.ontology/ont.phWorld" value="true@true@5@false"/> +<mapEntry key="mvn:org.universAAL.middleware/mw.acl.interfaces" value="true@true@2@false"/> +<mapEntry key="mvn:org.universAAL.ucc/ucc.api" value="true@true@6@true"/> +<mapEntry key="wrap:mvn:jp.go.ipa/jgcl/1.0" value="true@true@2@false"/> +<mapEntry key="mvn:org.universAAL.middleware/mw.bus.model" value="true@true@3@false"/> +<mapEntry key="mvn:org.universAAL.middleware/mw.bus.context" value="true@true@4@false"/> +<mapEntry key="mvn:org.universAAL.middleware/mw.data.representation" value="true@true@4@false"/> +<mapEntry key="wrap:mvn:org.osgi/osgi_R4_compendium/1.0" value="true@true@2@false"/> +<mapEntry key="mvn:org.universAAL.middleware/mw.bus.service" value="true@true@4@false"/> +<mapEntry key="wrap:mvn:java3d/vecmath/1.3.1" value="true@true@2@false"/> +<mapEntry key="wrap:mvn:org.ops4j.pax.confman/pax-confman-propsloader/0.2.2" value="true@true@3@false"/> +<mapEntry key="mvn:org.universAAL.middleware/mw.bus.io" value="true@true@4@false"/> +<mapEntry key="wrap:mvn:org.bouncycastle/jce.jdk13/144" value="true@true@2@false"/> +<mapEntry key="wrap:mvn:org.ops4j.pax.logging/pax-logging-api/1.4" value="true@true@2@false"/> +<mapEntry key="mvn:org.universAAL.ucc/ucc.core" value="true@true@6@true"/> +<mapEntry key="wrap:mvn:org.ops4j.pax.logging/pax-logging-service/1.4" value="true@true@3@false"/> +<mapEntry key="mvn:org.universAAL.ucc/ucc.model" value="true@true@6@true"/> +<mapEntry key="wrap:mvn:java3d/j3d-core/1.3.1" value="true@true@2@false"/> +</mapAttribute> +<listAttribute key="org.ops4j.pax.cursor.runArguments"> +<listEntry value="--overwrite=false"/> +<listEntry value="--overwriteUserBundles=false"/> +<listEntry value="--overwriteSystemBundles=false"/> +<listEntry value="--log=DEBUG"/> +<listEntry value="--profiles=obr"/> +<listEntry value="mvn:org.universAAL.ucc/ucc.viewjambi@7@update"/> +<listEntry value="mvn:org.universAAL.ontology/ont.phWorld@5"/> +<listEntry value="mvn:org.apache.felix/org.apache.felix.configadmin/1.2.4@2"/> +<listEntry value="mvn:org.universAAL.middleware/mw.acl.interfaces@2"/> +<listEntry value="wrap:mvn:jp.go.ipa/jgcl/1.0@2"/> +<listEntry value="mvn:org.universAAL.middleware/mw.bus.context@4"/> +<listEntry value="mvn:org.universAAL.middleware/mw.bus.service@4"/> +<listEntry value="wrap:mvn:java3d/vecmath/1.3.1@2"/> +<listEntry value="wrap:mvn:org.ops4j.pax.confman/pax-confman-propsloader/0.2.2@3"/> +<listEntry value="mvn:org.universAAL.middleware/mw.bus.io@4"/> +<listEntry value="wrap:mvn:org.bouncycastle/jce.jdk13/144@2"/> +<listEntry value="wrap:mvn:org.ops4j.pax.logging/pax-logging-service/1.4@3"/> +<listEntry value="mvn:org.universAAL.ucc/ucc.model@6@update"/> +<listEntry value="wrap:mvn:java3d/j3d-core/1.3.1@2"/> +<listEntry value="mvn:org.universAAL.middleware/mw.data.serialization@4"/> +<listEntry value="mvn:org.universAAL.ucc/ucc.api@6@update"/> +<listEntry value="mvn:org.universAAL.middleware/mw.bus.model@3"/> +<listEntry value="mvn:org.universAAL.middleware/mw.data.representation@4"/> +<listEntry value="wrap:mvn:org.osgi/osgi_R4_compendium/1.0@2"/> +<listEntry value="mvn:org.universAAL.ucc/ucc.core@6@update"/> +<listEntry value="wrap:mvn:org.ops4j.pax.logging/pax-logging-api/1.4@2"/> +</listAttribute> +<stringAttribute key="osgi_framework_id" value="--platform=felix --version=1.4.0"/> +<stringAttribute key="pde.version" value="3.3"/> +<booleanAttribute key="show_selected_only" value="false"/> +<booleanAttribute key="tracing" value="false"/> +<booleanAttribute key="useDefaultConfigArea" value="false"/> +</launchConfiguration> diff --git a/ucc/ucc.pom/.project b/ucc/ucc.pom/.project new file mode 100644 index 0000000000000000000000000000000000000000..a586e9d7fa7a3a296ec7c5139e7bd0306a948fb9 --- /dev/null +++ b/ucc/ucc.pom/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ucc.pom</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.maven.ide.eclipse.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.maven.ide.eclipse.maven2Nature</nature> + </natures> +</projectDescription> diff --git a/ucc/ucc.pom/.settings/org.maven.ide.eclipse.prefs b/ucc/ucc.pom/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 0000000000000000000000000000000000000000..16d2994b74b54593e4dc9f347a35f3b725301f7d --- /dev/null +++ b/ucc/ucc.pom/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,9 @@ +#Fri Jul 15 12:10:18 CEST 2011 +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +includeModules=false +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/ucc/ucc.pom/pom.xml b/ucc/ucc.pom/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..fad8d61c6cc8dfe430383535bf56c8ca0b2af98e --- /dev/null +++ b/ucc/ucc.pom/pom.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.pom</artifactId> + <version>1.0.0</version> + + <packaging>pom</packaging> + <name>universAAL Control Center</name> + <description>A tool to install, manage and configure applications for universAAL an a local maschine.</description> + <url> + <![CDATA[http://forge.universaal.org/gf/project/svn/uaaltools/trunk/ucc/]]> + </url> + + <issueManagement> + <system>GForge - Tracker</system> + <url> + <![CDATA[http://forge.universaal.org/gf/project/middleware/tracker/]]> + </url> + </issueManagement> + + <mailingLists /> + + <scm> + <connection>scm:svn:http://forge.universaal.org/svn/uaaltools/trunk/ucc</connection> + <developerConnection>scm:svn:http://forge.universaal.org/svn/uaaltools/trunk/ucc</developerConnection> + <url>http://forge.universaal.org/gf/project/uaaltools/scmsvn/?path=%2Ftrunk%2Fucc%2F</url> + </scm> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.osgi.core</artifactId> + <version>1.0.1</version> + <scope>provided</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <organization> + <name>universAAL Consortium</name> + <url>http://www.universAAL.org/</url> + </organization> + + <developers> + <developer> + <id>alex</id> + <email>alexander.marinc@igd.fraunhofer.de</email> + <name>Alexander Marinc</name> + <roles> + <role>architect</role> + <role>developer</role> + </roles> + <timezone>CEST/CET</timezone> + </developer> + <developer> + <id>tom</id> + <email>zentek@fzi.de</email> + <name>Tom Zentek</name> + <roles> + <role>builder</role> + <role>developer</role> + </roles> + <timezone>CEST/CET</timezone> + </developer> + </developers> + + <contributors /> + + <properties> + <remoteOBR /> + <!-- Default configuration for compiler source and target JVM --> + <maven.compile.source>1.5</maven.compile.source> + <maven.compile.target>1.5</maven.compile.target> + </properties> + + <distributionManagement> + <repository> + <id>releases</id> + <name>universAAL Releases</name> + <url>http://depot.universaal.org/nexus/content/repositories/releases/</url> + </repository> + <snapshotRepository> + <id>snapshots</id> + <name>universAAL Snapshots</name> + <url>http://depot.universaal.org/nexus/content/repositories/snapshots/</url> + </snapshotRepository> + </distributionManagement> + + <modules> + <module>../ucc.api</module> + <module>../ucc.model</module> + <module>../ucc.viewjambi</module> + <module>../ucc.core</module> + </modules> + +</project> diff --git a/ucc/ucc.viewjambi/.classpath b/ucc/ucc.viewjambi/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..721fef5837dd212ada3779e4761fe14d446d2ae1 --- /dev/null +++ b/ucc/ucc.viewjambi/.classpath @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/java"/> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"/> + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/> + <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="src" path="Generated JUIC files"/> + <classpathentry kind="lib" path="src/main/resources/lib/qtjambi-4.5.2_01.jar"/> + <classpathentry kind="lib" path="src/main/resources/lib/qtjambi-win32-msvc2005-4.5.2_01.jar"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ucc/ucc.viewjambi/.project b/ucc/ucc.viewjambi/.project new file mode 100644 index 0000000000000000000000000000000000000000..256d4767494211ec31eb5352c903ccac496995ff --- /dev/null +++ b/ucc/ucc.viewjambi/.project @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ucc.viewjambi</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.wst.common.project.facet.core.builder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.trolltech.qtjambi.juicBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.maven.ide.eclipse.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.maven.ide.eclipse.maven2Nature</nature> + <nature>org.eclipse.wst.common.project.facet.core.nature</nature> + </natures> +</projectDescription> diff --git a/ucc/ucc.viewjambi/.settings/org.eclipse.jdt.core.prefs b/ucc/ucc.viewjambi/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..4107385ea25751c7013e11849a25291e5cb2bcfe --- /dev/null +++ b/ucc/ucc.viewjambi/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,13 @@ +#Fri Jul 15 17:22:39 CEST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/ucc/ucc.viewjambi/.settings/org.maven.ide.eclipse.prefs b/ucc/ucc.viewjambi/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 0000000000000000000000000000000000000000..61b39c92e6d731846bf0dc0266529377ea0301bb --- /dev/null +++ b/ucc/ucc.viewjambi/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,9 @@ +#Fri Jul 15 11:49:56 CEST 2011 +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +includeModules=false +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/ucc/ucc.viewjambi/pom.xml b/ucc/ucc.viewjambi/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..c1a621ad1388e648f91c7a34fb3133a569ea8d02 --- /dev/null +++ b/ucc/ucc.viewjambi/pom.xml @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.pom</artifactId> + <version>1.0.0</version> + <relativePath>../ucc.pom/pom.xml</relativePath> + </parent> + <artifactId>ucc.viewjambi</artifactId> + <version>0.0.1</version> + <name>Jambi View for uCC</name> + <description>This is an example view for the uCC, based on the Jambi libraries.</description> + <packaging>bundle</packaging> + <dependencies> + <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.osgi.core</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>org.universAAL.middleware</groupId> + <artifactId>mw.data.representation</artifactId> + <version>0.3.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.universAAL.ucc</groupId> + <artifactId>ucc.api</artifactId> + <version>0.0.1</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-Name>${project.name}</Bundle-Name> + <Bundle-Activator>org.universAAL.ucc.viewjambi.Activator</Bundle-Activator> + <Bundle-Description>${project.description}</Bundle-Description> + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> + <Private-Package>org.universAAL.ucc.viewjambi.*</Private-Package> + <Include-Resource> + {maven-resources} + </Include-Resource> + <Bundle-ClassPath>.,lib/qtjambi-4.5.2_01.jar,lib/qtjambi-win32-msvc2005-4.5.2_01.jar,bin</Bundle-ClassPath> + </instructions> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <id>central</id> + <name>Central Maven Repository</name> + <url>http://repo1.maven.org/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>apache-snapshots</id> + <name>Apache Snapshots</name> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <updatePolicy>daily</updatePolicy> + </snapshots> + </repository> + <repository> + <id>uaal</id> + <name>universAAL Repositories</name> + <url>http://depot.universaal.org/maven-repo/releases/</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>uaal-snapshots</id> + <name>universAAL Snapshot Repositories</name> + <url>http://depot.universaal.org/maven-repo/snapshots/</url> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> +</project> diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/Activator.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/Activator.java new file mode 100644 index 0000000000000000000000000000000000000000..1c3093e41e2a874b77526f861fd088c266ad5229 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/Activator.java @@ -0,0 +1,154 @@ +package org.universAAL.ucc.viewjambi; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.InputStream; +import java.util.Properties; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; +import org.osgi.framework.ServiceReference; + +import org.universAAL.ucc.api.core.IConfigurator; +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.api.core.IInformation; +import org.universAAL.ucc.api.core.IInstaller; +import org.universAAL.ucc.api.model.IModel; +import org.universAAL.ucc.api.view.IMainWindow; + +import com.trolltech.qt.gui.QApplication; + +public class Activator implements BundleActivator { + private static Thread thread = null; + private static BundleContext context = null; + private static String rundir = "c:"+File.separator; + + private static IInstaller installer = null; + private static IDeinstaller deinstaller = null; + private static IInformation information = null; + private static IModel model = null; + private static IConfigurator configurator = null; + private IMainWindow mainWindow = null; + + static final String libraryNames[] = { "qtjambi.dll", + "com_trolltech_qt_core.dll", "com_trolltech_qt_gui.dll", + "QtCore4.dll", "QtGui4.dll", "QtNetwork4.dll", "phonon4.dll" , "QtWebKit4.dll"}; + + static { + for (int i = 0; i < libraryNames.length; i++) + extractDll(libraryNames[i]); + } + + private static void extractDll(String name) { + InputStream inputStream = Activator.class.getClassLoader() + .getResourceAsStream(name); + File libraryFile = new File(name); + libraryFile.deleteOnExit(); + try { + FileOutputStream fileOutputStream = new FileOutputStream( + libraryFile); + byte[] buffer = new byte[8192]; + int bytesRead; + while ((bytesRead = inputStream.read(buffer)) > 0) { + fileOutputStream.write(buffer, 0, bytesRead); + } + fileOutputStream.close(); + inputStream.close(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public static BundleContext getContext() { + return context; + } + + public static String getRundir() { + return rundir; + } + + public static IInstaller getInstaller() { + Activator.getServices(); + return Activator.installer; + } + + public static IDeinstaller getDeinstaller() { + Activator.getServices(); + return Activator.deinstaller; + } + + public static IInformation getInformation() { + Activator.getServices(); + return Activator.information; + } + + public static IModel getModel() { + Activator.getServices(); + return Activator.model; + } + public static IConfigurator getConfigurator() { + Activator.getServices(); + return Activator.configurator; + } + + public void start(final BundleContext context) throws Exception { + Activator.context = context; + + String bundlePath = Activator.context.getBundle().getLocation(); + Activator.rundir = bundlePath.substring(bundlePath.indexOf("/")+1,bundlePath.lastIndexOf("/")); + + Properties props = System.getProperties(); + String path = ".;" + props.getProperty("java.library.path"); + props.setProperty("java.library.path", path); + System.setProperties(props); + + thread = new Thread(new Runnable() { + public void run() { + QApplication.initialize(new String[0]); + + MainWindow newWindow = new MainWindow(context); + newWindow.show(); + + mainWindow = newWindow; + + QApplication.exec(); + } + }); + thread.start(); + + while (mainWindow == null) + ; + + context.registerService(new String[] { IMainWindow.class.getName() }, + mainWindow, null); + } + + @SuppressWarnings("deprecation") + public void stop(BundleContext context) throws Exception { + thread.stop(); + } + + private static void getServices() { + if (installer == null || deinstaller == null || configurator == null || information==null) { + ServiceReference sr = context.getServiceReference(IInstaller.class + .getName()); + if (sr != null) + Activator.installer = (IInstaller) context.getService(sr); + + sr = context.getServiceReference(IDeinstaller.class.getName()); + if (sr != null) + Activator.deinstaller = (IDeinstaller) context.getService(sr); + + sr = context.getServiceReference(IModel.class.getName()); + if (sr != null) + Activator.model = (IModel) context.getService(sr); + + sr = context.getServiceReference(IInformation.class.getName()); + if (sr != null) + Activator.information = (IInformation) context.getService(sr); + sr = context.getServiceReference(IConfigurator.class.getName()); + if (sr != null) + Activator.configurator = (IConfigurator) context.getService(sr); + } + } +} \ No newline at end of file diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/MainWindow.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/MainWindow.java new file mode 100644 index 0000000000000000000000000000000000000000..876f56b5f5446d3761a0e88b90da450eda6ff2aa --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/MainWindow.java @@ -0,0 +1,122 @@ +package org.universAAL.ucc.viewjambi; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import org.osgi.framework.BundleContext; + +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.api.view.IMainWindow; +import org.universAAL.ucc.api.view.ISubWindow; +import org.universAAL.ucc.viewjambi.information.InformationView; +import org.universAAL.ucc.viewjambi.install.ConfigView; +import org.universAAL.ucc.viewjambi.install.DeinstallView; +import org.universAAL.ucc.viewjambi.install.InstallView; +import org.universAAL.ucc.viewjambi.install.LicenseView; +import org.universAAL.ucc.viewjambi.juic.Ui_MainWindow; +import org.universAAL.ucc.viewjambi.layouts.OverviewGridLayout; +import org.universAAL.ucc.viewjambi.overview.GridView; +import org.universAAL.ucc.viewjambi.overview.LabeledIcon; +import org.universAAL.ucc.viewjambi.overview.OverviewView; + +import com.trolltech.qt.QUiForm; +import com.trolltech.qt.core.QModelIndex; +import com.trolltech.qt.core.Global.QtMsgType; +import com.trolltech.qt.gui.*; +import com.trolltech.qt.gui.QMessageBox.StandardButton; + +public class MainWindow extends QMainWindow implements IMainWindow { + + private Ui_MainWindow ui_base = new Ui_MainWindow(); + private HashMap<ISubWindow,QMdiSubWindow> subWindows = new HashMap<ISubWindow,QMdiSubWindow>(); + public static OverviewView overview; + + + public MainWindow(BundleContext context) { + super(); + + ui_base.setupUi(this); + + ui_base.actionExit.triggered.connect(this, "close()"); + ui_base.actionInstall.triggered.connect(this, "installApp()"); + ui_base.actionDeinstall.triggered.connect(this, "uninstallApp()"); + ui_base.actionOverview.triggered.connect(this, "overviewApp()"); + ui_base.actionSystem_Information.triggered.connect(this, "showInformation()"); + new GridView(this); + + + + } + + @Override + protected void resizeEvent(QResizeEvent event) { + super.resizeEvent(event); + } + + @Override + public void addSubWindow(ISubWindow subWindow) { + if (subWindow instanceof SubWindow) { + QMdiSubWindow mdiWindow = ui_base.mdiArea.addSubWindow((QWidget)subWindow); + subWindows.put(subWindow, mdiWindow); + mdiWindow.show(); + } + } + + @Override + public void closeSubWindow(ISubWindow subWindow) { + QMdiSubWindow mdiChild = subWindows.remove(subWindow); + if (mdiChild != null) + mdiChild.close(); + } + + @Override + public boolean initialize() { + // TODO Auto-generated method stub + return false; + } + + protected void installApp() { + new InstallView(this); + } + public void configureApp(String path){ + new ConfigView(this, path); + } + public void showLicense(String path) throws IOException{ + new LicenseView(this, path); + } + public void deinstallApp(){ + new DeinstallView(this); + } + + protected void uninstallApp() { + if(overview != null){ + if(overview.isVisible()){ + QModelIndex index = OverviewView.treeView.currentIndex(); + if(Activator.getModel().getApplicationManagment().containsApplication((String) index.data())){ + if(QMessageBox.question(this, "Deinstall Application", "Do you want to delete the application "+index.data()+"?", QMessageBox.StandardButton.Yes, QMessageBox.StandardButton.No) == StandardButton.Yes.value()){ + IDeinstaller deinstaller = Activator.getDeinstaller(); + if(deinstaller.deinstallAppication((String) index.data())){ + QMessageBox.information(this, "Deinstall Application", "Deinstalltion of the application "+index.data()+" completed!"); + }else{ + QMessageBox.critical(this, "Deinstall Application", "Could not deinstall the application!"); + } + } + } + } + } + } + + protected void overviewApp() { + if(overview == null){ + overview = new OverviewView(this); + }else if(!overview.isWindow()) + overview = new OverviewView(this); + + } + + protected void showInformation() { + new InformationView(this); + } +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/SubWindow.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/SubWindow.java new file mode 100644 index 0000000000000000000000000000000000000000..5caa1463d088a4f244d70935118d6fb98b0f7c72 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/SubWindow.java @@ -0,0 +1,41 @@ +package org.universAAL.ucc.viewjambi; + +import org.universAAL.ucc.api.view.ISubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_SubWindow; + +import com.trolltech.qt.QUiForm; +import com.trolltech.qt.gui.QPixmap; +import com.trolltech.qt.gui.QWidget; + +public class SubWindow extends QWidget implements ISubWindow { + + private Ui_SubWindow ui_base = new Ui_SubWindow(); + protected MainWindow parent = null; + + protected SubWindow(MainWindow parent, QUiForm<QWidget> ui_content) { + super(parent); + this.parent = parent; + + ui_base.setupUi(this); + + String jarPath = "classpath:" + + Activator.getContext().getBundle().getLocation().substring(6) + + "#images/uaal.bmp"; + QPixmap pixmap = new QPixmap(jarPath); + ui_base.headerLogo.setPixmap(pixmap); + + ui_content.setupUi(ui_base.content); + + this.parent.addSubWindow(this); + } + + public void initialize() { + this.show(); + } + + protected QWidget getContentWidget() { + return ui_base.content; + } + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/information/InformationView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/information/InformationView.java new file mode 100644 index 0000000000000000000000000000000000000000..f6c95f2a188bca43d2c885bffdf92aad3ed7f34b --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/information/InformationView.java @@ -0,0 +1,58 @@ +package org.universAAL.ucc.viewjambi.information; + +import java.util.Date; + +import org.osgi.framework.Bundle; +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_SystemInformation; + +import com.trolltech.qt.gui.QTableWidgetItem; + +public class InformationView extends SubWindow { + + private static Ui_SystemInformation information_base = new Ui_SystemInformation(); + + public InformationView(MainWindow parent) { + super(parent, InformationView.information_base); + + Bundle[] bundles = Activator.getInformation().bundles(); + + for (int i = 0; i < bundles.length; i++) { + information_base.bundleList.insertRow(i); + information_base.bundleList.setItem(i, 0, new QTableWidgetItem( + bundles[i].getSymbolicName())); + information_base.bundleList.setItem(i, 1, new QTableWidgetItem( + (new Date(bundles[i].getLastModified())).toString())); + information_base.bundleList.setItem(i, 2, new QTableWidgetItem( + statusToString(bundles[i].getState()))); + information_base.bundleList.setItem(i, 3, new QTableWidgetItem( + bundles[i].getLocation())); + } + + information_base.closeButton.clicked.connect(this, "closeMe()"); + } + + protected void closeMe() { + this.parent.closeSubWindow(this); + } + + protected String statusToString(int status) { + switch (status) { + case Bundle.ACTIVE: + return "Active"; + case Bundle.INSTALLED: + return "Installed"; + case Bundle.RESOLVED: + return "Resolved"; + case Bundle.STARTING: + return "Starting"; + case Bundle.STOPPING: + return "Stopping"; + case Bundle.UNINSTALLED: + return "Uninstalled"; + } + return "Unknown"; + } +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/ConfigView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/ConfigView.java new file mode 100644 index 0000000000000000000000000000000000000000..545633be7af34c4ad1f2f23190414b72ae7eef95 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/ConfigView.java @@ -0,0 +1,223 @@ +package org.universAAL.ucc.viewjambi.install; + +import java.io.File; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Stack; + +import javax.xml.stream.XMLEventReader; +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.events.Attribute; +import javax.xml.stream.events.XMLEvent; +import javax.xml.transform.stream.StreamSource; + +import org.universAAL.ucc.api.model.IModel; +import org.osgi.framework.Bundle; +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_Configure; + +import com.trolltech.qt.core.QObject; +import com.trolltech.qt.gui.QBoxLayout; +import com.trolltech.qt.gui.QCheckBox; +import com.trolltech.qt.gui.QComboBox; +import com.trolltech.qt.gui.QGroupBox; +import com.trolltech.qt.gui.QHBoxLayout; +import com.trolltech.qt.gui.QLabel; +import com.trolltech.qt.gui.QLineEdit; +import com.trolltech.qt.gui.QMessageBox; +import com.trolltech.qt.gui.QSizePolicy; +import com.trolltech.qt.gui.QVBoxLayout; +import com.trolltech.qt.gui.QWidget; +import com.trolltech.qt.gui.QSizePolicy.Policy; + +public class ConfigView extends SubWindow { + + private static Ui_Configure install_base=new Ui_Configure(); + private static String appDir; + private HashMap<String,QObject> configdata= new HashMap<String, QObject>(); + private static IModel model; + private HashMap<String,String> appInfo=new HashMap<String,String>(); + + + public ConfigView(MainWindow parent, String configpath) { + super(parent, install_base); + + + + + appDir = configpath; + try { + if(!performConfiguration(configpath+ File.separator +"config.xml", install_base)){ + QLabel info = new QLabel(); + info.setText("No Configuration necessary!"); + install_base.verticalLayout_4.insertWidget(0,info); + } + } catch (XMLStreamException e) { + QMessageBox.critical(this, "Error", "Error parsing config file!"); + } + if(appInfo.get("id")==null||appInfo.get("name")==null){ + QMessageBox.critical(this, "Error", "Application Info is not properly set!"); + + } + install_base.okButton.clicked.connect(this, "saveConfiguration()"); + install_base.cancelButton.clicked.connect(this, "cancel()"); + //this.parent.adjustSize(); + //this.resize(800, 800); + this.parent.activateWindow(); + this.activateWindow(); + this.update(); + this.updateGeometry(); + //this.setMaximumSize(300, 300); + //this.adjustSize(); + + } + + protected void saveConfiguration() { + model = Activator.getModel(); + //Map<String, String> returnMap = new HashMap<String, String>(); + Collection<QObject> c = configdata.values(); + Iterator<QObject> itr = c.iterator(); + HashMap<String,String> conf=new HashMap<String,String>(); + while(itr.hasNext()){ + String key; + String value = ""; + QObject a = itr.next(); + key = a.objectName(); + if(a.getClass().getName().equals("com.trolltech.qt.gui.QComboBox")){ + value=((QComboBox) a).currentText(); + } + if(a.getClass().getName().equals("com.trolltech.qt.gui.QLineEdit")){ + if(((QLineEdit) a).text().equals("")){ + QMessageBox.critical(this, "Error", "Please fill out all fields!"); + return; + } + value=((QLineEdit) a).text(); + } + if(a.getClass().getName().equals("com.trolltech.qt.gui.QCheckBox")){ + System.out.print(": "+((QCheckBox) a).isChecked()); + if(((QCheckBox) a).isChecked()){ + value = "true"; + }else{ + value = "false"; + } + } + System.out.println(); + //returnMap.put(key, value); + //value=new Boolean(((QCheckBox) a).isChecked()).toString(); + conf.put(key, value); + } + ArrayList<Bundle> ib = Activator.getInstaller().getInstalledBundles(); + String install_base = ib.get(0).getLocation(); + install_base=install_base.substring(5, install_base.lastIndexOf(File.separator)); + conf.put("install_base",install_base); + conf.put("appName", appInfo.get("name")); + String completed=Activator.getConfigurator().finishConfiguration(appInfo.get("id"), ib , conf); + if(completed==null){ + Activator.getInstaller().resetBundles(); + QMessageBox.information(this, "Installation", "Installation successfully completed!"); + }else + QMessageBox.critical(this, "Error", completed); + this.parent.closeSubWindow(this); + + } + + protected void cancel() { + Activator.getInstaller().revertInstallation(new File(appDir)); + this.parent.closeSubWindow(this); + } + + /** For convenience and test purposes the xml parsing is done here. + * In the future this method should be moved to the Configurator class. + * + * @param Path + * @throws XMLStreamException + */ + @SuppressWarnings("unchecked") + public boolean performConfiguration(String Path, Ui_Configure conf) throws XMLStreamException{ + + + QBoxLayout parent = conf.verticalLayout_4; + QWidget current = new QWidget(); + QLabel curLabel = new QLabel(); + String curid=null; + int row =0; + int panelrow=0; + boolean added=false; + + + XMLInputFactory inputFactory = XMLInputFactory.newInstance(); + XMLEventReader evRd = inputFactory.createXMLEventReader( new StreamSource( Path ) ); + Stack<String> stck = new Stack<String>(); + while( evRd.hasNext() ) { + XMLEvent ev = evRd.nextEvent(); + if( ev.isStartElement() ) { + stck.push( ev.asStartElement().getName().getLocalPart() ); + + Iterator<Attribute> iter = ev.asStartElement().getAttributes(); + while( iter.hasNext() ) { + Attribute a = iter.next(); + if(ev.asStartElement().getName().getLocalPart().equals("root")) + appInfo.put(a.getName().getLocalPart(), a.getValue()); + curid=a.getValue(); + } + if(ev.asStartElement().getName().getLocalPart().equals("panel")){ + QGroupBox panel= new QGroupBox(); + QVBoxLayout lay= new QVBoxLayout(); + panel.setLayout(lay); + panel.setTitle(curid); + parent.insertWidget(panelrow, panel); + parent=lay; + panelrow++; + } + } + if( ev.isCharacters() ) { + String s = ev.asCharacters().getData(); + if( s.trim().length() > 0 ){ + if(stck.peek().equals("type")){ + if(s.equals("TEXTBOX"))current=new QLineEdit(); + if(s.equals("DROPDOWNLIST"))current=new QComboBox(); + if(s.equals("CHECKBOX"))current=new QCheckBox(); + + current.setObjectName(curid); + } + if(stck.peek().equals("title")){ + curLabel=new QLabel(); + curLabel.setText(s); + } + if(stck.peek().equals("domain")){ + String[] entries=s.split(";"); + for(int i=0;i<entries.length;i++){ + ((QComboBox) current).addItem(entries[i]); + } + + } + } + } + if( ev.isEndElement()){ + String stckitem=stck.pop(); + if(stckitem.equals("element")){ + QHBoxLayout temp = new QHBoxLayout(); + current.setParent(conf.verticalLayout_4); + temp.insertWidget(0,curLabel); + temp.insertWidget(1,current); + parent.insertLayout(row, temp); + configdata.put(current.objectName(), current); + row++; + added=true; + } + if(stckitem.equals("panel")){ + parent=conf.verticalLayout_4; + row=0; + } + } + } + conf.verticalLayout_4.activate(); + return added; + } +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/DeinstallView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/DeinstallView.java new file mode 100644 index 0000000000000000000000000000000000000000..8abefd201a2d26b8dc43007d66e7844020e18c07 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/DeinstallView.java @@ -0,0 +1,65 @@ +package org.universAAL.ucc.viewjambi.install; + +import java.io.File; +import java.io.IOException; +import java.util.Iterator; +import java.util.List; + +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_Deinstall; +import org.universAAL.ucc.viewjambi.juic.Ui_Install; + +import com.trolltech.qt.gui.QDialog; +import com.trolltech.qt.gui.QFileDialog; +import com.trolltech.qt.gui.QListWidgetItem; +import com.trolltech.qt.gui.QMessageBox; + + +public class DeinstallView extends SubWindow { + + private static Ui_Deinstall install_base = new Ui_Deinstall(); + private static QListWidgetItem currentItem=null; + + + public DeinstallView(MainWindow parent) { + super(parent, DeinstallView.install_base); + + currentItem=null; + install_base.okButton.clicked.connect(this, "deinstallFile()"); + install_base.cancelButton.clicked.connect(this, "cancel()"); + List<String> apps=Activator.getModel().getApplicationManagment().getInstalledApplications(); + Iterator<String> itr=apps.iterator(); + while(itr.hasNext()){ + QListWidgetItem item= new QListWidgetItem(); + item.setText(itr.next()); + install_base.listWidget.addItem(item); + } + install_base.listWidget.itemClicked.connect(this,"setCurrentItem(QListWidgetItem)"); + + } + protected void setCurrentItem(QListWidgetItem item){ + currentItem=item; + } + + protected void deinstallFile() { + if(currentItem==null){ + QMessageBox.critical(this, "Deinstall Application", "Please select an application!"); + }else{ + IDeinstaller deinstaller = Activator.getDeinstaller(); + if(deinstaller.deinstallAppication(currentItem.text())){ + QMessageBox.information(this, "Deinstall Application", "Deinstalltion of the application "+currentItem.text()+" completed!"); + }else{ + QMessageBox.critical(this, "Deinstall Application", "Could not deinstall the application!"); + } + this.parent.closeSubWindow(this); + } + } + + protected void cancel() { + this.parent.closeSubWindow(this); + } + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/InstallView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/InstallView.java new file mode 100644 index 0000000000000000000000000000000000000000..d1f1729eb40ffcae0fdab599820cb3639affdcda --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/InstallView.java @@ -0,0 +1,61 @@ +package org.universAAL.ucc.viewjambi.install; + +import java.io.File; +import java.io.IOException; + +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_Install; + +import com.trolltech.qt.gui.QDialog; +import com.trolltech.qt.gui.QFileDialog; +import com.trolltech.qt.gui.QMessageBox; + + +public class InstallView extends SubWindow { + + private static Ui_Install install_base = new Ui_Install(); + + + public InstallView(MainWindow parent) { + super(parent, InstallView.install_base); + + install_base.fileChoise.clicked.connect(this,"openFileChoise()"); + install_base.okButton.clicked.connect(this, "installFile()"); + install_base.cancelButton.clicked.connect(this, "cancel()"); + } + + protected void openFileChoise() { + QFileDialog dialog = new QFileDialog(this, "Please choose a file to install!", ".", "universAAL (*.uaal)"); + int result = dialog.exec(); + + if (result == QDialog.DialogCode.Accepted.value()) { + String file = dialog.selectedFiles().get(0); + if (file != null) + install_base.fileName.setText(file); + System.out.println(install_base.fileName.text()); + } + } + + protected void installFile() { + System.out.println("InstallFile started"); + String p=install_base.fileName.text(); + p=p.replace("/", "\\"); + try { + String appDir = Activator.getInstaller().installApplication(p); + this.parent.closeSubWindow(this); + this.parent.showLicense(appDir); + } catch (NullPointerException e){ + QMessageBox.critical(this, "Error", "Installation failed! The Application probably already is installed!"); + } catch (Exception e) { + QMessageBox.critical(this, "Error", e.getMessage()); + this.parent.closeSubWindow(this); + } + } + + protected void cancel() { + this.parent.closeSubWindow(this); + } + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/LicenseView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/LicenseView.java new file mode 100644 index 0000000000000000000000000000000000000000..c4a92858b1700f1596317fede651ee97326a06ec --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/install/LicenseView.java @@ -0,0 +1,73 @@ +package org.universAAL.ucc.viewjambi.install; + +import java.io.BufferedReader; +import java.io.File; + +import java.io.FileReader; +import java.io.IOException; + + +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; + +import org.universAAL.ucc.viewjambi.juic.Ui_License; + + + + +public class LicenseView extends SubWindow { + + private static Ui_License install_base = new Ui_License(); + private static String appDir; + + public LicenseView(MainWindow parent,String path) throws IOException { + super(parent, LicenseView.install_base); + appDir=path; + StringBuffer l=readLicense(path+ File.separator +"EULA.txt"); + + install_base.license.setText(l.toString()); + + install_base.okButton.clicked.connect(this, "accept()"); + install_base.cancelButton.clicked.connect(this, "cancel()"); + } + + + protected void accept() { + this.parent.closeSubWindow(this); + this.parent.configureApp(appDir); + } + + + + private StringBuffer readLicense(String path) throws IOException { + File file = new File(path); + StringBuffer contents = new StringBuffer(); + BufferedReader reader = null; + + + reader = new BufferedReader(new FileReader(file)); + String text = null; + + // repeat until all lines is read + while ((text = reader.readLine()) != null) { + contents.append(text) + .append(System.getProperty( + "line.separator")); + } + + reader.close(); + + + + return contents; + } + + + + protected void cancel() { + Activator.getInstaller().revertInstallation(new File(appDir)); + this.parent.closeSubWindow(this); + } + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Configure.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Configure.java new file mode 100644 index 0000000000000000000000000000000000000000..5f503c235e964b0a13e66b5789b52e9fcd40d53c --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Configure.java @@ -0,0 +1,109 @@ +/******************************************************************************** +** Form generated from reading ui file 'configure.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_Configure implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QGridLayout gridLayout; + public QWidget widget; + public QHBoxLayout horizontalLayout_2; + public QHBoxLayout horizontalLayout; + public QSpacerItem horizontalSpacer; + public QPushButton okButton; + public QPushButton cancelButton; + public QVBoxLayout verticalLayout_4; + public QSpacerItem verticalSpacer; + + public Ui_Configure() { super(); } + + public void setupUi(QWidget Configure) + { + Configure.setObjectName("Configure"); + Configure.resize(new QSize(800, 600).expandedTo(Configure.minimumSizeHint())); + QSizePolicy sizePolicy = new QSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); + sizePolicy.setHorizontalStretch((byte)1); + sizePolicy.setVerticalStretch((byte)1); + sizePolicy.setHeightForWidth(Configure.sizePolicy().hasHeightForWidth()); + Configure.setSizePolicy(sizePolicy); + Configure.setMinimumSize(new QSize(250, 350)); + gridLayout_2 = new QGridLayout(Configure); + gridLayout_2.setObjectName("gridLayout_2"); + gridLayout = new QGridLayout(); + gridLayout.setObjectName("gridLayout"); + widget = new QWidget(Configure); + widget.setObjectName("widget"); + widget.setMinimumSize(new QSize(0, 20)); + horizontalLayout_2 = new QHBoxLayout(widget); + horizontalLayout_2.setMargin(0); + horizontalLayout_2.setObjectName("horizontalLayout_2"); + horizontalLayout = new QHBoxLayout(); + horizontalLayout.setObjectName("horizontalLayout"); + horizontalLayout.setSizeConstraint(com.trolltech.qt.gui.QLayout.SizeConstraint.SetFixedSize); + horizontalSpacer = new QSpacerItem(40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); + + horizontalLayout.addItem(horizontalSpacer); + + okButton = new QPushButton(widget); + okButton.setObjectName("okButton"); + QSizePolicy sizePolicy1 = new QSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.Fixed, com.trolltech.qt.gui.QSizePolicy.Policy.Fixed); + sizePolicy1.setHorizontalStretch((byte)0); + sizePolicy1.setVerticalStretch((byte)0); + sizePolicy1.setHeightForWidth(okButton.sizePolicy().hasHeightForWidth()); + okButton.setSizePolicy(sizePolicy1); + okButton.setMinimumSize(new QSize(75, 0)); + okButton.setMaximumSize(new QSize(75, 16777215)); + okButton.setBaseSize(new QSize(100, 0)); + + horizontalLayout.addWidget(okButton); + + cancelButton = new QPushButton(widget); + cancelButton.setObjectName("cancelButton"); + cancelButton.setMinimumSize(new QSize(75, 0)); + cancelButton.setMaximumSize(new QSize(75, 16777215)); + + horizontalLayout.addWidget(cancelButton); + + + horizontalLayout_2.addLayout(horizontalLayout); + + + gridLayout.addWidget(widget, 0, 0, 1, 2); + + + gridLayout_2.addLayout(gridLayout, 1, 0, 1, 1); + + verticalLayout_4 = new QVBoxLayout(); + verticalLayout_4.setObjectName("verticalLayout_4"); + verticalLayout_4.setSizeConstraint(com.trolltech.qt.gui.QLayout.SizeConstraint.SetMinAndMaxSize); + verticalSpacer = new QSpacerItem(20, 40, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); + + verticalLayout_4.addItem(verticalSpacer); + + + gridLayout_2.addLayout(verticalLayout_4, 0, 0, 1, 1); + + retranslateUi(Configure); + + Configure.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget Configure) + { + Configure.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("Configure", "Install a new application", null)); + okButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Configure", "OK", null)); + cancelButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Configure", "Cancel", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Deinstall.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Deinstall.java new file mode 100644 index 0000000000000000000000000000000000000000..5472283422fe50dd5e3353d89d6abba49bd4c568 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Deinstall.java @@ -0,0 +1,109 @@ +/******************************************************************************** +** Form generated from reading ui file 'deinstall.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_Deinstall implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QGridLayout gridLayout; + public QWidget widget; + public QHBoxLayout horizontalLayout_2; + public QHBoxLayout horizontalLayout; + public QSpacerItem horizontalSpacer; + public QPushButton okButton; + public QPushButton cancelButton; + public QVBoxLayout verticalLayout_2; + public QLabel label; + public QListWidget listWidget; + + public Ui_Deinstall() { super(); } + + public void setupUi(QWidget Deinstall) + { + Deinstall.setObjectName("Deinstall"); + Deinstall.resize(new QSize(400, 300).expandedTo(Deinstall.minimumSizeHint())); + gridLayout_2 = new QGridLayout(Deinstall); + gridLayout_2.setObjectName("gridLayout_2"); + gridLayout = new QGridLayout(); + gridLayout.setObjectName("gridLayout"); + widget = new QWidget(Deinstall); + widget.setObjectName("widget"); + widget.setMinimumSize(new QSize(0, 20)); + horizontalLayout_2 = new QHBoxLayout(widget); + horizontalLayout_2.setMargin(0); + horizontalLayout_2.setObjectName("horizontalLayout_2"); + horizontalLayout = new QHBoxLayout(); + horizontalLayout.setObjectName("horizontalLayout"); + horizontalSpacer = new QSpacerItem(40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); + + horizontalLayout.addItem(horizontalSpacer); + + okButton = new QPushButton(widget); + okButton.setObjectName("okButton"); + QSizePolicy sizePolicy = new QSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.Fixed, com.trolltech.qt.gui.QSizePolicy.Policy.Fixed); + sizePolicy.setHorizontalStretch((byte)0); + sizePolicy.setVerticalStretch((byte)0); + sizePolicy.setHeightForWidth(okButton.sizePolicy().hasHeightForWidth()); + okButton.setSizePolicy(sizePolicy); + okButton.setMinimumSize(new QSize(75, 0)); + okButton.setMaximumSize(new QSize(75, 16777215)); + okButton.setBaseSize(new QSize(100, 0)); + + horizontalLayout.addWidget(okButton); + + cancelButton = new QPushButton(widget); + cancelButton.setObjectName("cancelButton"); + cancelButton.setMinimumSize(new QSize(75, 0)); + cancelButton.setMaximumSize(new QSize(75, 16777215)); + + horizontalLayout.addWidget(cancelButton); + + + horizontalLayout_2.addLayout(horizontalLayout); + + + gridLayout.addWidget(widget, 0, 0, 1, 2); + + + gridLayout_2.addLayout(gridLayout, 1, 0, 1, 1); + + verticalLayout_2 = new QVBoxLayout(); + verticalLayout_2.setObjectName("verticalLayout_2"); + label = new QLabel(Deinstall); + label.setObjectName("label"); + + verticalLayout_2.addWidget(label); + + listWidget = new QListWidget(Deinstall); + listWidget.setObjectName("listWidget"); + + verticalLayout_2.addWidget(listWidget); + + + gridLayout_2.addLayout(verticalLayout_2, 0, 0, 1, 1); + + retranslateUi(Deinstall); + + Deinstall.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget Deinstall) + { + Deinstall.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("Deinstall", "Deinstall an application", null)); + okButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Deinstall", "Deinstall", null)); + cancelButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Deinstall", "Cancel", null)); + label.setText(com.trolltech.qt.core.QCoreApplication.translate("Deinstall", "Select an application: ", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_GridView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_GridView.java new file mode 100644 index 0000000000000000000000000000000000000000..3939946013b5b15877227be1baba1ced18d573b3 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_GridView.java @@ -0,0 +1,95 @@ +/******************************************************************************** +** Form generated from reading ui file 'Overview.jui' +** +** Created: Mi 27. Jul 18:39:05 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import java.util.ArrayList; +import java.util.List; + +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.layouts.OverviewGridLayout; +import org.universAAL.ucc.viewjambi.overview.LabeledIcon; + +import com.sun.management.jmx.Trace; +import com.trolltech.qt.core.QEvent; +import com.trolltech.qt.core.QSize; +import com.trolltech.qt.gui.QAction; +import com.trolltech.qt.gui.QColor; +import com.trolltech.qt.gui.QGridLayout; +import com.trolltech.qt.gui.QHBoxLayout; +import com.trolltech.qt.gui.QLabel; +import com.trolltech.qt.gui.QPalette; +import com.trolltech.qt.gui.QPixmap; +import com.trolltech.qt.gui.QScrollArea; +import com.trolltech.qt.gui.QSizePolicy; +import com.trolltech.qt.gui.QTreeView; +import com.trolltech.qt.gui.QVBoxLayout; +import com.trolltech.qt.gui.QWidget; +import com.trolltech.qt.gui.QLayout.SizeConstraint; + +public class Ui_GridView implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QTreeView treeView; + public QWidget parent; + public QScrollArea scrollArea; + public OverviewGridLayout currentLayout; + public QAction overviewAction; + public QAction installAction; + public QAction uninstallAction; + public QAction sysInformation; + public QHBoxLayout boxLayout; + + public Ui_GridView() { super(); } + + public void setupUi(QWidget Overview) + { + parent = Overview; + Overview.setObjectName("Overview"); + + + QPalette palette= new QPalette(); + palette.setColor(QPalette.ColorGroup.All, QPalette.ColorRole.Button, new QColor(255, 255, 255)); + palette.setColor(QPalette.ColorGroup.All, QPalette.ColorRole.Midlight, new QColor(255, 255, 255)); + palette.setColor(QPalette.ColorGroup.All, QPalette.ColorRole.Base, new QColor(255, 255, 255)); + palette.setColor(QPalette.ColorGroup.All, QPalette.ColorRole.Window, new QColor(255, 255, 255)); + + Overview.setPalette(palette); + Overview.setAutoFillBackground(true); + + Overview.setMinimumSize(new QSize(160, 200)); + Overview.resize(new QSize(160, 200).expandedTo(Overview.minimumSizeHint())); + + currentLayout = new OverviewGridLayout(Overview); + +// QWidget widget = new QWidget(scrollArea); +// widget.setLayout(currentLayout); +// widget.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Ignored); +// widget.setMinimumSize(300, 200); +// +// scrollArea = new QScrollArea(Overview); +// scrollArea.setWidget(widget); +// scrollArea.adjustSize(); +// Overview.adjustSize(); + + Overview.setAutoFillBackground(true); + retranslateUi(Overview); + + Overview.connectSlotsByName(); + } // setupUi + + + void retranslateUi(QWidget Overview) + { + Overview.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("Overview", "Application Overview", null)); + } // retranslateUi + + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Install.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Install.java new file mode 100644 index 0000000000000000000000000000000000000000..2db00e17f60f7d0be6765dc1ee8c5d0c786df3b5 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Install.java @@ -0,0 +1,128 @@ +/******************************************************************************** +** Form generated from reading ui file 'install.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_Install implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QGridLayout gridLayout; + public QLabel label; + public QLineEdit fileName; + public QSpacerItem verticalSpacer; + public QSpacerItem verticalSpacer_2; + public QPushButton fileChoise; + public QWidget widget; + public QHBoxLayout horizontalLayout_2; + public QHBoxLayout horizontalLayout; + public QSpacerItem horizontalSpacer; + public QPushButton okButton; + public QPushButton cancelButton; + public QLabel label_2; + + public Ui_Install() { super(); } + + public void setupUi(QWidget Install) + { + Install.setObjectName("Install"); + Install.resize(new QSize(400, 300).expandedTo(Install.minimumSizeHint())); + gridLayout_2 = new QGridLayout(Install); + gridLayout_2.setObjectName("gridLayout_2"); + gridLayout = new QGridLayout(); + gridLayout.setObjectName("gridLayout"); + label = new QLabel(Install); + label.setObjectName("label"); + + gridLayout.addWidget(label, 1, 0, 1, 1); + + fileName = new QLineEdit(Install); + fileName.setObjectName("fileName"); + + gridLayout.addWidget(fileName, 2, 0, 1, 1); + + verticalSpacer = new QSpacerItem(20, 40, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); + + gridLayout.addItem(verticalSpacer, 0, 0, 1, 1); + + verticalSpacer_2 = new QSpacerItem(20, 40, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); + + gridLayout.addItem(verticalSpacer_2, 4, 0, 1, 1); + + fileChoise = new QPushButton(Install); + fileChoise.setObjectName("fileChoise"); + fileChoise.setMaximumSize(new QSize(40, 16777215)); + + gridLayout.addWidget(fileChoise, 2, 1, 1, 1); + + widget = new QWidget(Install); + widget.setObjectName("widget"); + widget.setMinimumSize(new QSize(0, 20)); + horizontalLayout_2 = new QHBoxLayout(widget); + horizontalLayout_2.setMargin(0); + horizontalLayout_2.setObjectName("horizontalLayout_2"); + horizontalLayout = new QHBoxLayout(); + horizontalLayout.setObjectName("horizontalLayout"); + horizontalSpacer = new QSpacerItem(40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); + + horizontalLayout.addItem(horizontalSpacer); + + okButton = new QPushButton(widget); + okButton.setObjectName("okButton"); + QSizePolicy sizePolicy = new QSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.Fixed, com.trolltech.qt.gui.QSizePolicy.Policy.Fixed); + sizePolicy.setHorizontalStretch((byte)0); + sizePolicy.setVerticalStretch((byte)0); + sizePolicy.setHeightForWidth(okButton.sizePolicy().hasHeightForWidth()); + okButton.setSizePolicy(sizePolicy); + okButton.setMinimumSize(new QSize(75, 0)); + okButton.setMaximumSize(new QSize(75, 16777215)); + okButton.setBaseSize(new QSize(100, 0)); + + horizontalLayout.addWidget(okButton); + + cancelButton = new QPushButton(widget); + cancelButton.setObjectName("cancelButton"); + cancelButton.setMinimumSize(new QSize(75, 0)); + cancelButton.setMaximumSize(new QSize(75, 16777215)); + + horizontalLayout.addWidget(cancelButton); + + + horizontalLayout_2.addLayout(horizontalLayout); + + + gridLayout.addWidget(widget, 5, 0, 1, 2); + + label_2 = new QLabel(Install); + label_2.setObjectName("label_2"); + + gridLayout.addWidget(label_2, 3, 0, 1, 1); + + + gridLayout_2.addLayout(gridLayout, 0, 0, 1, 1); + + retranslateUi(Install); + + Install.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget Install) + { + Install.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("Install", "Install a new application", null)); + label.setText(com.trolltech.qt.core.QCoreApplication.translate("Install", "Please select a application to install:", null)); + fileChoise.setText(com.trolltech.qt.core.QCoreApplication.translate("Install", "...", null)); + okButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Install", "OK", null)); + cancelButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Install", "Cancel", null)); + label_2.setText(com.trolltech.qt.core.QCoreApplication.translate("Install", "I want to try this out to!", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_License.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_License.java new file mode 100644 index 0000000000000000000000000000000000000000..c6cb8f163b1aa6deff7aa5b38d7331d6a1fd6d82 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_License.java @@ -0,0 +1,104 @@ +/******************************************************************************** +** Form generated from reading ui file 'license.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_License implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QGridLayout gridLayout; + public QWidget widget; + public QHBoxLayout horizontalLayout_2; + public QHBoxLayout horizontalLayout; + public QSpacerItem horizontalSpacer; + public QPushButton okButton; + public QPushButton cancelButton; + public QVBoxLayout verticalLayout_4; + public QTextBrowser license; + + public Ui_License() { super(); } + + public void setupUi(QWidget License) + { + License.setObjectName("License"); + License.resize(new QSize(800, 600).expandedTo(License.minimumSizeHint())); + gridLayout_2 = new QGridLayout(License); + gridLayout_2.setObjectName("gridLayout_2"); + gridLayout = new QGridLayout(); + gridLayout.setObjectName("gridLayout"); + widget = new QWidget(License); + widget.setObjectName("widget"); + widget.setMinimumSize(new QSize(0, 20)); + horizontalLayout_2 = new QHBoxLayout(widget); + horizontalLayout_2.setMargin(0); + horizontalLayout_2.setObjectName("horizontalLayout_2"); + horizontalLayout = new QHBoxLayout(); + horizontalLayout.setObjectName("horizontalLayout"); + horizontalLayout.setSizeConstraint(com.trolltech.qt.gui.QLayout.SizeConstraint.SetFixedSize); + horizontalSpacer = new QSpacerItem(40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); + + horizontalLayout.addItem(horizontalSpacer); + + okButton = new QPushButton(widget); + okButton.setObjectName("okButton"); + QSizePolicy sizePolicy = new QSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.Fixed, com.trolltech.qt.gui.QSizePolicy.Policy.Fixed); + sizePolicy.setHorizontalStretch((byte)0); + sizePolicy.setVerticalStretch((byte)0); + sizePolicy.setHeightForWidth(okButton.sizePolicy().hasHeightForWidth()); + okButton.setSizePolicy(sizePolicy); + okButton.setMinimumSize(new QSize(75, 0)); + okButton.setMaximumSize(new QSize(75, 16777215)); + okButton.setBaseSize(new QSize(100, 0)); + + horizontalLayout.addWidget(okButton); + + cancelButton = new QPushButton(widget); + cancelButton.setObjectName("cancelButton"); + cancelButton.setMinimumSize(new QSize(75, 0)); + cancelButton.setMaximumSize(new QSize(75, 16777215)); + + horizontalLayout.addWidget(cancelButton); + + + horizontalLayout_2.addLayout(horizontalLayout); + + + gridLayout.addWidget(widget, 0, 0, 1, 2); + + + gridLayout_2.addLayout(gridLayout, 1, 0, 1, 1); + + verticalLayout_4 = new QVBoxLayout(); + verticalLayout_4.setObjectName("verticalLayout_4"); + verticalLayout_4.setSizeConstraint(com.trolltech.qt.gui.QLayout.SizeConstraint.SetMinAndMaxSize); + license = new QTextBrowser(License); + license.setObjectName("license"); + + verticalLayout_4.addWidget(license); + + + gridLayout_2.addLayout(verticalLayout_4, 0, 0, 1, 1); + + retranslateUi(License); + + License.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget License) + { + License.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("License", "Install a new application", null)); + okButton.setText(com.trolltech.qt.core.QCoreApplication.translate("License", "Accept", null)); + cancelButton.setText(com.trolltech.qt.core.QCoreApplication.translate("License", "Cancel", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_MainWindow.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_MainWindow.java new file mode 100644 index 0000000000000000000000000000000000000000..cf654aa43278acb6e3abfa549bf2ee6c65904091 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_MainWindow.java @@ -0,0 +1,100 @@ +/******************************************************************************** +** Form generated from reading ui file 'MainWindow.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_MainWindow implements com.trolltech.qt.QUiForm<QMainWindow> +{ + public QAction actionExit; + public QAction actionInstall; + public QAction actionSystem_Information; + public QAction actionDeinstall; + public QAction actionOverview; + public QWidget centralwidget; + public QVBoxLayout verticalLayout; + public QMdiArea mdiArea; + public QMenuBar menubar; + public QMenu menuFile; + public QMenu menuApplications; + public QMenu menuSystem; + public QStatusBar statusbar; + + public Ui_MainWindow() { super(); } + + public void setupUi(QMainWindow MainWindow) + { + MainWindow.setObjectName("MainWindow"); + MainWindow.resize(new QSize(640, 480).expandedTo(MainWindow.minimumSizeHint())); + actionExit = new QAction(MainWindow); + actionExit.setObjectName("actionExit"); + actionInstall = new QAction(MainWindow); + actionInstall.setObjectName("actionInstall"); + actionSystem_Information = new QAction(MainWindow); + actionSystem_Information.setObjectName("actionSystem_Information"); + actionDeinstall = new QAction(MainWindow); + actionDeinstall.setObjectName("actionDeinstall"); + actionOverview = new QAction(MainWindow); + actionOverview.setObjectName("actionOverview"); + centralwidget = new QWidget(MainWindow); + centralwidget.setObjectName("centralwidget"); + verticalLayout = new QVBoxLayout(centralwidget); + verticalLayout.setMargin(0); + verticalLayout.setObjectName("verticalLayout"); + mdiArea = new QMdiArea(centralwidget); + mdiArea.setObjectName("mdiArea"); + + verticalLayout.addWidget(mdiArea); + + MainWindow.setCentralWidget(centralwidget); + menubar = new QMenuBar(MainWindow); + menubar.setObjectName("menubar"); + menubar.setGeometry(new QRect(0, 0, 640, 21)); + menuFile = new QMenu(menubar); + menuFile.setObjectName("menuFile"); + menuApplications = new QMenu(menubar); + menuApplications.setObjectName("menuApplications"); + menuSystem = new QMenu(menubar); + menuSystem.setObjectName("menuSystem"); + MainWindow.setMenuBar(menubar); + statusbar = new QStatusBar(MainWindow); + statusbar.setObjectName("statusbar"); + MainWindow.setStatusBar(statusbar); + + menubar.addAction(menuFile.menuAction()); + menubar.addAction(menuApplications.menuAction()); + menubar.addAction(menuSystem.menuAction()); + menuFile.addAction(actionExit); + menuApplications.addAction(actionOverview); + menuApplications.addSeparator(); + menuApplications.addAction(actionInstall); + menuApplications.addAction(actionDeinstall); + menuSystem.addAction(actionSystem_Information); + retranslateUi(MainWindow); + + MainWindow.connectSlotsByName(); + } // setupUi + + void retranslateUi(QMainWindow MainWindow) + { + MainWindow.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "universAAL Control Center (UCC)", null)); + actionExit.setText(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "Exit", null)); + actionInstall.setText(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "Install", null)); + actionSystem_Information.setText(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "System Information", null)); + actionDeinstall.setText(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "Deinstall", null)); + actionOverview.setText(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "Overview", null)); + menuFile.setTitle(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "File", null)); + menuApplications.setTitle(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "Applications", null)); + menuSystem.setTitle(com.trolltech.qt.core.QCoreApplication.translate("MainWindow", "System", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Overview.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Overview.java new file mode 100644 index 0000000000000000000000000000000000000000..d976111fc5b713841a91db078527664666f55bf3 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_Overview.java @@ -0,0 +1,68 @@ +/******************************************************************************** +** Form generated from reading ui file 'Overview.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_Overview implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QGridLayout gridLayout; + public QTreeView treeView; + public QLabel label; + + public Ui_Overview() { super(); } + + public void setupUi(QWidget Overview) + { + Overview.setObjectName("Overview"); + Overview.resize(new QSize(261, 592).expandedTo(Overview.minimumSizeHint())); + gridLayout_2 = new QGridLayout(Overview); + gridLayout_2.setObjectName("gridLayout_2"); + gridLayout = new QGridLayout(); + gridLayout.setObjectName("gridLayout"); + treeView = new QTreeView(Overview); + treeView.setObjectName("treeView"); + treeView.setMinimumSize(new QSize(200, 400)); + treeView.setRootIsDecorated(true); + treeView.setItemsExpandable(true); + treeView.setExpandsOnDoubleClick(false); + + gridLayout.addWidget(treeView, 0, 0, 1, 1); + + + gridLayout_2.addLayout(gridLayout, 1, 0, 1, 1); + + label = new QLabel(Overview); + label.setObjectName("label"); + QFont font = new QFont(); + font.setPointSize(14); + font.setBold(true); + font.setWeight(75); + label.setFont(font); + label.setScaledContents(true); + label.setAlignment(com.trolltech.qt.core.Qt.AlignmentFlag.createQFlags(com.trolltech.qt.core.Qt.AlignmentFlag.AlignCenter)); + + gridLayout_2.addWidget(label, 0, 0, 1, 1); + + retranslateUi(Overview); + + Overview.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget Overview) + { + Overview.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("Overview", "Application Overview", null)); + label.setText(com.trolltech.qt.core.QCoreApplication.translate("Overview", "Applications", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_StoreView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_StoreView.java new file mode 100644 index 0000000000000000000000000000000000000000..710dbead4784b35463c7341623956014a63208a4 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_StoreView.java @@ -0,0 +1,41 @@ +/******************************************************************************** +** Form generated from reading ui file 'install.jui' +** +** Created: Mi 27. Jul 18:39:05 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; +import com.trolltech.qt.webkit.QWebView; + +public class Ui_StoreView implements com.trolltech.qt.QUiForm<QWidget> +{ + public QHBoxLayout horizontalLayout; + public QLabel label_2; + public QWebView webView; + + public Ui_StoreView() { super(); } + + public void setupUi(QWidget Install) + { + horizontalLayout = new QHBoxLayout(Install); + webView = new QWebView(); + webView.load(new QUrl("http://srv-ustore.haifa.il.ibm.com/webapp/wcs/stores/servlet/StoreView?storeId=10001")); + horizontalLayout.addWidget(webView); + + retranslateUi(Install); + Install.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget Install) + { + Install.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("Install", "Install a new application", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_SubWindow.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_SubWindow.java new file mode 100644 index 0000000000000000000000000000000000000000..725cde3f076f16e8c156d899d6618b0a3b98f6fa --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_SubWindow.java @@ -0,0 +1,97 @@ +/******************************************************************************** +** Form generated from reading ui file 'subwindow.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_SubWindow implements com.trolltech.qt.QUiForm<QWidget> +{ + public QVBoxLayout verticalLayout_2; + public QVBoxLayout mainLayou; + public QWidget header; + public QHBoxLayout headerLayou; + public QHBoxLayout horizontalLayout; + public QLabel headerLogo; + public QWidget content; + + public Ui_SubWindow() { super(); } + + public void setupUi(QWidget SubWindow) + { + SubWindow.setObjectName("SubWindow"); + SubWindow.resize(new QSize(402, 326).expandedTo(SubWindow.minimumSizeHint())); + verticalLayout_2 = new QVBoxLayout(SubWindow); + verticalLayout_2.setSpacing(6); + verticalLayout_2.setMargin(0); + verticalLayout_2.setObjectName("verticalLayout_2"); + mainLayou = new QVBoxLayout(); + mainLayou.setSpacing(0); + mainLayou.setObjectName("mainLayou"); + header = new QWidget(SubWindow); + header.setObjectName("header"); + QPalette palette= new QPalette(); + palette.setColor(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, new QColor(204, 204, 204)); + palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, new QColor(204, 204, 204)); + header.setPalette(palette); + header.setAutoFillBackground(true); + headerLayou = new QHBoxLayout(header); + headerLayou.setMargin(4); + headerLayou.setObjectName("headerLayou"); + horizontalLayout = new QHBoxLayout(); + horizontalLayout.setObjectName("horizontalLayout"); + headerLogo = new QLabel(header); + headerLogo.setObjectName("headerLogo"); + + horizontalLayout.addWidget(headerLogo); + + + headerLayou.addLayout(horizontalLayout); + + + mainLayou.addWidget(header); + + content = new QWidget(SubWindow); + content.setObjectName("content"); + QSizePolicy sizePolicy = new QSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy.Preferred, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); + sizePolicy.setHorizontalStretch((byte)0); + sizePolicy.setVerticalStretch((byte)0); + sizePolicy.setHeightForWidth(content.sizePolicy().hasHeightForWidth()); + content.setSizePolicy(sizePolicy); + content.setMinimumSize(new QSize(150, 50)); + + mainLayou.addWidget(content); + + + verticalLayout_2.addLayout(mainLayou); + + retranslateUi(SubWindow); + + SubWindow.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget SubWindow) + { + SubWindow.setWindowTitle(""); + headerLogo.setText(com.trolltech.qt.core.QCoreApplication.translate("SubWindow", "TextLabel", null)); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_SystemInformation.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_SystemInformation.java new file mode 100644 index 0000000000000000000000000000000000000000..6759be405fc3fcc546f2963c84936ecb035a6129 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/juic/Ui_SystemInformation.java @@ -0,0 +1,128 @@ +/******************************************************************************** +** Form generated from reading ui file 'SystemInformation.jui' +** +** Created: Mi 31. Aug 16:36:09 2011 +** by: Qt User Interface Compiler version 4.5.2 +** +** WARNING! All changes made in this file will be lost when recompiling ui file! +********************************************************************************/ + +package org.universAAL.ucc.viewjambi.juic; + +import com.trolltech.qt.core.*; +import com.trolltech.qt.gui.*; + +public class Ui_SystemInformation implements com.trolltech.qt.QUiForm<QWidget> +{ + public QGridLayout gridLayout_2; + public QGridLayout gridLayout; + public QLabel label; + public QWidget widget; + public QHBoxLayout horizontalLayout; + public QSpacerItem horizontalSpacer; + public QPushButton closeButton; + public QWidget widget_2; + public QVBoxLayout verticalLayout; + public QLabel label_2; + public QSpacerItem verticalSpacer; + public QTableWidget bundleList; + + public Ui_SystemInformation() { super(); } + + public void setupUi(QWidget SystemInformation) + { + SystemInformation.setObjectName("SystemInformation"); + SystemInformation.resize(new QSize(640, 480).expandedTo(SystemInformation.minimumSizeHint())); + gridLayout_2 = new QGridLayout(SystemInformation); + gridLayout_2.setObjectName("gridLayout_2"); + gridLayout = new QGridLayout(); + gridLayout.setObjectName("gridLayout"); + label = new QLabel(SystemInformation); + label.setObjectName("label"); + + gridLayout.addWidget(label, 0, 0, 1, 1); + + widget = new QWidget(SystemInformation); + widget.setObjectName("widget"); + horizontalLayout = new QHBoxLayout(widget); + horizontalLayout.setObjectName("horizontalLayout"); + horizontalSpacer = new QSpacerItem(40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); + + horizontalLayout.addItem(horizontalSpacer); + + closeButton = new QPushButton(widget); + closeButton.setObjectName("closeButton"); + + horizontalLayout.addWidget(closeButton); + + + gridLayout.addWidget(widget, 2, 0, 1, 2); + + widget_2 = new QWidget(SystemInformation); + widget_2.setObjectName("widget_2"); + verticalLayout = new QVBoxLayout(widget_2); + verticalLayout.setObjectName("verticalLayout"); + label_2 = new QLabel(widget_2); + label_2.setObjectName("label_2"); + + verticalLayout.addWidget(label_2); + + verticalSpacer = new QSpacerItem(20, 40, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); + + verticalLayout.addItem(verticalSpacer); + + + gridLayout.addWidget(widget_2, 1, 1, 1, 1); + + bundleList = new QTableWidget(SystemInformation); + bundleList.setObjectName("bundleList"); + + gridLayout.addWidget(bundleList, 1, 0, 1, 1); + + + gridLayout_2.addLayout(gridLayout, 0, 0, 1, 1); + + retranslateUi(SystemInformation); + + SystemInformation.connectSlotsByName(); + } // setupUi + + void retranslateUi(QWidget SystemInformation) + { + SystemInformation.setWindowTitle(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "System Information", null)); + label.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "List of active OSGi bundles:", null)); + closeButton.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "Close", null)); + label_2.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"+ +"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"+ +"p, li { white-space: pre-wrap; }\n"+ +"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"+ +"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">universAAL Version:</span></p>\n"+ +"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">1.0.0</span></p>\n"+ +"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"+ +"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">uCC Version:</span></p>\n"+ +"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">1.0.0</span></p>\n"+ +"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"+ +"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"www.universAAL.org\"><span style=\" text-decoration: underline; color:#0000ff;\">www.universAAL.org</span></a></p></body></html>", null)); + bundleList.clear(); + bundleList.setColumnCount(4); + + QTableWidgetItem __colItem = new QTableWidgetItem(); + __colItem.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "Symbolic Name", null)); + bundleList.setHorizontalHeaderItem(0, __colItem); + + QTableWidgetItem __colItem1 = new QTableWidgetItem(); + __colItem1.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "Last Update", null)); + bundleList.setHorizontalHeaderItem(1, __colItem1); + + QTableWidgetItem __colItem2 = new QTableWidgetItem(); + __colItem2.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "Status", null)); + bundleList.setHorizontalHeaderItem(2, __colItem2); + + QTableWidgetItem __colItem3 = new QTableWidgetItem(); + __colItem3.setText(com.trolltech.qt.core.QCoreApplication.translate("SystemInformation", "Comments", null)); + bundleList.setHorizontalHeaderItem(3, __colItem3); + bundleList.setRowCount(0); + } // retranslateUi + +} + diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/layouts/OverviewGridLayout.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/layouts/OverviewGridLayout.java new file mode 100644 index 0000000000000000000000000000000000000000..5e88f5640c9bc1cc4f82b0ebd231e5152fde8865 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/layouts/OverviewGridLayout.java @@ -0,0 +1,94 @@ +package org.universAAL.ucc.viewjambi.layouts; + +import java.util.ArrayList; +import java.util.List; + +import org.universAAL.ucc.viewjambi.overview.LabeledIcon; + +import com.trolltech.qt.core.QPoint; +import com.trolltech.qt.core.QRect; +import com.trolltech.qt.core.QSize; +import com.trolltech.qt.gui.QGridLayout; +import com.trolltech.qt.gui.QLayout; +import com.trolltech.qt.gui.QLayoutItem; +import com.trolltech.qt.gui.QLayoutItemInterface; +import com.trolltech.qt.gui.QWidget; +import com.trolltech.qt.gui.QWidgetItem; + +public class OverviewGridLayout extends QLayout{ + + private List<QLayoutItemInterface> layoutItems; + + public OverviewGridLayout(QWidget widget){ + super(widget); + layoutItems = new ArrayList<QLayoutItemInterface>(); + } + + public OverviewGridLayout(){ + super(); + layoutItems = new ArrayList<QLayoutItemInterface>(); + } + + @Override + public void addItem(QLayoutItemInterface arg0) { + layoutItems.add(arg0); + } + + public void addWidget(QWidget widget, int magic) + { + addChildWidget(widget); + addItem(new QWidgetItem(widget)); + } + + @Override + public int count() { + return layoutItems.size(); + } + + @Override + public QLayoutItemInterface itemAt(int arg0) { + return layoutItems.get(arg0); + } + + @Override + public QSize sizeHint() { + return new QSize(100, 100); + } + + @Override + public QLayoutItemInterface takeAt(int arg0) { + return layoutItems.remove(arg0); + } + + public void setGeometry(QRect rect){ + super.setGeometry(rect); + doLayout(rect); + } + + public QSize minimumSize(){ + return new QSize(400, 200); + } + + public int doLayout(QRect rect){ + int x = rect.x(); + int y = rect.y(); + int lineHeight = 100; + + for(QLayoutItemInterface item: layoutItems){ + QWidget widget = item.widget(); + int nextX = x+100; + if(nextX > rect.right() && lineHeight > 0){ + x = rect.x(); + y = y + lineHeight; + nextX = x + 100; + } + widget.setGeometry(new QRect(new QPoint(x,y), new QSize(100,100))); + + x = nextX; + + } + return y + lineHeight - rect.y(); + + } + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/GridView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/GridView.java new file mode 100644 index 0000000000000000000000000000000000000000..facd15798bc59db6855dd0181a6a9c2bc746e53d --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/GridView.java @@ -0,0 +1,98 @@ +package org.universAAL.ucc.viewjambi.overview; + +import java.util.ArrayList; +import java.util.List; + +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.information.InformationView; +import org.universAAL.ucc.viewjambi.install.InstallView; +import org.universAAL.ucc.viewjambi.juic.Ui_GridView; +import org.universAAL.ucc.viewjambi.layouts.OverviewGridLayout; +import org.universAAL.ucc.viewjambi.store.StoreView; + +import com.trolltech.qt.core.QModelIndex; +import com.trolltech.qt.core.QSize; +import com.trolltech.qt.core.QUrl; +import com.trolltech.qt.gui.QGridLayout; +import com.trolltech.qt.gui.QLabel; +import com.trolltech.qt.gui.QLayoutItemInterface; +import com.trolltech.qt.gui.QMessageBox; +import com.trolltech.qt.gui.QMessageBox.StandardButton; +import com.trolltech.qt.webkit.QWebView; + +public class GridView extends SubWindow { + + private static Ui_GridView install_base = new Ui_GridView(); + private OverviewGridLayout gridLayout; + private static List<LabeledIcon> iconWidgets; + static MainWindow parent; + static OverviewView overview; + + + public GridView(MainWindow parent) { + super(parent, GridView.install_base); + this.parent = parent; + gridLayout = install_base.currentLayout; + + this.setMinimumSize(new QSize(500, 200)); + + setIconList(); + + int current = 0; + for(LabeledIcon icon : iconWidgets){ + gridLayout.addWidget(icon, 3); + switch(current){ + case 0: icon.clicked.connect(this, "overview()"); break; + case 1: icon.clicked.connect(this, "install()"); break; + case 2: icon.clicked.connect(this, "uninstall()"); break; + case 3: icon.clicked.connect(this, "information()"); break; + case 4: icon.clicked.connect(this, "openStore()"); break; + default: icon.clicked.connect(this, "overview()"); break; + } + current++; + } + } + + public void overview(){ + overview = new OverviewView(parent); + } + + public void install(){ + new InstallView(parent); + } + + public void uninstall(){ + parent.deinstallApp(); + + } + + public void information(){ + new InformationView(parent); + } + + public void openStore(){ + new StoreView(parent); + } + + private void setIconList(){ + iconWidgets = new ArrayList<LabeledIcon>(); + iconWidgets.add(new LabeledIcon("Overview", "explorer.png")); + iconWidgets.add(new LabeledIcon("Install App", "3dsmax.png")); + iconWidgets.add(new LabeledIcon("Uninstall App", "aimp 4.png")); + iconWidgets.add(new LabeledIcon("System\nInformation", "addressbook.png")); + iconWidgets.add(new LabeledIcon("Download App", "utorrent2.png")); + iconWidgets.add(new LabeledIcon("Foo", "rss.png")); + iconWidgets.add(new LabeledIcon("Bar", "chat.png")); + iconWidgets.add(new LabeledIcon("Foo2", "gmail.png")); + /*iconWidgets.add(new LabeledIcon("Download App", "utorrent2.png")); + iconWidgets.add(new LabeledIcon("Download App", "utorrent2.png")); + iconWidgets.add(new LabeledIcon("Download App", "utorrent2.png")); + iconWidgets.add(new LabeledIcon("Download App", "utorrent2.png")); + iconWidgets.add(new LabeledIcon("Download App", "utorrent2.png")); + */ + } + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/LabeledIcon.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/LabeledIcon.java new file mode 100644 index 0000000000000000000000000000000000000000..68a55ccdd735c086f26d99a55e5dbb2246b3b25a --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/LabeledIcon.java @@ -0,0 +1,75 @@ +package org.universAAL.ucc.viewjambi.overview; + +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.juic.Ui_GridView; + +import com.trolltech.qt.core.QSize; +import com.trolltech.qt.gui.QAbstractButton; +import com.trolltech.qt.gui.QLabel; +import com.trolltech.qt.gui.QPaintEvent; +import com.trolltech.qt.gui.QPixmap; +import com.trolltech.qt.gui.QPushButton; +import com.trolltech.qt.gui.QVBoxLayout; +import com.trolltech.qt.gui.QWidget; +import com.trolltech.qt.gui.QLayout.SizeConstraint; + +public class LabeledIcon extends QAbstractButton{ + + public String text; + public String icon; + public QVBoxLayout layout; + public QLabel label; + public QLabel image; + public final String jarPath = "classpath:"+ Activator.getContext().getBundle().getLocation().substring(6); + + + public LabeledIcon(String text, String icon){ + super(); + this.text = text; + this.icon = icon; + + layout = new QVBoxLayout(); + layout.setAlignment(com.trolltech.qt.core.Qt.AlignmentFlag.createQFlags(com.trolltech.qt.core.Qt.AlignmentFlag.AlignCenter)); + label = new QLabel(); + image = new QLabel(); + + label.setText(text); +// label.setAlignment(com.trolltech.qt.core.Qt.AlignmentFlag.createQFlags(com.trolltech.qt.core.Qt.AlignmentFlag.AlignCenter)); + image.setPixmap(new QPixmap(jarPath+"#icon\\"+icon)); +// image.setAlignment(com.trolltech.qt.core.Qt.AlignmentFlag.createQFlags(com.trolltech.qt.core.Qt.AlignmentFlag.AlignCenter)); + image.setMinimumSize(new QSize(48,48)); + image.setMaximumSize(new QSize(48,48)); + label.setMinimumSize(new QSize(70, 30)); + label.setMaximumSize(new QSize(70, 30)); + + layout.insertWidget(0, image); + layout.insertWidget(1, label); + + layout.setSizeConstraint(SizeConstraint.SetFixedSize); + layout.setWidgetSpacing(0); + this.setMinimumSize(new QSize(72,72)); + this.setMaximumSize(new QSize(72,72)); + this.setLayout(layout); +// this.show(); + + + } + + public LabeledIcon(){ + this("",""); + } + + + + @Override + protected void paintEvent(QPaintEvent arg0) { + + } + + public QSize sizeHint(){ + return new QSize(100, 100); + } + + + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/OverviewView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/OverviewView.java new file mode 100644 index 0000000000000000000000000000000000000000..44d2068bccd181958ac6644d30321a58065c6ccc --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/OverviewView.java @@ -0,0 +1,79 @@ +package org.universAAL.ucc.viewjambi.overview; + +import org.universAAL.ucc.api.core.IDeinstaller; +import org.universAAL.ucc.api.model.IModel; +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_Overview; + +import com.trolltech.qt.core.QModelIndex; +import com.trolltech.qt.gui.QTreeModel; +import com.trolltech.qt.gui.QTreeView; + +public class OverviewView extends SubWindow { + + private static Ui_Overview install_base = new Ui_Overview(); + private static IModel model; + private static IDeinstaller deinstaller; + public static QTreeView treeView; + public static boolean active; + + public OverviewView(MainWindow parent) { + super(parent, OverviewView.install_base); + model = Activator.getModel(); + active = true; + init(); + } + + public void init(){ + + + QTreeModel treeModel = new QTreeModel() { + + @Override + public String text(Object arg0) { + return (String) arg0; + } + + @Override + public int childCount(Object arg0) { + if(!(arg0 == null)){ + if(model.getApplicationManagment().containsApplication((String) arg0)){ + return model.getApplicationManagment().getInstalledBundles((String) arg0).size(); + }else{ + return 0; + } + }else{ + return model.getApplicationManagment().getInstalledApplications().size(); + } + } + + @Override + public Object child(Object arg0, int arg1) { + if(arg0 == null){ + return model.getApplicationManagment().getInstalledApplications().get(arg1); + }else{ + return model.getApplicationManagment().getInstalledBundles((String) arg0).get(arg1); + } + } + }; + + treeView = install_base.treeView; + treeView.setHeaderHidden(true); + treeView.setModel(treeModel); + treeView.doubleClicked.connect(this, "onDoubleClick(QModelIndex)"); + } + + private void onDoubleClick(QModelIndex index){ + if(Activator.getModel().getApplicationManagment().containsApplication((String) index.data())) + new Overview_ConfigView(this.parent, (String) index.data()); + } + + protected void cancel() { + System.out.println("Setting active to false.."); + active = false; + this.parent.closeSubWindow(this); + } + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/Overview_ConfigView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/Overview_ConfigView.java new file mode 100644 index 0000000000000000000000000000000000000000..111a152f799534ac5ec05f1b7c2b86c431ee5193 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/overview/Overview_ConfigView.java @@ -0,0 +1,64 @@ +package org.universAAL.ucc.viewjambi.overview; + +import java.util.Map; +import java.util.Map.Entry; + +import org.universAAL.ucc.api.model.IModel; +import org.universAAL.ucc.viewjambi.Activator; +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_Configure; + +import com.trolltech.qt.QUiForm; +import com.trolltech.qt.gui.QBoxLayout; +import com.trolltech.qt.gui.QHBoxLayout; +import com.trolltech.qt.gui.QLabel; +import com.trolltech.qt.gui.QWidget; + +public class Overview_ConfigView extends SubWindow { + + private static Ui_Configure install_base = new Ui_Configure(); + private static IModel model; + private String bundleName; + + protected Overview_ConfigView(MainWindow parent, String bundleName) { + super(parent, install_base); + this.bundleName = bundleName; + model = Activator.getModel(); + install_base.cancelButton.clicked.connect(this, "cancel()"); + install_base.okButton.clicked.connect(this, "save()"); + init(); + } + + public void init(){ + Map<String, String> configMap = model.getApplicationManagment().getConfiguration(bundleName); + int row = 0; + + for(Entry<String, String> entry : configMap.entrySet()){ + QHBoxLayout hBoxLayout = new QHBoxLayout(); + + QLabel attribute = new QLabel(entry.getKey()); + QLabel value = new QLabel(entry.getValue()); + + attribute.setParent(hBoxLayout); + hBoxLayout.insertWidget(0, attribute); + value.setParent(hBoxLayout); + hBoxLayout.insertWidget(1, value); + + install_base.verticalLayout_4.insertLayout(row, hBoxLayout); + row++; + } + install_base.verticalLayout_4.activate(); + } + + + protected void cancel() { + this.parent.closeSubWindow(this); + } + + protected void save(){ + + } + + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/store/StoreView.java b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/store/StoreView.java new file mode 100644 index 0000000000000000000000000000000000000000..8aeb7fa02ca3bf4d83189fbdad35a6bc64783d72 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/store/StoreView.java @@ -0,0 +1,26 @@ +package org.universAAL.ucc.viewjambi.store; + +import org.universAAL.ucc.viewjambi.MainWindow; +import org.universAAL.ucc.viewjambi.SubWindow; +import org.universAAL.ucc.viewjambi.juic.Ui_StoreView; + +import com.trolltech.qt.core.QSize; + +public class StoreView extends SubWindow { + + private static Ui_StoreView install_base = new Ui_StoreView(); + static MainWindow parent; + + + + public StoreView(MainWindow parent) { + super(parent, StoreView.install_base); + this.parent = parent; + + this.setMinimumSize(new QSize(500, 500)); + + + } + + +} diff --git a/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/uninstall/com_trolltech_qt_core.dll b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/uninstall/com_trolltech_qt_core.dll new file mode 100644 index 0000000000000000000000000000000000000000..e0b46ed04d135c0a9250867f9223e99ec89746d9 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/java/org/universAAL/ucc/viewjambi/uninstall/com_trolltech_qt_core.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/QtCore4.dll b/ucc/ucc.viewjambi/src/main/resources/bin/QtCore4.dll new file mode 100644 index 0000000000000000000000000000000000000000..88a0536db96abcf7cc06c19e959dbd4429ab597e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/QtCore4.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/QtGui4.dll b/ucc/ucc.viewjambi/src/main/resources/bin/QtGui4.dll new file mode 100644 index 0000000000000000000000000000000000000000..beea5a8be52b9d1b094848e9f2750f860b01485c Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/QtGui4.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/QtNetwork4.dll b/ucc/ucc.viewjambi/src/main/resources/bin/QtNetwork4.dll new file mode 100644 index 0000000000000000000000000000000000000000..13963de37102fb571b4753f23ed00235ffa7e56b Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/QtNetwork4.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/QtWebKit4.dll b/ucc/ucc.viewjambi/src/main/resources/bin/QtWebKit4.dll new file mode 100644 index 0000000000000000000000000000000000000000..81358ce25847c77a279e78264b28d7eae37b2e36 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/QtWebKit4.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/com_trolltech_qt_core.dll b/ucc/ucc.viewjambi/src/main/resources/bin/com_trolltech_qt_core.dll new file mode 100644 index 0000000000000000000000000000000000000000..30f4cb07645632b565f7dc7fa2e8c26fbcabba17 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/com_trolltech_qt_core.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/com_trolltech_qt_gui.dll b/ucc/ucc.viewjambi/src/main/resources/bin/com_trolltech_qt_gui.dll new file mode 100644 index 0000000000000000000000000000000000000000..bf58a439a7cbaee01077b89f564761ec658a319e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/com_trolltech_qt_gui.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/phonon4.dll b/ucc/ucc.viewjambi/src/main/resources/bin/phonon4.dll new file mode 100644 index 0000000000000000000000000000000000000000..7b8c9aa2a7470b2f81b02d4c12ab1f98c8f8ec9c Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/phonon4.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/bin/qtjambi.dll b/ucc/ucc.viewjambi/src/main/resources/bin/qtjambi.dll new file mode 100644 index 0000000000000000000000000000000000000000..4229545e229120dd62ec27d4a3e70d9dd6245560 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/bin/qtjambi.dll differ diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/compile.bat b/ucc/ucc.viewjambi/src/main/resources/forms/compile.bat new file mode 100644 index 0000000000000000000000000000000000000000..e1be3f54ab519ba989c1f2bd4d5ad12b4729f043 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/compile.bat @@ -0,0 +1 @@ +call juic -cp -d %cd%\..\..\java\ -a \ No newline at end of file diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/MainWindow.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/MainWindow.jui new file mode 100644 index 0000000000000000000000000000000000000000..8ae5433eca4bdb27b998ce450c928515ba64b1e4 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/MainWindow.jui @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>MainWindow</class> + <widget class="QMainWindow" name="MainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>640</width> + <height>480</height> + </rect> + </property> + <property name="windowTitle"> + <string>universAAL Control Center (UCC)</string> + </property> + <widget class="QWidget" name="centralwidget"> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QMdiArea" name="mdiArea"/> + </item> + </layout> + </widget> + <widget class="QMenuBar" name="menubar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>640</width> + <height>21</height> + </rect> + </property> + <widget class="QMenu" name="menuFile"> + <property name="title"> + <string>File</string> + </property> + <addaction name="actionExit"/> + </widget> + <widget class="QMenu" name="menuApplications"> + <property name="title"> + <string>Applications</string> + </property> + <addaction name="actionOverview"/> + <addaction name="separator"/> + <addaction name="actionInstall"/> + <addaction name="actionDeinstall"/> + </widget> + <widget class="QMenu" name="menuSystem"> + <property name="title"> + <string>System</string> + </property> + <addaction name="actionSystem_Information"/> + </widget> + <addaction name="menuFile"/> + <addaction name="menuApplications"/> + <addaction name="menuSystem"/> + </widget> + <widget class="QStatusBar" name="statusbar"/> + <action name="actionExit"> + <property name="text"> + <string>Exit</string> + </property> + </action> + <action name="actionInstall"> + <property name="text"> + <string>Install</string> + </property> + </action> + <action name="actionSystem_Information"> + <property name="text"> + <string>System Information</string> + </property> + </action> + <action name="actionDeinstall"> + <property name="text"> + <string>Deinstall</string> + </property> + </action> + <action name="actionOverview"> + <property name="text"> + <string>Overview</string> + </property> + </action> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/Overview.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/Overview.jui new file mode 100644 index 0000000000000000000000000000000000000000..d2d6ad2d45c7d1d6501b0676b1bf2d3275dddeb4 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/Overview.jui @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>Overview</class> + <widget class="QWidget" name="Overview"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>261</width> + <height>592</height> + </rect> + </property> + <property name="windowTitle"> + <string>Application Overview</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="1" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QTreeView" name="treeView"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>400</height> + </size> + </property> + <property name="rootIsDecorated"> + <bool>true</bool> + </property> + <property name="itemsExpandable"> + <bool>true</bool> + </property> + <property name="expandsOnDoubleClick"> + <bool>false</bool> + </property> + <attribute name="headerVisible"> + <bool>false</bool> + </attribute> + </widget> + </item> + </layout> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="label"> + <property name="font"> + <font> + <pointsize>14</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Applications</string> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + <property name="alignment"> + <set>com.trolltech.qt.core.Qt.AlignmentFlag.AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/SystemInformation.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/SystemInformation.jui new file mode 100644 index 0000000000000000000000000000000000000000..143bfcc0d30dc924bc30b78aca6f148071465243 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/SystemInformation.jui @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>SystemInformation</class> + <widget class="QWidget" name="SystemInformation"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>640</width> + <height>480</height> + </rect> + </property> + <property name="windowTitle"> + <string>System Information</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>List of active OSGi bundles:</string> + </property> + </widget> + </item> + <item row="2" column="0" colspan="2"> + <widget class="QWidget" name="widget" native="true"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="closeButton"> + <property name="text"> + <string>Close</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="1" column="1"> + <widget class="QWidget" name="widget_2" native="true"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">universAAL Version:</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">1.0.0</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">uCC Version:</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">1.0.0</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="www.universAAL.org"><span style=" text-decoration: underline; color:#0000ff;">www.universAAL.org</span></a></p></body></html></string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </item> + <item row="1" column="0"> + <widget class="QTableWidget" name="bundleList"> + <column> + <property name="text"> + <string>Symbolic Name</string> + </property> + </column> + <column> + <property name="text"> + <string>Last Update</string> + </property> + </column> + <column> + <property name="text"> + <string>Status</string> + </property> + </column> + <column> + <property name="text"> + <string>Comments</string> + </property> + </column> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/configure.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/configure.jui new file mode 100644 index 0000000000000000000000000000000000000000..e25973e79f64408279b955700c5f86bda86e58cf --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/configure.jui @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>Configure</class> + <widget class="QWidget" name="Configure"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>600</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>1</horstretch> + <verstretch>1</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>250</width> + <height>350</height> + </size> + </property> + <property name="windowTitle"> + <string>Install a new application</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="1" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0" colspan="2"> + <widget class="QWidget" name="widget" native="true"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>20</height> + </size> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="margin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="sizeConstraint"> + <enum>com.trolltech.qt.gui.QLayout.SizeConstraint.SetFixedSize</enum> + </property> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="okButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>OK</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + </layout> + </item> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_4" stretch="0"> + <property name="sizeConstraint"> + <enum>com.trolltech.qt.gui.QLayout.SizeConstraint.SetMinAndMaxSize</enum> + </property> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/deinstall.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/deinstall.jui new file mode 100644 index 0000000000000000000000000000000000000000..6006bc1d85712ea3796ca08ba67d50586a526b7f --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/deinstall.jui @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>Deinstall</class> + <widget class="QWidget" name="Deinstall"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Deinstall an application</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="1" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0" colspan="2"> + <widget class="QWidget" name="widget" native="true"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>20</height> + </size> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="margin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="okButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Deinstall</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + </layout> + </item> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Select an application: </string> + </property> + </widget> + </item> + <item> + <widget class="QListWidget" name="listWidget"/> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/install.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/install.jui new file mode 100644 index 0000000000000000000000000000000000000000..4d1037e25f9a3304ac6dc20eac58f8305e61fed2 --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/install.jui @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>Install</class> + <widget class="QWidget" name="Install"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Install a new application</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="1" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Please select a application to install:</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLineEdit" name="fileName"/> + </item> + <item row="0" column="0"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="4" column="0"> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="1"> + <widget class="QPushButton" name="fileChoise"> + <property name="maximumSize"> + <size> + <width>40</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="5" column="0" colspan="2"> + <widget class="QWidget" name="widget" native="true"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>20</height> + </size> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="margin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="okButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>OK</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>I want to try this out to!</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/license.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/license.jui new file mode 100644 index 0000000000000000000000000000000000000000..95b8488d8d148011d46ed7cf188cb9f9f84ec20a --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/license.jui @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>License</class> + <widget class="QWidget" name="License"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>600</height> + </rect> + </property> + <property name="windowTitle"> + <string>Install a new application</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="1" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0" colspan="2"> + <widget class="QWidget" name="widget" native="true"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>20</height> + </size> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="margin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="sizeConstraint"> + <enum>com.trolltech.qt.gui.QLayout.SizeConstraint.SetFixedSize</enum> + </property> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>com.trolltech.qt.core.Qt.Orientation.Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="okButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>Accept</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="minimumSize"> + <size> + <width>75</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>75</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + </layout> + </item> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_4" stretch="0"> + <property name="sizeConstraint"> + <enum>com.trolltech.qt.gui.QLayout.SizeConstraint.SetMinAndMaxSize</enum> + </property> + <item> + <widget class="QTextBrowser" name="license"/> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/subwindow.jui b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/subwindow.jui new file mode 100644 index 0000000000000000000000000000000000000000..deaf7aaaace45d84ef9bf89451464010cd17661f --- /dev/null +++ b/ucc/ucc.viewjambi/src/main/resources/forms/org/universAAL/ucc/viewjambi/juic/subwindow.jui @@ -0,0 +1,191 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" language="jambi"> + <class>SubWindow</class> + <widget class="QWidget" name="SubWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>402</width> + <height>326</height> + </rect> + </property> + <property name="windowTitle"> + <string/> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <layout class="QVBoxLayout" name="mainLayou"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QWidget" name="header" native="true"> + <property name="palette"> + <palette> + <active> + <colorrole role="Button"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Midlight"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Base"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="Button"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Midlight"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Base"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="Button"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Midlight"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Base"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>204</red> + <green>204</green> + <blue>204</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="autoFillBackground"> + <bool>true</bool> + </property> + <layout class="QHBoxLayout" name="headerLayou"> + <property name="margin"> + <number>4</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLabel" name="headerLogo"> + <property name="text"> + <string>TextLabel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QWidget" name="content" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>150</width> + <height>50</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/100500.png b/ucc/ucc.viewjambi/src/main/resources/icon/100500.png new file mode 100644 index 0000000000000000000000000000000000000000..2c0107a6667a2e9c8900162b3ced76a3a2f02226 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/100500.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/3dsmax.png b/ucc/ucc.viewjambi/src/main/resources/icon/3dsmax.png new file mode 100644 index 0000000000000000000000000000000000000000..fa274abb6ec25ed84e24940a4e1337f3ec54d614 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/3dsmax.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/addressbook.png b/ucc/ucc.viewjambi/src/main/resources/icon/addressbook.png new file mode 100644 index 0000000000000000000000000000000000000000..8f7fa44b92509c58e3532afd7a89857b238f51ef Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/addressbook.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/addressbook2.png b/ucc/ucc.viewjambi/src/main/resources/icon/addressbook2.png new file mode 100644 index 0000000000000000000000000000000000000000..a59a6f166b5ce5c9ab2fe25a72d306bbb519dccf Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/addressbook2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ae 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/ae 2.png new file mode 100644 index 0000000000000000000000000000000000000000..575dca42ab8469fbcaf87fd0fc5f8ac79f5e8920 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ae 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ai 3.png b/ucc/ucc.viewjambi/src/main/resources/icon/ai 3.png new file mode 100644 index 0000000000000000000000000000000000000000..a7c2263c704d3e4bae241bbe0166fc6978fbb393 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ai 3.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/aimp 4.png b/ucc/ucc.viewjambi/src/main/resources/icon/aimp 4.png new file mode 100644 index 0000000000000000000000000000000000000000..295032390083d1984726be3b6710eb37fde1039c Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/aimp 4.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/angry birds.png b/ucc/ucc.viewjambi/src/main/resources/icon/angry birds.png new file mode 100644 index 0000000000000000000000000000000000000000..c994fb5e57293fcde2fe24fd0092a6341af0a25e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/angry birds.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/assassins creed br.png b/ucc/ucc.viewjambi/src/main/resources/icon/assassins creed br.png new file mode 100644 index 0000000000000000000000000000000000000000..96822182e485cab0a0e74f6852640da771b4af84 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/assassins creed br.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/audacity.png b/ucc/ucc.viewjambi/src/main/resources/icon/audacity.png new file mode 100644 index 0000000000000000000000000000000000000000..43da4edc6e404ebaa78674eca0fd007afa452f7e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/audacity.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/avast.png b/ucc/ucc.viewjambi/src/main/resources/icon/avast.png new file mode 100644 index 0000000000000000000000000000000000000000..59752f38a617cac7e0a9063eab4dac66d708012c Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/avast.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/burnout.png b/ucc/ucc.viewjambi/src/main/resources/icon/burnout.png new file mode 100644 index 0000000000000000000000000000000000000000..ebdd464ba72bdb9799980358a932f273aec788fd Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/burnout.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/cad.png b/ucc/ucc.viewjambi/src/main/resources/icon/cad.png new file mode 100644 index 0000000000000000000000000000000000000000..317cc17acbdb2dde2981a5a56043679cbf9057dc Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/cad.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/callofduty.png b/ucc/ucc.viewjambi/src/main/resources/icon/callofduty.png new file mode 100644 index 0000000000000000000000000000000000000000..7fd480899819f29a77450805452d0670248150ae Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/callofduty.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/camera 5.png b/ucc/ucc.viewjambi/src/main/resources/icon/camera 5.png new file mode 100644 index 0000000000000000000000000000000000000000..bd3ce53f5b564a06780ad32c270df33f2c86dc65 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/camera 5.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/camera.png b/ucc/ucc.viewjambi/src/main/resources/icon/camera.png new file mode 100644 index 0000000000000000000000000000000000000000..6a3d160dda5c1f093bbc0ba5c798d6c10507d6a6 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/camera.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ccleaner 6.png b/ucc/ucc.viewjambi/src/main/resources/icon/ccleaner 6.png new file mode 100644 index 0000000000000000000000000000000000000000..d68202fe31a484930187710c9b469199053717fb Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ccleaner 6.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ccleaner.png b/ucc/ucc.viewjambi/src/main/resources/icon/ccleaner.png new file mode 100644 index 0000000000000000000000000000000000000000..3637be965699544dceeac7f6e5cad40125ba9d41 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ccleaner.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/cd.png b/ucc/ucc.viewjambi/src/main/resources/icon/cd.png new file mode 100644 index 0000000000000000000000000000000000000000..eec83ce042d0923388e407e54702f277fe9e8dbd Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/cd.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/chat.png b/ucc/ucc.viewjambi/src/main/resources/icon/chat.png new file mode 100644 index 0000000000000000000000000000000000000000..e884ac16f3c30bdd4036283c812ca618e9cbb2a9 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/chat.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/chrome (5).png b/ucc/ucc.viewjambi/src/main/resources/icon/chrome (5).png new file mode 100644 index 0000000000000000000000000000000000000000..730e2f8f79433ae5c527a640914c335899a9e3d6 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/chrome (5).png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/chrome 3.png b/ucc/ucc.viewjambi/src/main/resources/icon/chrome 3.png new file mode 100644 index 0000000000000000000000000000000000000000..2b17a682ba1568c11f8b2dd172a89ec39298205d Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/chrome 3.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/chrome 7.png b/ucc/ucc.viewjambi/src/main/resources/icon/chrome 7.png new file mode 100644 index 0000000000000000000000000000000000000000..58a8846be82f1beac389b4cbffbbc12781c1cc42 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/chrome 7.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/chrome8.png b/ucc/ucc.viewjambi/src/main/resources/icon/chrome8.png new file mode 100644 index 0000000000000000000000000000000000000000..a841a68d59e7e21bbfa4f7da041f5bcabfb6254d Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/chrome8.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/cinema 4d.png b/ucc/ucc.viewjambi/src/main/resources/icon/cinema 4d.png new file mode 100644 index 0000000000000000000000000000000000000000..5ff27d6a5fccabd034c85217035db14f99f3010f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/cinema 4d.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/counter strike.png b/ucc/ucc.viewjambi/src/main/resources/icon/counter strike.png new file mode 100644 index 0000000000000000000000000000000000000000..a28270e8bae7e511206784633d5c71daf0ecc314 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/counter strike.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/crysis.png b/ucc/ucc.viewjambi/src/main/resources/icon/crysis.png new file mode 100644 index 0000000000000000000000000000000000000000..b413aa12bf00f7c02bbef2d49ff8c69e14e7897e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/crysis.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/daemon tool 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/daemon tool 2.png new file mode 100644 index 0000000000000000000000000000000000000000..d8855a4a0aa3081a1f27a7a17105ae9fb8df3e8f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/daemon tool 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/daemon tool.png b/ucc/ucc.viewjambi/src/main/resources/icon/daemon tool.png new file mode 100644 index 0000000000000000000000000000000000000000..6425ff79f6543f2f71b3f868756618452931446e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/daemon tool.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/deviantart.png b/ucc/ucc.viewjambi/src/main/resources/icon/deviantart.png new file mode 100644 index 0000000000000000000000000000000000000000..92f7e2dc3c9d9422e456743fbc759cb4098daa12 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/deviantart.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/dr.png b/ucc/ucc.viewjambi/src/main/resources/icon/dr.png new file mode 100644 index 0000000000000000000000000000000000000000..d29f84e585ef77ac917dea76d7eadec169694d63 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/dr.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/dvd.png b/ucc/ucc.viewjambi/src/main/resources/icon/dvd.png new file mode 100644 index 0000000000000000000000000000000000000000..ebdf8f599eb3db41789dd83cfd59376f4ee7b3a0 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/dvd.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/explorer 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/explorer 2.png new file mode 100644 index 0000000000000000000000000000000000000000..37ab1a5ddef05bd8e659a56473df0376da4faa68 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/explorer 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/explorer.png b/ucc/ucc.viewjambi/src/main/resources/icon/explorer.png new file mode 100644 index 0000000000000000000000000000000000000000..9552b6e86bfcfc819d6134e33da00455bfb708d6 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/explorer.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/facebook.png b/ucc/ucc.viewjambi/src/main/resources/icon/facebook.png new file mode 100644 index 0000000000000000000000000000000000000000..1633bd705ba3c67a75b21e199492f34004e2bd10 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/facebook.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/fav.png b/ucc/ucc.viewjambi/src/main/resources/icon/fav.png new file mode 100644 index 0000000000000000000000000000000000000000..5df41d88df67889954fd0a9117ca83d4dd86f953 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/fav.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/firefox 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/firefox 2.png new file mode 100644 index 0000000000000000000000000000000000000000..beabf3bbae3a0a61ecb774f9daa9726c9a607bec Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/firefox 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/firefox 3.png b/ucc/ucc.viewjambi/src/main/resources/icon/firefox 3.png new file mode 100644 index 0000000000000000000000000000000000000000..579db0ee1dbc9c5b96fa16ccaceb4d8fbc0e08f1 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/firefox 3.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/fl.png b/ucc/ucc.viewjambi/src/main/resources/icon/fl.png new file mode 100644 index 0000000000000000000000000000000000000000..3885bd061f81193c082c3e60d3a8d131cbf6177b Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/fl.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/foobar.png b/ucc/ucc.viewjambi/src/main/resources/icon/foobar.png new file mode 100644 index 0000000000000000000000000000000000000000..eaca97ea4b056c6bb18272325964059e72984bb0 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/foobar.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/gmail.png b/ucc/ucc.viewjambi/src/main/resources/icon/gmail.png new file mode 100644 index 0000000000000000000000000000000000000000..66da39eb3fb481a4727e7c659b898cd14a3a1837 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/gmail.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/gtaiv.png b/ucc/ucc.viewjambi/src/main/resources/icon/gtaiv.png new file mode 100644 index 0000000000000000000000000000000000000000..89e43de63ebe338dad85bb84ef495998caf35783 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/gtaiv.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/gtasa.png b/ucc/ucc.viewjambi/src/main/resources/icon/gtasa.png new file mode 100644 index 0000000000000000000000000000000000000000..9ea4b69c12d36c49e83576c78b5bfb3157f3a097 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/gtasa.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/guitar.png b/ucc/ucc.viewjambi/src/main/resources/icon/guitar.png new file mode 100644 index 0000000000000000000000000000000000000000..1f1fd3f3fa7959741be909ec4ee12d69592fa707 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/guitar.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/hdd 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/hdd 2.png new file mode 100644 index 0000000000000000000000000000000000000000..53208f33aeef3f6a8078fed10b5741f6983bcd07 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/hdd 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/hdd black.png b/ucc/ucc.viewjambi/src/main/resources/icon/hdd black.png new file mode 100644 index 0000000000000000000000000000000000000000..ac60364e309ca24ef14b0e6645e5ea33071e099a Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/hdd black.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/hl2.png b/ucc/ucc.viewjambi/src/main/resources/icon/hl2.png new file mode 100644 index 0000000000000000000000000000000000000000..39077d5fcf9e26885da328c600ddc068590730bf Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/hl2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/house md.png b/ucc/ucc.viewjambi/src/main/resources/icon/house md.png new file mode 100644 index 0000000000000000000000000000000000000000..a3fbab2997ba09e67157022137b03990dc8a1c25 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/house md.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/iconpackager.png b/ucc/ucc.viewjambi/src/main/resources/icon/iconpackager.png new file mode 100644 index 0000000000000000000000000000000000000000..a027580bb02fd7bfb979e629d01297b92866c59d Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/iconpackager.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/icq 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/icq 2.png new file mode 100644 index 0000000000000000000000000000000000000000..945e7c2b2658eccd6b806a6e344495ecbfb39c49 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/icq 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/icq 3.png b/ucc/ucc.viewjambi/src/main/resources/icon/icq 3.png new file mode 100644 index 0000000000000000000000000000000000000000..69cb447cbb93320f8fea1f62ee352415ca97c41f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/icq 3.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/internetexplorer.png b/ucc/ucc.viewjambi/src/main/resources/icon/internetexplorer.png new file mode 100644 index 0000000000000000000000000000000000000000..6e1025929af0ee8f0eb4cc68e60028b97e6c2926 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/internetexplorer.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/itunes.png b/ucc/ucc.viewjambi/src/main/resources/icon/itunes.png new file mode 100644 index 0000000000000000000000000000000000000000..4a748a9bbf4ae8354ceac78cb700bbc3962ce698 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/itunes.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/judo.png b/ucc/ucc.viewjambi/src/main/resources/icon/judo.png new file mode 100644 index 0000000000000000000000000000000000000000..bddfccbdf9a38e0ef22a17aa00a277d261c9595f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/judo.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/kaspersky.png b/ucc/ucc.viewjambi/src/main/resources/icon/kaspersky.png new file mode 100644 index 0000000000000000000000000000000000000000..a527a711bba9e9671383bb6034d1c8852b668773 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/kaspersky.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/love.png b/ucc/ucc.viewjambi/src/main/resources/icon/love.png new file mode 100644 index 0000000000000000000000000000000000000000..2c814fa15d857698588993f3629d863b3e907394 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/love.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/lr 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/lr 2.png new file mode 100644 index 0000000000000000000000000000000000000000..01a5b545908718fbd5af7ec180a167c0919d703e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/lr 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/mafiaII.png b/ucc/ucc.viewjambi/src/main/resources/icon/mafiaII.png new file mode 100644 index 0000000000000000000000000000000000000000..77017f421d01d63c5f8b99acc9cdede63721a1f9 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/mafiaII.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/mail.png b/ucc/ucc.viewjambi/src/main/resources/icon/mail.png new file mode 100644 index 0000000000000000000000000000000000000000..5c81d074ef61b01cb5f4fa9e66255b9fac0e83d8 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/mail.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/minecraft.png b/ucc/ucc.viewjambi/src/main/resources/icon/minecraft.png new file mode 100644 index 0000000000000000000000000000000000000000..2b22f40b9b1730edb4c80e0fba8b34e40fe2a526 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/minecraft.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/my computer.png b/ucc/ucc.viewjambi/src/main/resources/icon/my computer.png new file mode 100644 index 0000000000000000000000000000000000000000..9106bc52d2a9280f09c53029b0d827c78fb7734e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/my computer.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nero 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/nero 2.png new file mode 100644 index 0000000000000000000000000000000000000000..fad3c68a23902fa6754f7c072820a3b15b730334 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nero 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nfs most wanted.png b/ucc/ucc.viewjambi/src/main/resources/icon/nfs most wanted.png new file mode 100644 index 0000000000000000000000000000000000000000..526cd89a6465c32059cc9699872f79b259d2cc7f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nfs most wanted.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nfs prostreet.png b/ucc/ucc.viewjambi/src/main/resources/icon/nfs prostreet.png new file mode 100644 index 0000000000000000000000000000000000000000..34835be14ca1ce91303da4aec2c2800cb394301b Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nfs prostreet.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nfs shift.png b/ucc/ucc.viewjambi/src/main/resources/icon/nfs shift.png new file mode 100644 index 0000000000000000000000000000000000000000..4ffecbe4cdc9c217874d6b8fc8b11db344329e06 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nfs shift.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nfs undercover.png b/ucc/ucc.viewjambi/src/main/resources/icon/nfs undercover.png new file mode 100644 index 0000000000000000000000000000000000000000..8e12d32fc55d5c73e808f559c63b48240e41c7b7 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nfs undercover.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nfs underground.png b/ucc/ucc.viewjambi/src/main/resources/icon/nfs underground.png new file mode 100644 index 0000000000000000000000000000000000000000..892d3455649a81b999c0f8d4b5eb8d175609f57a Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nfs underground.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nod.png b/ucc/ucc.viewjambi/src/main/resources/icon/nod.png new file mode 100644 index 0000000000000000000000000000000000000000..e64ba84eadce4dd075d086df20fd974692b284e0 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nod.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nokia pcsuite 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/nokia pcsuite 2.png new file mode 100644 index 0000000000000000000000000000000000000000..ba8227fee9a835168a89d90b940ac3c9fe30ff37 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nokia pcsuite 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nokia pcsuite.png b/ucc/ucc.viewjambi/src/main/resources/icon/nokia pcsuite.png new file mode 100644 index 0000000000000000000000000000000000000000..760c47fc6517a15803351796629ed8fd92ec8577 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nokia pcsuite.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nokia s40.png b/ucc/ucc.viewjambi/src/main/resources/icon/nokia s40.png new file mode 100644 index 0000000000000000000000000000000000000000..83eddf95a36fd759a727b549e15f50c4e6bc3813 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nokia s40.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/nokia s60 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/nokia s60 2.png new file mode 100644 index 0000000000000000000000000000000000000000..a5c4a25503c89591cbed494fa48d19c86358157e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/nokia s60 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/norton.png b/ucc/ucc.viewjambi/src/main/resources/icon/norton.png new file mode 100644 index 0000000000000000000000000000000000000000..9d61b3452414c2ce88517e1c296802d11df05419 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/norton.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/opera 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/opera 2.png new file mode 100644 index 0000000000000000000000000000000000000000..4adb647bcd65bbfbf17f820f1ad4c4fe26505f98 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/opera 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/opera 3.png b/ucc/ucc.viewjambi/src/main/resources/icon/opera 3.png new file mode 100644 index 0000000000000000000000000000000000000000..e4f615ce0f472deb5bc3f918f63a602e10d3315a Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/opera 3.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ovi 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/ovi 2.png new file mode 100644 index 0000000000000000000000000000000000000000..10d7a7a9cd0380949d544858fdce2ba21a5887c8 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ovi 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ovi.png b/ucc/ucc.viewjambi/src/main/resources/icon/ovi.png new file mode 100644 index 0000000000000000000000000000000000000000..d694cc23e87680435ed3c9d51f4dfe64468dea6d Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ovi.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/pinnacle.png b/ucc/ucc.viewjambi/src/main/resources/icon/pinnacle.png new file mode 100644 index 0000000000000000000000000000000000000000..1b887bd3b97dd038b4e9d53b0fe20126018c02c1 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/pinnacle.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/portal 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/portal 2.png new file mode 100644 index 0000000000000000000000000000000000000000..a5c657203d6755512c2fdf65bbba52275aaf399e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/portal 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/portal.png b/ucc/ucc.viewjambi/src/main/resources/icon/portal.png new file mode 100644 index 0000000000000000000000000000000000000000..fce8de5ddb87eebcb65449ab0f9c9a49d6a1b257 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/portal.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/pr 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/pr 2.png new file mode 100644 index 0000000000000000000000000000000000000000..7dc33842ca424ba8bbd32696cfbd9b05d4edc630 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/pr 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/princeofpersia.png b/ucc/ucc.viewjambi/src/main/resources/icon/princeofpersia.png new file mode 100644 index 0000000000000000000000000000000000000000..a5e76b19fa8fc1e162621fda76dbf32cecdbaa08 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/princeofpersia.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/ps 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/ps 2.png new file mode 100644 index 0000000000000000000000000000000000000000..0fe8c04881af5284a8cc4be871172b579767b5fe Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/ps 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/recycle bin full.png b/ucc/ucc.viewjambi/src/main/resources/icon/recycle bin full.png new file mode 100644 index 0000000000000000000000000000000000000000..497081d9b8a0b3d1ed4c6397c300563bba22f277 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/recycle bin full.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/recycle bin.png b/ucc/ucc.viewjambi/src/main/resources/icon/recycle bin.png new file mode 100644 index 0000000000000000000000000000000000000000..1bb86c5f92dcc8e0a1fbe7d0b41336569cf5cde7 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/recycle bin.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/rocketdock.png b/ucc/ucc.viewjambi/src/main/resources/icon/rocketdock.png new file mode 100644 index 0000000000000000000000000000000000000000..2830e018f84530217fd8896b6ce4258bb2987a8e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/rocketdock.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/rockstar.png b/ucc/ucc.viewjambi/src/main/resources/icon/rockstar.png new file mode 100644 index 0000000000000000000000000000000000000000..9868610cb712816d13821ee2da7cbbfb42d18797 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/rockstar.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/rss 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/rss 2.png new file mode 100644 index 0000000000000000000000000000000000000000..bc52c2d29b72d16867d250dfaa8bfa35574899b0 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/rss 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/rss.png b/ucc/ucc.viewjambi/src/main/resources/icon/rss.png new file mode 100644 index 0000000000000000000000000000000000000000..062ee359d92222761f367b66f5620111c0e683cd Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/rss.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/safari.png b/ucc/ucc.viewjambi/src/main/resources/icon/safari.png new file mode 100644 index 0000000000000000000000000000000000000000..d593f218967818966ff95b666c690e94d6546c31 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/safari.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/sh.png b/ucc/ucc.viewjambi/src/main/resources/icon/sh.png new file mode 100644 index 0000000000000000000000000000000000000000..b84fbd6003bd476e6c84926caa630c23a7cdf070 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/sh.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/singularity.png b/ucc/ucc.viewjambi/src/main/resources/icon/singularity.png new file mode 100644 index 0000000000000000000000000000000000000000..45c36f81ede434f79d18b2a7594ddf8f0cc3767d Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/singularity.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/skype 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/skype 2.png new file mode 100644 index 0000000000000000000000000000000000000000..70e73952be254d77ff8d67d93e93080bc4bcda41 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/skype 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/spore.png b/ucc/ucc.viewjambi/src/main/resources/icon/spore.png new file mode 100644 index 0000000000000000000000000000000000000000..09a06152703869437f2342da6ff4abcea4819efb Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/spore.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/sta.png b/ucc/ucc.viewjambi/src/main/resources/icon/sta.png new file mode 100644 index 0000000000000000000000000000000000000000..2af3e422647523cc5419b9026962d8b2aa00e2f8 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/sta.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/steam2.png b/ucc/ucc.viewjambi/src/main/resources/icon/steam2.png new file mode 100644 index 0000000000000000000000000000000000000000..5599a25a4b8d8b4c42e8c2702d4293a883f2db23 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/steam2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/supermeatboy.png b/ucc/ucc.viewjambi/src/main/resources/icon/supermeatboy.png new file mode 100644 index 0000000000000000000000000000000000000000..c44e21dcdd3bc88c6e24d0774416b41b043f8d61 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/supermeatboy.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/system unit.png b/ucc/ucc.viewjambi/src/main/resources/icon/system unit.png new file mode 100644 index 0000000000000000000000000000000000000000..ee2257c59b087396606d4c5ed1e1f5a7d17a73c1 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/system unit.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/tekken.png b/ucc/ucc.viewjambi/src/main/resources/icon/tekken.png new file mode 100644 index 0000000000000000000000000000000000000000..0765b1c8ba5cd74bd613eb1e7bf4845a925ddc6e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/tekken.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/thunderbird 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/thunderbird 2.png new file mode 100644 index 0000000000000000000000000000000000000000..1e20a07fee5a1fb42b37be55c47624cd035c8fc5 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/thunderbird 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/thunderbird.png b/ucc/ucc.viewjambi/src/main/resources/icon/thunderbird.png new file mode 100644 index 0000000000000000000000000000000000000000..87fed454a70f08bcec1271ade55cf9b3785b7813 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/thunderbird.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/tron.png b/ucc/ucc.viewjambi/src/main/resources/icon/tron.png new file mode 100644 index 0000000000000000000000000000000000000000..5fcb3b5ac4e1346be8fdccf4c6ca2af5bb6f6741 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/tron.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/tron2.png b/ucc/ucc.viewjambi/src/main/resources/icon/tron2.png new file mode 100644 index 0000000000000000000000000000000000000000..5bccff5811c59c5b93a232ac2ac1e2784343eb46 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/tron2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/twitter.png b/ucc/ucc.viewjambi/src/main/resources/icon/twitter.png new file mode 100644 index 0000000000000000000000000000000000000000..4fc5c7b9b23bbf3a7879162958d995d7b1fe1032 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/twitter.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/twitter2.png b/ucc/ucc.viewjambi/src/main/resources/icon/twitter2.png new file mode 100644 index 0000000000000000000000000000000000000000..af6f24d9fe14ad1821c2bec262dda0da41b181f9 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/twitter2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/utorrent2.png b/ucc/ucc.viewjambi/src/main/resources/icon/utorrent2.png new file mode 100644 index 0000000000000000000000000000000000000000..ab0c0851ff7af63fe66abe2253a4c41718944f5f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/utorrent2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/vkontakte 2.png b/ucc/ucc.viewjambi/src/main/resources/icon/vkontakte 2.png new file mode 100644 index 0000000000000000000000000000000000000000..41480554e52338995f0621210810803e7516821a Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/vkontakte 2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/vkontakte.png b/ucc/ucc.viewjambi/src/main/resources/icon/vkontakte.png new file mode 100644 index 0000000000000000000000000000000000000000..51718d4abab769e266f23384eb331f47f4033c0b Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/vkontakte.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/vlc2.png b/ucc/ucc.viewjambi/src/main/resources/icon/vlc2.png new file mode 100644 index 0000000000000000000000000000000000000000..1b3bd342e742a23af8dd6d67bf18c05f60f40a6d Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/vlc2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/wacom bamboo.png b/ucc/ucc.viewjambi/src/main/resources/icon/wacom bamboo.png new file mode 100644 index 0000000000000000000000000000000000000000..477a7279ef6e6f509acb7f9df3ac2a2653f2abe8 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/wacom bamboo.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/winamp.png b/ucc/ucc.viewjambi/src/main/resources/icon/winamp.png new file mode 100644 index 0000000000000000000000000000000000000000..fdf491575c62e1f5d063470a3143df30d49e4945 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/winamp.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/wmp.png b/ucc/ucc.viewjambi/src/main/resources/icon/wmp.png new file mode 100644 index 0000000000000000000000000000000000000000..c70c623a8ec5d509c7034053f6cb0055915506e8 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/wmp.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/world of goo.png b/ucc/ucc.viewjambi/src/main/resources/icon/world of goo.png new file mode 100644 index 0000000000000000000000000000000000000000..8f2cdf2f44e24c0d571f7e40912d5a2d7ca26637 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/world of goo.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/wow.png b/ucc/ucc.viewjambi/src/main/resources/icon/wow.png new file mode 100644 index 0000000000000000000000000000000000000000..bdf64b2ed8ba5f67e5275803a90e7b04d73da4fb Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/wow.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/youtube.png b/ucc/ucc.viewjambi/src/main/resources/icon/youtube.png new file mode 100644 index 0000000000000000000000000000000000000000..bc74cf39799a42d2d4dc06f9cb616c2f38579da5 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/youtube.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/youtube2.png b/ucc/ucc.viewjambi/src/main/resources/icon/youtube2.png new file mode 100644 index 0000000000000000000000000000000000000000..e3070ee801d38fef716f9225ba6264ca999afd2f Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/youtube2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/zapuskatr.png b/ucc/ucc.viewjambi/src/main/resources/icon/zapuskatr.png new file mode 100644 index 0000000000000000000000000000000000000000..91f2989025ad91109b1487af6070c6ad1df0cac1 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/zapuskatr.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/zuma.png b/ucc/ucc.viewjambi/src/main/resources/icon/zuma.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ade7d7e74732efd681774236151f6e8f708416 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/zuma.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/zuma2.png b/ucc/ucc.viewjambi/src/main/resources/icon/zuma2.png new file mode 100644 index 0000000000000000000000000000000000000000..7abb3b0e0b1971532c0e8b37619157813d39dbb6 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/zuma2.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/icon/zuma3.png b/ucc/ucc.viewjambi/src/main/resources/icon/zuma3.png new file mode 100644 index 0000000000000000000000000000000000000000..30465f41dfc694406a374b19712ee80dfad916ec Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/icon/zuma3.png differ diff --git a/ucc/ucc.viewjambi/src/main/resources/images/uaal.bmp b/ucc/ucc.viewjambi/src/main/resources/images/uaal.bmp new file mode 100644 index 0000000000000000000000000000000000000000..6ac99423ac4f7f8394c111ef44e9786accf49593 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/images/uaal.bmp differ diff --git a/ucc/ucc.viewjambi/src/main/resources/images/uaal.gif b/ucc/ucc.viewjambi/src/main/resources/images/uaal.gif new file mode 100644 index 0000000000000000000000000000000000000000..f7222dcbd9c6844dfe643aef4002dc3feec5a9f1 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/images/uaal.gif differ diff --git a/ucc/ucc.viewjambi/src/main/resources/images/uaal.jpg b/ucc/ucc.viewjambi/src/main/resources/images/uaal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1034ca163d806584949f7bf89ef2d4b129f1e7a2 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/images/uaal.jpg differ diff --git a/ucc/ucc.viewjambi/src/main/resources/lib/qtjambi-4.5.2_01.jar b/ucc/ucc.viewjambi/src/main/resources/lib/qtjambi-4.5.2_01.jar new file mode 100644 index 0000000000000000000000000000000000000000..745e43c5a9d7cfb10238e668387d811d5420a06e Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/lib/qtjambi-4.5.2_01.jar differ diff --git a/ucc/ucc.viewjambi/src/main/resources/lib/qtjambi-win32-msvc2005-4.5.2_01.jar b/ucc/ucc.viewjambi/src/main/resources/lib/qtjambi-win32-msvc2005-4.5.2_01.jar new file mode 100644 index 0000000000000000000000000000000000000000..85a93b07fb599b31e54912e72f94241e81c52007 Binary files /dev/null and b/ucc/ucc.viewjambi/src/main/resources/lib/qtjambi-win32-msvc2005-4.5.2_01.jar differ diff --git a/ucc/ucc.viewjambi/target/ucc.viewjambi-0.0.1.jar b/ucc/ucc.viewjambi/target/ucc.viewjambi-0.0.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..7562e7449d97483e9478d277d41aacb42903393a Binary files /dev/null and b/ucc/ucc.viewjambi/target/ucc.viewjambi-0.0.1.jar differ