/* D-Bus Java Implementation Copyright (c) 2005-2006 Matthew Johnson This program is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 2 or the Academic Free Licence Version 2.1. Full licence texts are included in the COPYING file with this program. */ package org.freedesktop.dbus.test; import org.freedesktop.dbus.DBusInterface; import org.freedesktop.dbus.Path; import org.freedesktop.dbus.UInt16; import org.freedesktop.DBus.Description; import org.freedesktop.DBus.Method; import java.lang.reflect.Type; import java.util.Map; import java.util.List; /** * A sample remote interface which exports one method. */ public interface TestRemoteInterface extends DBusInterface { /** * A simple method with no parameters which returns a String */ @Description("Simple test method") public String getName(); @Description("Test of nested maps") public <T> int frobnicate(List<Long> n, Map<String,Map<UInt16,Short>> m, T v); @Description("Throws a TestException when called") public void throwme() throws TestException; @Description("Waits then doesn't return") @Method.NoReply() public void waitawhile(); @Description("Interface-overloaded method") public int overload(); @Description("Testing Type Signatures") public void sig(Type[] s); @Description("Testing object paths as Path objects") public void newpathtest(Path p); @Description("Testing the float type") public float testfloat(float[] f); @Description("Testing structs of structs") public int[][] teststructstruct(TestStruct3 in); @Description("Regression test for #13291") public void reg13291(byte[] as, byte[] bs); }