package io.joynr.provider;

/*
 * #%L
 * %%
 * Copyright (C) 2011 - 2013 BMW Car IT GmbH
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import io.joynr.pubsub.publication.AttributeListener;
import io.joynr.pubsub.publication.BroadcastFilterImpl;
import io.joynr.pubsub.publication.BroadcastListener;
import joynr.types.ProviderQos;

public interface JoynrProvider {
    ProviderQos getProviderQos();

    void registerAttributeListener(String attributeName, AttributeListener attributeListener);

    void unregisterAttributeListener(String attributeName, AttributeListener attributeListener);

    void registerBroadcastListener(String broadcastName, BroadcastListener broadcastListener);

    void unregisterBroadcastListener(String broadcastName, BroadcastListener broadcastListener);

    /**
     * Adds a broadcast filter to the provider. The filter is specific for a
     * single broadcast as defined in the Franca model. It will be executed
     * once for each subscribed client whenever the broadcast is fired. Clients
     * set individual filter parameters to control filter behavior.
     *
     * @param filter the filter to add.
     */
    void addBroadcastFilter(BroadcastFilterImpl filter);

    /**
     * Adds multiple broadcast filters to the provider.
     *
     * @see JoynrProvider.addBroadcastFilter(BroadcastFilterImpl filter)
     *
     * @param filters the filters to add.
     */
    void addBroadcastFilter(BroadcastFilterImpl... filters);

}

@@ -896,328 +896,1475 @@
     
-ProviderQos getProviderQos();%0A%0A    void registerAttributeListener(String attributeName, AttributeListener attributeListener);%0A%0A    void unregisterAttributeListener(String attributeName, AttributeListener attributeListener);%0A%0A    void registerBroadcastListener(String broadcastName, BroadcastListener broadcastListener);%0A
+/**%0A     * @return provider QoS that applies to this provider instance.%0A     */%0A    ProviderQos getProviderQos();%0A%0A    /**%0A     * Registers an attribute listener that gets notified in case the attribute%0A     * changes. This is used for on change subscriptions.%0A     *%0A     * @param attributeName the attribute name as defined in the Franca model%0A     *      to subscribe to.%0A     * @param attributeListener the listener to add.%0A     */%0A    void registerAttributeListener(String attributeName, AttributeListener attributeListener);%0A%0A    /**%0A     * Unregisters an attribute listener.%0A     *%0A     * @param attributeName the attribute name as defined in the Franca model%0A     *      to unsubscribe from.%0A     * @param attributeListener the listener to remove.%0A     */%0A    void unregisterAttributeListener(String attributeName, AttributeListener attributeListener);%0A%0A    /**%0A     * Registers a broadcast listener that gets notified in case the broadcast%0A     * is fired.%0A     *%0A     * @param broadcastName the broadcast name as defined in the Franca model%0A     *      to subscribe to.%0A     * @param broadcastListener the listener to add.%0A     */%0A    void registerBroadcastListener(String broadcastName, BroadcastListener broadcastListener);%0A%0A    /**%0A     * Unregisters a broadcast listener.%0A     *%0A     * @param broadcastName the broadcast name as defined in the Franca model%0A     *      to unsubscribe from.%0A     * @param broadcastListener the listener to remove.%0A     */
 %0A   

add comments to JoynrProvider interface