summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KFileMetaInfoGroup.java
blob: 107de48247f896a7994823720b6077d71c10321d (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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

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

/**

 @brief A group of meta information items about a file
 This is one group of meta information items about a file (see
 KFileMetaInfo).
 		@short    @brief A group of meta information items about a file

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

	/**	
			 You usually don't need to use this constructor yourself. Let
		 KFileMetaInfo do it for you.
				@short
	*/
	// KFileMetaInfoGroup* KFileMetaInfoGroup(const TQString& arg1,const KFileMimeTypeInfo* arg2); >>>> NOT CONVERTED
	/**	
		 Copy constructor
				@short    Copy constructor
	*/
	public KFileMetaInfoGroup(KFileMetaInfoGroup original) {
		newKFileMetaInfoGroup(original);
	}
	private native void newKFileMetaInfoGroup(KFileMetaInfoGroup original);
	/**	
		 Default constructor. This creates an "invalid" item
				@short    Default constructor.
	*/
	public KFileMetaInfoGroup() {
		newKFileMetaInfoGroup();
	}
	private native void newKFileMetaInfoGroup();
	/**	
		 Returns true if the item is valid, i.e. if it contains data, false
		 if it's invalid (created with the default constructor and not been
		 assigned anything), or if KFileMetaInfoGroup.item() didn't find
		 your requested item).
				@return true if valid, false if invalid
     
		@short    Returns true if the item is valid, i.
	*/
	public native boolean isValid();
	/**	
		 Returns false if the object contains data, true if it's empty. An
		 empty group is a group with no items (amazing, isn't it?).
				@return true if empty, false otherwise
     
		@short    Returns false if the object contains data, true if it's empty.
	*/
	public native boolean isEmpty();
	/**	
		 Returns true if an item as added or removed from the group.
				@return true if an item was added or removed from the group, otherwise
 false.

		@short    Returns true if an item as added or removed from the group.
	*/
	public native boolean isModified();
	/**	
		 Operator for convenience. It does the same as item(),
		 but you cannot specify a group to search in
		     		@short    Operator for convenience.
	*/
	public native KFileMetaInfoItem op_at(String key);
	/**	
		 This method searches for the specified item.
			@param key the key of the item to search
				@return the specified item if found, an invalid item, if not

		@short    This method searches for the specified item.
	*/
	public native KFileMetaInfoItem item(String key);
	/**	
		 Returns the item with the given <code>hint.</code>
			@param hint the hint of the item
				@return the item with the specified <code>hint</code>

		@short    Returns the item with the given <code>hint.</code>
	*/
	public native KFileMetaInfoItem item(int hint);
	/**	
		 Convenience function. Returns the value of the specified key.
		 It does the same as item(key).value().
			@param key the key of the item to search
				@return the value with the given key
     
		@short    Convenience function.
	*/
	public native TQVariant value(String key);
	/**	
		 Use this method to get a list of keys in the specified group that
		 the plugin knows about. No variable keys.
		 For a group that doesn't support variable keys, all keys that this
		 group may have are returned. For a group that does support them, the
		 non-variable ones are returned. See KFileMetaInfo about variable
		 keys
				@return the list of keys supported for this mimetype

		@short    Use this method to get a list of keys in the specified group that  the plugin knows about.
	*/
	public native ArrayList supportedKeys();
	/**	
		 Returns true if this group supports adding or removing arbitrary
		 keys, false if not.
				@return true is variable keys are supported, false otherwise

		@short    Returns true if this group supports adding or removing arbitrary  keys, false if not.
	*/
	public native boolean supportsVariableKeys();
	/**	
		 Checks whether an item with the given <code>key</code> exists.
				@return true if an item for this <code>key</code> exists.
     
		@short    Checks whether an item with the given <code>key</code> exists.
	*/
	public native boolean contains(String key);
	/**	
		 Returns a list of all keys.
				@return a list of all keys in the order they were inserted.

		@short    Returns a list of all keys.
	*/
	public native ArrayList keys();
	/**	
		 Returns a list of all keys in preference order.
				@return a list of all keys in preference order.

		@short    Returns a list of all keys in preference order.
	*/
	public native ArrayList preferredKeys();
	/**	
		 Add an item to the info. This is only possible if the specified <code>key</code>
		 is in the supportedKeys list and not yet defined or if
		 the group supports variable keys.
			@param key the key of the item
				@return the KFileMetaInfoItem for the given <code>key</code>

		@short    Add an item to the info.
	*/
	public native KFileMetaInfoItem addItem(String key);
	/**	
		 Remove this item from the meta info of the file. You cannot query
		 KFileMetaInfo for a removed object, but you can query for a list of
		 removed items with removedItems() if you need to.
		 If you re-add it, its value will be cleared.
			@param key the key of the removed item
				@return true if successful, false otherwise
     
		@short    Remove this item from the meta info of the file.
	*/
	public native boolean removeItem(String key);
	/**	
		 Returns a list of all removed items.
				@return a list of all removed items
     
		@short    Returns a list of all removed items.
	*/
	public native ArrayList removedItems();
	/**	
		 The name of this group.
				@return the name of this group
     
		@short    The name of this group.
	*/
	public native String name();
	/**	
		 The translated name of this group.
				@return the translated name of this group

		@short    The translated name of this group.
	*/
	public native String translatedName();
	/**	
		 Returns the attributes of this item.
				@return the attributes
     
		@short    Returns the attributes of this item.
	*/
	public native int attributes();
	protected native void setAdded();
	protected native KFileMetaInfoItem appendItem(String key, TQVariant value);
	protected native void ref();
	protected native void deref();
	/** 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();
}