blob: a24ef43bad4e421c63a6b999d794b087bbaedc34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*
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();
public String getNameAndThrow();
@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);
/* test lots of things involving Path */
public Path pathrv(Path a);
public List<Path> pathlistrv(List<Path> a);
public Map<Path,Path> pathmaprv(Map<Path,Path> a);
}
|