summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KFileMetaInfoItem.java
blob: 422dfcea82775a496f9f058c7d2ad88a37a245b4 (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
//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.TQVariant;

/**

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

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

	/**	
			 You usually don't need to use this constructor yourself. Let
		 KFileMetaInfo do it for you.
				@short
	*/
	// KFileMetaInfoItem* KFileMetaInfoItem(const KFileMimeTypeInfo::ItemInfo* arg1,const TQString& arg2,const TQVariant& arg3); >>>> NOT CONVERTED
	/**	
		 Copy constructor
				@short    Copy constructor
	*/
	public KFileMetaInfoItem(KFileMetaInfoItem item) {
		newKFileMetaInfoItem(item);
	}
	private native void newKFileMetaInfoItem(KFileMetaInfoItem item);
	/**	
		 Default constructor. This creates an "invalid" item
		     		@short    Default constructor.
	*/
	public KFileMetaInfoItem() {
		newKFileMetaInfoItem();
	}
	private native void newKFileMetaInfoItem();
	/**	
		 Returns the key of the item.
				@return the key of this item
     
		@short    Returns the key of the item.
	*/
	public native String key();
	/**	
		 Returns a translation of the key for displaying to the user. If the
		 plugin provides translation to the key, it's also in the user's language
				@return the translated key
     
		@short    Returns a translation of the key for displaying to the user.
	*/
	public native String translatedKey();
	/**	
		 Returns the value of the item.
				@return the value of the item.
     
		@short    Returns the value of the item.
	*/
	public native TQVariant value();
	/**	
		 Returns a string containing the value, if possible. If not,
		 null is returned.
			@param mangle if true, the string will already contain prefix and
		 suffix
				@return the value string, or null if not possible
     
		@short    Returns a string containing the value, if possible.
	*/
	public native String string(boolean mangle);
	public native String string();
	/**	
		 Changes the value of the item.
			@param value the new value
				@return true if successful, false otherwise
     
		@short    Changes the value of the item.
	*/
	public native boolean setValue(TQVariant value);
	/**	
		 Return the type of the item.
				@return the type of the item
     
		@short    Return the type of the item.
	*/
	public native int type();
	/**	
		 You can query if the application can edit the item and write it back to
		 the file with this method.
			 @note This doesn't ensure that you have write access to the file and
		       that enough space is available.
				@return true if the item's value can be changed, false if not
     
		@short    You can query if the application can edit the item and write it back to  the file with this method.
	*/
	public native boolean isEditable();
	/**	
		 If you remove an item, it is only marked for removal for the file. On
		 the next KFileMetaInfo.applyChanges() , it will be removed from
		 the file. With this method, you can ask if the item is marked for
		 removal.
				@return true if the item was removed, false if not
     
		@short    If you remove an item, it is only marked for removal for the file.
	*/
	public native boolean isRemoved();
	/**	
		 If you change an item, it is marked as "dirty". On the next
		 KFileMetaInfo.applyChanges() , the change will be written to the
		 file. With this method, you can ask if this item is dirty.
				@return true if the item contains changes that have not yet been written
 back into the file. Removing or adding an item counts as such a change
     
		@short    If you change an item, it is marked as "dirty".
	*/
	public native boolean isModified();
	/**	
		 This method returns a translated prefix to be displayed before the
		 value. Think e.g. of the $ in $30
				@return the prefix
     
		@short    This method returns a translated prefix to be displayed before the  value.
	*/
	public native String prefix();
	/**	
		 This method returns a translated suffix to be displayed after the
		 value. Think of the kbps in 128kbps
				@return the suffix
     
		@short    This method returns a translated suffix to be displayed after the  value.
	*/
	public native String suffix();
	/**	
		 Returns the hint for this item. See KFileMimeTypeInfo.Hint.
				@return the hint

		@short    Returns the hint for this item.
	*/
	public native int hint();
	/**	
		 Returns the attributes for this item. See
		 KFileMimeTypeInfo.Attributes.
				@return the attributes

		@short    Returns the attributes for this item.
	*/
	public native int attributes();
	/**	
		 Return 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    Return true if the item is valid, i.
	*/
	public native boolean isValid();
	protected native void setAdded();
	protected native void setRemoved();
	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();
}