aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2010-09-02 22:50:23 +0000
committerYana Stamcheva <yana@jitsi.org>2010-09-02 22:50:23 +0000
commit45cf66297884d51760202c3213fde1e909a8d482 (patch)
treea93fa8aab3fb949ae0c24ddd5c819da166cf96bf /src/net/java/sip/communicator/service
parentf6c822cc9e1486b59575fdc48a9b0e223e584a16 (diff)
downloadjitsi-45cf66297884d51760202c3213fde1e909a8d482.zip
jitsi-45cf66297884d51760202c3213fde1e909a8d482.tar.gz
jitsi-45cf66297884d51760202c3213fde1e909a8d482.tar.bz2
Skin implementation bases provided by Adam Netočný (work in progress).
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r--src/net/java/sip/communicator/service/resources/ResourceManagementService.java9
-rw-r--r--src/net/java/sip/communicator/service/resources/SkinPack.java49
2 files changed, 58 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/resources/ResourceManagementService.java b/src/net/java/sip/communicator/service/resources/ResourceManagementService.java
index 5400f9e..a89135b 100644
--- a/src/net/java/sip/communicator/service/resources/ResourceManagementService.java
+++ b/src/net/java/sip/communicator/service/resources/ResourceManagementService.java
@@ -18,6 +18,7 @@ import javax.swing.*;
* some configurations.
*
* @author Damian Minkov
+ * @author Adam Netocny, CircleTech, s.r.o.
*/
public interface ResourceManagementService
{
@@ -237,4 +238,12 @@ public interface ResourceManagementService
* @return A byte array containing the image with the given identifier.
*/
public byte[] getImageInBytes(String imageID);
+
+ /**
+ * Builds a new skin bundle from the zip file content.
+ * @param zipFile Zip file with skin information.
+ * @return <tt>File</tt> for the bundle.
+ * @throws Exception When something goes wrong.
+ */
+ public File prepareSkinBundleFromZip(File zipFile) throws Exception;
}
diff --git a/src/net/java/sip/communicator/service/resources/SkinPack.java b/src/net/java/sip/communicator/service/resources/SkinPack.java
new file mode 100644
index 0000000..56f033f
--- /dev/null
+++ b/src/net/java/sip/communicator/service/resources/SkinPack.java
@@ -0,0 +1,49 @@
+/*
+ * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package net.java.sip.communicator.service.resources;
+
+import java.util.*;
+
+/**
+ * Default Skin Pack interface.
+ * @author Adam Netocny, CircleTech, s.r.o.
+ */
+public interface SkinPack
+ extends ResourcePack
+{
+ /**
+ * Default resource name.
+ */
+ public String RESOURCE_NAME_DEFAULT_VALUE = "SkinPack";
+
+ /**
+ * Returns a <tt>Map</tt>, containing all [key, value] pairs for image
+ * resource pack.
+ *
+ * @return a <tt>Map</tt>, containing all [key, value] pairs for image
+ * resource pack.
+ */
+ public Map<String, String> getImageResources();
+
+ /**
+ * Returns a <tt>Map</tt>, containing all [key, value] pairs for style
+ * resource pack.
+ *
+ * @return a <tt>Map</tt>, containing all [key, value] pairs for style
+ * resource pack.
+ */
+ public Map<String, String> getStyleResources();
+
+ /**
+ * Returns a <tt>Map</tt>, containing all [key, value] pairs for color
+ * resource pack.
+ *
+ * @return a <tt>Map</tt>, containing all [key, value] pairs for color
+ * resource pack.
+ */
+ public Map<String, String> getColorResources();
+}