/*
 * 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.impl.gui.utils;

import java.util.*;

/**
 * Manages the access to the properties file containing all sounds paths.
 * 
 * @author Yana Stamcheva
 */
public class Sounds {

    private static final String BUNDLE_NAME 
        = "net.java.sip.communicator.impl.gui.utils.sounds";

    private static final ResourceBundle RESOURCE_BUNDLE 
        = ResourceBundle.getBundle(BUNDLE_NAME);

    private Sounds() {
    }

    /**
     * Returns a sound path corresponding to the given sound key.
     * @param key The key of the sound.
     * @return A sound path corresponding to the given sound key.
     */
    public static String getString(String key) {
        try {
            return RESOURCE_BUNDLE.getString(key);

        } catch (MissingResourceException e) {

            return '!' + key + '!';
        }
    }
}

@@ -358,16 +358,1399 @@
 Sounds %7B
+%0A    %0A    public static String INCOMING_MESSAGE%0A        = %22resources/sounds/ship-sink.wav%22;%0A    %0A    public static String OUTGOING_CALL%0A        = %22resources/sounds/ring.wav%22;%0A    public static String INCOMING_CALL%0A        = %22resources/sounds/incomingCall.wav%22;%0A    %0A    public static String DIAL_ZERO%0A        = %22resources/sounds/one_1.wav%22;%0A    %0A    public static String DIAL_ONE%0A        = %22resources/sounds/one_1.wav%22;%0A    %0A    public static String DIAL_TWO%0A        = %22resources/sounds/two_2.wav%22;%0A    %0A    public static String DIAL_THREE%0A        = %22resources/sounds/three_3.wav%22;%0A    %0A    public static String DIAL_FOUR%0A        = %22resources/sounds/four_4.wav%22;%0A    %0A    public static String DIAL_FIVE%0A        = %22resources/sounds/five_5.wav%22;%0A    %0A    public static String DIAL_SIX%0A        = %22resources/sounds/six_6.wav%22;%0A    %0A    public static String DIAL_SEVEN%0A        = %22resources/sounds/seven_7.wav%22;%0A    %0A    public static String DIAL_EIGHT%0A        = %22resources/sounds/eight_8.wav%22;%0A    %0A    public static String DIAL_NINE%0A        = %22resources/sounds/nine_9.wav%22;%0A    %0A    public static String DIAL_DIEZ%0A        = %22resources/sounds/one_1.wav%22;%0A    %0A    public static String DIAL_STAR%0A        = %22resources/sounds/one_1.wav%22;%0A    %0A    public static String DIALING%0A        = %22resources/sounds/dialing.wav%22;%0A    %0A    public static String BUSY%0A        = %22resources/sounds/busy.wav%22;
 %0A%0A    pr

add here all sound paths