summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KDataToolInfo.java
blob: 5b3e1ea016ccca24eda12a219f5ac54784e115b0 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;
import java.util.ArrayList;

/**

 This is a convenience class for KService. You can use it if you have
 a KService describing a KDataTool. In this case the KDataToolInfo class
 is more convenient to work with.
 Especially useful is the method createTool which creates the datatool
 described by the service.
		@short    This is a convenience class for KService.
		@see KDataTool

*/
public class KDataToolInfo implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KDataToolInfo(Class dummy){}

	/**	
		 Create an invalid KDataToolInfo.
		     		@short    Create an invalid KDataToolInfo.
	*/
	public KDataToolInfo() {
		newKDataToolInfo();
	}
	private native void newKDataToolInfo();
	/**	
		 Create a valid KDataToolInfo.
			@param service the corresponding service
			@param instance the instance to use
		     		@short    Create a valid KDataToolInfo.
	*/
	// KDataToolInfo* KDataToolInfo(const KService::Ptr& arg1,TDEInstance* arg2); >>>> NOT CONVERTED
	/**	
		 Copy constructor.
		     		@short    Copy constructor.
	*/
	public KDataToolInfo(KDataToolInfo info) {
		newKDataToolInfo(info);
	}
	private native void newKDataToolInfo(KDataToolInfo info);
	/**	
		 Returns the data type that the DataTool can accept.
				@return the C++ data type that this DataTool accepts.
         For example "String" or "TQImage" or something more
         complicated.
     
		@short    Returns the data type that the DataTool can accept.
	*/
	public native String dataType();
	/**	
		 Returns a list of mime type that will be accepted by the DataTool.
		 The mimetypes are only used if the dataType can be used to store
		 different mimetypes. For example in a "String" you could save "text/plain"
		 or "text/html" or "text/xml".
				@return the mime types accepted by this DataTool. For example
         "image/gif" or "text/plain". In some cases the dataType
         determines the accepted type of data perfectly. In this cases
         this list may be empty.
     
		@short    Returns a list of mime type that will be accepted by the DataTool.
	*/
	public native ArrayList mimeTypes();
	/**	
		 Checks whether the DataTool is read-only.
				@return true if the DataTool does not modify the data passed to it by KDataTool.run.
     
		@short    Checks whether the DataTool is read-only.
	*/
	public native boolean isReadOnly();
	/**	
		 Returns the icon name for this DataTool.
				@return the name of the icon for the DataTool
     
		@short    Returns the icon name for this DataTool.
	*/
	public native String iconName();
	/**	
		 Returns a list of strings that you can put in a TQPopupMenu item, for example to
		 offer the DataTools services to the user. The returned value
		 is usually something like "Spell checking", "Shrink Image", "Rotate Image"
		 or something like that.     
		 This list comes from the Comment field of the tool's desktop file
		 (so that it can be translated).
			 Each of the strings returned corresponds to a string in the list returned by
		 commands.
				@return a list of strings that you can put in a TQPopupMenu item
     
		@short    Returns a list of strings that you can put in a TQPopupMenu item, for example to  offer the DataTools services to the user.
	*/
	public native ArrayList userCommands();
	/**	
		 Returns the list of commands the DataTool can execute. The application
		 passes the command to the KDataTool.run method.
			 This list comes from the Commands field of the tool's desktop file.
			 Each of the strings returned corresponds to a string in the list returned by
		 userCommands.
				@return the list of commands the DataTool can execute, suitable for 
         the KDataTool.run method.
     
		@short    Returns the list of commands the DataTool can execute.
	*/
	public native ArrayList commands();
	/**	
		 Creates the data tool described by this KDataToolInfo.
			@param parent the parent of the TQObject (or 0 for parent-less KDataTools)
			@param name the name of the TQObject, can be 0
				@return a pointer to the created data tool or 0 on error.
     
		@short    Creates the data tool described by this KDataToolInfo.
	*/
	public native KDataTool createTool(TQObject parent, String name);
	public native KDataTool createTool(TQObject parent);
	public native KDataTool createTool();
	/**	
		 The KDataToolInfo's service that is represented by this class.
				@return the service
     
		@short    The KDataToolInfo's service that is represented by this class.
	*/
	// KService::Ptr service(); >>>> NOT CONVERTED
	/**	
		 The instance of the service.
				@return the instance
     
		@short    The instance of the service.
	*/
	public native TDEInstanceInterface instance();
	/**	
		 A DataToolInfo may be invalid if the KService passed to its constructor does
		 not feature the service type "KDataTool".
				@return true if valid, false otherwise
     
		@short    A DataToolInfo may be invalid if the KService passed to its constructor does  not feature the service type "KDataTool".
	*/
	public native boolean isValid();
	/**	
		 Queries the KTrader about installed KDataTool implementations.
			@param datatype a type that the application can 'export' to the tools (e.g. String)
			@param mimetype the mimetype of the data (e.g. text/plain)
			@param instance the application (or the part)'s instance (to check if a tool is excluded from this part,
		 and also used if the tool wants to read its configuration in the app's config file).
				@return the list of results
     
		@short    Queries the KTrader about installed KDataTool implementations.
	*/
	// TQValueList<KDataToolInfo> query(const TQString& arg1,const TQString& arg2,TDEInstance* arg3); >>>> NOT CONVERTED
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}