summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java
blob: 4897b36e9e2e8766f9c2a5d9b46e7dbd9372048f (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
//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.QFile;

/**

 Class for KDE INI-style configuration file loading/saving.
		@author Preston Brown <pbrown@kde.org>,
         Matthias Kalle Dalheimer <kalle@kde.org>
 
		@short    Class for KDE INI-style configuration file loading/saving.

*/
public class KConfigINIBackEnd extends KConfigBackEnd  {
	protected KConfigINIBackEnd(Class dummy){super((Class) null);}
	/**	
		 Constructs an ini-style configuration back end.
			@param _config Specifies the configuration object which values
		        will be passed to as they are read, or from where values
		        to be written to will be obtained from.
			@param _fileName The name of the file in which config
		        data is stored.  All registered configuration directories
		        will be looked in in order of decreasing relevance.
			@param _resType the resource type of the fileName specified, _if_
		        it is not an absolute path (otherwise this parameter is ignored).
			@param _useKDEGlobals If true, the user's system-wide kdeglobals file
		        will be imported into the config object.  If false, only
		        the filename specified will be dealt with.
		   		@short    Constructs an ini-style configuration back end.
	*/
	public KConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals) {
		super((Class) null);
		newKConfigINIBackEnd(_config,_fileName,_resType,_useKDEGlobals);
	}
	private native void newKConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals);
	public KConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType) {
		super((Class) null);
		newKConfigINIBackEnd(_config,_fileName,_resType);
	}
	private native void newKConfigINIBackEnd(KConfigBase _config, String _fileName, String _resType);
	/**	
		 Parses all INI-style configuration files for a config object.
				@return Whether or not parsing was successful.
   
		@short    Parses all INI-style configuration files for a config object.
	*/
	public native boolean parseConfigFiles();
	/**	
		 Writes configuration data to file(s).
			@param bMerge Specifies whether the old config file already
		        on disk should be merged in with the data in memory.  If true,
		        data is read off the disk and merged.  If false, the on-disk
		        file is removed and only in-memory data is written out.
		   		@short    Writes configuration data to file(s).
	*/
	public native void sync(boolean bMerge);
	public native void sync();
	/**	
		 Parses one configuration file.
			@param rFile The configuration file to parse
			@param pWriteBackMap If specified, points to a KEntryMap where
		        the data read from the file should be stored, instead of
		        inserting them directly into the configuration object.
		        Use this area as a "scratchpad" when you need to know what is
		        on disk but don't want to effect the configuration object.
			@param bGlobal Specifies whether entries should be marked as
		        belonging to the global KDE configuration file rather
		        than the application-specific KDE configuration file(s).
			@param bDefault Specifies whether entries should be marked as
		        being default values.
		   		@short    Parses one configuration file.
	*/
	// void parseSingleConfigFile(QFile& arg1,KEntryMap* arg2,bool arg3,bool arg4); >>>> NOT CONVERTED
	// void parseSingleConfigFile(QFile& arg1,KEntryMap* arg2,bool arg3); >>>> NOT CONVERTED
	// void parseSingleConfigFile(QFile& arg1,KEntryMap* arg2); >>>> NOT CONVERTED
	protected native void parseSingleConfigFile(QFile rFile);
	/**	
		 Writes configuration file back.
			@param filename The name of the file to write.
			@param bGlobal Specifies whether to write only entries which
		        are marked as belonging to the global KDE config file.
		        If this is false, it skips those entries.
			@param bMerge Specifies whether the old config file already
		        on disk should be merged in with the data in memory.  If true,
		        data is read off the disk and merged.  If false, the on-disk
		        file is removed and only in-memory data is written out.
				@return Whether some entries are left to be written to other
         files.
   
		@short    Writes configuration file back.
	*/
	protected native boolean writeConfigFile(String filename, boolean bGlobal, boolean bMerge);
	protected native boolean writeConfigFile(String filename, boolean bGlobal);
	protected native boolean writeConfigFile(String filename);
	/**	 Get the entry map.
			@param map the entries will be stored in this object.
			@param bGlobal Specifies whether to get only entries which
		        are marked as belonging to the global KDE config file.
		        If this is false, it skips those entries.
			@param mergeFile if not null, the dirty entries for this file will
		 be merged.
				@return Whether there will be some entries left for writing to other
 files.
   
		@short   Get the entry map.
	*/
	// bool getEntryMap(KEntryMap& arg1,bool arg2,QFile* 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();
}