Package com.opera.core.systems.scope.protos.UmsProtos

Examples of com.opera.core.systems.scope.protos.UmsProtos.Response


    }
    return lastFound;
  }

  public List<QuickWindow> getQuickWindowList() {
    Response response = executeMessage(DesktopWindowManagerMessage.LIST_WINDOWS, null);
    DesktopWindowList.Builder builder = DesktopWindowList.newBuilder();
    builder.clear();
    buildPayload(response, builder);
    DesktopWindowList list = builder.build();
View Full Code Here


  }

  // -- Window

  public List<DesktopWindowInfo> getDesktopWindowInfoList() {
    Response response = executeMessage(DesktopWindowManagerMessage.LIST_WINDOWS, null);
    DesktopWindowList.Builder builder = DesktopWindowList.newBuilder();
    buildPayload(response, builder);
    DesktopWindowList list = builder.build();

    return list.getWindowListList();
View Full Code Here

    } else {
      winBuilder.setWindowID(activeWindowId);
      windowId = activeWindowId;
    }

    Response response = executeMessage(DesktopWindowManagerMessage.LIST_QUICK_WIDGETS, winBuilder);
    QuickWidgetInfoList.Builder builder = QuickWidgetInfoList.newBuilder();
    builder.clear();
    buildPayload(response, builder);
    QuickWidgetInfoList list = builder.build();
View Full Code Here

    return menuList;
  }

  private List<QuickMenuInfo> getQuickMenuInfoList() {
    Response response = executeMessage(DesktopWindowManagerMessage.LIST_QUICK_MENUS, null);
    QuickMenuList.Builder builder = QuickMenuList.newBuilder();
    builder.clear();
    buildPayload(response, builder);
    QuickMenuList list = builder.build();
View Full Code Here

  public String getString(String enumText, boolean stripAmpersand) {
    String string = "";

    DesktopStringID.Builder stringBuilder = DesktopStringID.newBuilder();
    stringBuilder.setEnumText(enumText);
    Response response = executeMessage(DesktopUtilsMessage.GET_STRING, stringBuilder);

    if (response == null) {
      logger.warning(String.format("Could not fetch string for ID: %s", enumText));
    } else {
      DesktopStringText.Builder stringTextBuilder = DesktopStringText.newBuilder();
View Full Code Here

    // comparison doesn't work
    return text.replaceAll("(\\r)", "");
  }

  public String getOperaPath() {
    Response response = executeMessage(DesktopUtilsMessage.GET_OPERA_PATH, null);

    DesktopPath.Builder pathBuilder = DesktopPath.newBuilder();
    buildPayload(response, pathBuilder);
    DesktopPath string_path = pathBuilder.build();
View Full Code Here

    return string_path.getPath();
  }

  public String getLargePreferencesPath() {
    Response response = executeMessage(DesktopUtilsMessage.GET_LARGE_PREFERENCES_PATH, null);

    DesktopPath.Builder pathBuilder = DesktopPath.newBuilder();
    buildPayload(response, pathBuilder);
    DesktopPath stringPath = pathBuilder.build();
View Full Code Here

    return stringPath.getPath();
  }

  public String getSmallPreferencesPath() {
    Response response = executeMessage(DesktopUtilsMessage.GET_SMALL_PREFERENCES_PATH, null);

    DesktopPath.Builder pathBuilder = DesktopPath.newBuilder();
    buildPayload(response, pathBuilder);
    DesktopPath stringPath = pathBuilder.build();
View Full Code Here

    return stringPath.getPath();
  }

  public String getCachePreferencesPath() {
    Response response = executeMessage(DesktopUtilsMessage.GET_CACHE_PREFERENCES_PATH, null);

    DesktopPath.Builder pathBuilder = DesktopPath.newBuilder();
    buildPayload(response, pathBuilder);
    DesktopPath stringPath = pathBuilder.build();
View Full Code Here

    return stringPath.getPath();
  }

  public int getOperaPid() {
    Response response = executeMessage(DesktopUtilsMessage.GET_OPERA_PID, null);

    DesktopPid.Builder pathBuilder = DesktopPid.newBuilder();
    buildPayload(response, pathBuilder);
    DesktopPid desktopPid = pathBuilder.build();
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.UmsProtos.Response

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.