/*
 * Copyright (C) 2016 Frank Hossfeld <frank.hossfeld@googlemail.com>
 *
 * 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.
 *
 */

package de.gishmo.gwt.example.mvp4g2.simpleapplication.client;

import de.gishmo.gwt.example.mvp4g2.simpleapplication.client.handler.SimpleApplicationHandler02;
import de.gishmo.gwt.example.mvp4g2.simpleapplication.client.history.DefaultHistoryConverter;
import de.gishmo.gwt.example.mvp4g2.simpleapplication.client.history.HistoryName;
import de.gishmo.gwt.example.mvp4g2.simpleapplication.client.ui.navigation.NavigationPresenter;
import de.gishmo.gwt.example.mvp4g2.simpleapplication.client.ui.shell.ShellPresenter;
import de.gishmo.gwt.mvp4g2.client.eventbus.IsEventBus;
import de.gishmo.gwt.mvp4g2.client.eventbus.annotation.Debug;
import de.gishmo.gwt.mvp4g2.client.eventbus.annotation.Event;
import de.gishmo.gwt.mvp4g2.client.eventbus.annotation.EventBus;
import de.gishmo.gwt.mvp4g2.client.eventbus.annotation.Start;
import de.gishmo.gwt.mvp4g2.client.history.annotation.InitHistory;
import de.gishmo.gwt.mvp4g2.client.history.annotation.NotFoundHistory;
import elemental2.dom.Element;

/**
 * Event bus of the SimpleMvp4G2Application example
 */
@EventBus(shell = ShellPresenter.class, historyOnStart = true)
@Debug(logLevel = Debug.LogLevel.SIMPLE)
public interface Mvp4g2SimpleApplicationEventBus
  extends IsEventBus {

  @Start
  @Event(bind = {NavigationPresenter.class})
  public void start();

  @Event()
  void setNavigation(Element element);

  @Event()
  void setContent(Element element);

  @Event()
  void setStatus(String status);

  @Event(deactivate = {SimpleApplicationHandler02.class},
    historyConverter = DefaultHistoryConverter.class,
    historyName = HistoryName.DETAIL,
    navigationEvent = true)
  void gotoDetail(long id);

  @Event(activate = {SimpleApplicationHandler02.class},
    historyConverter = DefaultHistoryConverter.class,
    historyName = HistoryName.LIST,
    navigationEvent = true)
  void gotoList(String searchName,
                String searchOrt);

  @InitHistory
  @NotFoundHistory
  @Event()
  void initHistory();

  @Event(historyConverter = DefaultHistoryConverter.class,
    historyName = HistoryName.SEARCH,
    navigationEvent = true)
  void gotoSearch(String searchName,
                  String searchOrt);

}

@@ -1939,34 +1939,32 @@
 art();%0A%0A  @Event
-()
 %0A  void setNavig
@@ -1988,34 +1988,32 @@
 ment);%0A%0A  @Event
-()
 %0A  void setConte
@@ -2034,34 +2034,32 @@
 ment);%0A%0A  @Event
-()
 %0A  void setStatu

remove unneseccary brackets